Skip to content

test: add offload_train_target to the actor-factory args stub - #1834

Merged
Zhichenzzz merged 1 commit into
mainfrom
tao/fix-actor-factory-test-offload-target
Jul 28, 2026
Merged

test: add offload_train_target to the actor-factory args stub#1834
Zhichenzzz merged 1 commit into
mainfrom
tao/fix-actor-factory-test-offload-target

Conversation

@nblintao

@nblintao nblintao commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

test_megatron_offload_uses_torch_memory_saver_preload_resolver fails on any branch cut from current main:

AttributeError: 'types.SimpleNamespace' object has no attribute 'offload_train_target'

The test arrived in #1469 with a SimpleNamespace args stub that lacks offload_train_target, which the megatron offload path of allocate_gpus_for_actor has read since #1575. Post-merge main does not run the test matrix, so this only surfaces on new PRs (first seen on #1833, a docs-only change).

One-line fix: set offload_train_target="cpu" (the CLI default), which matches the TMS_INIT_ENABLE_CPU_BACKUP == "1" assertion the test already makes.

🤖 Generated with Claude Code

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

The test arrived in #1469 with a SimpleNamespace args stub that lacks
offload_train_target, which the megatron offload path of
allocate_gpus_for_actor has read since #1575 — so the test fails with
AttributeError on any branch cut from current main. Set the attribute to
the CLI default (cpu), matching the TMS_INIT_ENABLE_CPU_BACKUP=1 assertion
the test already makes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@nblintao
nblintao force-pushed the tao/fix-actor-factory-test-offload-target branch from 289a97c to 1536c21 Compare July 28, 2026 05:17
@nblintao
nblintao requested a review from Zhichenzzz July 28, 2026 05:18
@Zhichenzzz
Zhichenzzz merged commit b2ada47 into main Jul 28, 2026
20 checks passed
@Zhichenzzz
Zhichenzzz deleted the tao/fix-actor-factory-test-offload-target branch July 28, 2026 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants