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

[Model] support baichuan-13b based on baichuan-7b #643

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

Oliver-ss
Copy link
Contributor

  1. baichuan-7b and baichuan-13b have different architectures in config.json, "BaichuanForCausalLM" for baichuan-13b and "BaiChuanForCausalLM" for baichuan-7b.
  2. The model structures are almost the same except for position embedding. (RoPE for baichuan-7b and Alibi for baichuan-13b.) So most of the code coule be shared.

Copy link
Collaborator

@zhuohan123 zhuohan123 left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! Just tested this out with 13b model and -tp 4 and it works like a charm!

@zhuohan123 zhuohan123 merged commit 64f23c2 into vllm-project:main Aug 2, 2023
2 checks passed
@luohao123
Copy link

@zhuohan123 So this resolved baichuan13b tp issue?

But I think there was another PR merged in before, which one to use?

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.

None yet

3 participants