Skip to content

Commit

Permalink
gguf-py: Support 01.AI Yi models (#3943)
Browse files Browse the repository at this point in the history
  • Loading branch information
KerfuffleV2 authored Nov 4, 2023
1 parent d9b33fe commit f28af0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gguf-py/gguf/gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ class TensorNameMap:
"layers.{bid}.attention_norm", # llama-pth
"encoder.layer.{bid}.attention.output.LayerNorm", # bert
"language_model.encoder.layers.{bid}.input_layernorm", # persimmon
"model.layers.{bid}.ln1", # yi
),

# Attention norm 2
Expand Down Expand Up @@ -464,6 +465,7 @@ class TensorNameMap:
"layers.{bid}.ffn_norm", # llama-pth
"encoder.layer.{bid}.output.LayerNorm", # bert
"language_model.encoder.layers.{bid}.post_attention_layernorm", # persimmon
"model.layers.{bid}.ln2", # yi
),

# Feed-forward up
Expand Down

0 comments on commit f28af0d

Please sign in to comment.