heron1i-flash-lite
A 9.9M-parameter English / code base model trained from scratch by Heronetic LLC.
It is a small decoder-only transformer with a custom architecture: load it with
trust_remote_code=True. Only torch and transformers are needed. It is a base
model: it continues text and is not instruction-tuned.
Scores
Zero-shot, acc_norm (lm-evaluation-harness; official ArithMark-3 script).
| Benchmark | Score |
|---|---|
| HellaSwag | 28.36 |
| ARC-Easy | 36.20 |
| ARC-Challenge | 24.15 |
| PIQA | 58.54 |
| ArithMark-3 | 35.60 |
| Intelligence Index | 10.31 |
Architecture
| Parameters | 9,924,188 (embedding tied with the output head) |
| Layers / width | 14 / 240 |
| Attention | grouped-query: 6 query heads and 3 key-value heads of size 40, QK-norm |
| Context | 1,024 tokens. Layers 3, 7, 11 and 13 attend to the full context; the others to the previous 256 tokens |
| Positions | half-truncated RoPE: half of each head's dimensions rotate (frequencies from 1 down to 1/1024 per token), the other half carry no position |
| Q/K/V convolution | a residual, causal 3-tap convolution over the query, key and value projections, so each position mixes in the two tokens before it |
| Attention output | a per-head sigmoid gate, then exclusive self-attention (XSA: each head's output has its own value direction removed) |
| MLP | SwiGLU, 640 wide |
| Residual stream | RMSNorm, plus a learned mix of each block's input with the token embedding |
| Logits | tanh soft cap at 15 |
| Tokenizer | TokenMonster englishcode-4096, with every number split into single digits; BOS / EOS / PAD added (vocabulary padded to 4,160) |
The model adds a BOS token in front of any input that doesn't start with one, as in training, so plain prompts work as expected. The output keeps the input's length. Padding is handled exactly, so batched and single-row scores match.
Training data
Trained from scratch, with no third-party pretrained weights, on 24B tokens of public data: 19.2B tokens at a constant learning rate, then 2.4B tokens of learning-rate decay on a mix shifted toward math and textbooks.
| Source | Stable (19.2B) | Decay (2.4B) |
|---|---|---|
| Ultra-FineWeb (English web) | 41.7% | 35% |
| DCLM-Edu (educational score 3+) | 30.3% | 7% |
| Cosmopedia v2 (synthetic textbooks) | 16% | 25% |
| FineMath-3+ (web math) | 5% | 15% |
| OpenMathInstruct-2 (worked solutions) | 3% | 13% |
| InfiWebMath-3+ (web math) | 2% | – |
| SmolTalk (conversations) | 2% | 5% |
Quick start
pip install torch transformers
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "Heronetic/heron1i-flash-lite"
tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, dtype=torch.float32).eval()
prompt = "The water cycle begins when"
inputs = tokenizer(prompt, return_tensors="pt")
with torch.no_grad():
output = model.generate(
**inputs,
max_new_tokens=60,
do_sample=True,
temperature=0.7,
top_k=40,
repetition_penalty=1.15,
pad_token_id=tokenizer.pad_token_id,
eos_token_id=tokenizer.eos_token_id,
)
print(tokenizer.decode(output[0], skip_special_tokens=True))
trust_remote_code=True is needed because the model and tokenizer are custom (pure PyTorch, no extra dependencies).
It runs fine on CPU; for a GPU, add .to("cuda") to the model and the inputs.
The model is a 10M-parameter base model: it continues text and does not follow instructions.