mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-20 05:07:54 +00:00
fix missing TrustRemoteCode in OpenVINO model load (#2114)
This commit is contained in:
parent
ac56ac2b2d
commit
f718a391c0
@ -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…
Reference in New Issue
Block a user