peacock-data-public-datasets-idc-cronscript / mds_to_hf_llama_custom.json
applied-ai-018's picture
Add files using upload-large-folder tool
f53aa73 verified
{
"MODEL": {
"num_hidden_layers": NLAYERS,
"hidden_size": NHIDDEN,
"num_attention_heads": NHEADS,
"intermediate_size": FFN_HIDDEN_SIZE
},
"LAYER_MAPPINGS" : {
"word_embeddings": 1,
"transformer": [3, 18],
"final_layernorm": 20,
"final_word_embeddings": 21
},
"FULL_NAME_MAPPINGS": {
},
"PARTIAL_NAME_MAPPINGS": {
"final_word_embeddings": {
"vocab_parallel_projection": "lm_head"
},
"final_layernorm": {
"final_rmsnorm": "model.norm"
},
"word_embeddings": {
"word_embeddings": "model.embed_tokens"
},
"transformer": {
"dense_h_to_4h": "mlp.gate_proj",
"dense_4h_to_h": "mlp.down_proj",
"dense_h_to_4h_swiglu": "mlp.up_proj",
"post_attention_layernorm": "post_attention_layernorm",
"input_layernorm": "input_layernorm",
"dense": "self_attn.o_proj",
"query_key_value": {"query": "self_attn.q_proj", "key": "self_attn.k_proj", "value": "self_attn.v_proj"}
}
},
"SPECIAL": {
"query_key_value": "attention_qkv"
}
}