Skip to content

[Dev] Fix TE version check for retain_pinned_cpu_buffers in cpu offload - #4266

Merged
BestJuly merged 1 commit into
NVIDIA:devfrom
BestJuly:lit/fix_te_version_for_cpu_offload
Apr 13, 2026
Merged

[Dev] Fix TE version check for retain_pinned_cpu_buffers in cpu offload#4266
BestJuly merged 1 commit into
NVIDIA:devfrom
BestJuly:lit/fix_te_version_for_cpu_offload

Conversation

@BestJuly

@BestJuly BestJuly commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix incorrect TransformerEngine version gate for retain_pinned_cpu_buffers parameter in get_cpu_offload_context
  • The retain_pinned_cpu_buffers parameter was added in TE v2.10 ([PyTorch] Activation offloading refactor TransformerEngine#1762), but the version check was gating on 2.5.0, causing a TypeError for TE 2.5–2.9 users
  • Add an intermediate branch for TE 2.5–2.9 that passes double_buffering but not retain_pinned_cpu_buffers
  • PR for main branch.

🤖 Generated with Claude Code

The retain_pinned_cpu_buffers parameter was added to TransformerEngine's
get_cpu_offload_context in TE v2.10 (PR NVIDIA#1762), not v2.5. The previous
version gate of 2.5.0 caused a TypeError for users running TE 2.5-2.9.

Add an intermediate branch for TE 2.5-2.9 that passes double_buffering
but not retain_pinned_cpu_buffers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@BestJuly
BestJuly requested review from a team as code owners April 13, 2026 05:47
@svcnvidia-nemo-ci svcnvidia-nemo-ci added this to the Core 0.16 milestone Apr 13, 2026
@BestJuly BestJuly added the dev branch Dev branch related issues and development label Apr 13, 2026
@BestJuly BestJuly changed the title Fix TE version check for retain_pinned_cpu_buffers in cpu offload [Dev] Fix TE version check for retain_pinned_cpu_buffers in cpu offload Apr 13, 2026
@BestJuly
BestJuly added this pull request to the merge queue Apr 13, 2026
@svcnvidia-nemo-ci

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started!

You can track the progress here: https://github.com/NVIDIA/Megatron-LM/actions/runs/24337367933

Merged via the queue into NVIDIA:dev with commit 1fc9200 Apr 13, 2026
62 of 63 checks passed
@BestJuly
BestJuly deleted the lit/fix_te_version_for_cpu_offload branch April 13, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev branch Dev branch related issues and development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants