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: llama_attn_forward() got an unexpected keyword argument 'padding_mask' in <xtuner.engine.hooks.evaluate_chat_hook.EvaluateChatHook object at 0x7fecc4b82260> #228

Closed
shihaoxiong opened this issue Nov 16, 2023 · 1 comment · Fixed by #229

Comments

@shihaoxiong
Copy link

cfg: llama2_7b_qlora_moss_sft_all_e1

11/16 13:47:38 - mmengine - INFO - before_train in EvaluateChatHook.
Traceback (most recent call last):
File "/opt/data/anaconda2-2020.2/envs/xtuner-env/lib/python3.10/site-packages/xtuner/tools/train.py", line 259, in
main()
File "/opt/data/anaconda2-2020.2/envs/xtuner-env/lib/python3.10/site-packages/xtuner/tools/train.py", line 255, in main
runner.train()
File "/opt/data/anaconda2-2020.2/envs/xtuner-env/lib/python3.10/site-packages/mmengine/runner/runner.py", line 1777, in train
model = self.train_loop.run() # type: ignore
File "/opt/data/anaconda2-2020.2/envs/xtuner-env/lib/python3.10/site-packages/mmengine/runner/loops.py", line 93, in run
self.runner.call_hook('before_train')
File "/opt/data/anaconda2-2020.2/envs/xtuner-env/lib/python3.10/site-packages/mmengine/runner/runner.py", line 1841, in call_hook
raise TypeError(f'{e} in {hook}') from None
TypeError: llama_attn_forward() got an unexpected keyword argument 'padding_mask' in <xtuner.engine.hooks.evaluate_chat_hook.EvaluateChatHook object at 0x7fecc4b82260>

@LZHgrla LZHgrla linked a pull request Nov 16, 2023 that will close this issue
@LZHgrla
Copy link
Collaborator

LZHgrla commented Nov 16, 2023

#229 will solve this problem

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

Successfully merging a pull request may close this issue.

2 participants