-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a Llama 3.1 405B configuration. Also fixed some comments in the config yaml. In particular for per_device_train_batch_size, I based the comment on http://shortn/_SR8wqscDlo. Also changes Dockerfile to install all transformer deps, because the local_transformer may be newer than our transformer dependency. In that case it may require a newer dependency such as tokenizers==0.20 instead of tokenizers==0.19.
- Loading branch information
Showing
4 changed files
with
45 additions
and
5 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
34 changes: 34 additions & 0 deletions
34
torchprime/hf_models/configs/model/llama-3/config_405b.json
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"architectures": [ | ||
"LlamaForCausalLM" | ||
], | ||
"attention_bias": false, | ||
"attention_dropout": 0.0, | ||
"bos_token_id": 128000, | ||
"eos_token_id": 128001, | ||
"hidden_act": "silu", | ||
"hidden_size": 16384, | ||
"initializer_range": 0.02, | ||
"intermediate_size": 53248, | ||
"max_position_embeddings": 131072, | ||
"mlp_bias": false, | ||
"model_type": "llama", | ||
"num_attention_heads": 128, | ||
"num_hidden_layers": 126, | ||
"num_key_value_heads": 8, | ||
"pretraining_tp": 1, | ||
"rms_norm_eps": 1e-05, | ||
"rope_scaling": { | ||
"factor": 8.0, | ||
"low_freq_factor": 1.0, | ||
"high_freq_factor": 4.0, | ||
"original_max_position_embeddings": 8192, | ||
"rope_type": "llama3" | ||
}, | ||
"rope_theta": 500000.0, | ||
"tie_word_embeddings": false, | ||
"torch_dtype": "bfloat16", | ||
"transformers_version": "4.42.3", | ||
"use_cache": false, | ||
"vocab_size": 128256 | ||
} |
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