HelixLM 53.9M — Instruct
The nuclear hand grenade of LLMs, instruction-tuned.
- This is the first instruct fine-tuned model derived from
HelixLM-53.9M-20261116-br72-d512-h8-nl3-s2048-5.0BT-wsd. It is a full fine-tune on a Dolly + Cosmopedia instruction mix with 8% pretrain replay. - A full fine-tune of
HelixLM-53.9M-...-br72on a dolly + cosmopedia instruction mix with 8% pretrain replay. - This checkpoint is a research starting point for instruction tuning and further domain adaptation—not a finished, general-purpose assistant and a proof of concept for how this archtiecture could be used for fully personalized foundation models.
Intended use cases
- Instruction-tuning research: studying how full fine-tuning affects a compact, recurrent, graph-structured language model.
- Domain adaptation: a starting point for further fine-tuning on institutional or individual domain knowledge, terminology, instructions, and edge cases.
- Weight-level personalization: experimenting with inexpensive customization of model weights rather than relying only on prompting or retrieval.
- Resource-constrained and edge-model research: investigating instruction-following models at the 53.9M-parameter scale for potential local or offline applications where model size, privacy, connectivity, or centralized inference cost matter.
- Training-dynamics research: examining the effects of pretrain replay, full fine-tuning, and recurrent-depth architectures on benchmark performance and weight spectra.
These are intended research and development directions, not claims that this checkpoint is already suitable for deployment in each application. Its generation quality, missing chat template, and lack of a KV cache are material limitations.
Architecture
The instruct model retains the base model's architecture and parameter count. HelixLM inherits the Cerebros lineage of graph-structured MLPs and translates that approach into neural columns within a recurrent Transformer architecture.
Three columns each contain a multi-scale windowed-attention node, a SwiGLU node, and a gate. The columns are wired into a random directed acyclic graph (DAG), and the full graph is looped three times with shared weights. LTI-stable injection preserves the input embedding across loops; RoPE supplies positional information, and the input and output embeddings are tied. The design also incorporates adaptive computation time (ACT) halting.
The multi-scale attention mechanism uses hierarchical consensus for compression-error correction, together with aberrant-token detection and substitution. The architecture is intended to support linear-scaling attention across a long context.
Input tokens (B, T) vocab 50,257
↓
Embedding [50257 × 512] ─────────────┐ (tied with the LM head)
↓ │
e (preserved, injected every loop)│
↓ │
┌─ HelixRecurrentBlock × 3 loops, shared weights ───────────────┐
│ h ← RMSNorm(h + loop_index_embedding(t) + e) │
│ 3 columns, each: │
│ ErrorCorrectingMultiScaleAttn (local 64 / coarse 128, │
│ 8 compressed windows × 8 views, cosine consensus, │
│ FFN corrector, RoPE) │
│ → SwiGLU (×2.5) → GateNode │
│ random wiring: vertical p=0.9 (depth 2), lateral p=0.8 │
│ h ← A·h + B·e + graph_out LTI injection, A = e^(−e^(·)) │
└───────────────────────────────────────────────────────────────┘
↓
RMSNorm → tied LM head → logits
| Base | br72 5B-token pretrain, val ppl 36.46 |
| Parameters | 53,592,343 |
| Data | 112,566 rows — 91.9% instructions (dolly + cosmopedia), 8.1% pretrain replay |
| Method | full fine-tune, no LoRA (deliberate: rank collapse risk at this size, and a degree of overfitting is wanted) |
| Schedule | 200-step warmup → 1.5e-4 → cosine to 10%, 2 epochs, 7,584 steps |
| Batch | 8 × grad-accum 4 = 65,536 tokens/step |
| Hardware | 1× A100-80GB, 2 h 26 m |
| SFT val | loss 2.4390 / ppl 11.46 (instruction-only split — not comparable to pretrain ppl) |
Benchmarks — and what SFT cost
Same harness as the base (lighteval 0.13.0, 0-shot, float32), so this is a clean before/after:
| task | base | after SFT | delta |
|---|---|---|---|
| ARC-Easy | 0.4760 | 0.4663 | −0.0097 (≈1σ) |
| ARC-Challenge | 0.1860 | 0.1834 | −0.0026 |
| ARC average | 0.3310 | 0.3249 | −0.0061 |
| WinoGrande | 0.5178 | 0.5201 | +0.0023 |
| TruthfulQA mc1 | 0.2142 | 0.2313 | +0.0171 |
| TruthfulQA mc2 | 0.3817 | 0.3978 | +0.0161 |
Instruction tuning cost about one ARC-Easy point—inside a single standard error—and gained about 1.6 points on TruthfulQA MC2, just over one standard error.
That is an unusually small cost. Small-model SFT normally trades several points of general ability for format compliance. Two things plausibly account for it here: the 8% interleaved pretrain replay, which keeps the language-modeling distribution in view throughout, and the fact that the base was undertrained (WeightWatcher median α 1.37, 73% of layers below the random-structure threshold), leaving capacity for SFT to move weights without destroying knowledge.
ARC average is the unweighted mean of ARC-Easy and ARC-Challenge, calculated from the displayed values and rounded to four decimal places. It is not an additional independent benchmark.
| Task / score | HelixLM 53.9M IT — this model | HelixLM legacy — 40.1M | Pythia-70M | Mantis-50M-Base | gibc-v2-lm | 50M-pro | MiDo v3 Base | MiDo v3 Chat |
|---|---|---|---|---|---|---|---|---|
| ARC-Easy | 0.4663 | 0.4238 | 0.3523 | 0.4461 | 0.4785 ± 0.0103 | 0.4562 | 0.4221 | 0.4634 |
| ARC-Challenge | 0.1834 | — | 0.2193 | 0.2637 | 0.2611 ± 0.0128 | 0.2551 | 0.2782 | 0.2645 |
| ARC average | 0.3249 | — | 0.2858 | 0.3549 | 0.3698 | 0.3557 | 0.3502 | 0.3640 |
| WinoGrande | 0.5201 | — | 0.5296 | — | — | — | 0.5051 | 0.4972 |
| TruthfulQA MC1 | 0.2313 | — | — | — | — | — | — | 0.2656 |
| TruthfulQA MC2 | 0.3978 | 0.4636 | — | — | — | — | — | 0.4440 |
Benchmark caveats
- These numbers are lighteval
acc, not lm-evaluation-harnessacc_norm. Do not compare them directly with cards that reportacc_norm. - TruthfulQA's gain is ~1.1σ on 0-shot MC2; treat it as suggestive, not settled.
- HellaSwag, PIQA, WikiText-103, and BLiMP are omitted for harness reasons documented on the base model card.
Generation quality—honest assessment
At 54M parameters and two epochs, the model has learned the conversational format far better than instruction following. In-process samples after training:
"The capital of France is"→ " Notre Dame, the city's largest city, and has a total area of 11"
"Write a haiku about rain."→ "The first two are a word and the third is a short word."
It is a starting point, not a usable assistant. More data or more epochs would sharpen it; a different learning rate would not.
Known gap: this repository's tokenizer has a quirk with the chat template and may require a monkey patch (details coming once I test). The training data uses <|im_start|>user … <|im_end|><|im_start|>assistant …, but apply_chat_template raises an error, so callers must format prompts by hand. A chat template should be added before this model is used by an agent.
Weight spectrum—did full fine-tuning cause rank collapse?
WeightWatcher 0.7.7 was used to measure the SFT weights and, identically, the base from which they were derived: 124 of 132 two-dimensional matrices scored, using the CPU SciPy accurate-SVD path. α ≈ 2 is a random/untrained spectrum, 2–4 is the healthy trained range, and above 6 a matrix is effectively low-rank—the regime where rank collapse begins.
| Base (5B pretrain) | After SFT | |
|---|---|---|
| α mean | 2.542 | 2.262 |
| α median | 1.37 | 1.37 |
| α p75 | 3.19 | 1.44 |
| α max | 30.22 | 24.83 |
| < 2 (undertrained) | 91 | 96 |
| 2–4 (healthy) | 16 | 16 |
| 4–6 (heavily trained) | 8 | 7 |
| > 6 (low-rank) | 9 | 5 |
Conclusion: SFT did not cause rank collapse. It thinned the saturated tail. Layers above 6 fell from 9 to 5, and the worst layer relaxed from α 30.2 to 24.8. The healthy band held at 16 layers.
What SFT did not do is lift the bulk: the median is unchanged at 1.37, and the <2 mass grew from 91 to 96. That is the spectrum of a short, low-learning-rate fine-tune layered on an undertrained base, and it matches the benchmark behavior better than either “SFT damaged it” or “SFT improved it” would—the tail relaxed, while the bulk stayed where pretraining left it.
Two caveats stated plainly:
lm_headis absent from the 124 matrices because it is tied to the embedding, soembedis measured in its place and the comparison with the base stays like-for-like.- The 2/4/6 thresholds were calibrated on standard Transformers, not on this architecture with its per-column gates and recurrent graph, so read the distribution rather than any single layer.
Raw WeightWatcher output
weightwatcher 0.7.7
=== SUMMARY ===
{
"log_norm": 2.7684650306497667,
"alpha": 2.2616653644555798,
"alpha_weighted": 3.592733048313148,
"log_alpha_norm": 4.315611361992351,
"log_spectral_norm": 1.65781092868133,
"stable_rank": 21.005802412062497
}
=== PER LAYER (sorted by alpha) ===
layer_id name alpha alpha_weighted log_alpha_norm stable_rank num_evals
65 out_proj 24.828421 23.547326 23.612352 119.202766 512
192 n6 11.047775 14.990159 15.269125 118.756610 512
190 n3 9.778266 11.918254 12.427107 167.151171 512
193 n7 7.364103 12.391037 12.651849 152.590194 512
191 n4 6.668031 11.013655 11.045123 93.714841 512
187 out_proj 5.601087 6.990479 7.153563 62.240924 512
69 qkv_proj 5.219110 9.719863 9.921958 60.963909 512
121 up 4.849918 6.640741 7.535906 116.375104 512
61 down 4.524532 7.515035 7.723290 62.451248 512
183 down 4.518813 8.658980 8.700939 37.699691 512
9 out_proj 4.445772 7.853073 7.856851 18.679829 512
182 up 4.032322 5.861355 6.843187 107.030084 512
70 out_proj 3.960046 7.190201 7.211072 16.014039 512
131 out_proj 3.950931 7.419431 7.440638 13.572691 512
8 qkv_proj 3.825810 8.192729 8.205679 20.434035 512
130 qkv_proj 3.814610 6.783306 7.241664 56.323542 512
60 up 3.789109 6.191026 6.684362 65.026231 512
110 0 3.782193 5.708250 5.837859 24.152876 256
120 gate 3.700341 6.562081 6.832719 49.987073 512
49 0 3.647524 6.521600 6.538638 12.713534 256
171 0 3.596546 6.403383 6.421965 13.642678 256
181 gate 3.584499 5.666418 6.413844 75.015969 512
126 out_proj 3.465750 8.059986 8.060266 5.165458 512
122 down 3.427425 5.437164 6.168170 70.565114 512
113 3 3.388672 5.642289 5.745739 15.388108 256
=== ALPHA DISTRIBUTION ===
n=124 min=1.29 p25=1.34 median=1.37 p75=1.44 max=24.83
undertrained/random (<2): 96
healthy (2-4): 16
heavily trained (4-6): 7
overtrained/low-rank (>6): 5
=== vs BASE (br72 pretrain) ===
alpha mean 2.542 -> 2.262
alpha median 1.37 -> 1.37
<2 91 -> 96
2-4 16 -> 16
4-6 8 -> 7
>6 9 -> 5
Training data
HelixLM-s2048-sft-dolly-cosmopedia-replay8 contains instructions filtered to ≤ 2048 tokens so that no conversation is split across a window boundary. These are interleaved with 9,085 exact-2048-token pretrain windows whose chat markers are mutated to <.im_start.> so the template is never learned as prose.
The data was shuffled with seed 42, and 1,000 instruction-only rows were held out for evaluation.
Usage
As a pipeline (Still a monkey patch for the chat template)
from transformers import pipeline
model_id = "david-thrower/HelixLM-53.9M-IT-20261118-d512-h8-nl3-s2048-sft"
pipe = pipeline(
"text-generation",
model=model_id,
trust_remote_code=True,
)
# Required because the published tokenizer_config.json has no chat template.
pipe.tokenizer.chat_template = (
"{% for m in messages %}{{ m['role'] }}\n"
"{{ m['content'] }}\n"
"{% endfor %}"
"{% if add_generation_prompt %}assistant\n{% endif %}"
)
messages = [
{
"role": "user",
"content": "List three potential benefits of AI research. Use a numbered list.",
}
]
result = pipe(
messages,
do_sample=True,
max_new_tokens=80,
temperature=0.35,
top_k=20,
top_p=0.85,
repetition_penalty=1.25,
no_repeat_ngram_size=3,
)
print(result[0]["generated_text"][-1]["content"])
As the model separately
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "david-thrower/HelixLM-53.9M-IT-20261118-d512-h8-nl3-s2048-sft"
tok = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
prompt = "<|im_start|>user\nName three primary colours.<|im_end|>\n<|im_start|>assistant\n"
ids = tok(prompt, return_tensors="pt").input_ids
print(tok.decode(model.generate(ids, max_new_tokens=60, do_sample=True,
temperature=0.6, top_k=40, top_p=0.95, repetition_penalty=1.2,
pad_token_id=tok.eos_token_id)[0], skip_special_tokens=True))
trust_remote_code=True is required. Prompts must currently be formatted manually because the tokenizer does not include a chat template.
Training data
HelixLM-s2048-sft-dolly-cosmopedia-replay8 — instructions filtered to ≤ 2048 tokens so no conversation is ever split across a window boundary, interleaved with 9,085 exact-2048-token pretrain windows whose chat markers are mutated to <.im_start.> so the template is never learned as prose. Shuffled at seed 42; 1,000 instruction-only rows held out for eval.
Limitations
- Research checkpoint, not a usable general-purpose assistant. It has learned conversational formatting better than instruction following and can produce incorrect or nonsensical answers.
- No chat template. Callers must reproduce the training prompt format manually;
apply_chat_templatecurrently raises an error. - No KV cache. Every generated token re-runs the full prefix, and the evaluation path runs every sequence at the full 2048-token training layout regardless of prompt length. Generation cost grows with length squared; this is the main obstacle to on-device use.
- Compression error compounds with loop depth. Three loops beat four at d512 in earlier ablations.
- English-language model. It is not intended for multilingual use or code generation.
- 54M parameters is 54M parameters. No multi-step reasoning.
- Limited benchmark coverage. HellaSwag, PIQA, WikiText-103, and BLiMP are unmeasured for the harness reasons described above.
- Small benchmark changes. The ARC-Easy decline is within approximately one standard error, and the TruthfulQA MC2 improvement is approximately 1.1σ; neither should be overinterpreted.
- Not safety-tuned.
License
Modified Apache 2.0 with ethical-use limitations. See the license for the applicable terms.
Out-of-scope uses
- Uses prohibited or limited by the license.
- Deployment as a finished general-purpose assistant without substantial further development and evaluation.
- Applications for which the reported metrics and generation quality do not establish suitability, particularly mission-critical or high-stakes use.
Compliance
- Only open-source data was used to train this model.
- As with all AI models, its outputs may be factually incorrect and should not be treated as authoritative.