Skip to content

Conversation

AlexanderDokuchaev
Copy link
Collaborator

@AlexanderDokuchaev AlexanderDokuchaev commented Oct 17, 2025

Changes

  • Updated torch to version 2.9.0 and torchvision to version 0.24.0
    • some examples still used 2.8.0 until update optimum
    from torch.onnx.symbolic_opset14 import (  # noqa: E402
ImportError: cannot import name '_attention_scale' from 'torch.onnx.symbolic_opset14' (/tmp/pytest-of-runner/pytest-0/test_examples_llm_compression_0/venv/lib/python3.10/site-packages/torch/onnx/symbolic_opset14.py)
  • Set dynamo=False in all calls to torch.onnx.export throughout the codebase and tests to ensure compatibility with PyTorch 2.9.0 and work around issues with the ultralytics library.

  • Applied a workaround in scripts using ultralytics to set the default value for the dynamo parameter in torch.onnx.export, with a TODO to remove after upstream fixes.

  • Use check_guards=False for FX model to no add extra function to model

  • Update referenced FX graphs, in reason of fused slice and select operations

Tests

manual/job/post_training_quantization/738/
https://github.com/openvinotoolkit/nncf/actions/runs/18719524116
https://github.com/openvinotoolkit/nncf/actions/runs/18720059603
nightly/job/torch_nightly/687/

@github-actions github-actions bot added NNCF PT Pull requests that updates NNCF PyTorch NNCF OpenVINO Pull requests that updates NNCF OpenVINO NNCF ONNX Pull requests that updates NNCF ONNX NNCF PTQ Pull requests that updates NNCF PTQ labels Oct 19, 2025
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Oct 19, 2025
@AlexanderDokuchaev AlexanderDokuchaev marked this pull request as ready for review October 22, 2025 19:03
@AlexanderDokuchaev AlexanderDokuchaev requested a review from a team as a code owner October 22, 2025 19:03
@MaximProshin
Copy link
Collaborator

@andrey-churkin , please also review onnx related changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation NNCF ONNX Pull requests that updates NNCF ONNX NNCF OpenVINO Pull requests that updates NNCF OpenVINO 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.

5 participants