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

最新代码增量预训练qwen-7b后无法评测 #601

Closed
fengcai24 opened this issue Aug 20, 2023 · 3 comments
Closed

最新代码增量预训练qwen-7b后无法评测 #601

fengcai24 opened this issue Aug 20, 2023 · 3 comments
Labels
solved This problem has been already solved.

Comments

@fengcai24
Copy link

报错如下:
image

output = old_forward(*args, **kwargs)

File "/root/.cache/huggingface/modules/transformers_modules/checkpoint-2800/modeling_qwen.py", line 381, in forward
context_layer = self.core_attention_flash(q, k, v)
File "/opt/conda/envs/llama_etuning/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/root/.cache/huggingface/modules/transformers_modules/checkpoint-2800/modeling_qwen.py", line 95, in forward
assert all((i.dtype in [torch.float16, torch.bfloat16] for i in (q, k, v)))
AssertionError

@fengcai24
Copy link
Author

模型训练采用bf16

@hiyouga
Copy link
Owner

hiyouga commented Aug 21, 2023

在模型目录下的 config.json 中禁用 flashattn

@fengcai24
Copy link
Author

已解决

@hiyouga hiyouga added the solved This problem has been already solved. label Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved This problem has been already solved.
Projects
None yet
Development

No branches or pull requests

2 participants