-
Notifications
You must be signed in to change notification settings - Fork 249
Support llama3.1-8b generation #947
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"dim": 8192, "ffn_dim_multiplier": 1.3, "multiple_of": 4096, "n_heads": 64, "n_local_heads": 8, "n_layers": 80, "rope_base": 500000.0, "vocab_size": 128256, "use_tiktoken": true, "norm_eps": 1e-05, "use_scaled_rope": true} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"dim": 4096, "ffn_dim_multiplier": 1.3, "multiple_of": 1024, "n_heads": 32, "n_local_heads": 8, "n_layers": 32, "rope_base": 500000.0, "vocab_size": 128256, "use_tiktoken": true, "norm_eps": 1e-05, "use_scaled_rope": true} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,23 @@ | |
"distribution_path": "meta-llama/Meta-Llama-3-70B-Instruct", | ||
"transformer_params_key": "Meta-Llama-3-70B" | ||
}, | ||
"meta-llama/Meta-Llama-3.1-8B": { | ||
"aliases": ["llama3.1-base"], | ||
"distribution_channel": "HuggingFaceSnapshot", | ||
"distribution_path": "meta-llama/Meta-Llama-3.1-8B" | ||
}, | ||
"meta-llama/Meta-Llama-3.1-8B-Instruct": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: technically you can also add support for the pre-trained model (meta-llama/Meta-Llama-3.1-8B) and the llama guard (meta-llama/Llama-Guard-3-8B). Not a requirement though There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably want support for the pre-trained (non-Instruct) version to match with our support for Llama 3.0? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh yeah of course. This PR is focused on enabling llama3.1 in torchchat, so didn't cover all possible models. Will have another PR to handle that. |
||
"aliases": ["llama3.1", "llama3.1-chat", "llama3.1-instruct"], | ||
"distribution_channel": "HuggingFaceSnapshot", | ||
"distribution_path": "meta-llama/Meta-Llama-3.1-8B-Instruct", | ||
"transformer_params_key": "Meta-Llama-3.1-8B" | ||
}, | ||
"meta-llama/Meta-Llama-3.1-70B-Instruct": { | ||
"aliases": ["llama3.1-70b"], | ||
"distribution_channel": "HuggingFaceSnapshot", | ||
"distribution_path": "meta-llama/Meta-Llama-3.1-70B-Instruct", | ||
"transformer_params_key": "Meta-Llama-3.1-70B" | ||
}, | ||
"meta-llama/CodeLlama-7b-Python-hf": { | ||
"aliases": ["codellama", "codellama-7b"], | ||
"distribution_channel": "HuggingFaceSnapshot", | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, it feels like one can write this logic in a much more pytorchy-style: