mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 10:35:01 +00:00
fix missing TrustRemoteCode in OpenVINO model load (#2114)
This commit is contained in:
parent
ac56ac2b2d
commit
f718a391c0
1 changed files with 1 additions and 0 deletions
|
@ -149,6 +149,7 @@ class BackendServicer(backend_pb2_grpc.BackendServicer):
|
|||
device_map="CPU"
|
||||
self.model = OVModelForCausalLM.from_pretrained(model_name,
|
||||
compile=True,
|
||||
trust_remote_code=request.TrustRemoteCode,
|
||||
ov_config={"PERFORMANCE_HINT": "LATENCY"},
|
||||
device=device_map)
|
||||
self.OV = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue