Skip to content

tinker seam: unpack get_rollout_data tuple in fb-only/forward paths - #4

Merged
GavinZhu-GMI merged 1 commit into
mainfrom
fix/tinker-seam-store-get-result
Jul 30, 2026
Merged

GavinZhu-GMI merged 1 commit into
mainfrom
fix/tinker-seam-store-get-result

Conversation

@GavinZhu-GMI

Copy link
Copy Markdown
Owner

Upstream changed get_rollout_data to return (RolloutBatch, ObjectStoreGetResult); the seam's forward_backward_only and forward_logprobs (rebased in #3) still bound the tuple, so every fb call failed in get_data_iterator (AttributeError: 'tuple' object has no attribute 'get').

Fix: unpack, and hold the release context for the duration of data use, mirroring train().

Validated on 4xH200 (DP=4, Qwen2.5-0.5B LoRA r32): grad-accum split-invariance ratio exactly 1.0 — grad_norm bit-identical (178.9398358212894) for 1xfb(8) vs 2xfb(4) + step, and across reruns.

Merge via rebase-merge to keep main linear.

Upstream changed get_rollout_data to return (RolloutBatch,
ObjectStoreGetResult); the seam's forward_backward_only and
forward_logprobs still bound the tuple, so every call failed in
get_data_iterator. Unpack and hold the release context for the
duration of data use, mirroring train().
@GavinZhu-GMI
GavinZhu-GMI merged commit 75e11f5 into main Jul 30, 2026
25 of 36 checks passed
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.

1 participant