-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(build): remove ruff warning when running `make style_check` * refactor(modeling): import specific modeling only when required * chore: import Llama modeling from transformers, to allow loading model imported from transformers v4.40.1. * feat: internal LLamaModelforCausalLM selected if possible * feat(llama): sharding on o_proj * feat(llama): sharding on q,k,v * feat(llama): sharding on MLP Linears * feat(llama): sharding on lm_head * test: add slow test to verify sharded Llama3-8b can be loaded on TPU * fix(generation): eos_token_id can be a list in configs This essentially copies commit 8a4a98d2472b8e0180eb9bd4a1824f983e220811 from optimum-neuron, that fixed the same problem. * test(tgi): added test to validate Llama3 8b on TGI * doc(README): include Llama in list of TGI supported models * refactor(generator): move var initialization out of a loop
- Loading branch information
1 parent
c9937a9
commit 973655d
Showing
8 changed files
with
1,811 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ tpu-tgi-ie: | |
|
||
# Run code quality checks | ||
style_check: | ||
ruff . | ||
ruff check . | ||
|
||
style: | ||
ruff check . --fix | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.