Petal-1-150M
A compact language model of 152 million parameters, trained from scratch.
Model details
- Model: Petal 1 150M (
petal-1-150M) - Architecture: 18 layers, dim 768, 12 heads, FFN 2048, RoPE, tied embeddings
- Parameters: 152,596,224 (127,430,400 non-embedding)
- Context: 2048 tokens
- Tokenizer: digit-splitting BPE, 32,768-token vocab
base/ holds the pretrained base model; the repository root holds the SFT-final
assistant (petal-1-150M), the same checkpoint as the one integrated in the local
models/digit32k/150M/petal-1-150M.pt release file.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("GautierP/Petal-1-150M", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("GautierP/Petal-1-150M", trust_remote_code=True)
prompt = (
"System: Today is 2026-11-17.\n\n"
"You are Petal, a small AI assistant. Answer briefly and directly. "
"When a list helps, write it as a short markdown list. "
"You can do basic arithmetic.\n"
"User: What is 2+2?\n"
"Assistant:"
)
print(model.generate(**tok(prompt, return_tensors="pt"), max_new_tokens=64)[0][len(tok.encode(prompt)):])
Multi-turn: keep the system line plus the last four exchanged turns; trim long histories from the front to fit the 2048-token window.
Benchmark scores
Protocol v3 small_lm suite — zero-shot, full test sets, batch 4
(updated 2026-11-17 with the re-SFT assistant: replay 15%, lr 1e-4, 1 epoch; the
base model numbers are unchanged from 2026-11-16):
| model | hellaswag | arc_easy | arc_chall. | piqa | winogrande | openbookqa | sciq | lambada | wikitext (bits/byte) | gsm8k |
|---|---|---|---|---|---|---|---|---|---|---|
| Petal-1-150M (assistant) | 0.315 | 0.424 | 0.240 | 0.603 | 0.507 | 0.274 | 0.654 | 0.205 | 1.064 | 0.020 |
| Petal-1-150M (base) | 0.336 | 0.479 | 0.261 | 0.628 | 0.519 | 0.300 | 0.685 | 0.279 | 0.890 | 0.012 |
| Pythia-160m-step143000 | 0.303 | 0.396 | 0.236 | 0.620 | 0.513 | 0.268 | 0.677 | 0.354 | 0.944 | 0.007 |
| SmolLM2-135M | 0.431 | 0.586 | 0.296 | 0.685 | 0.530 | 0.334 | 0.782 | 0.429 | 0.822 | 0.011 |
Lower bits/byte is better (wikitext column). The assistant is measured raw-zero-shot (no chat template); it is a chat model and keeps its chat-only strengths off this table.
Limitations
- English only. Output cannot cite sources; expect hallucinations.
- 150M has no parametric room for world knowledge. Do not rely on the model for factual answers — verify anything important.
- Math capability is limited to simple arithmetic; many multi-digit or multi-step cases will be wrong.
- Not a safety-tuned model; refusal behavior is minimal by design.
License
MIT — see LICENSE.
Links
- Training code: github.com/Chloris-Lab/Mini-LLM
- Evaluation harness: github.com/Chloris-Lab/Mini-Eval