Models / qwen2
gte-Qwen2-1.5B-instruct
Reconstructed from its own config.json
with no weights read. 759K downloads on Hugging Face.
Our count against the checkpoint
The left number comes from the graph. The right one is the number of scalars in the published weight files. Nothing on this page was tuned to make them agree.
custom-code This repository ships its own modeling code (`auto_map`, e.g. `modeling_qwen.py`), so `config.json` names a class in the repo rather than an architecture `transformers` defines. The graph below is what those config keys mean under `transformers` semantics, which is not necessarily what the repo's own file builds. A gap here is a statement about what we read, not about the checkpoint.
What it costs to run
Cost is a roofline estimate on the priced GPU for 10 epochs at batch 32 over 50,000 samples (assumed; no dataset attached). GPU fit is fp32 weights plus gradients plus two Adam moments (16 bytes per parameter) with 1.3x headroom; activations are not included and grow with batch size.
| Card | Memory | |
|---|---|---|
| T4 (16GB) | weights + activations | does not fit |
| A100 (40GB) | weights + activations | fits |
| H100 (80GB) | weights + activations | fits |
Structure
174 nodes. Output shapes are propagated from the input shape, batch dimension excluded.
| Layer | Type | Output shape | |
|---|---|---|---|
| 1 | Input | Input | 1 × 131072 |
| 2 | Embedding | Embedding | 1 × 131072 × 1536 |
| 3 | RoPE | RoPE | 1 × 131072 × 1536 |
| 4 | RMSNorm_1_1 | RMSNorm | 1 × 131072 × 1536 |
| 5 | Attention_1 | Grouped Query Attn | 1 × 131072 × 1536 |
| 6 | Add_1_attn | Add | 1 × 131072 × 1536 |
| 7 | RMSNorm_1_2 | RMSNorm | 1 × 131072 × 1536 |
| 8 | FFN_1 | SwiGLU | 1 × 131072 × 1536 |
| 9 | Add_1_ffn | Add | 1 × 131072 × 1536 |
| 10 | RMSNorm_2_1 | RMSNorm | 1 × 131072 × 1536 |
| 11 | Attention_2 | Grouped Query Attn | 1 × 131072 × 1536 |
| 12 | Add_2_attn | Add | 1 × 131072 × 1536 |
| 13 | RMSNorm_2_2 | RMSNorm | 1 × 131072 × 1536 |
| 14 | FFN_2 | SwiGLU | 1 × 131072 × 1536 |
| 15 | Add_2_ffn | Add | 1 × 131072 × 1536 |
| 16 | RMSNorm_3_1 | RMSNorm | 1 × 131072 × 1536 |
| 17 | Attention_3 | Grouped Query Attn | 1 × 131072 × 1536 |
| 18 | Add_3_attn | Add | 1 × 131072 × 1536 |
| 19 | RMSNorm_3_2 | RMSNorm | 1 × 131072 × 1536 |
| 20 | FFN_3 | SwiGLU | 1 × 131072 × 1536 |
| 21 | Add_3_ffn | Add | 1 × 131072 × 1536 |
| 22 | RMSNorm_4_1 | RMSNorm | 1 × 131072 × 1536 |
| 23 | Attention_4 | Grouped Query Attn | 1 × 131072 × 1536 |
| 24 | Add_4_attn | Add | 1 × 131072 × 1536 |
| 25 | RMSNorm_4_2 | RMSNorm | 1 × 131072 × 1536 |
| 26 | FFN_4 | SwiGLU | 1 × 131072 × 1536 |
| 27 | Add_4_ffn | Add | 1 × 131072 × 1536 |
| 28 | RMSNorm_5_1 | RMSNorm | 1 × 131072 × 1536 |
| 29 | Attention_5 | Grouped Query Attn | 1 × 131072 × 1536 |
| 30 | Add_5_attn | Add | 1 × 131072 × 1536 |
| 31 | RMSNorm_5_2 | RMSNorm | 1 × 131072 × 1536 |
| 32 | FFN_5 | SwiGLU | 1 × 131072 × 1536 |
| 33 | Add_5_ffn | Add | 1 × 131072 × 1536 |
| 34 | RMSNorm_6_1 | RMSNorm | 1 × 131072 × 1536 |
| 35 | Attention_6 | Grouped Query Attn | 1 × 131072 × 1536 |
| 36 | Add_6_attn | Add | 1 × 131072 × 1536 |
| 37 | RMSNorm_6_2 | RMSNorm | 1 × 131072 × 1536 |
| 38 | FFN_6 | SwiGLU | 1 × 131072 × 1536 |
| 39 | Add_6_ffn | Add | 1 × 131072 × 1536 |
| 40 | RMSNorm_7_1 | RMSNorm | 1 × 131072 × 1536 |
| 41 | Attention_7 | Grouped Query Attn | 1 × 131072 × 1536 |
| 42 | Add_7_attn | Add | 1 × 131072 × 1536 |
| 43 | RMSNorm_7_2 | RMSNorm | 1 × 131072 × 1536 |
| 44 | FFN_7 | SwiGLU | 1 × 131072 × 1536 |
| 45 | Add_7_ffn | Add | 1 × 131072 × 1536 |
| 46 | RMSNorm_8_1 | RMSNorm | 1 × 131072 × 1536 |
| 47 | Attention_8 | Grouped Query Attn | 1 × 131072 × 1536 |
| 48 | Add_8_attn | Add | 1 × 131072 × 1536 |
| 49 | RMSNorm_8_2 | RMSNorm | 1 × 131072 × 1536 |
| 50 | FFN_8 | SwiGLU | 1 × 131072 × 1536 |
| 51 | Add_8_ffn | Add | 1 × 131072 × 1536 |
| 52 | RMSNorm_9_1 | RMSNorm | 1 × 131072 × 1536 |
| 53 | Attention_9 | Grouped Query Attn | 1 × 131072 × 1536 |
| 54 | Add_9_attn | Add | 1 × 131072 × 1536 |
| 55 | RMSNorm_9_2 | RMSNorm | 1 × 131072 × 1536 |
| 56 | FFN_9 | SwiGLU | 1 × 131072 × 1536 |
| 57 | Add_9_ffn | Add | 1 × 131072 × 1536 |
| 58 | RMSNorm_10_1 | RMSNorm | 1 × 131072 × 1536 |
| 59 | Attention_10 | Grouped Query Attn | 1 × 131072 × 1536 |
| 60 | Add_10_attn | Add | 1 × 131072 × 1536 |
| 61 | RMSNorm_10_2 | RMSNorm | 1 × 131072 × 1536 |
| 62 | FFN_10 | SwiGLU | 1 × 131072 × 1536 |
| 63 | Add_10_ffn | Add | 1 × 131072 × 1536 |
| 64 | RMSNorm_11_1 | RMSNorm | 1 × 131072 × 1536 |
| 65 | Attention_11 | Grouped Query Attn | 1 × 131072 × 1536 |
| 66 | Add_11_attn | Add | 1 × 131072 × 1536 |
| 67 | RMSNorm_11_2 | RMSNorm | 1 × 131072 × 1536 |
| 68 | FFN_11 | SwiGLU | 1 × 131072 × 1536 |
| 69 | Add_11_ffn | Add | 1 × 131072 × 1536 |
| 70 | RMSNorm_12_1 | RMSNorm | 1 × 131072 × 1536 |
| 71 | Attention_12 | Grouped Query Attn | 1 × 131072 × 1536 |
| 72 | Add_12_attn | Add | 1 × 131072 × 1536 |
| 73 | RMSNorm_12_2 | RMSNorm | 1 × 131072 × 1536 |
| 74 | FFN_12 | SwiGLU | 1 × 131072 × 1536 |
| 75 | Add_12_ffn | Add | 1 × 131072 × 1536 |
| 76 | RMSNorm_13_1 | RMSNorm | 1 × 131072 × 1536 |
| 77 | Attention_13 | Grouped Query Attn | 1 × 131072 × 1536 |
| 78 | Add_13_attn | Add | 1 × 131072 × 1536 |
| 79 | RMSNorm_13_2 | RMSNorm | 1 × 131072 × 1536 |
| 80 | FFN_13 | SwiGLU | 1 × 131072 × 1536 |
| 81 | Add_13_ffn | Add | 1 × 131072 × 1536 |
| 82 | RMSNorm_14_1 | RMSNorm | 1 × 131072 × 1536 |
| 83 | Attention_14 | Grouped Query Attn | 1 × 131072 × 1536 |
| 84 | Add_14_attn | Add | 1 × 131072 × 1536 |
| 85 | RMSNorm_14_2 | RMSNorm | 1 × 131072 × 1536 |
| 86 | FFN_14 | SwiGLU | 1 × 131072 × 1536 |
| 87 | Add_14_ffn | Add | 1 × 131072 × 1536 |
| 88 | RMSNorm_15_1 | RMSNorm | 1 × 131072 × 1536 |
| 89 | Attention_15 | Grouped Query Attn | 1 × 131072 × 1536 |
| 90 | Add_15_attn | Add | 1 × 131072 × 1536 |
| 91 | RMSNorm_15_2 | RMSNorm | 1 × 131072 × 1536 |
| 92 | FFN_15 | SwiGLU | 1 × 131072 × 1536 |
| 93 | Add_15_ffn | Add | 1 × 131072 × 1536 |
| 94 | RMSNorm_16_1 | RMSNorm | 1 × 131072 × 1536 |
| 95 | Attention_16 | Grouped Query Attn | 1 × 131072 × 1536 |
| 96 | Add_16_attn | Add | 1 × 131072 × 1536 |
| 97 | RMSNorm_16_2 | RMSNorm | 1 × 131072 × 1536 |
| 98 | FFN_16 | SwiGLU | 1 × 131072 × 1536 |
| 99 | Add_16_ffn | Add | 1 × 131072 × 1536 |
| 100 | RMSNorm_17_1 | RMSNorm | 1 × 131072 × 1536 |
| 101 | Attention_17 | Grouped Query Attn | 1 × 131072 × 1536 |
| 102 | Add_17_attn | Add | 1 × 131072 × 1536 |
| 103 | RMSNorm_17_2 | RMSNorm | 1 × 131072 × 1536 |
| 104 | FFN_17 | SwiGLU | 1 × 131072 × 1536 |
| 105 | Add_17_ffn | Add | 1 × 131072 × 1536 |
| 106 | RMSNorm_18_1 | RMSNorm | 1 × 131072 × 1536 |
| 107 | Attention_18 | Grouped Query Attn | 1 × 131072 × 1536 |
| 108 | Add_18_attn | Add | 1 × 131072 × 1536 |
| 109 | RMSNorm_18_2 | RMSNorm | 1 × 131072 × 1536 |
| 110 | FFN_18 | SwiGLU | 1 × 131072 × 1536 |
| 111 | Add_18_ffn | Add | 1 × 131072 × 1536 |
| 112 | RMSNorm_19_1 | RMSNorm | 1 × 131072 × 1536 |
| 113 | Attention_19 | Grouped Query Attn | 1 × 131072 × 1536 |
| 114 | Add_19_attn | Add | 1 × 131072 × 1536 |
| 115 | RMSNorm_19_2 | RMSNorm | 1 × 131072 × 1536 |
| 116 | FFN_19 | SwiGLU | 1 × 131072 × 1536 |
| 117 | Add_19_ffn | Add | 1 × 131072 × 1536 |
| 118 | RMSNorm_20_1 | RMSNorm | 1 × 131072 × 1536 |
| 119 | Attention_20 | Grouped Query Attn | 1 × 131072 × 1536 |
| 120 | Add_20_attn | Add | 1 × 131072 × 1536 |
| 121 | RMSNorm_20_2 | RMSNorm | 1 × 131072 × 1536 |
| 122 | FFN_20 | SwiGLU | 1 × 131072 × 1536 |
| 123 | Add_20_ffn | Add | 1 × 131072 × 1536 |
| 124 | RMSNorm_21_1 | RMSNorm | 1 × 131072 × 1536 |
| 125 | Attention_21 | Grouped Query Attn | 1 × 131072 × 1536 |
| 126 | Add_21_attn | Add | 1 × 131072 × 1536 |
| 127 | RMSNorm_21_2 | RMSNorm | 1 × 131072 × 1536 |
| 128 | FFN_21 | SwiGLU | 1 × 131072 × 1536 |
| 129 | Add_21_ffn | Add | 1 × 131072 × 1536 |
| 130 | RMSNorm_22_1 | RMSNorm | 1 × 131072 × 1536 |
| 131 | Attention_22 | Grouped Query Attn | 1 × 131072 × 1536 |
| 132 | Add_22_attn | Add | 1 × 131072 × 1536 |
| 133 | RMSNorm_22_2 | RMSNorm | 1 × 131072 × 1536 |
| 134 | FFN_22 | SwiGLU | 1 × 131072 × 1536 |
| 135 | Add_22_ffn | Add | 1 × 131072 × 1536 |
| 136 | RMSNorm_23_1 | RMSNorm | 1 × 131072 × 1536 |
| 137 | Attention_23 | Grouped Query Attn | 1 × 131072 × 1536 |
| 138 | Add_23_attn | Add | 1 × 131072 × 1536 |
| 139 | RMSNorm_23_2 | RMSNorm | 1 × 131072 × 1536 |
| 140 | FFN_23 | SwiGLU | 1 × 131072 × 1536 |
| 141 | Add_23_ffn | Add | 1 × 131072 × 1536 |
| 142 | RMSNorm_24_1 | RMSNorm | 1 × 131072 × 1536 |
| 143 | Attention_24 | Grouped Query Attn | 1 × 131072 × 1536 |
| 144 | Add_24_attn | Add | 1 × 131072 × 1536 |
| 145 | RMSNorm_24_2 | RMSNorm | 1 × 131072 × 1536 |
| 146 | FFN_24 | SwiGLU | 1 × 131072 × 1536 |
| 147 | Add_24_ffn | Add | 1 × 131072 × 1536 |
| 148 | RMSNorm_25_1 | RMSNorm | 1 × 131072 × 1536 |
| 149 | Attention_25 | Grouped Query Attn | 1 × 131072 × 1536 |
| 150 | Add_25_attn | Add | 1 × 131072 × 1536 |
| 151 | RMSNorm_25_2 | RMSNorm | 1 × 131072 × 1536 |
| 152 | FFN_25 | SwiGLU | 1 × 131072 × 1536 |
| 153 | Add_25_ffn | Add | 1 × 131072 × 1536 |
| 154 | RMSNorm_26_1 | RMSNorm | 1 × 131072 × 1536 |
| 155 | Attention_26 | Grouped Query Attn | 1 × 131072 × 1536 |
| 156 | Add_26_attn | Add | 1 × 131072 × 1536 |
| 157 | RMSNorm_26_2 | RMSNorm | 1 × 131072 × 1536 |
| 158 | FFN_26 | SwiGLU | 1 × 131072 × 1536 |
| 159 | Add_26_ffn | Add | 1 × 131072 × 1536 |
| 160 | RMSNorm_27_1 | RMSNorm | 1 × 131072 × 1536 |
| 161 | Attention_27 | Grouped Query Attn | 1 × 131072 × 1536 |
| 162 | Add_27_attn | Add | 1 × 131072 × 1536 |
| 163 | RMSNorm_27_2 | RMSNorm | 1 × 131072 × 1536 |
| 164 | FFN_27 | SwiGLU | 1 × 131072 × 1536 |
| 165 | Add_27_ffn | Add | 1 × 131072 × 1536 |
| 166 | RMSNorm_28_1 | RMSNorm | 1 × 131072 × 1536 |
| 167 | Attention_28 | Grouped Query Attn | 1 × 131072 × 1536 |
| 168 | Add_28_attn | Add | 1 × 131072 × 1536 |
| 169 | RMSNorm_28_2 | RMSNorm | 1 × 131072 × 1536 |
| 170 | FFN_28 | SwiGLU | 1 × 131072 × 1536 |
| 171 | Add_28_ffn | Add | 1 × 131072 × 1536 |
| 172 | Final_RMSNorm | RMSNorm | 1 × 131072 × 1536 |
| 173 | LM_Head | Linear | 1 × 131072 × 151646 |
| 174 | Output | Output | 1 × 131072 × 151646 |
What the verifier says
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
swiglu-dim-convention
deep-attention-default-init
Do this to your own model
Same numbers, on a model in your repo, in one command. No account.
pip install neurarch-trace
neurarch-trace Alibaba-NLP/gte-Qwen2-1.5B-instruct --plan --share