From 93f3024e9e3497b2c5dae9e3e7f595b629d52e70 Mon Sep 17 00:00:00 2001 From: rasbt Date: Tue, 23 Apr 2024 15:13:58 +0000 Subject: [PATCH] Add phi-3 checkpoint --- litgpt/config.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/litgpt/config.py b/litgpt/config.py index e03fa8ae34..459ca4d560 100644 --- a/litgpt/config.py +++ b/litgpt/config.py @@ -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)