FujitsuResearch/OneCompression

Python package for LLM compression

What it solves

Large language models (LLMs) take up a lot of memory and are slow to run on common hardware. OneComp shrinks these models through compression, so they fit on smaller GPUs or even CPU-only machines without losing too much accuracy.

How it works

You run a single command (or a Python call) with the name of a Hugging Face model. OneComp automatically detects your GPU's available memory, picks the best number of bits for each layer of the network, quantizes (reduces numerical precision) the weights, corrects errors introduced during quantization, evaluates the result, and saves the compressed model. If you need more control, it offers several advanced quantization methods: QEP propagates quantization errors to later layers, LPCD coordinates layer-wise adjustments, AutoBit assigns mixed precision per layer, JointQ optimizes weights and scales together, and MDBF can compress even below 1 bit per weight. After quantization, you can optionally refine the model with block-wise or global post-processing, fine-tune the routing of mixture-of-experts models, or use LoRA adapters to recover accuracy. The tool can also rotate weights beforehand to reduce error, export to GGUF for llama.cpp/Ollama, or export to OpenVINO, and it integrates with vLLM for serving.

Who it's for

This is for researchers, developers, and engineers who need to deploy LLMs on limited hardware, serve them efficiently, or experiment with state-of-the-art compression techniques. It works on CPU-only machines, NVIDIA GPUs (with CUDA), and Apple silicon (MPS), and supports single-GPU as well as multi-GPU setups for advanced fine-tuning.

Highlights

  • One-line automatic compression: detects VRAM, selects per-layer bit-widths, quantizes, evaluates, and saves.
  • Multiple cutting-edge quantization methods: QEP, LPCD, AutoBit, JointQ, MDBF, and more.
  • Post-quantization refinements: block-wise PTQ, global PTQ, router fine-tuning for MoE models, and LoRA SFT.
  • Verified support for Llama, Qwen3, Gemma, and GPT-OSS model families.
  • Exports to GGUF (for llama.cpp/Ollama) and OpenVINO for flexible deployment.
  • Integration with vLLM for serving and Open WebUI for a ChatGPT-like chat experience.
  • Web dashboard for launching quantization jobs in HPC environments.

Related

  • Project
  • Project
  • Project
  • Project
  • Project