Skip to content

Add support for LLaMA-2 - #505

Merged
zhuohan123 merged 9 commits into
mainfrom
support-llama-2
Jul 20, 2023
Merged

Add support for LLaMA-2#505
zhuohan123 merged 9 commits into
mainfrom
support-llama-2

Conversation

@zhuohan123

@zhuohan123 zhuohan123 commented Jul 18, 2023

Copy link
Copy Markdown
Member

Fix #501

Update: this PR has some correctness issues on 70B models. Will look into it.

@WoosukKwon This PR is ready to go. Please review and let's merge it!

@zhuohan123 zhuohan123 changed the title [WIP] Add support for LLaMA-2 Add support for LLaMA-2 Jul 18, 2023
@gesanqiu

Copy link
Copy Markdown
Contributor

I notice that you didn't new a llama2.py, so this PR compatible with both llama and llama2?

@zhuohan123

Copy link
Copy Markdown
Member Author

I notice that you didn't new a llama2.py, so this PR compatible with both llama and llama2?

Yes, old model should still be compatible.

@WoosukKwon WoosukKwon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@zhuohan123 Awesome! Thanks for the great work! Just left minor comments.

Please double-check that this PR doesn't break LLaMA V1 and other models using RoPE, before merging the PR.

Comment thread csrc/pos_encoding_kernels.cu
Comment thread vllm/model_executor/models/llama.py Outdated
Comment thread vllm/model_executor/models/llama.py Outdated
Comment thread vllm/model_executor/models/llama.py Outdated
@zhuohan123
zhuohan123 merged commit 6fc2a38 into main Jul 20, 2023
gqjia added a commit to gqjia/vllm that referenced this pull request Jul 21, 2023
@zhuohan123
zhuohan123 deleted the support-llama-2 branch July 25, 2023 21:59
@ri938

ri938 commented Jul 27, 2023

Copy link
Copy Markdown
Contributor

I am getting an error when trying to load some LLama V1 models:

LlamaConfig object has no attribute 'num_key_value_heads'

@HarrisonBT

Copy link
Copy Markdown

WARNING 07-28 03:23:18 scheduler.py:196] Input prompt (2716 tokens) is too long and exceeds limit of 4096

@tuyaao

tuyaao commented Jul 31, 2023

Copy link
Copy Markdown

I am getting an error when trying to load some LLama V1 models:

LlamaConfig object has no attribute 'num_key_value_heads'
same error from me on lastest master commit: 953f28c

hongxiayang pushed a commit to hongxiayang/vllm that referenced this pull request Feb 13, 2024
pi314ever pushed a commit to pi314ever/vllm that referenced this pull request Nov 20, 2024
Co-authored-by: Michał Kuligowski <mkuligowski@habana.ai>
amy-why-3459 pushed a commit to amy-why-3459/vllm that referenced this pull request Sep 15, 2025
Clean up V1 code:
1. remove useless code.
2. format code to be clear.

Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
cursor Bot pushed a commit to Shirley125/vllm_epd that referenced this pull request Jan 22, 2026
Signed-off-by: gcanlin <canlinguosdu@gmail.com>
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.

Support LLaMA-2

6 participants