Conversation
This has been tested uptil 3 steps on DeepSWE workflows and seems to be working fine. This is very useful to rule out issues with Raiden. I will also try to follow up with chanages that add a single host based weight sync on lustre.
niting
requested review from
abheesht17,
hgao327,
jiangyangmu,
lc5211,
s-noghabi,
sizhit2,
tianshub and
wang2yn84
as code owners
September 18, 2026 19:33
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.
Description
This change introduces a GCS and shared-filesystem based weight synchronization transport (
GcsSyncHandler/FilesystemSyncHandler) to Tunix as an alternative/fallback to Raiden.Motivation
Raiden P2P weight sync can encounter issues with C++ FFI compatibility, complex mesh geometries, and timing drift across slices. This change provides a reliable, decoupled checkpoint-based weight sync mechanism that works over GCS and shared/parallel filesystems (e.g. Lustre / Parallelstore).
Key Changes
gcs_weight_sync.py: AddedGcsSyncHandler(implementingWeightSyncHandler),apply_checkpoint_to_runner(restoring via Orbax and patching runner state in-place), and monkey-patching forTPUWorker(load_gcs_weights/load_filesystem_weights).weight_sync.py&weight_sync_coordinator.py:WeightSyncMode.GCS = "gcs"and alias support forfilesystem.create_default_handlerto constructGcsSyncHandler.checkpoint_paththroughextra_configintoWeightSyncRequest.needs_manifest_preflightflag to bypass P2P manifest checks for checkpoint sync.VllmSamplerAdapterandRLVllmSamplerV2to load weights viaload_gcs_weights/load_filesystem_weightsinweight_sync().--weight_sync_modeflag torun_trainer_node.py,run_rollout_node.py, andk8s_launcher.sh.tests/experimental/weight_sync/gcs_weight_sync_test.py,tests/experimental/weight_sync/weight_sync_coordinator_test.py, andtests/experimental/rollout/vllm_sampler_adapter_test.py.Verification