Skip to content

[misc] chore: add NVIDIA copyright headers to four package __init__.py files#3649

Merged
yaoyu-33 merged 2 commits intoNVIDIA-NeMo:mainfrom
lonexreb:chore/copyright-headers-init-files
May 5, 2026
Merged

[misc] chore: add NVIDIA copyright headers to four package __init__.py files#3649
yaoyu-33 merged 2 commits intoNVIDIA-NeMo:mainfrom
lonexreb:chore/copyright-headers-init-files

Conversation

@lonexreb
Copy link
Copy Markdown
Contributor

@lonexreb lonexreb commented May 4, 2026

Summary

CLAUDE.md and CONTRIBUTING.md both require NVIDIA Apache 2.0 copyright headers on all NVIDIA-authored Python files ("Add NVIDIA copyright headers to new Python files (except under tests/)"). The dominant convention in the tree is to include them — 72 of the 96 __init__.py files under src/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:

File Lines Content
src/megatron/bridge/recipes/kimi_vl/__init__.py 6 re-exports kimi_k25_vl_sft_config
src/megatron/bridge/recipes/deepseek/__init__.py 27 docstring + re-exports for V2 / V2-Lite / V3
src/megatron/bridge/models/glm_vl/__init__.py 10 re-exports GLM45VModel, GLM45VBridge, GLM45VModelProvider
src/megatron/bridge/models/nemotron_vl/__init__.py 14 docstring + re-exports for NemotronVLModel and friends

Total 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__.py files (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 ast parse of changed files
  • ruff check clean on the 4 files
  • ruff format --check clean on the 4 files
  • Diff is header-only — no functional change
  • CI: pre-commit hooks should pass (no new lint warnings)

Risk

Zero. Header-only addition. No code logic, no imports, no public API touched.

Notes for reviewers

  • I used the year 2026 to match other newly-added files in the tree (e.g. src/megatron/bridge/recipes/kimi_vl/kimi_k25_vl.py already has Copyright (c) 2026, NVIDIA CORPORATION). Happy to switch to 2025 if the project prefers that on backfilled headers.
  • Found this gap while auditing my own recent PRs — the broader __init__.py header inconsistency was a surprise.

…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]>
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented May 4, 2026

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.

@cuichenx cuichenx added the docs-only With great power comes great responsibility. label May 5, 2026
@cuichenx
Copy link
Copy Markdown
Contributor

cuichenx commented May 5, 2026

/ok to test 50952c2

@cuichenx cuichenx added the ready-to-merge PR is approved, current, and only waiting for CI to pass before merge label May 5, 2026
@yaoyu-33 yaoyu-33 merged commit fb11bb5 into NVIDIA-NeMo:main May 5, 2026
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-request docs-only With great power comes great responsibility. ready-to-merge PR is approved, current, and only waiting for CI to pass before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants