Views
No views yet
LlamaForCausalLMLlamaForCausalLM(
(model): LlamaModel(
(embed_tokens): Embedding(49152, 576)
(layers): ModuleList(
(0-14): 15 x LlamaDecoderLayer(
(self_attn): LlamaSdpaAttention(
(q_proj): Linear(in_features=576, out_features=576, bias=False)
(k_proj): Linear(in_features=576, out_features=192, bias=False)
(v_proj): Linear(in_features=576, out_features=192, bias=False)
(o_proj): Linear(in_features=576, out_features=576, bias=False)
(rotary_emb): LlamaRotaryEmbedding()
)
(mlp): LigerSwiGLUMLP(
(gate_proj): Linear(in_features=576, out_features=1536, bias=False)
(up_proj): Linear(in_features=576, out_features=1536, bias=False)
(down_proj): Linear(in_features=1536, out_features=576, bias=False)
)
(input_layernorm): LigerRMSNorm((576,), eps=1e-05, offset=0.0)
(post_attention_layernorm): LigerRMSNorm((576,), eps=1e-05, offset=0.0)
)
)
(norm): LigerRMSNorm((576,), eps=1e-05, offset=0.0)
(rotary_emb): LlamaRotaryEmbedding()
)
(lm_head): Linear(in_features=576, out_features=49152, bias=False)
)LlamaForCausalLM -> LlamaForCausalLM1--- teacher model modules
2+++ student model modules
3@@ -2,7 +2,7 @@
4 (model): LlamaModel(
5 (embed_tokens): Embedding(49152, 576)
6 (layers): ModuleList(
7- (0-29): 30 x LlamaDecoderLayer(
8+ (0-14): 15 x LlamaDecoderLayer(
9 (self_attn): LlamaSdpaAttention(
10 (q_proj): Linear(in_features=576, out_features=576, bias=False)
11 (k_proj): Linear(in_features=576, out_features=192, bias=False)
12@@ -10,17 +10,16 @@
13 (o_proj): Linear(in_features=576, out_features=576, bias=False)
14 (rotary_emb): LlamaRotaryEmbedding()
15 )
16- (mlp): LlamaMLP(
17+ (mlp): LigerSwiGLUMLP(
18 (gate_proj): Linear(in_features=576, out_features=1536, bias=False)
19 (up_proj): Linear(in_features=576, out_features=1536, bias=False)
20 (down_proj): Linear(in_features=1536, out_features=576, bias=False)
21- (act_fn): SiLU()
22 )
23- (input_layernorm): LlamaRMSNorm((576,), eps=1e-05)
24- (post_attention_layernorm): LlamaRMSNorm((576,), eps=1e-05)
25+ (input_layernorm): LigerRMSNorm((576,), eps=1e-05, offset=0.0)
26+ (post_attention_layernorm): LigerRMSNorm((576,), eps=1e-05, offset=0.0)
27 )
28 )
29- (norm): LlamaRMSNorm((576,), eps=1e-05)
30+ (norm): LigerRMSNorm((576,), eps=1e-05, offset=0.0)
31 (rotary_emb): LlamaRotaryEmbedding()
32 )
33 (lm_head): Linear(in_features=576, out_features=49152, bias=False)
34998,00020231101.entrainDistillationObjective(
logits_loss_component=LossComponent(
weight=1,
loss_fn='kl'
),
hs_loss_component=LossComponent(
weight=0
),
attn_loss_component=LossComponent(
weight=0
)
)0.0002424228Adam with betas=(0.9,0.999) and epsilon=1e-08polynomial1.0DistillationObjective( logits_loss_component=LossComponent( weight=1, loss_fn='kl' ), hs_loss_component=LossComponent( weight=0 ), attn_loss_component=LossComponent( weight=0 ) )<torch.optim.lr_scheduler.LambdaLR object at 0x718c02862f80>NoneNone{'num_hidden_layers': 15}None[('lm_head', False)]FalseTrueHuggingFaceTB/SmolLM-135MFalseFalsewikimedia/wikipedia20231101.entraintext10000000.002False42False0.01.00.00True