Repository navigation
Update client-server RL, distillation, and checkpoint workflows - #403
Merged
tastelikefeet merged 37 commits intoNov 23, 2026
Merged
Conversation
Keep mock template setup independent of model assets so the sampler smoke tests can run offline.
Migrate the three Blackjack entry points to the session rollout API and document CPU client setup and training output.
Require one Processor replica and close expired Dataset and DataLoader workers. Preserve authentication, session IDs, request IDs, and worker plugin setup. Remove redundant training session lookups and exercise Processor cleanup and both SDKs over HTTP.
…ers-task-head-checkpoint
Poll physical completion outside Serve so long generations cannot block health probes. Settle unfinished tasks by their persisted replica owner after shutdown is confirmed.
Yunnglin
marked this pull request as ready for review
November 20, 2026 09:13
Treat structured terminal 404 responses as settled during scoped close while preserving explicit removal errors and route failures. Pin the verified ModelScope commit response and document cleanup contracts.
3 tasks done
tastelikefeet
approved these changes
Nov 23, 2026
tastelikefeet
approved these changes
Nov 23, 2026
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.
Summary
forward_only, preserve GKD's batched teacher logits over HTTP, and support AdamW on Megatron.stop_trainingand the returned training ID fromdev-swift-v5. Cleanup can retry a lost release response against the same training ID.Server and SDK simplification
The launcher and resource owners now read the worker environment allowlists from one module. The resource options model lives separately. Repository references to the former config module were limited to server internals and tests.
TwinkleClient.dataset()andTwinkleClient.dataloader()use the owning client's transport. Dataset and DataLoader already accept an explicit transport, and the removed RPC helpers served only their shared wrapper. Sampler construction stays guarded because it sends a request. Training model construction is local.The training router delegates Hub uploads to a separate module. Upload and release use the existing background queue. Twinkle and Tinker creation share catalog and rank validation and keep their existing error messages.
Twinkle HTTP calls now use a distinct request ID with a stable client ID. Retries keep their request ID. Adapter ownership and sampling replay prefer the session, then the client ID, then the fixed request ID from older SDKs. The internal
ClientContextfield is nowclient_id. Tinker keeps a static request ID in its default headers.Cookbook server scripts converge on
twinkle-server launch -c. The three Python launchers' remote-code settings move into their YAML files and propagate to Ray workers. Megatron still supervises the same server child PID.Validation
886c655acompleted two optimizer updates with the default sampler configuration, published a changed LoRA, and sampled again using it. The run used Qwen3.5-4B and fixed GSM8K-format inputs.Simplification validation at
325a50077f315a95in the same environment. The Ray Serve CPU probe passed managed HTTP flows for both SDKs, including release and recovery. Ruff passed for the changed server files, while repository-wide lint remains red.Request identity and startup validation at
27a3defeReview follow-up
5c6ca5a9fixes expired training-handle cleanup. Scoped close settles only structured terminal 404 responses and forgets both the local binding and its release closure. Explicit removal still reports the 404, while plain route-not-found responses remain failures and retain retry ownership. This prevents a terminal handle from blocking every subsequent close and leaking the HTTP connection pool without masking an API route mismatch.modelscope-hub==0.7.1created a private repository and uploaded two files successfully. The raw SDK response containedcommit_id, and progress callbacks reported upload and commit events. A contract test now pins that real response shape. The ModelScope entry point also has an explicit dependency guard; the Hugging Face progress limitation andStreamingDriver.close()exception contract are documented.c976a9a1d, based ondev-swift-v5) guards driver cleanup in GRPO, PPO, RFT, distillation, and inference. A close failure no longer masks an in-flight training exception or skips subsequent device reclamation; without a primary exception, close failures still propagate.git diff --checkpassed in both repositories.Supersedes #402.