-
Notifications
You must be signed in to change notification settings - Fork 21
Add support for Llama3-70b #101
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 4 commits
ec5d842
c64a822
0eeaa5e
c3368da
a40f0b0
7c7ca7d
2bfbb31
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,28 @@ | ||
|
|
||
| # Sharding config for llama-3 | ||
| # Sharding should either be an int between 0 and rank - 1 | ||
| # signifying the axis to shard or -1 / null signifying replicated | ||
|
|
||
|
|
||
| freqs_cis : -1 # torch.complex64 (2048, 64) | ||
| tok_embeddings.weight : 0 # torch.float32 (vocab_size, 4096) | ||
|
||
| tok_embeddings.weight_scaler : 0 # torch.bfloat16 (4096,) | ||
| layers.*.attention.wo.weight : 1 # torch.int8 (4096, 4096) | ||
| layers.*.attention.wo.weight_scaler : 0 # torch.bfloat16 (4096,) | ||
| layers.*.attention.wq.weight : 0 # torch.int8 (4096, 4096) | ||
| layers.*.attention.wq.weight_scaler : 0 # torch.bfloat16 (4096,) | ||
| layers.*.attention.wk.weight : 0 # torch.int8 (4096, 4096) | ||
| layers.*.attention.wk.weight_scaler : 0 # torch.bfloat16 (4096,) | ||
| layers.*.attention.wv.weight : 0 # torch.int8 (4096, 4096) | ||
| layers.*.attention.wv.weight_scaler : 0 # torch.bfloat16 (4096,) | ||
| layers.*.feed_forward.w1.weight : 0 # torch.float32 (11008, 4096) | ||
| layers.*.feed_forward.w1.weight_scaler : 0 # torch.bfloat16 (4096,) | ||
| layers.*.feed_forward.w2.weight : 1 # torch.float32 (4096, 11008) | ||
| layers.*.feed_forward.w2.weight_scaler : 0 # torch.bfloat16 (11008,) | ||
| layers.*.feed_forward.w3.weight : 0 # torch.float32 (11008, 4096) | ||
| layers.*.feed_forward.w3.weight_scaler : 0 # torch.bfloat16 (4096,) | ||
| layers.*.attention_norm.weight : -1 # torch.float32 (4096,) | ||
| layers.*.ffn_norm.weight : -1 # torch.float32 (4096,) | ||
| norm.weight : -1 # torch.float32 (4096,) | ||
| output.weight : 0 # torch.float32 (vocab_size, 4096) | ||
| output.weight_scaler : 0 # torch.float32 (4096,) | ||
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.
Any reason to loose condition by e**4 magnitude?
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.
The layer norm weights in llama-3 are not consistent across shards. I don't know why is this the case. These weights are expected to be replicated. It errors out if we don't reduce the precision here.
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.
@qihqi are you ok with 1e-2 gap? I feel it's risky when we loose condition by e**4 magnitude for a single tensor.
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.
yeah that is fine