mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-16 20:00:36 +08:00
add tool test
This commit is contained in:
@@ -97,7 +97,7 @@ def preprocess_packed_supervised_dataset(
|
||||
|
||||
messages = examples["prompt"][i] + examples["response"][i]
|
||||
for turn_idx, (source_ids, target_ids) in enumerate(template.encode_multiturn(
|
||||
tokenizer, messages, examples["system"][i], examples["tool"][i], 1_000_000
|
||||
tokenizer, messages, examples["system"][i], examples["tool"][i]
|
||||
)):
|
||||
if data_args.train_on_prompt:
|
||||
source_mask = source_ids
|
||||
|
||||
Reference in New Issue
Block a user