mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-19 20:57: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"
|
||||
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…
Reference in New Issue
Block a user