CRUMB abl_pure_attn_pilot
Model Overview
abl_pure_attn_pilot is a parameter-equalized pure-attention pilot
trained as a control for the CRUMB ablation. It is identical to
abl_pure_attn except that its feed-forward dimension has been inflated
from d_ff=3072 to d_ff=3832 to compensate for the lighter attention
layers, bringing the total parameter count to 150.1 M (vs. 129.0 M
for abl_pure_attn).
It is paired with abl_pure_mamba_pilot to test whether the parameter
spread (~20 %) across the standard ablation (129Mβ155M) confounds the
Mamba vs. Attention comparison. Both pilots were trained on identical data
(2.68 B tokens, 81,920 steps) with the same random seed.
Architecture
| Property | Value |
|---|---|
| Total parameters | ~150.1 M (β 150,067,000) |
d_model |
768 |
n_layers |
12 |
n_heads |
12 |
n_kv_heads |
4 (GQA) |
d_head |
64 |
d_ff |
3832 β adjusted for parameter equalization (default: 3072) |
vocab_size |
32768 |
seq_len |
4096 |
| Tie embeddings | yes |
| Pos. encoding | RoPE (base = 10000) |
| Mamba layers | 0 |
Mamba : Attention ratio β 0 : 12 (pure attention)
Placement β N/A
All 12 layers are attention layers.
Training
| Property | Value |
|---|---|
| Training data | Python subset of bigcode/the-stack-dedup-v2 |
| Tokens seen | 2,683,699,200 (~2.68 B) |
| Steps | 81,920 (half of the standard ablation) |
| Context length | 4096 |
| Training time | 18 h 55 m 58 s |
| Final learning rate | 3.00e-05 |
| Peak GPU memory | 6,063 MB |
| Training throughput | ~39,000 tok/s |
Evaluation Method
Perplexity (primary metric)
Per-token cross-entropy loss with BF16 autocast, computed over the full held-out evaluation set (same eval set used in the standard ablation).
| Setting | Value |
|---|---|
| Eval sequences | 20,063 batches |
| Eval tokens | 328,631,940 |
| Implementation | src/evaluation/perplexity.py |
Note: this pilot's results are not included in the headline
saved/eval/perplexity.jsontable β only the eleven standard-ablation models are. Pilot eval metrics are reported indocuments/phase1_ablation_findings.md(Section 5).
Evaluation Results
| Metric | Value |
|---|---|
| Eval PPL (final, 2.68 B tokens) | 3.34 |
| Final train loss (smoothed, last 10 %) | 1.266 |
| Final eval loss | 1.207 |
| Wall clock | ~19 h |
Why this pilot exists
The standard ablation's parameter counts vary from 129.0 M (pure
attention) to 154.6 M (pure Mamba) β a 20 % range caused by Mamba
layers being heavier than attention layers at the same d_model. To
determine whether this parameter gap, rather than the architectural
difference, drives the standard-ablation rankings, both pilots were
trained at exactly 150 M parameters by adjusting d_ff:
abl_pure_attn_pilot: d_ff=3832 (inflated) β 150.1 Mabl_pure_mamba_pilot: d_ff=2904 (deflated) β 150.0 M
Result: at equal parameters, attention reaches eval PPL 3.34 vs.
Mamba's 3.39 β a small but consistent gap. This confirms that the
standard-ablation rankings are not an artefact of parameter count.
See documents/phase1_ablation_findings.md Section 5 for the full
analysis.
Citation / Context
This pilot is part of the CRUMB Phase-1 ablation study:
Efficient Architectural Hybrids for Small-Scale Language Models in Python Program Synthesis β Department of Computer Science and Engineering, Daffodil International University. Findings documented in
documents/phase1_ablation_findings.mdSection 5.
How to Load
from tokenizers import Tokenizer
import torch
from src.model.config import CRUMBConfig
from src.model.model import CRUMBModel
config = CRUMBConfig.from_yaml("configs/model/abl_pure_attn_pilot.yaml")
model = CRUMBModel(config)
state = torch.load("saved/model/abl_pure_attn_pilot/model.pt", map_location="cpu")
model.load_state_dict(state)
model.eval()
- Downloads last month
- 5