# Llama-3.2-1B-Instruct

Hugging Face: `meta-llama/Llama-3.2-1B-Instruct`
Reconstructed from `config.json` alone. No weights were read.

| | |
|---|---|
| Derived from structure | 1,235,812,352 |
| In the published checkpoint | 1,235,814,400 (safetensors.total, 2024-10-24) |
| Delta | -0.00% |
| Comparability | comparable |
| Layers | 98 |
| Priced on | A10G (24GB) |
| Est. one run | $25844.38 |

## Structure

| # | Layer | Type | Output shape |
|---|---|---|---|
| 1 | Input | Input | 1 × 131072 |
| 2 | Embedding | Embedding | 1 × 131072 × 2048 |
| 3 | RoPE | RoPE | 1 × 131072 × 2048 |
| 4 | RMSNorm_1_1 | RMSNorm | 1 × 131072 × 2048 |
| 5 | Attention_1 | Grouped Query Attn | 1 × 131072 × 2048 |
| 6 | Add_1_attn | Add | 1 × 131072 × 2048 |
| 7 | RMSNorm_1_2 | RMSNorm | 1 × 131072 × 2048 |
| 8 | FFN_1 | SwiGLU | 1 × 131072 × 2048 |
| 9 | Add_1_ffn | Add | 1 × 131072 × 2048 |
| 10 | RMSNorm_2_1 | RMSNorm | 1 × 131072 × 2048 |
| 11 | Attention_2 | Grouped Query Attn | 1 × 131072 × 2048 |
| 12 | Add_2_attn | Add | 1 × 131072 × 2048 |
| 13 | RMSNorm_2_2 | RMSNorm | 1 × 131072 × 2048 |
| 14 | FFN_2 | SwiGLU | 1 × 131072 × 2048 |
| 15 | Add_2_ffn | Add | 1 × 131072 × 2048 |
| 16 | RMSNorm_3_1 | RMSNorm | 1 × 131072 × 2048 |
| 17 | Attention_3 | Grouped Query Attn | 1 × 131072 × 2048 |
| 18 | Add_3_attn | Add | 1 × 131072 × 2048 |
| 19 | RMSNorm_3_2 | RMSNorm | 1 × 131072 × 2048 |
| 20 | FFN_3 | SwiGLU | 1 × 131072 × 2048 |
| 21 | Add_3_ffn | Add | 1 × 131072 × 2048 |
| 22 | RMSNorm_4_1 | RMSNorm | 1 × 131072 × 2048 |
| 23 | Attention_4 | Grouped Query Attn | 1 × 131072 × 2048 |
| 24 | Add_4_attn | Add | 1 × 131072 × 2048 |
| 25 | RMSNorm_4_2 | RMSNorm | 1 × 131072 × 2048 |
| 26 | FFN_4 | SwiGLU | 1 × 131072 × 2048 |
| 27 | Add_4_ffn | Add | 1 × 131072 × 2048 |
| 28 | RMSNorm_5_1 | RMSNorm | 1 × 131072 × 2048 |
| 29 | Attention_5 | Grouped Query Attn | 1 × 131072 × 2048 |
| 30 | Add_5_attn | Add | 1 × 131072 × 2048 |
| 31 | RMSNorm_5_2 | RMSNorm | 1 × 131072 × 2048 |
| 32 | FFN_5 | SwiGLU | 1 × 131072 × 2048 |
| 33 | Add_5_ffn | Add | 1 × 131072 × 2048 |
| 34 | RMSNorm_6_1 | RMSNorm | 1 × 131072 × 2048 |
| 35 | Attention_6 | Grouped Query Attn | 1 × 131072 × 2048 |
| 36 | Add_6_attn | Add | 1 × 131072 × 2048 |
| 37 | RMSNorm_6_2 | RMSNorm | 1 × 131072 × 2048 |
| 38 | FFN_6 | SwiGLU | 1 × 131072 × 2048 |
| 39 | Add_6_ffn | Add | 1 × 131072 × 2048 |
| 40 | RMSNorm_7_1 | RMSNorm | 1 × 131072 × 2048 |
| 41 | Attention_7 | Grouped Query Attn | 1 × 131072 × 2048 |
| 42 | Add_7_attn | Add | 1 × 131072 × 2048 |
| 43 | RMSNorm_7_2 | RMSNorm | 1 × 131072 × 2048 |
| 44 | FFN_7 | SwiGLU | 1 × 131072 × 2048 |
| 45 | Add_7_ffn | Add | 1 × 131072 × 2048 |
| 46 | RMSNorm_8_1 | RMSNorm | 1 × 131072 × 2048 |
| 47 | Attention_8 | Grouped Query Attn | 1 × 131072 × 2048 |
| 48 | Add_8_attn | Add | 1 × 131072 × 2048 |
| 49 | RMSNorm_8_2 | RMSNorm | 1 × 131072 × 2048 |
| 50 | FFN_8 | SwiGLU | 1 × 131072 × 2048 |
| 51 | Add_8_ffn | Add | 1 × 131072 × 2048 |
| 52 | RMSNorm_9_1 | RMSNorm | 1 × 131072 × 2048 |
| 53 | Attention_9 | Grouped Query Attn | 1 × 131072 × 2048 |
| 54 | Add_9_attn | Add | 1 × 131072 × 2048 |
| 55 | RMSNorm_9_2 | RMSNorm | 1 × 131072 × 2048 |
| 56 | FFN_9 | SwiGLU | 1 × 131072 × 2048 |
| 57 | Add_9_ffn | Add | 1 × 131072 × 2048 |
| 58 | RMSNorm_10_1 | RMSNorm | 1 × 131072 × 2048 |
| 59 | Attention_10 | Grouped Query Attn | 1 × 131072 × 2048 |
| 60 | Add_10_attn | Add | 1 × 131072 × 2048 |
| 61 | RMSNorm_10_2 | RMSNorm | 1 × 131072 × 2048 |
| 62 | FFN_10 | SwiGLU | 1 × 131072 × 2048 |
| 63 | Add_10_ffn | Add | 1 × 131072 × 2048 |
| 64 | RMSNorm_11_1 | RMSNorm | 1 × 131072 × 2048 |
| 65 | Attention_11 | Grouped Query Attn | 1 × 131072 × 2048 |
| 66 | Add_11_attn | Add | 1 × 131072 × 2048 |
| 67 | RMSNorm_11_2 | RMSNorm | 1 × 131072 × 2048 |
| 68 | FFN_11 | SwiGLU | 1 × 131072 × 2048 |
| 69 | Add_11_ffn | Add | 1 × 131072 × 2048 |
| 70 | RMSNorm_12_1 | RMSNorm | 1 × 131072 × 2048 |
| 71 | Attention_12 | Grouped Query Attn | 1 × 131072 × 2048 |
| 72 | Add_12_attn | Add | 1 × 131072 × 2048 |
| 73 | RMSNorm_12_2 | RMSNorm | 1 × 131072 × 2048 |
| 74 | FFN_12 | SwiGLU | 1 × 131072 × 2048 |
| 75 | Add_12_ffn | Add | 1 × 131072 × 2048 |
| 76 | RMSNorm_13_1 | RMSNorm | 1 × 131072 × 2048 |
| 77 | Attention_13 | Grouped Query Attn | 1 × 131072 × 2048 |
| 78 | Add_13_attn | Add | 1 × 131072 × 2048 |
| 79 | RMSNorm_13_2 | RMSNorm | 1 × 131072 × 2048 |
| 80 | FFN_13 | SwiGLU | 1 × 131072 × 2048 |
| 81 | Add_13_ffn | Add | 1 × 131072 × 2048 |
| 82 | RMSNorm_14_1 | RMSNorm | 1 × 131072 × 2048 |
| 83 | Attention_14 | Grouped Query Attn | 1 × 131072 × 2048 |
| 84 | Add_14_attn | Add | 1 × 131072 × 2048 |
| 85 | RMSNorm_14_2 | RMSNorm | 1 × 131072 × 2048 |
| 86 | FFN_14 | SwiGLU | 1 × 131072 × 2048 |
| 87 | Add_14_ffn | Add | 1 × 131072 × 2048 |
| 88 | RMSNorm_15_1 | RMSNorm | 1 × 131072 × 2048 |
| 89 | Attention_15 | Grouped Query Attn | 1 × 131072 × 2048 |
| 90 | Add_15_attn | Add | 1 × 131072 × 2048 |
| 91 | RMSNorm_15_2 | RMSNorm | 1 × 131072 × 2048 |
| 92 | FFN_15 | SwiGLU | 1 × 131072 × 2048 |
| 93 | Add_15_ffn | Add | 1 × 131072 × 2048 |
| 94 | RMSNorm_16_1 | RMSNorm | 1 × 131072 × 2048 |
| 95 | Attention_16 | Grouped Query Attn | 1 × 131072 × 2048 |
| 96 | Add_16_attn | Add | 1 × 131072 × 2048 |
| 97 | RMSNorm_16_2 | RMSNorm | 1 × 131072 × 2048 |
| 98 | FFN_16 | SwiGLU | 1 × 131072 × 2048 |
| 99 | Add_16_ffn | Add | 1 × 131072 × 2048 |
| 100 | Output | Output | 1 × 131072 × 2048 |

## Do this to your own model

```
pip install neurarch-trace
neurarch-trace meta-llama/Llama-3.2-1B-Instruct --plan --share
```

- Page: https://neurarch.com/m/llama-3-2-1b-instruct.html
- All models: https://neurarch.com/m/index.json
- The checks: https://neurarch.com/r/index.json
