mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-20 05:40:34 +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
Former-commit-id: 0943776326
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