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:
@@ -129,7 +129,7 @@ def _load_single_dataset(
|
||||
token=model_args.hf_hub_token,
|
||||
streaming=data_args.streaming,
|
||||
num_proc=data_args.preprocessing_num_workers,
|
||||
trust_remote_code=True,
|
||||
trust_remote_code=model_args.trust_remote_code,
|
||||
)
|
||||
|
||||
if dataset_attr.num_samples is not None and not data_args.streaming:
|
||||
|
||||
Reference in New Issue
Block a user