$npx skillfedfor your agent

optimum-quanto

A pytorch quantization backend for optimum.

With conditionsPyPI Artificial IntelligenceReleased Mar 2025292.5K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — optimum_quanto-0.2.7-py3-none-any.whl
v0.2.7 · released 2025-03-06 · Python >=3.9.0 · 5 runtime deps: torch, ninja, numpy, safetensors, huggingface_hub

Yes, if you need to quantize PyTorch models for inference efficiency. The package is actively maintained, has no known vulnerabilities, and offers both high-level integration and low-level control. Install with caution if you depend on torch.compile or require production-grade stability—it is pre-alpha and some features remain unimplemented.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires torch, ninja, numpy, safetensors, and huggingface_hub as runtime dependencies; Python 3.9 or later.
  • Low friction installation as a pure Python wheel.
  • Actively maintained with recent commits and a stable release cadence; marked pre-alpha but in active development with no known vulnerabilities.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

last release 2025-03-06 (526 days) · last repo commit 2026-08-04 · 1,053 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 292,491 downloads/mo, #7,963 on PyPI

Verify before relying

pip install optimum-quanto

from optimum.quanto import quantize, qint8
import torch

model = torch.nn.Linear(10, 10)
quantize(model, weights=qint8, activations=qint8)
  • Whether accelerated kernels are available for all target hardware (CUDA, MPS, CPU) or only a subset.
  • Actual inference latency overhead compared to full-precision models on different hardware.
  • Compatibility with torch.compile and whether that feature is production-ready.
  • Support for quantization-aware training workflows and convergence behavior.
Same gist for agents: .md · .json

What it is and what it does

Optimum Quanto is a PyTorch quantization backend that converts trained models to lower-precision representations—int2, int4, int8, or float8 for weights and activations—to reduce memory footprint and accelerate inference. It integrates with the optimum framework, offering both high-level APIs and a low-level API for vanilla PyTorch models. The package supports a full workflow: quantize a model, optionally calibrate activations on representative data, fine-tune if needed, freeze weights to integer values, and serialize using safetensors or pickle.

Designed for eager-mode execution (works with non-traceable models), Quanto automatically inserts quantization stubs and operations into the model graph. It supports mixed-precision matrix multiplications on CUDA (int8-int8, fp16-int4, bf16-int8, bf16-int4) and aims for accuracy comparable to full-precision models when using int8 or float8 weights with float8 activations. The package is actively maintained but still pre-alpha; torch.compiler compatibility and dynamic activation smoothing are listed as not yet implemented.

Use it for

  • Quantize large models to int4 or int8 to reduce memory requirements and fit models on resource-constrained devices.
  • Compress model transformers to float8 for faster inference while preserving accuracy.
  • Calibrate and fine-tune quantized models on representative data to recover accuracy lost during quantization.
  • Serialize quantized model weights to safetensors format for efficient storage and distribution.
  • Deploy quantized models by reducing memory footprint and leveraging accelerated kernels on CUDA.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to quantize PyTorch models for inference efficiency.

The package is actively maintained, has no known vulnerabilities, and offers both high-level integration and low-level control. Install with caution if you depend on torch.compile or require production-grade stability—it is pre-alpha and some features remain unimplemented.

Install

optimum-quanto on PyPI

Before you install

Low friction installation as a pure Python wheel. Actively maintained with recent commits and a stable release cadence; marked pre-alpha but in active development with no known vulnerabilities.

Requires torch, ninja, numpy, safetensors, and huggingface_hub as runtime dependencies; Python 3.9 or later.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

Quickstart

pip install optimum-quanto

from optimum.quanto import quantize, qint8
import torch

model = torch.nn.Linear(10, 10)
quantize(model, weights=qint8, activations=qint8)

Verify before relying

  • Whether accelerated kernels are available for all target hardware (CUDA, MPS, CPU) or only a subset.
  • Actual inference latency overhead compared to full-precision models on different hardware.
  • Compatibility with torch.compile and whether that feature is production-ready.
  • Support for quantization-aware training workflows and convergence behavior.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.9.0
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
torchninjanumpysafetensorshuggingface_hub
MaintenanceActively maintained 526 days since the last release
Last repo commit
First released
Downloads292,491 / month, #7,963 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 2 - Pre-AlphaIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: Artificial Intelligence

Evidence: optimum_quanto-0.2.7-py3-none-any.whl

Tags

Capabilities
pytorch model quantizationreduce model size int8 int4weight quantization pytorchmodel compression quantizationfloat8 quantization pytorchinference optimization quantizationquantized model serialization
Topics
model-compressionquantizationinference-optimization
PyPI keywords
torchquantization

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “pytorch model quantization”

  • optimum-quantoA PyTorch quantization backend that reduces model size and memory by…
  • diffqDiffQ performs differentiable quantization of PyTorch models using…
  • torchaoTorchAO applies quantization and sparsity techniques to PyTorch…

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also torchao · ai-edge-quantizer · optimum · aqtp · diffq · optimum-intel · qonnx · comfy-kitchen · optimum-onnx · nvidia-modelopt

Further reading