Skip to content

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

Open
SolshineCode wants to merge 1 commit intoarcee-ai:mainfrom
SolshineCode:patch-4
Open

Part 1 of qwen 2 compatibility: elif model_type qwen2#45
SolshineCode wants to merge 1 commit intoarcee-ai:mainfrom
SolshineCode:patch-4

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
Contributor

@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