mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 10:35:01 +00:00
fix(grpc): pass by modelpath (#4023)
Instead of trying to derive it from the model file. In backends that specify HF url this results in a fragile logic. Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
48d621c64e
commit
61c964dce7
3 changed files with 7 additions and 6 deletions
|
@ -425,6 +425,7 @@ func (ml *ModelLoader) grpcModel(backend string, autodetect bool, o *Options) fu
|
|||
options := *o.gRPCOptions
|
||||
options.Model = modelName
|
||||
options.ModelFile = modelFile
|
||||
options.ModelPath = ml.ModelPath
|
||||
|
||||
log.Debug().Msgf("GRPC: Loading model with options: %+v", options)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue