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
我想请问一下此处trainer的问题是否是源码编写有误?
[rank2]: Traceback (most recent call last):
[rank2]: File "/home/lzr24/VisRAG-master/src/openmatch/driver/train.py", line 152, in
[rank2]: main()
[rank2]: File "/home/lzr24/VisRAG-master/src/openmatch/driver/train.py", line 145, in main
[rank2]: trainer.train()
[rank2]: File "/home/lzr24/miniconda3/envs/VisRAG/lib/python3.10/site-packages/transformers/trainer.py", line 2123, in train
[rank2]: return inner_training_loop(
[rank2]: File "/home/lzr24/miniconda3/envs/VisRAG/lib/python3.10/site-packages/transformers/trainer.py", line 2481, in _inner_training_loop
[rank2]: tr_loss_step = self.training_step(model, inputs, num_items_in_batch)
[rank2]: TypeError: DRTrainer.training_step() takes 3 positional arguments but 4 were given
The text was updated successfully, but these errors were encountered:
我想请问一下此处trainer的问题是否是源码编写有误?
[rank2]: Traceback (most recent call last):
[rank2]: File "/home/lzr24/VisRAG-master/src/openmatch/driver/train.py", line 152, in
[rank2]: main()
[rank2]: File "/home/lzr24/VisRAG-master/src/openmatch/driver/train.py", line 145, in main
[rank2]: trainer.train()
[rank2]: File "/home/lzr24/miniconda3/envs/VisRAG/lib/python3.10/site-packages/transformers/trainer.py", line 2123, in train
[rank2]: return inner_training_loop(
[rank2]: File "/home/lzr24/miniconda3/envs/VisRAG/lib/python3.10/site-packages/transformers/trainer.py", line 2481, in _inner_training_loop
[rank2]: tr_loss_step = self.training_step(model, inputs, num_items_in_batch)
[rank2]: TypeError: DRTrainer.training_step() takes 3 positional arguments but 4 were given
The text was updated successfully, but these errors were encountered: