fix: add trust_remote_code=True to second load_dataset call in run_llama.py
Browse files
improve_gainlora/src/run_llama.py
CHANGED
|
@@ -730,7 +730,9 @@ def main():
|
|
| 730 |
cache_dir=data_cache_dir, # for debug, change dataset size, otherwise open it
|
| 731 |
max_num_instances_per_task=data_args.max_num_instances_per_task,
|
| 732 |
max_num_instances_per_eval_task=data_args.max_num_instances_per_eval_task,
|
| 733 |
-
num_examples=data_args.num_examples
|
|
|
|
|
|
|
| 734 |
|
| 735 |
replay_dataset_dict[task_order[idx]] = raw_datasets_gen["train"]
|
| 736 |
print(raw_datasets_gen)
|
|
|
|
| 730 |
cache_dir=data_cache_dir, # for debug, change dataset size, otherwise open it
|
| 731 |
max_num_instances_per_task=data_args.max_num_instances_per_task,
|
| 732 |
max_num_instances_per_eval_task=data_args.max_num_instances_per_eval_task,
|
| 733 |
+
num_examples=data_args.num_examples,
|
| 734 |
+
trust_remote_code=True,
|
| 735 |
+
)
|
| 736 |
|
| 737 |
replay_dataset_dict[task_order[idx]] = raw_datasets_gen["train"]
|
| 738 |
print(raw_datasets_gen)
|