Llama-3.1-8B-flax / config.json
benjamin's picture
Upload FlaxTPULlamaForCausalLM
23010f5 verified
Raw History Blame Contribute Delete
1.21 kB
{
"add_qk_norm": false,
"architectures": [
"TPULlamaForCausalLM"
],
"attention_bias": false,
"attention_dropout": 0.0,
"auto_map": {
"FlaxAutoModelForCausalLM": "modelling_flax_tpu_llama.FlaxTPULlamaForCausalLM"
},
"bos_token_id": 128000,
"dtype": "float32",
"eos_token_id": 128001,
"expand_input_ids": false,
"expand_input_ids_dict": null,
"expand_input_ids_maxlen": null,
"expand_input_ids_vocab_size": null,
"head_dim": 128,
"hidden_act": "silu",
"hidden_size": 4096,
"initializer_range": 0.02,
"intermediate_size": 14336,
"max_length": 8192,
"max_position_embeddings": 131072,
"mlp_bias": false,
"model_type": "tpu_llama",
"norm_position": "pre",
"num_attention_heads": 32,
"num_hidden_layers": 32,
"num_key_value_heads": 8,
"pretraining_tp": 1,
"qk_norm_position": "post_split",
"rms_norm_eps": 1e-05,
"rope_scaling": {
"factor": 8.0,
"high_freq_factor": 4.0,
"low_freq_factor": 1.0,
"original_max_position_embeddings": 8192,
"rope_type": "llama3"
},
"rope_theta": 500000.0,
"skip_out_norm": false,
"tie_word_embeddings": false,
"transformers_version": "4.57.1",
"use_cache": true,
"vocab_size": 128256
}