Add support for LLaMA-2 - #505
Conversation
|
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
left a comment
There was a problem hiding this comment.
@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.
Add support for LLaMA-2 (vllm-project#505)
|
I am getting an error when trying to load some LLama V1 models: LlamaConfig object has no attribute 'num_key_value_heads' |
|
WARNING 07-28 03:23:18 scheduler.py:196] Input prompt (2716 tokens) is too long and exceeds limit of 4096 |
|
Co-authored-by: Michał Kuligowski <mkuligowski@habana.ai>
Clean up V1 code: 1. remove useless code. 2. format code to be clear. Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
Signed-off-by: gcanlin <canlinguosdu@gmail.com>
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!