Particle 1.7: A Compact 109.5M Parameter Chat Model Built from Scratch
2 min readupdated
An ultra-small language model (LLM) designed for short conversations and basic science and astronomy Q&A in English. Developed entirely from scratch by prathamkode with random weight initialization (not a fine-tune of Llama or SmolLM) using a Llama-style architecture, and pre-trained on 2 billion tokens of educational web text. Version 1.7 introduces a new SFT (Supervised Fine-Tuning) stage trained on 242,000 paired dialogue examples. Unlike Particle 1.0, this version has learned to stop text generation on time (fitting within 64 tokens 96% of the time), but due to a dataset bias toward the Solar System, it trails the previous 1.6 release on general-topic questions. Ideal for researchers experimenting with ultra-small architectures and analyzing the impact of training data composition.
Key features
- Fully independent training from scratch without relying on pre-trained checkpoints: 12 layers, 768 hidden dimension, 12 attention heads, a 2048-token context window, and a custom 32,000-token BPE tokenizer.
- Fine-tuned on a 242,000-row mixture combining astronomy questions, K-12 science curriculum data, and filtered dialogues.
- Precise generation cutoff: the model correctly outputs the end-of-sequence (EOS) token 96% of the time, compared to 49% for the baseline Particle 1.0.
- An open MIT license allowing free inspection of weights and reproduction of inference.
What you can do
- Use it as a benchmark sandbox to study how training from scratch and adjusting SFT dataset proportions affect the behavior of ~100M parameter models.
- Integrate it into local research demo scripts using the
transformerslibrary for quick testing on low-end hardware or CPU. - Compare response quality and template leakage tendencies against previous releases in the lineup—Particle 1.0 and Particle 1.6.
Example
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "prathamkode/particle-1.7"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo)
messages = [{"role": "user", "content": "hello"}]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
output = model.generate(**tokenizer(prompt, return_tensors="pt"), max_new_tokens=64, do_sample=False)
Read more
DetailsBenchmark on 100 context-free factual questions: 20/100 exact matches and 23.0% weighted accuracy (Particle 1.6 scored 25/100 and 27.0%, while Particle 1.0 scored 11/100 and 14.5%).
SFT training details: 2 epochs (15,146 steps),
seq_len=1024, batch size 32, weight precision bfloat16, final validation loss of 0.3049.Limitations: intended strictly for research; weak at logical reasoning, long context, and coding; English-only; and lacks safety alignment.
Due to the heavy weight of Solar System topics in the dataset, it tends to carry over response templates to unrelated questions.










Comments