N Neurarch Architectures Models Checks Data Docs Open the app

Models / llama

llama2-embedding-1b-8k

Reconstructed from its own config.json with no weights read. 216K 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.

Derived from structure
1.07B
1,071,713,536 parameters
In the published checkpoint
947M
946,902,528 scalars · safetensors.total, read 2023-10-10
Delta
+13.2%

custom-code This repository ships its own modeling code (`auto_map`, e.g. `modeling.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.

Layers
28
Will it forward-pass
Yes
Priced on
A10G (24GB)
Est. one run
$1812.13
CardMemory
T4 (16GB)weights + activationsdoes not fit
A100 (40GB)weights + activationsfits
H100 (80GB)weights + activationsfits

Structure

30 nodes. Output shapes are propagated from the input shape, batch dimension excluded.

LayerTypeOutput shape
1InputInput1 × 32768
2EmbeddingEmbedding1 × 32768 × 4096
3RoPERoPE1 × 32768 × 4096
4RMSNorm_1_1RMSNorm1 × 32768 × 4096
5Attention_1Grouped Query Attn1 × 32768 × 4096
6Add_1_attnAdd1 × 32768 × 4096
7RMSNorm_1_2RMSNorm1 × 32768 × 4096
8FFN_1SwiGLU1 × 32768 × 4096
9Add_1_ffnAdd1 × 32768 × 4096
10RMSNorm_2_1RMSNorm1 × 32768 × 4096
11Attention_2Grouped Query Attn1 × 32768 × 4096
12Add_2_attnAdd1 × 32768 × 4096
13RMSNorm_2_2RMSNorm1 × 32768 × 4096
14FFN_2SwiGLU1 × 32768 × 4096
15Add_2_ffnAdd1 × 32768 × 4096
16RMSNorm_3_1RMSNorm1 × 32768 × 4096
17Attention_3Grouped Query Attn1 × 32768 × 4096
18Add_3_attnAdd1 × 32768 × 4096
19RMSNorm_3_2RMSNorm1 × 32768 × 4096
20FFN_3SwiGLU1 × 32768 × 4096
21Add_3_ffnAdd1 × 32768 × 4096
22RMSNorm_4_1RMSNorm1 × 32768 × 4096
23Attention_4Grouped Query Attn1 × 32768 × 4096
24Add_4_attnAdd1 × 32768 × 4096
25RMSNorm_4_2RMSNorm1 × 32768 × 4096
26FFN_4SwiGLU1 × 32768 × 4096
27Add_4_ffnAdd1 × 32768 × 4096
28Final_RMSNormRMSNorm1 × 32768 × 4096
29LM_HeadLinear1 × 32768 × 32000
30OutputOutput1 × 32768 × 32000

What the verifier says

No finding on the reconstructed graph. See the checks.

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 mesolitica/llama2-embedding-1b-8k --plan --share

Other llama checkpoints

dolphin-2.9.1-yi-1.5-34b
34.39B derived · +0.00% against the checkpoint
Llama-3.1-8B-Instruct
8.03B derived · +0.00% against the checkpoint
Llama-3.2-1B-Instruct
1.24B derived · -0.00% against the checkpoint
Meta-Llama-3.1-8B-Instruct
8.03B derived · +0.00% against the checkpoint