Skip to content

Qwen2: assume tied weights if lm_head/output weights is missing #6738

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

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

jklj077
Copy link
Contributor

@jklj077 jklj077 commented Apr 18, 2024

This PR adds the proper support of Qwen2-0.5B, which uses tied word embeddings. Example config: https://huggingface.co/Qwen/Qwen1.5-0.5B-Chat/blob/main/config.json#L21.

Previous attempt: #6578

@ggerganov ggerganov merged commit e11b2e6 into ggml-org:master Apr 18, 2024
49 of 58 checks passed
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 this pull request may close these issues.

3 participants