Spaces:
Paused
Paused
Commit ·
d70ebc4
1
Parent(s): ec247a4
update
Browse files129 unmodified lines130131132133134135129 unmodified linesinput_ids = example["input_ids"]text = tokenizer.decode(input_ids, skip_special_tokens=False)if text.__contains__(response_template):result = Trueelse:129 unmodified lines130131132133134135136137138139140129 unmodified linesinput_ids = example["input_ids"]text = tokenizer.decode(input_ids, skip_special_tokens=False)max_length = 1024 if debug_mode else 4096,length = len(input_ids)if length > max_length:raise AssertionError()if text.__contains__(response_template):result = Trueelse:
examples/tutorials/dpo/ultrachat/step_2_train_sft_model_deepspeed.py+5