Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

mx check: add a per-element bound like check_quant's

未關閉
#4 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
58/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
python

研究方向

Find the implementation of check_mx and the existing check_quant per-element bound, including how viol_frac handles affine quantization. Start by tracing how check_mx obtains each group’s E8M0 scale and applies its current error-ratio and rank-1 checks. Add a count for elements beyond half a step, using one step at the clipped edge, and check the affected cases against the reported clean and edited matrices.

由索引模型根據 Issue 內容生成。

描述

From the review of https://github.com/STRML/quantdiff/pull/1 (P2). check_mx judges an mxfp8/mxfp4 tensor on its error ratio and one-direction share only. Against a bf16 upstream, a sparse edit can stay under 1.5x the error norm, and its rank-1 share fades on large matrices: on a 64x256 matrix, 1 and 8 edited elements tripped only the rank-1 test (30% and 13% against 3% clean). The mx step is known from each group's E8M0 scale, so an element past half a step (one step at the clipped edge) can be counted the way `viol_frac" does for affine quants. FP8-to-mxfp8 and FP4-to-mxfp4 are unaffected: any difference already flags.

主要語言
Python
星號
0
分支
0
平均合併
5 分鐘
30 天內合併 PR
3

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

STRML/quantdiff 的其他 Issue

查看 STRML/quantdiff 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。