Skip to content

Refactor module access to use PyTorch get_submodule / set_submodule#1590

Open
scopophobic wants to merge 3 commits intointel:mainfrom
scopophobic:refactor/use-torch-submodule-api-clean
Open

Refactor module access to use PyTorch get_submodule / set_submodule#1590
scopophobic wants to merge 3 commits intointel:mainfrom
scopophobic:refactor/use-torch-submodule-api-clean

Conversation

@scopophobic
Copy link
Contributor

@xin3he
Refactor module access to use PyTorch get_submodule / set_submodule for exact dotted module paths, while preserving prior “missing path should not crash” behavior by catching AttributeError/KeyError. This avoids CI failures caused by optional/missing submodules in some model variants.

Note: This is a new PR because I accidentally closed the previous one while iterating on the fix.

Type of Change: Bug fix / Refactor.

Copy link
Contributor

@xin3he xin3he left a comment

Choose a reason for hiding this comment

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

Thank you, @scopophobic LGTM.

@xin3he xin3he requested a review from n1ck-guo March 23, 2026 05:09
@xin3he
Copy link
Contributor

xin3he commented Mar 23, 2026

/azp run Unit-Test-CUDA-AutoRound

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xin3he
Copy link
Contributor

xin3he commented Mar 23, 2026

@XuehaoSun Please help fix this CI issue.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants