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

qwen2 MG and HF mismatch #289

Open
vlad-karpuhin opened this issue Jul 16, 2024 · 0 comments
Open

qwen2 MG and HF mismatch #289

vlad-karpuhin opened this issue Jul 16, 2024 · 0 comments

Comments

@vlad-karpuhin
Copy link

When converting HF QWEN2 checkpoint into megatron, your conversion script reports the differences between both models layers. There are a lot of mismatches.
The root cause of the mismatch seems to be in the scaled dot product attention implementations between MG and HF, with the same inputs and settings, they produce different outputs. Not completely different, but still non negligible.
Did you experience that? if yes, are you aware of any decreased effectiveness of such converted qwen model later?

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

1 participant