You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read the README and searched the existing issues.
System Info
其他模型训练都正常,换Qwen2-57B-A14-instruct做sft时,报错了
Reproduction
Traceback (most recent call last):
File "/mnt/pfs/nlp/zhangjie07/workspace/LLaMA-Factory/src/train.py", line 28, in<module>main()
File "/mnt/pfs/nlp/zhangjie07/workspace/LLaMA-Factory/src/train.py", line 19, in main
run_exp()
File "/mnt/pfs/nlp/zhangjie07/workspace/LLaMA-Factory/src/llamafactory/train/tuner.py", line 50, in run_exp
run_sft(model_args, data_args, training_args, finetuning_args, generating_args, callbacks)
File "/mnt/pfs/nlp/zhangjie07/workspace/LLaMA-Factory/src/llamafactory/train/sft/workflow.py", line 90, in run_sft
train_result = trainer.train(resume_from_checkpoint=training_args.resume_from_checkpoint)
File "/usr/local/lib/python3.10/dist-packages/transformers/trainer.py", line 1885, in train
return inner_training_loop(
File "/usr/local/lib/python3.10/dist-packages/transformers/trainer.py", line 2291, in _inner_training_loop
self._maybe_log_save_evaluate(tr_loss, grad_norm, model, trial, epoch, ignore_keys_for_eval)
File "/usr/local/lib/python3.10/dist-packages/transformers/trainer.py", line 2721, in _maybe_log_save_evaluate
metrics = self.evaluate(ignore_keys=ignore_keys_for_eval)
File "/usr/local/lib/python3.10/dist-packages/transformers/trainer_seq2seq.py", line 180, in evaluate
returnsuper().evaluate(eval_dataset, ignore_keys=ignore_keys, metric_key_prefix=metric_key_prefix)
File "/usr/local/lib/python3.10/dist-packages/transformers/trainer.py", line 3572, in evaluate
output = eval_loop(
File "/usr/local/lib/python3.10/dist-packages/transformers/trainer.py", line 3854, in evaluation_loop
metrics = self.compute_metrics(EvalPrediction(predictions=all_preds, label_ids=all_labels))
File "/mnt/pfs/nlp/zhangjie07/workspace/LLaMA-Factory/src/llamafactory/train/sft/metric.py", line 50, in compute_accuracy
pred, label = preds[i, :-1], labels[i, 1:]
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
1%|| 20/3820 [1:06:10<209:33:28, 198.53s/it]
Expected behavior
No response
Others
No response
The text was updated successfully, but these errors were encountered:
Reminder
System Info
其他模型训练都正常,换Qwen2-57B-A14-instruct做sft时,报错了
Reproduction
Expected behavior
No response
Others
No response
The text was updated successfully, but these errors were encountered: