mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-23 06:12:50 +08:00
Update llamafy_internlm2.py
Former-commit-id: 484becae1bc38457d6cd8755bbfcb9f0e2e13f5d
This commit is contained in:
parent
925b61ff99
commit
6fa117a0ff
@ -42,7 +42,7 @@ def save_weight(
|
||||
if "output" in key:
|
||||
llama2_state_dict["lm_head"] = value
|
||||
elif "tok_embeddings" in key:
|
||||
llama2_state_dict["embed_tokens"] = value
|
||||
llama2_state_dict[key.replace("tok_embeddings", "embed_tokens")] = value
|
||||
elif "attention_norm" in key:
|
||||
llama2_state_dict[key.replace("attention_norm", "input_layernorm")] = value
|
||||
elif "wqkv" in key:
|
||||
|
Loading…
x
Reference in New Issue
Block a user