An inference engine for the DGX Spark, drawn in public.
TorcLM is an open-source LLM inference engine in Rust and CUDA, written for the NVIDIA DGX Spark: kernels for its GB10 chip, the whole model in its 128 GB of unified memory, and the APIs your coding agents speak.
- PROJECT
- TorcLM
- STATUS
- Pre-alpha
- REV
- M2
- FOR
- NVIDIA DGX Spark · GB10
- BUILT BY
- AI agents · one engineer's review
The Spark's speed limit is its memory.
Every generated token reads every weight. For Qwen3-8B that is 15.1 GB a token, and the Spark streams about 250 GB/s. So a token can't take much less than 60 ms in BF16.
TorcLM is measured against that floor, and will lower it: 4-bit weights (NVFP4, milestone M4) read under a third of the bytes, and drafting (M6) proposes several tokens for one read.
The dashed arrow: 4-bit weights (M4) and drafting (M6) will lower the floor. Milliseconds per generated token, Qwen3-8B, one request.
What it will be: one machine, and the agents on your desk.
Kernels written for sm_121a
The GB10's own architecture, compiled ahead of time; no datacenter kernels bent to fit.
Measured against the bandwidth
Every number is set against the Spark's own streaming ceiling, the limit that sets its pace.
The whole model in unified memory
Up to the 128 GB of the box, with drafting on by default. No offloading to the CPU or disk.
The APIs your agents speak
Planned: OpenAI Chat Completions and Responses, Anthropic Messages, tool calls, structured output.
Nine milestones, from M0 to 1.0.
Each one ends with its tests and a walkthrough a person can follow. No dates: the project moves at the pace of its review. The full roadmap
- M0Toolchain spikeDone
- M1Public repository and foundationsDone
- M2Qwen3-8B, correctBuilt and verified, in review
- M3Serving: first release, 0.1Next
- M4Qwen3-8B, fastPlanned
- M5Qwen3.8-27BPlanned
- M6Drafters and the agent APIsPlanned
- M7Inkling 2 MiniPlanned
- M81.0Planned
Built by AIs, designed for humans.
AI agents write the code.
One engineer directs, reviews every piece, and decides at a human pace.
Every part is explained.
A short design note for each subsystem; a walkthrough a person can follow at the end of each milestone.
Read, credited, never copied.
Other engines are studied and credited by commit in the repository; no code is copied.
And a book.
TorcLM: Building an LLM Inference Engine in Rust for the DGX Spark, written alongside the engine.
Follow the build.
Every milestone lands as a pull request with its tests and a walkthrough. Watch the repository to see each one arrive.