Run a Local LLM on a CPU With BitNet and a Sprite
How-to 5 min +50 XP
Microsoft's BitNet b1.58-2B-4T, a 1.58-bit ternary-weight model, runs on a Fly.io Sprite's CPU in about 1.3GB of RAM at roughly 50 tokens/sec with ~1.4s end-to-end latency.
Microsoft's BitNet b1.58-2B-4T, a 1.58-bit ternary-weight model, runs on a Fly.io Sprite's CPU in about 1.3GB of RAM at roughly 50 tokens/sec with ~1.4s end-to-end latency.
An LLM agent is just a loop around a stateless chat API: keep a list of messages, replay it on every call, and when the model emits a function_call, run the tool and append its output.