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

[TorchFX] YoloV11 support #3105

Merged

Conversation

daniil-lyakhov
Copy link
Collaborator

@daniil-lyakhov daniil-lyakhov commented Nov 21, 2024

Changes

  • Torch SDPA pattern is updated
  • As the concat node has his input nodes in format args=([inp_1, ..., inp_n], dim), thus it should be treated differently. Retrieving concat inputs by input port id was supported in each TorchFX transformation

Reason for changes

  • To support quantization of ultralytics/yolo11n in TorchFX backend

Related tickets

#2766
157032

Tests

  • tests/torch/fx/test_model_transformer.py and tests/torch/fx/test_compress_weights.py are updated to check all cases with the concat node. All .dot / .json were checked manually.
  • tests/torch/fx/test_models.py is updated with YOLO11N_SDPABlock synthetic model to check the correctness of SDPA pattern matching

@github-actions github-actions bot added NNCF PT Pull requests that updates NNCF PyTorch experimental labels Nov 21, 2024
@daniil-lyakhov daniil-lyakhov changed the title [WIP][TorchFX] YoloV11 support [TorchFX] YoloV11 support Nov 22, 2024
@daniil-lyakhov daniil-lyakhov marked this pull request as ready for review November 22, 2024 16:27
@daniil-lyakhov daniil-lyakhov requested a review from a team as a code owner November 22, 2024 16:27
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

@alexsu52 alexsu52 merged commit 7ea17f2 into openvinotoolkit:develop Nov 25, 2024
14 checks passed
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants