We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rank0]: Traceback (most recent call last): [rank0]: File "/opt/MiniCPM-V-main/finetune/finetune.py", line 299, in [rank0]: train() [rank0]: File "/opt/MiniCPM-V-main/finetune/finetune.py", line 289, in train [rank0]: trainer.train() [rank0]: File "/root/miniconda3/envs/transformers/lib/python3.10/site-packages/transformers/trainer.py", line 2164, in train [rank0]: return inner_training_loop( [rank0]: File "/root/miniconda3/envs/transformers/lib/python3.10/site-packages/transformers/trainer.py", line 2524, in _inner_training_loop [rank0]: tr_loss_step = self.training_step(model, inputs, num_items_in_batch) [rank0]: TypeError: CPMTrainer.training_step() takes 3 positional arguments but 4 were given
I got this error when I tried to finetune the model, anyone knows how to solve it?
No response
- OS: - Python: - Transformers: - PyTorch: - CUDA (`python -c 'import torch; print(torch.version.cuda)'`):
The text was updated successfully, but these errors were encountered:
Same problem, recently appeared
Sorry, something went wrong.
No branches or pull requests
是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?
该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?
当前行为 | Current Behavior
[rank0]: Traceback (most recent call last):
[rank0]: File "/opt/MiniCPM-V-main/finetune/finetune.py", line 299, in
[rank0]: train()
[rank0]: File "/opt/MiniCPM-V-main/finetune/finetune.py", line 289, in train
[rank0]: trainer.train()
[rank0]: File "/root/miniconda3/envs/transformers/lib/python3.10/site-packages/transformers/trainer.py", line 2164, in train
[rank0]: return inner_training_loop(
[rank0]: File "/root/miniconda3/envs/transformers/lib/python3.10/site-packages/transformers/trainer.py", line 2524, in _inner_training_loop
[rank0]: tr_loss_step = self.training_step(model, inputs, num_items_in_batch)
[rank0]: TypeError: CPMTrainer.training_step() takes 3 positional arguments but 4 were given
I got this error when I tried to finetune the model, anyone knows how to solve it?
期望行为 | Expected Behavior
No response
复现方法 | Steps To Reproduce
No response
运行环境 | Environment
备注 | Anything else?
No response
The text was updated successfully, but these errors were encountered: