Skip to content

[release/2.8][pt2e] Pytorch 2.8 rc3 int8 accuracy is much lower than 2.7.1 #1801

@mengfei25

Description

@mengfei25

🐛 Describe the bug

Tested PT2E with pytorch 2.8 rc3, mobilenet_v3_large int8 accuracy is much lower than 2.7.1.

pytorch model dtype acc@1 acc@5
v2.8.0-rc3 mobilenet_v3_large int8: 67.378 88
v2.7.1 mobilenet_v3_large int8: 69.236 88.944

Reproducer

# setup python env
pip install --pre torch==2.8.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/test/xpu

git clone -b main https://github.com/chuanqi129/inductor-tools pt2e-accuracy
python pt2e-accuracy/scripts/modelbench/quant/inductor_quant_acc.py \
        --model-list mobilenet_v3_large  --device xpu --dataset_dir /path/to/imagenet

Versions

Device: PVC 1100
Driver: Rolling 25.13.33276
IGC: 2.10.11-1133~22.04
L0: 1.21.1.0-1123~22.04
Pytorch: v2.8.0-rc3

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions