mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-18 04:40:35 +08:00
Add trust_remote_code parameter and remove True
- Introduced a new model parameter `trust_remote_code` - Set the default value of `trust_remote_code` to `False` to enhance security
This commit is contained in:
@@ -72,7 +72,7 @@ class VllmEngine(BaseEngine):
|
||||
|
||||
engine_args = {
|
||||
"model": model_args.model_name_or_path,
|
||||
"trust_remote_code": True,
|
||||
"trust_remote_code": model_args.trust_remote_code,
|
||||
"download_dir": model_args.cache_dir,
|
||||
"dtype": model_args.infer_dtype,
|
||||
"max_model_len": model_args.vllm_maxlen,
|
||||
|
||||
Reference in New Issue
Block a user