pytorch - 💡(How to fix) Fix deprecation of derived quantized dtypes (quint8, qint8, qint32) [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

We are deprecating the quantized tensor dtypes (torch.quint8, torch.qint8, torch.qint32) and the functions that produce them (torch.quantize_per_tensor, torch.quantize_per_channel, etc.).

Motivation

The quantized dtypes bundle scale, zero_point, and quantization scheme metadata directly into the tensor. This was an early design choice that has not scaled well — it creates a parallel type system within PyTorch that requires dedicated operator implementations for every quantized op, limits composability with the rest of the ecosystem, and makes it difficult to support new quantization schemes.

The expected path forward is to use basic dtypes from core (e.g. torch.int8, torch.uint8, torch.float8_e4m3fn) and handle how scale, zero_point, and other quantization parameters are calculated and tracked in the modeling code. This approach gives users full control over quantization scheme and parameter management, without requiring modifications to core.

For reference implementations of this pattern, see https://github.com/pytorch/ao.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING