Skip to content

Commit

Permalink
Add phi-3 checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Apr 23, 2024
1 parent 5de6fdf commit 93f3024
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions litgpt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1413,6 +1413,20 @@ def norm_class(self) -> Type:
lm_head_bias=True,
gelu_approximate="tanh",
),
# https://huggingface.co/microsoft/Phi-3-mini-4k-instruct/blob/main/config.json
dict(
name="phi-3-mini-4k-instruct",
hf_config=dict(org="microsoft", name="Phi-3-mini-4k-instruct"),
vocab_size=32064,
padded_vocab_size=32768,
block_size=4096,
n_embd=3072,
n_layer=32,
rotary_percentage=1.0, # Double-check
# shared_attention_norm=True, # Double-check
bias=False, # Double-check
mlp_class_name="LLaMAMLP", # Double-check
),
]
configs.extend(phi)

Expand Down

0 comments on commit 93f3024

Please sign in to comment.