mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-21 19:15:00 +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"
|
device_map="CPU"
|
||||||
self.model = OVModelForCausalLM.from_pretrained(model_name,
|
self.model = OVModelForCausalLM.from_pretrained(model_name,
|
||||||
compile=True,
|
compile=True,
|
||||||
|
trust_remote_code=request.TrustRemoteCode,
|
||||||
ov_config={"PERFORMANCE_HINT": "LATENCY"},
|
ov_config={"PERFORMANCE_HINT": "LATENCY"},
|
||||||
device=device_map)
|
device=device_map)
|
||||||
self.OV = True
|
self.OV = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue