本機 AI/推論系統
Magnitude Selects Local Models Based on Memory Bandwidth and Capacity, Automatically Configuring Quantization and Speculative Decoding for Coding Agents
The new open-source inference server Magnitude benchmarks hardware before recommending a complete combination of model, quantization, context length, and estimated speed. It automates the memory and concurrency settings most often misconfigured for local agents, though performance and model quality currently still depend largely on the project’s catalog and testing.

Magnitude has open-sourced a local inference server for coding agents. Rather than simply wrapping another model launcher, it first measures the machine and then determines which model it should run. The CLI identifies the chip and available memory, measures actual memory bandwidth, and runs a short benchmark. It then lists complete configurations optimized for priorities such as “fastest,” “balanced,” and “smartest.” Each recommendation includes the model, quantization variant, context length, memory requirements, and estimated tokens/s, instead of merely checking whether a GGUF file can be loaded.
This design targets bottlenecks specific to agent workloads. Long-running coding agents reprocess conversations, tool output, and file contents on each turn, so the KV cache can continue to grow. If concurrency is set too high, the server may not crash, but it can reduce the available context, causing the agent to lose earlier decisions later in the run. Magnitude therefore configures concurrency and speculative decoding according to the hardware. It loads models only when requests arrive and unloads them when idle or when memory is insufficient. It can also write configurations for harnesses including Pi, OpenCode, Hermes, OpenClaw, Codex, Claude Code, and Cline. Once downloads are complete, it can operate offline and also accepts compatible GGUF files that are not in its catalog.
The project is licensed under Apache 2.0 and supports macOS, Linux, and Windows through WSL. At the time of reporting, it had about 2,000 stars on GitHub, indicating genuine developer interest in local inference for agents. However, the “best model” still depends on the catalog’s quality assessments, quantization tests, and the specific task, while estimated speed does not necessarily reflect end-to-end throughput over long agent trajectories. Engineering teams should next benchmark it against their own repositories, tool success rates, and long-context degradation. They should also review automatically generated harness configurations and model sources rather than relying solely on the recommendation rankings.