[misc] chore: add NVIDIA copyright headers to four package __init__.py files#3649
Merged
yaoyu-33 merged 2 commits intoNVIDIA-NeMo:mainfrom May 5, 2026
Merged
Conversation
…y files CLAUDE.md and CONTRIBUTING.md require NVIDIA Apache 2.0 copyright headers on all NVIDIA-authored Python files. The dominant convention in the tree is to include them: 72 of the 96 `__init__.py` files under `src/megatron/bridge/` already have headers. Four package init files with non-trivial content (re-exports plus docstrings) were missing them: - src/megatron/bridge/recipes/kimi_vl/__init__.py - src/megatron/bridge/recipes/deepseek/__init__.py - src/megatron/bridge/models/glm_vl/__init__.py - src/megatron/bridge/models/nemotron_vl/__init__.py Add the standard header (matches the wording used elsewhere in the project). All four are clearly NVIDIA-authored — they re-export Bridge-internal classes/functions and contain no vendored content. No functional change. Empty `__init__.py` files in the same audit are intentionally left untouched in this PR to keep the diff narrow and reviewer-friendly; a maintainer can decide whether to backfill those in a separate sweep. Signed-off-by: lonexreb <[email protected]>
cuichenx
approved these changes
May 5, 2026
Contributor
|
/ok to test 50952c2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CLAUDE.mdandCONTRIBUTING.mdboth require NVIDIA Apache 2.0 copyright headers on all NVIDIA-authored Python files ("Add NVIDIA copyright headers to new Python files (except undertests/)"). The dominant convention in the tree is to include them — 72 of the 96__init__.pyfiles undersrc/megatron/bridge/already have headers.This PR backfills four package init files with non-trivial content (re-exports plus docstrings) that were missing the header:
src/megatron/bridge/recipes/kimi_vl/__init__.pykimi_k25_vl_sft_configsrc/megatron/bridge/recipes/deepseek/__init__.pysrc/megatron/bridge/models/glm_vl/__init__.pyGLM45VModel,GLM45VBridge,GLM45VModelProvidersrc/megatron/bridge/models/nemotron_vl/__init__.pyNemotronVLModeland friendsTotal diff: +56 / -0 lines, 4 files. All header content is identical to the standard wording used elsewhere in the project. All four files are clearly NVIDIA-authored — they only re-export Bridge-internal classes/functions and contain no vendored content.
Scope
I deliberately left the empty
__init__.pyfiles (no real code) untouched in this PR — those are also missing headers but the diff would balloon to ~24 files for purely-empty placeholder modules. A maintainer can decide whether to backfill those in a separate sweep; this PR keeps the change narrow and reviewer-friendly.Test plan
python3 -m astparse of changed filesruff checkclean on the 4 filesruff format --checkclean on the 4 filesRisk
Zero. Header-only addition. No code logic, no imports, no public API touched.
Notes for reviewers
2026to match other newly-added files in the tree (e.g.src/megatron/bridge/recipes/kimi_vl/kimi_k25_vl.pyalready hasCopyright (c) 2026, NVIDIA CORPORATION). Happy to switch to2025if the project prefers that on backfilled headers.__init__.pyheader inconsistency was a surprise.