mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 18:45:00 +00:00
feat(autogpt/transformers): consume trust_remote_code
(#1799)
trusting remote code by default is a danger to our users
This commit is contained in:
parent
504f2e8bf4
commit
5c69dd155f
2 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ class BackendServicer(backend_pb2_grpc.BackendServicer):
|
|||
model = AutoGPTQForCausalLM.from_quantized(request.Model,
|
||||
model_basename=request.ModelBaseName,
|
||||
use_safetensors=True,
|
||||
trust_remote_code=True,
|
||||
trust_remote_code=request.TrustRemoteCode,
|
||||
device=device,
|
||||
use_triton=request.UseTriton,
|
||||
quantize_config=None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue