Downloads · 30 days
84
29% of all-time downloads
ifx-pse-sys-ml/spark-13m-base
spark-13m-base is a text generation model from ifx-pse-sys-ml. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
A 13.2M-parameter English base language model, pretrained SmolLM-style on curated educational web + synthetic textbooks. A deliberately tiny model for small-model research, fast experimentation, and as a lightweight d…
Downloads · 30 days
84
29% of all-time downloads
All-time downloads
290
Public
Parameters
13.2M
84.3 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors52.9 MB · 62%
From the Hugging Face model README
A 13.2M-parameter English base language model, pretrained SmolLM-style on curated educational web + synthetic textbooks. A deliberately tiny model for small-model research, fast experimentation, and as a lightweight decoder backbone. ~10× smaller than SmolLM-135M.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("ifx-pse-sys-ml/spark-13m-base", trust_remote_code=True)
tok = AutoTokenizer.from_pretrained("ifx-pse-sys-ml/spark-13m-base")
ids = tok("The moon is", return_tensors="pt").input_ids
out = model.generate(ids, max_new_tokens=40, do_sample=True, temperature=0.8, top_p=0.9)
print(tok.decode(out[0], skip_special_tokens=True))
It also accepts inputs_embeds (pass exactly one of input_ids / inputs_embeds), so a
vision projector can inject visual tokens — usable as a small VLM text backbone. A raw
PyTorch checkpoint (pytorch_model.pth) is included alongside the safetensors weights.
Accuracy (%) via lm-evaluation-harness 0.4, same harness and shots for every model, so columns are directly comparable.
| Benchmark | chance | spark-13m-base | SmolLM-135M |
|---|---|---|---|
| hellaswag | 25 | 28.6 | 42.6 |
| arc_easy | 25 | 37.7 | 56.1 |
| arc_challenge | 25 | 25.2 | 28.9 |
| piqa | 50 | 58.8 | 68.4 |
| winogrande | 50 | 52.0 | 53.2 |
| openbookqa | 25 | 26.0 | 34.0 |
| commonsense_qa | 20 | 20.0 | 19.8 |
| mmlu | 25 | 23.2 | 25.2 |
| average | — | 33.9 | 41.0 |
At 13M parameters this model sits near random chance on knowledge/reasoning benchmarks (MMLU, OpenBookQA, ARC-Challenge). It is ~10× smaller than SmolLM-135M and the gap is capacity, not data — a research/prototyping model, not a knowledge model. English only. Trained with the Nexus codebase.