2022-03-04 06:33:10 +01:00
|
|
|
{
|
2022-03-05 18:33:33 +01:00
|
|
|
"mtj_compat": "neo",
|
|
|
|
"mtj_pe": "fixed",
|
|
|
|
"mtj_config_map": {
|
|
|
|
"d_model": "hidden_size",
|
|
|
|
"n_heads": "num_heads",
|
|
|
|
"layers": "num_layers"
|
|
|
|
},
|
2022-03-04 06:33:10 +01:00
|
|
|
"static_weights": {
|
2022-03-05 18:33:33 +01:00
|
|
|
"transformer.wte.weight": {"mtj": {"module": "embedding_shard/~/linear", "param": "w", "transforms": ["no_transpose", "vocab_pad"]}},
|
|
|
|
"transformer.wpe.weight": {"mtj": {"module": "embedding_shard", "param": "pos_embs", "transforms": ["no_transpose"]}},
|
|
|
|
"transformer.ln_f.weight": {"mtj": {"module": "projection_shard/~/replicated_layer_norm", "param": "scale"}},
|
|
|
|
"transformer.ln_f.bias": {"mtj": {"module": "projection_shard/~/replicated_layer_norm", "param": "offset"}}
|
2022-03-04 06:33:10 +01:00
|
|
|
},
|
|
|
|
"layer_weights": {
|
|
|
|
"transformer.h.{layer}.attn.attention.bias": {},
|
|
|
|
"transformer.h.{layer}.attn.attention.masked_bias": {},
|
2022-03-05 18:33:33 +01:00
|
|
|
"transformer.h.{layer}.attn.attention.q_proj.weight": {"mtj": {"module": "layer_{layer}/~/linear", "param": "w"}},
|
|
|
|
"transformer.h.{layer}.attn.attention.v_proj.weight": {"mtj": {"module": "layer_{layer}/~/linear_1", "param": "w"}},
|
|
|
|
"transformer.h.{layer}.attn.attention.k_proj.weight": {"mtj": {"module": "layer_{layer}/~/linear_2", "param": "w"}},
|
|
|
|
"transformer.h.{layer}.attn.attention.out_proj.weight": {"mtj": {"module": "layer_{layer}/~/linear_3", "param": "w"}},
|
2022-03-04 06:33:10 +01:00
|
|
|
"transformer.h.{layer}.attn.attention.out_proj.bias": {"mtj": {"module": "layer_{layer}/~/linear_3", "param": "b", "transforms": ["divide_by_shards"]}},
|
2022-03-05 18:33:33 +01:00
|
|
|
"transformer.h.{layer}.mlp.c_fc.weight": {"mtj": {"module": "layer_{layer}/~/linear_4", "param": "w"}},
|
|
|
|
"transformer.h.{layer}.mlp.c_fc.bias": {"mtj": {"module": "layer_{layer}/~/linear_4", "param": "b"}},
|
|
|
|
"transformer.h.{layer}.mlp.c_proj.weight": {"mtj": {"module": "layer_{layer}/~/linear_5", "param": "w"}},
|
2022-03-04 06:33:10 +01:00
|
|
|
"transformer.h.{layer}.mlp.c_proj.bias": {"mtj": {"module": "layer_{layer}/~/linear_5", "param": "b", "transforms": ["divide_by_shards"]}},
|
2022-03-05 18:33:33 +01:00
|
|
|
"transformer.h.{layer}.ln_1.weight": {"mtj": {"module": "layer_{layer}/~/replicated_layer_norm", "param": "scale"}},
|
|
|
|
"transformer.h.{layer}.ln_1.bias": {"mtj": {"module": "layer_{layer}/~/replicated_layer_norm", "param": "offset"}},
|
|
|
|
"transformer.h.{layer}.ln_2.weight": {"mtj": {"module": "layer_{layer}/~/replicated_layer_norm_1", "param": "scale"}},
|
|
|
|
"transformer.h.{layer}.ln_2.bias": {"mtj": {"module": "layer_{layer}/~/replicated_layer_norm_1", "param": "offset"}}
|
2022-03-04 06:33:10 +01:00
|
|
|
}
|
|
|
|
}
|