Skip to content

Fix build_mlp() missing name kwarg in custom-pg test - #4954

Draft
factnn wants to merge 2 commits into
NVIDIA:mainfrom
factnn:fix/build-mlp-accept-name-kwarg
Draft

Fix build_mlp() missing name kwarg in custom-pg test#4954
factnn wants to merge 2 commits into
NVIDIA:mainfrom
factnn:fix/build-mlp-accept-name-kwarg

Conversation

@factnn

@factnn factnn commented May 23, 2026

Copy link
Copy Markdown
Contributor

Summary

transformer_layer.py now passes name= to submodules.mlp() (added in #4358), but the test helper build_mlp() in test_transformer_block_custom_pgs.py did not accept it, causing TypeError in all 5 parametrizations.

Changes

  • Add name=None parameter to build_mlp() and suppress it alongside other unused args.

Fixes #4934

@copy-pr-bot

copy-pr-bot Bot commented May 23, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ko3n1g ko3n1g left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@factnn thanks for the contribution! could you also revert ko3n1g@741ae4e with this PR?

@factnn

factnn commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

Done — rebased on latest main and removed the @pytest.mark.flaky_in_dev quarantine from 741ae4e. The PR now fixes the root cause (missing name kwarg) and reverts the temporary marker in a single changeset.

@factnn

factnn commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

@ko3n1g Hi there, I've reverted the flaky marker as you requested. Let me know if you need anything else.

@factnn

factnn commented Jun 14, 2026

Copy link
Copy Markdown
Contributor Author

@ko3n1g Hi, just checking in — the flaky marker has been reverted as you requested. Is there anything else needed? Thanks!

@factnn
factnn force-pushed the fix/build-mlp-accept-name-kwarg branch from daee661 to cf6f3b4 Compare June 17, 2026 10:56
factnn added 2 commits June 17, 2026 19:08
  transformer_layer.py now passes name= to submodules.mlp() (added in NVIDIA#4358), but the test helper build_mlp() did not accept it, causing TypeError in all test_transformer_block_custom_pgs parametrizations.

  Add name=None parameter and suppress it with the other unused args.

  Fixes NVIDIA#4934
Now that the root cause (missing name kwarg) is fixed, remove the emporary flaky_in_dev quarantine added in 741ae4e.
@factnn
factnn force-pushed the fix/build-mlp-accept-name-kwarg branch from cf6f3b4 to 6dd6c5f Compare June 17, 2026 11:08
@factnn

factnn commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

@ko3n1g @NVIDIA/mcore-oncall Hi! This PR has been updated per ko3n1g's review (reverted the flaky marker as requested) and rebased onto latest main. Could someone take a look? Thanks!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 CI failure: build_mlp() got unexpected kwarg 'name' in test_transformer_block_custom_pgs

2 participants