-
Notifications
You must be signed in to change notification settings - Fork 243
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
Support gemma model in pytorch engine #1184
Conversation
I've tested it with |
Hi @grimoire Have you compared the output results with those of the transformers? |
I have align the The patched RMS norm looks OK in chat API, I guess the mismatch of the norm is caused by the scaling of hidden_states. |
Hi @grimoire Please resolve the conflicts. |
@zhulinJulia24 may perform regression tests for pytorch engine |
UT failed
Is it this PR's issue or our runner's issue? |
Tested Ok on with gemma and llma2
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Error when running Baichuan2-7B-Chat model. It works in main branch. script:
error callstack.
|
Gemma model need transformers>=4.38.1, Should we put a notice on readme? when transformers == 4.37.1 error is:
|
lmdeploy/requirements/runtime.txt Line 14 in a6c2524
|
Fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
cover:
- llama-2-7b-chat
- internlm-chat-7b
- internlm-chat-20b
- internlm2-chat-7b
- internlm2-chat-20b
- Baichuan2-7B-Chat
- Baichuan2-13B-Chat
- chatglm2-6b
- falcon-7b
- Yi-6B-Chat
- internlm2-1_8b
- internlm2-20b
- Qwen1.5-7B-Chat
- Mistral-7B-Instruct-v0.1
- Mixtral-8x7B-Instruct-v0.1
- gemma-7b-it
- deepseek-moe-16b-chat
tools: hf chat, resful and pipeline basic case
Fix llama on transformers 4.38
Support Gemma
Support mistral and sliding window attention #1075