mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-29 04:44:34 +00:00
Update gguf_tensor_map.py
This commit is contained in:
parent
e732423280
commit
2a5ac7af44
@ -26,8 +26,8 @@ def get_tensor_map( n_blocks : int):
|
||||
tensor_map["output"] = mapped_to # llama-pth
|
||||
# Attention and fee-forward layer blocks
|
||||
for i in range(0,n_blocks):
|
||||
# Attention norm 1
|
||||
mapped_to = "transformer.blocks."+str(i)+".attn_norm_1"
|
||||
# Attention norm
|
||||
mapped_to = "transformer.blocks."+str(i)+".attn_norm"
|
||||
tensor_map["gpt_neox.layers."+str(i)+".input_layernorm"] = mapped_to # gptneox
|
||||
tensor_map["transformer.h."+str(i)+".ln_1"] = mapped_to # gpt2
|
||||
tensor_map["transformer.blocks."+str(i)+".norm_1"] = mapped_to # mpt
|
||||
|
Loading…
Reference in New Issue
Block a user