Skip to content

Conversation

@HollowMan6
Copy link
Contributor

What does this PR do ?

So that downstream project can have more control over this.

If None, it will be determined by the default behavior (arbitrary only when context_parallel==1). We will need to set to False when using packed/remove-padding (THD) data format.

Changelog

  • Add use_arbitrary_attention_mask config to GPTModelProvider.

GitHub Actions CI

See the CI sectionin the Contributing doc for how to trigger the CI. A Nvidia developer will need to approve and trigger the CI for external contributors.

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you add or update any necessary documentation?
  • Does the PR affect components that are optional to install? (Ex: Numba, Pynini, Apex etc)
    • Reviewer: Does the PR have correct import guards for all optional libraries?

If you haven't finished some of the above items you can still open "Draft" PR.

Additional Information

  • Related to # (issue)

So that downstream project can have more control over this.

If None, it will be determined by the default behavior (arbitrary only when context_parallel==1).
We will need to set to False when using packed/remove-padding (THD) data format.

Signed-off-by: Hollow Man <[email protected]>
@copy-pr-bot
Copy link

copy-pr-bot bot commented Dec 24, 2025

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.

@yaoyu-33
Copy link
Contributor

/ok to test 839ed99

@yaoyu-33 yaoyu-33 merged commit c16fb2b into NVIDIA-NeMo:main Jan 2, 2026
49 checks passed
@HollowMan6 HollowMan6 deleted the use_arbitrary_attention_mask branch January 2, 2026 18:02
HollowMan6 added a commit to HollowMan6/Megatron-Bridge that referenced this pull request Jan 4, 2026
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.

2 participants