Skip to content

[inference] add llama2 support#4898

Merged
tiandiao123 merged 2 commits intohpcaitech:mainfrom
Xu-Kai:llama2
Oct 13, 2023
Merged

[inference] add llama2 support#4898
tiandiao123 merged 2 commits intohpcaitech:mainfrom
Xu-Kai:llama2

Conversation

@Xu-Kai
Copy link
Copy Markdown
Contributor

@Xu-Kai Xu-Kai commented Oct 12, 2023

📌 Checklist before creating the PR

  • I have created an issue for this PR for traceability
  • The title follows the standard format: [doc/gemini/tensor/...]: A concise description
  • I have added relevant tags if possible for us to better distinguish different PRs

🚨 Issue number

Link this PR to your issue with words like fixed to automatically close the linked issue upon merge

e.g. fixed #1234, closed #1234, resolved #1234

📝 What does this PR do?

  • Support llama2

💥 Checklist before requesting a review

  • I have linked my PR to an issue (instruction)
  • My issue clearly describes the problem/feature/proposal, with diagrams/charts/table/code if possible
  • I have performed a self-review of my code
  • I have added thorough tests.
  • I have added docstrings for all the functions/methods I implemented

⭐️ Do you enjoy contributing to Colossal-AI?

  • 🌝 Yes, I do.
  • 🌚 No, I don't.

Tell us more if you don't enjoy contributing to Colossal-AI.

@Xu-Kai Xu-Kai marked this pull request as ready for review October 12, 2023 08:43
Comment thread colossalai/inference/tensor_parallel/modeling/llama.py
@github-actions
Copy link
Copy Markdown
Contributor

The code coverage for the changed files is 16%.

Click me to view the complete report
Name                                                      Stmts   Miss  Cover
-----------------------------------------------------------------------------
colossalai/inference/tensor_parallel/engine.py              177    147    17%
colossalai/inference/tensor_parallel/modeling/_utils.py      33     33     0%
colossalai/inference/tensor_parallel/modeling/llama.py      161    161     0%
colossalai/kernel/triton/__init__.py                         16      3    81%
tests/test_infer/test_llama2_infer.py                        40     14    65%
-----------------------------------------------------------------------------
TOTAL                                                       427    358    16%

@tiandiao123 tiandiao123 merged commit 77a9328 into hpcaitech:main Oct 13, 2023
flybird11111 pushed a commit to flybird11111/ColossalAI that referenced this pull request Oct 18, 2023
* add llama2 support

* fix multi group bug
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.

3 participants