TypeError: scaled_dot_product_attention() got an unexpected keyword argument 'training' in <xtuner.engine.hooks.evaluate_chat_hook.EvaluateChatHook object at 0x7f1ce9adfe20>
- Dominant language
- Python
- Stars
- 5.2k
- Forks
- 448
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 26
Description
Traceback (most recent call last):
File "/root/xtuner/xtuner/tools/train.py", line 337, in
main()
File "/root/xtuner/xtuner/tools/train.py", line 333, in main
runner.train()
File "/root/.conda/envs/xtuner/lib/python3.10/site-packages/mmengine/runner/_flexible_runner.py", line 1200, in train
model = self.train_loop.run() # type: ignore
File "/root/.conda/envs/xtuner/lib/python3.10/site-packages/mmengine/runner/loops.py", line 270, in run
self.runner.call_hook('before_train')
File "/root/.conda/envs/xtuner/lib/python3.10/site-packages/mmengine/runner/_flexible_runner.py", line 1273, in call_hook
raise TypeError(f'{e} in {hook}') from e
TypeError: scaled_dot_product_attention() got an unexpected keyword argument 'training' in
Contributor guide
Assessment
This issue has not been assessed yet.