Views
No views yet
1
2BiBoForCausalLM(
3 (model): BiBoModel(
4 (embed_tokens): Embedding(128000, 1024)
5 (layers): ModuleList(
6 (0): BiBoDecoderLayer(
7 (self_attn): BiBoAttention(
8 (q_proj): Linear(in_features=1024, out_features=1020, bias=True)
9 (k_proj): Linear(in_features=1024, out_features=170, bias=True)
10 (v_proj): Linear(in_features=1024, out_features=170, bias=True)
11 (o_proj): Linear(in_features=1020, out_features=1024, bias=False)
12 )
13 (input_layernorm): BiBoRMSNorm((1024,), eps=1e-06)
14 (post_attention_layernorm): BiBoRMSNorm((1024,), eps=1e-06)
15 (mlp): BiBoMLP(
16 (gate_proj): Linear(in_features=1024, out_features=49600, bias=False)
17 (up_proj): Linear(in_features=1024, out_features=49600, bias=False)
18 (down_proj): Linear(in_features=49600, out_features=1024, bias=False)
19 (act_fn): SiLU()
20 )
21 )
22 (1-10): 10 x BiBoDecoderLayer(
23 (self_attn): BiBoAttention(
24 (q_proj): Linear(in_features=1024, out_features=1020, bias=True)
25 (k_proj): Linear(in_features=1024, out_features=170, bias=True)
26 (v_proj): Linear(in_features=1024, out_features=170, bias=True)
27 (o_proj): Linear(in_features=1020, out_features=1024, bias=False)
28 )
29 (input_layernorm): BiBoRMSNorm((1024,), eps=1e-06)
30 (post_attention_layernorm): BiBoRMSNorm((1024,), eps=1e-06)
31 (mlp): BiBoMoELayer(
32 (routed_experts): ModuleList(
33 (0-8): 9 x MLPExpert(
34 (gate_proj): Linear(in_features=1024, out_features=512, bias=False)
35 (up_proj): Linear(in_features=1024, out_features=512, bias=False)
36 (down_proj): Linear(in_features=512, out_features=1024, bias=False)
37 (act_fn): SiLU()
38 )
39 (9): IdentityExpert()
40 )
41 (shared_experts_list): ModuleList(
42 (0): ModifiedConvolutionalExpert(
43 (gate_conv): Conv1d(1024, 512, kernel_size=(3,), stride=(1,), bias=False)
44 (up_proj): Linear(in_features=1024, out_features=512, bias=False)
45 (down_proj): Linear(in_features=512, out_features=1024, bias=False)
46 (act_fn): SiLU()
47 )
48 )
49 (gate): BiBoMoERouter(
50 (gate_proj): Linear(in_features=1024, out_features=10, bias=False)
51 )
52 )
53 )
54 (11): BiBoDecoderLayer(
55 (self_attn): BiBoAttention(
56 (q_proj): Linear(in_features=1024, out_features=1020, bias=True)
57 (k_proj): Linear(in_features=1024, out_features=170, bias=True)
58 (v_proj): Linear(in_features=1024, out_features=170, bias=True)
59 (o_proj): Linear(in_features=1020, out_features=1024, bias=False)
60 )
61 (input_layernorm): BiBoRMSNorm((1024,), eps=1e-06)
62 (post_attention_layernorm): BiBoRMSNorm((1024,), eps=1e-06)
63 (mlp): BiBoMLP(
64 (gate_proj): Linear(in_features=1024, out_features=49600, bias=False)
65 (up_proj): Linear(in_features=1024, out_features=49600, bias=False)
66 (down_proj): Linear(in_features=49600, out_features=1024, bias=False)
67 (act_fn): SiLU()
68 )
69 )
70 )
71 (norm): BiBoRMSNorm((1024,), eps=1e-06)
72 (rotary_emb): BiBoRotaryEmbedding()
73 )
74 (lm_head): Linear(in_features=1024, out_features=128000, bias=False)
75)