TinyToT – Tree of Thoughts Inference Server TinyToT, a lightweight inference server compatible with Ollama, achieves 97% accuracy on a 35-question benchmark spanning graduate-level science, medicine, law, finance, and software engineering without requiring model weights, training, or a GPU. It separates fact storage into plain markdown files and uses a TF-IDF cosine similarity index for retrieval, with only a 20-50M parameter composition step, enabling CPU-based operation at under 1ms per query. A lightweight, Ollama-compatible inference server that answers questions through knowledge retrieval, structured reasoning chains, and MCP tool calling — with no model weights, no training, and no GPU required. It scores 97% on a 35-question benchmark spanning graduate-level science, medicine, law, finance, and software engineering. It runs on a laptop CPU in under 1ms per query. Every large language model above 1B parameters is doing two completely different things and charging you for both: Fact storage — memorising billions of facts in FFN weight matrices at roughly 1–4 bits per parameter Composition — combining retrieved facts into coherent answers TinyToT separates these. Facts live in plain markdown files where they belong. The retrieval engine is a TF-IDF cosine similarity index — zero learnable parameters, perfect recall, instant updates. The only thing that would need parameters is the composition step, and as the Phi-1 and DistilBERT research lines show, that requires roughly 30–50M parameters — not 7B, not 70B. The practical upshot: a 7B parameter model is using an estimated ~6.5B of those parameters as an expensive, lossy, non-updatable database. TinyToT externalises that database as text files. What remains is a ~20-50M parameter composition problem. | Benchmark category | Score | Comparable SoTA target | |---|---|---| | Graduate-level science | 5/5 | Humanity's Last Exam | | Clinical medicine | 5/5 | HealthBench Professional | | Law and legal reasoning | 5/5 | LegalBench | | Finance and economics | 5/5 | Hebbia Finance Benchmark | | Software engineering | 5/5 | SWE-bench domain knowledge | | Arithmetic and algebra | 5/5 | GSM8K / MATH | | Logic and deduction | 5/5 | BIG-bench logical reasoning | | Letter counting / language | 5/5 | BIG-bench word tasks | Overall | 34/35 = 97% | GSM8K full test set 1,319 problems : 98.2% at 126 queries/second on CPU. TinyToT operates in four modes, chosen automatically from the prompt: | Mode | Trigger | Response | |---|---|---| Compute | Arithmetic, algebra, geometry, logic | Evaluated directly — no retrieval | Direct answer | "What is X?", factual lookups | Key fact from knowledge base | JSON scoring | "score": , "rationale": , "Reply with JSON" | {"score": float, "rationale": str} | Reasoning trace | Everything else | Full Tree of Thoughts trace grounded in knowledge | The knowledge base is plain .md files — drop one in data/knowledge/ and restart. No training, no configuration, no GPU. Install requires Python 3.8+, pipenv make install Start the server on port 11434 Ollama-compatible make run Shut down cleanly make stop git clone