Update pkg/inference/backends/llamacpp/llamacpp.go
Co-authored-by: Jacob Howard <jacob.howard@docker.com>
This commit is contained in:
parent
9f7f778e82
commit
bb7abccf47
|
|
@ -310,7 +310,7 @@ func (l *llamaCpp) parseRemoteModel(ctx context.Context, model string) (*parser.
|
||||||
return nil, types.Config{}, fmt.Errorf("getting layers of model(%s): %w", model, err)
|
return nil, types.Config{}, fmt.Errorf("getting layers of model(%s): %w", model, err)
|
||||||
}
|
}
|
||||||
ggufLayers := getGGUFLayers(layers)
|
ggufLayers := getGGUFLayers(layers)
|
||||||
if len(ggufLayers) != 0 {
|
if len(ggufLayers) != 1 {
|
||||||
return nil, types.Config{}, fmt.Errorf(
|
return nil, types.Config{}, fmt.Errorf(
|
||||||
"remote memory estimation only supported for models with single GGUF layer, found %d layers", len(ggufLayers),
|
"remote memory estimation only supported for models with single GGUF layer, found %d layers", len(ggufLayers),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue