Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Conformance][TorchFX] GPU quantization support #3010

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

daniil-lyakhov
Copy link
Collaborator

@daniil-lyakhov daniil-lyakhov commented Oct 11, 2024

Changes

  • --validate-in-backend CLI option is added
  • CUDA_FX_TORCH backend is added to conformance test
  • FXSQMultiply is updated to work on both CPU and GPU

Tests

Local run:

Model Backend Metric name Metric value Metric diff Num FQ Num int4 Num int8 Compr. time Total time RAM MiB Status Build url
torchvision/resnet18 CUDA_FX_TORCH Acc@1 0.6942 -0.0036 30 0 21 0:00:02 0:04:14 1560
torchvision/swin_v2_s CUDA_FX_TORCH Acc@1 0.83572 -0.0014 149 0 101 0:00:55 0:17:24 3161
torchvision/vit_b_16 CUDA_FX_TORCH Acc@1 0.80962 -0.00108 62 0 50 0:00:19 0:13:39 2876
torchvision/mobilenet_v3_small_BC CUDA_FX_TORCH Acc@1 0.66642 -0.01018 61 0 36 0:00:05 0:04:09 1653

@github-actions github-actions bot added the NNCF PTQ Pull requests that updates NNCF PTQ label Oct 11, 2024
@daniil-lyakhov daniil-lyakhov force-pushed the dl/fx/gpu_conformance branch 3 times, most recently from 26b8d94 to af1bc81 Compare October 11, 2024 15:48
@daniil-lyakhov daniil-lyakhov marked this pull request as ready for review October 14, 2024 09:26
@daniil-lyakhov daniil-lyakhov requested a review from a team as a code owner October 14, 2024 09:26
Copy link
Contributor

@alexsu52 alexsu52 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@daniil-lyakhov

This comment was marked as outdated.

@github-actions github-actions bot added NNCF PT Pull requests that updates NNCF PyTorch experimental labels Nov 27, 2024
@daniil-lyakhov daniil-lyakhov force-pushed the dl/fx/gpu_conformance branch 2 times, most recently from 290700c to 92ebbf2 Compare November 27, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experimental NNCF PT Pull requests that updates NNCF PyTorch NNCF PTQ Pull requests that updates NNCF PTQ
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants