Static

Inkling-2-Mini in 5.4 GB Memory

First reported by Github ·

The signal ●○○○ Compiled by AI from Github and Hacker News
Why you might care

You can now run powerful language models with significantly reduced memory footprints on consumer hardware.

What happened

The LookAtMyQuant project has released new quantized versions of the Inkling-2-Mini, a 5.4 billion parameter Mixture-of-Experts model. Using a quantization compiler and proximal fine-tuning, the project compressed the model from 18.89 GB to four sizes: 5.38 GB, 8.87 GB, 11.18 GB, and 12.76 GB. The 12.76 GB version, utilizing NVFP4 and Trellis codes, matches the performance of the original BF16 teacher model across GSM8K math, HumanEval coding, and Vision VQA benchmarks. Even the smaller 8.87 GB version achieves high scores while significantly reducing KL divergence. These quantized models run on Apple Silicon via the MLX runtime, with the 12.76 GB version achieving 2,016 tokens/s prefill and 60.5 tokens/s serial decode on an M5 Max chip.

What it means

The LookAtMyQuant project demonstrates that advanced quantization techniques can achieve near-lossless compression for large language models, even for complex architectures like Mixture-of-Experts. By combining novel coding schemes (hashed block-vector trellis codes, row trellis codes) with carefully calibrated fine-tuning and distillation processes, the project has achieved remarkable reductions in model size without sacrificing substantial performance on critical benchmarks. This achievement is particularly notable for its efficiency on Apple Silicon, leveraging Metal kernels for accelerated inference.

This breakthrough signals a new era for on-device AI and broader accessibility of sophisticated LLMs. By drastically lowering the memory and computational requirements, these quantized models can be deployed on a wider range of devices, including those with limited resources, and at a fraction of the energy cost. Developers and users can anticipate more powerful AI capabilities becoming available locally, enhancing privacy and reducing reliance on cloud infrastructure for inference.

AI-written summary. May contain errors.

Memory