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

Part 1 of qwen 2 compatibility: elif model_type qwen2 #45

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SolshineCode
Copy link

Line 27 added option for qwen2 architecture to be recognized:
elif data['model_type'] == "qwen2":
data['model_type'] = "mergedqwen2"
data['architectures'][0] = 'MergedQwen2ForCausalLM '

This as part 1 of qwen 2 compatibility.

Line 27 added option for qwen2 architecture to be recognized:
    elif data['model_type'] == "qwen2":
        data['model_type'] = "mergedqwen2"
        data['architectures'][0] = 'MergedQwen2ForCausalLM '

This as part 1 of qwen 2 compatibility.
Copy link
Member

@shamanez shamanez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also need to add the modified modeling.py file to make this work.

Ex: checkout the changes we did for the Llama3 - https://github.com/arcee-ai/DAM/blob/main/dam/modeling/llama3/modeling.py

@SolshineCode
Copy link
Author

Yes, I anticipate doing that as Part 2. Should I include that into this same PR?

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.

2 participants