A robust, CPU-only LLM inference engine for efficient model execution.
Project details
PulsarForge offers a powerful and efficient CPU-only inference engine for 744-billion-parameter models, targeted at performance on standard laptops. It features five validated architectures, unprecedented bit-exactness, and a clear methodology for measurement, making it an invaluable tool for researchers and developers exploring LLM capabilities.
PulsarForge is a powerful CPU-only LLM inference engine developed in C11, designed to efficiently manage a 744-billion-parameter model on standard hardware such as a 2018 laptop with 32GB of RAM and a USB SSD. This project encompasses five distinct architectures, each validated for bit-exactness against an independent oracle, ensuring robust performance on both Windows and Linux platforms. A comprehensive engineering retrospective, including metrics from various attempts, provides transparency in its development journey.
Current Status: Research Engine
Windows is the primary and most extensively measured environment, with Linux (native or WSL) validated as a secondary target. For a first-time setup, refer to GETTING_STARTED.md to build the system, bootstrap the tokenizer, perform a one-time conversion, and start using the chat and API interface in five straightforward steps.
PulsarForge initially began as a didactic tool for the Qwen3-0.6B model, enabling users to grasp inference mechanisms through hands-on experience and validation against the HuggingFace reference. It has since evolved into a unique offering in the landscape of machine learning, showcasing remarkable features:
qwen3, qwen3moe, deepseek2, olmoe, and glm-dsa), each meticulously validated for bit-exact or argmax-exact results against a reliable oracle.NO_BUFFERING reader with an LRU cache, ensuring optimal performance with high recall rates and efficient compute/IO overlaps.On a HP EliteBook 840 G5 (equipped with an i7-8550U processor, 32GB RAM, and a USB SSD), PulsarForge has demonstrated impressive performance metrics:
| Measure | Result |
|---|---|
| GLM-5.2 744B (first naive run) | 196 s/token |
| Post-optimization on same hardware | **9.3 s/token ** |
| Aggregated batch mode (8 streams) | ~2.9 s/token |
| Qwen3-30B-A3B MoE chat speed | ~6.8 tok/s |
| Qwen3-0.6B performance | ~13 tok/s Q6_K |
Research has yielded several novel findings, including:
PulsarForge includes a custom .forge container format designed to optimize the performance and manageability of models. This container format was developed based on A/B testing against other formats, ensuring reliability and efficiency during model operations.
Usage examples for daily operations include:
python tools/forge_convert.py --dest glm52.forge
python tools/forge_idx.py glm52.forge
nf chat glm52.forge --session my.nfs
Additional details regarding ecosystem comparisons, historical context, and runtime commands can be found in the documentation: OPERATIONS.md for English and README.it.md for original Italian documentation.
PulsarForge exemplifies cutting-edge development in large language model inference techniques, leveraging standard hardware to achieve unprecedented performance metrics in the 700B-plus model realm. This project serves as a valuable resource for researchers and developers seeking to understand the complexities and efficiencies of modern machine learning frameworks.
Comments
0Start the conversation
Share the first comment.