Skip to content
New issue

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

TypeError: scaled_dot_product_attention() got an unexpected keyword argument 'training' in <xtuner.engine.hooks.evaluate_chat_hook.EvaluateChatHook object at 0x7f1ce9adfe20> #515

Open
QB-Chen opened this issue Mar 25, 2024 · 1 comment

Comments

@QB-Chen
Copy link

QB-Chen commented Mar 25, 2024

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 <xtuner.engine.hooks.evaluate_chat_hook.EvaluateChatHook object at 0x7f1ce9adfe20>

@LZHgrla
Copy link
Collaborator

LZHgrla commented Mar 27, 2024

@QB-Chen
This error have been fixed by #513

Please update your xtuner library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants