Atom Zero 49.2M — a local assistant that cites its sources
Atom Zero is a local, source-cited assistant built around a 49.2M parameter model trained from scratch. Facts live in a local RAG index, not in the model weights; the model handles wording and behavior while deterministic tools, documents, memory and citations do the rest.
This is the standalone atomzero package. The low-VRAM trainer is a separate
package and is not required to run Atom Zero. Atom Zero is published on seven
canonical surfaces: GitHub, Hugging Face, PyPI, dev.to, Medium, LinkedIn and
ModelScope.
Install
pip install atomzero==0.4.1
Optional local MiniLM reranker:
pip install "atomzero[neural]"
Quickstart
atomzero-quickstart
The first run:
- downloads the ~197 MB checkpoint/tokenizer from Hugging Face;
- seeds a small demo corpus (launch code, warranty, travel, visitor badge);
- starts the local UI at
http://127.0.0.1:8013; - opens the browser.
Useful options:
atomzero-quickstart --provider # local Ollama free-form chat
atomzero-quickstart --port 8014
atomzero-quickstart --safety-filter
atomzero-quickstart --no-download # use cached files
atomzero-quickstart --no-browser
atomzero-quickstart --reset-demo # rebuild the demo document DB
The cache lives at ~/.cache/atomzero/atom-zero-49m.
Check your install
atomzero-doctor
atomzero-doctor --provider --json
The doctor checks Python, the package version, torch/CUDA, the model cache (exact file sizes), document/session write access, the document index (orphan rows and FTS5 integrity), the local port and the optional Ollama provider. It exits non-zero only on hard failures.
More fixes are in docs/TROUBLESHOOTING.md.
What it is
- A local, single-user daily assistant: short chat, tasks, notes, arithmetic, time and source-cited document lookup.
- A source-cited RAG system over your own text, Markdown, HTML, PDF and DOCX files.
- A deterministic tool runtime: arithmetic, time, tasks, name/likes memory and a constrained plan API.
- A reviewed research loop: approved-only Wikipedia fetches, local teacher notes and a human approval gate.
- A small-model + harness reference: the harness is the reusable asset; the 49.2M core is deliberately narrow.
- Optionally, a front-end for a stronger local provider while RAG, tools and memory stay local.
What it is not
- Not a general reasoning or coding model.
- Not a ChatGPT competitor.
- Not a hosted, multi-tenant service.
- Not a model that stores all facts in its weights.
- Not an autonomous crawler or self-modifying agent.
- Not a claim that 49.2M parameters are enough for general intelligence.
System features
| area | implemented |
|---|---|
| core model | 49.2M decoder-only transformer, BPE-8k, 6 layers, 768 dim, 128 context |
| training | 175.37M clean + 214.8M replay; 40k product checkpoint |
| RAG | SQLite FTS5, hashed/MiniLM embeddings, hybrid candidates, lexical+cosine rerank |
| vector index | cached vectors, prewarmed numpy matrix, IVF ANN above 256 chunks, exact fallback |
| documents | text/Markdown/HTML/PDF/DOCX ingestion, page/section citations, evidence panel/API |
| tools | time, safe arithmetic, tasks, name/likes memory, allowlisted 3-step plan API |
| sessions | transcript restore, JSON export/import, exact Forget, session Forget |
| research | approved-only queue, Wikipedia fetch, worker lock/log, teacher synthesis |
| teacher | local Ollama/OpenAI-compatible, unverified notes, reviewer verification |
| curiosity | gap → pending topic → approval → Wikipedia + teacher → RAG note |
| self-learning | RAG memory (no weights), reviewed LoRA (weights), manual full training |
| provider | optional local free-form chat; RAG/tools stay local |
| safety | optional rules + local linear ML head; off by default; exact fallback |
| privacy | localhost, no telemetry, SSRF guard, upload caps, deletion |
| UI | chat, documents, evidence, gaps, research queue, teacher notes, adapters, health |
Model
| item | value |
|---|---|
| name | Atom Zero 49.2M (transformer_behavior_50m_scaled) |
| architecture | decoder-only transformer |
| parameters | 49,213,440 |
| layers / dim / heads / FF | 6 / 768 / 12 / 3072 |
| context | 128 tokens |
| tokenizer | 8,192-token BPE (chat_en_bpe8k.json) |
| checkpoint step | 40,000 |
| training tokens | 175.37M clean + replay mix to 214.8M |
| runtime | PyTorch, CUDA or CPU; RTX 3050 6 GB tested |
The model is trained from scratch. It is a narrow chat/behavior model, not a foundation model. Facts are expected to live in RAG; skills can live in reviewed LoRA adapters.
Honest benchmark
| check | result |
|---|---|
| raw 49.2M, no RAG/tools | 2/10 |
| product with RAG/tools | 21/21 |
| behavior checks | 16/16 |
| source-cited retrieval top-1 | 1.000 (FTS 0.850) |
| document benchmark, 100 authored questions | 80/80 answerable, 20/20 no-answer |
| public SQuAD v2 retrieval (20 contexts) | 0.98 top-1 context (FTS), 1.00 top-5 |
| public SQuAD v2 retrieval (50 contexts) | hybrid 0.975 top-1; 0.816 answer in visible snippet |
| test suite | 248 passed |
The raw-model probe asks ten simple general questions with no documents, no calculator and no agent. The 49.2M model gets 2/10. The product gets 21/21 because the runtime does the work.
The product benchmark is narrow and authored: tools, memory, tasks, source-cited retrieval, teacher-note review, missing-source detection and one short generation. It is not MMLU, GSM8K or HumanEval.
Documents and citations
- Text, Markdown, HTML, PDF and DOCX ingestion.
- PDF citations keep the page number; DOCX/HTML/Markdown keep the section heading.
- Evidence panel/API:
GET /v1/documents/evidenceopens the exact local chunks behind a citation. - Grounded answers:
POST /v1/documents/answerreturns cited notes, evidence and a transparent match-confidence score; chat replies use the same core and expose the match label. - Source-scoped retrieval: search and answers can be limited to one exact source, a source prefix or teacher notes.
- Exact code/ID retrieval:
L-7781andW-7781are treated as distinct identifiers in FTS candidates, reranking and snippets. - Headless CLI:
atomzero-docs add/sync/status/doctor/search/answer/ summary/summary-collection/list/evidence/export/import/forgetworks without the web UI;synckeeps a portable relative-path collection, skips unchanged or duplicate content, prunes deleted files, summaries are extractive, anddoctorchecks index integrity. - Per-source delete: Forget removes chunks, page/section metadata, source metadata and cached vectors.
See DOCUMENTS.md.
Tools and constrained plans
- time, safe arithmetic, task add/list/complete, name/likes memory.
POST /v1/agent/planexecutes a small JSON plan through an allowlist:- at most 3 steps;
- no shell, arbitrary URL or code execution;
- explicit confirmation before task/research side effects;
- text arguments pass the optional safety filter when enabled.
The 49.2M model does not choose tools freely. This is a constrained executor, not model-driven planning. See TOOL_PLANNING.md.
Research, curiosity and learning
When no local source answers a question, it becomes a knowledge gap. The assistant can propose pending research topics, but nothing fetches until a human approves:
question → no local source → knowledge gap
gap → pending curiosity topic
human approves
worker fetches Wikipedia context
local Ollama teacher synthesizes
answer stored as an unverified teacher note in RAG
next answer can cite it; weights_changed: false
The self-improvement ladder is deliberately split:
- RAG memory: a teacher note or your document enters the index; no weight change.
- Reviewed adapter: a LoRA adapter for style/skills; human review + gates; weights change.
- Full training: a new base checkpoint; offline project decision; weights change offline.
The model never crawls, mutates its own weights or studies topics on its own during chat. Hungry mode is an explicit, bounded command for growing the retrieval index:
atomzero-hungry --topic Ankara --max-questions 5
atomzero-hungry --dry-run --json
It generates questions from pending gaps, topic seeds and document titles, checks the local index, asks the configured local teacher only for unknown questions, stores answers as unverified notes and writes an audit ledger. It never fetches web pages, never changes weights and stops at the question and provider-call budgets. See HUNGRY_MODE.md.
Optional local provider
atomzero-quickstart --provider
This routes free-form chat to local Ollama llama3.2:3b while RAG, tools and
memory remain local. It is not the default backend. Use a different model with
--provider-model.
Optional safety
Safety is off by default. With --safety-filter, exact rules run first and
a small local linear ML head is additive; a missing/broken head falls back to
the exact rules. It is an operator tool, not a hosted content policy.
Limits
- 2/10 raw knowledge; weak general reasoning and coding.
- English-first tokenizer/data.
- 128-token core context; longer context is a model/training change.
- No OCR; scanned PDFs need OCR before ingestion.
- Encrypted PDFs are rejected; DOCX page numbers are unavailable.
- Product benchmark is narrow and authored; it is not MMLU.
- The plan API is not free-form model planning.
- The document benchmark is an authored regression gate, not a public leaderboard.
Support
If Atom Zero is useful, donations help cover compute, evaluation and maintenance. There is no paid support or investment offer, and donations do not buy influence over results or roadmap decisions.
- EVM-compatible networks (Ethereum, BNB Smart Chain, Polygon, Optimism,
Arbitrum One, Base, Avalanche C-Chain):
0xa4dEc84Fe6F13c8A3b8707446D6892a6E272285c - Solana:
EDqs8w4JkS5vAAfxmsB7fAQwoauEYufYXvMWFW9aYPdc - Bitcoin:
bc1qsq4mdtf0dlfvppllqwdaknxrq6xkjgsrx6ctgm
Full details: https://github.com/byjameson/atom-zero/blob/main/docs/DONATE.md
Links
- PyPI: https://pypi.org/project/atomzero/0.4.1/
- GitHub source: https://github.com/byjameson/atom-zero
- GitHub release: https://github.com/byjameson/atom-zero/releases/tag/v0.4.1
- Quickstart: https://github.com/byjameson/atom-zero/blob/main/docs/QUICKSTART_ATOMZERO.md
- Model card: https://github.com/byjameson/atom-zero/blob/main/docs/MODEL_CARD.md
- Full project map: https://github.com/byjameson/atom-zero/blob/main/docs/PROJECT_OVERVIEW.md
- Documents: https://github.com/byjameson/atom-zero/blob/main/docs/DOCUMENTS.md
- Tool plans: https://github.com/byjameson/atom-zero/blob/main/docs/TOOL_PLANNING.md
- Benchmarks: https://github.com/byjameson/atom-zero/blob/main/docs/BENCHMARKS.md
- Public SQuAD retrieval benchmark: https://github.com/byjameson/atom-zero/blob/main/benchmarks/README.md
- Hugging Face: https://huggingface.co/byjameson/atom-zero-49m
- ModelScope: https://modelscope.cn/models/byjameson/atom-zero-49m
- dev.to: https://dev.to/mycute_97b39c4e34027570f9/atom-zero-a-49m-local-assistant-that-says-i-dont-know-1p7m
- Medium: https://medium.com/@myredditacc9393/atom-zero-a-49m-local-assistant-that-says-i-dont-know-df1ebc0e2e78
- LinkedIn: https://www.linkedin.com/in/g%C3%B6khan-cava-874a32157/
- Contact: gokhancava@gmail.com
Apache-2.0 for code and weights; data attribution in NOTICE.
Metadata
Release files for atomzero 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| atomzero-0.4.1.tar.gz | 152.1 kB | Without provenance | Details for atomzero-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| atomzero-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for atomzero-0.4.1-py3-none-any.whl |
Total release size: 273.2 kB
Release files / atomzero-0.4.1.tar.gz
| Download URL | atomzero-0.4.1.tar.gz |
|---|---|
| Size | 152.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c5f7a9c4a0994041ca3f450ea9b4044b4be1001791ac7fcbc42dd8894ccced2
|
|
BLAKE2b-256 checksum How to use checksums |
b264459e2d16fa5c9c4babee4e0cef7078b46c07d285c5d23563655d7d6962d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Release files / atomzero-0.4.1-py3-none-any.whl
| Download URL | atomzero-0.4.1-py3-none-any.whl |
|---|---|
| Size | 121.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95cd7299fddf0cc7760678c98505bbd287e9aba45c6f4382ec67ea1d8feaeafb
|
|
BLAKE2b-256 checksum How to use checksums |
3798514fce5fbbc934b72be7184f4ec6d3e26ef7edacff631d236e3388b04a11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Security for atomzero 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.