WingLLM
Run 7B models 1.97× faster on 2 GB GPUs and CPU-bound laptops.
A lightweight Go daemon that uses a 2 GB GPU as a 0.5B speculative draft engine alongside a CPU-bound 7B target model via local Ollama GGUF discovery. Measured at 2.54 tok/s vs. 1.29 tok/s baseline on an Intel i5-8500T + Quadro P620.
The idea
A 7B Q4_K_M model requires ~4.7 GB of memory, so on machines with a 2 GB GPU (such as a Quadro P620, MX350, or GTX 1050) inference falls back to CPU system RAM. On an Intel i5-8500T, pure CPU inference measured 1.29 tok/s (24.76s for 32 tokens) while the GPU remained idle.
What I built
- Heterogeneous speculative decoding pipeline pairing a 0.5B GPU draft model with a 7B CPU target model
- Automated Ollama manifest crawler that discovers local GGUF blobs and validates tokenizer family compatibility
- Dynamic draft auto-puller that automatically pulls missing wingman draft models (~397 MB) via Ollama
- Windows VRAM Sentinel monitoring physical GPU memory headroom before allocating GPU draft layers
- OpenAI-compatible local API server (:8080/v1) with live tokens/sec speedometer web dashboard
- 1-click VS Code Continue integration (wingllm connect vscode) and native JSON-RPC 2.0 stdio MCP server
- Single-binary Go distribution cross-compiled for Windows, macOS (Apple Silicon & Intel), and Linux with zero external dependencies
A closer look
Architecture & Benchmarks CLI & Live Speedometer
Built with
- Go
- llama.cpp
- Ollama
- Speculative Decoding
- Model Context Protocol (MCP)
- Hugging Face Hub
- DirectX/DXGI
- AVX2