Repository navigation
[FEA] AI-Search-Plugin: drop-in components for search-agent RL post-training on slime and verl - #539
Merged
Merged
Conversation
Drop-in components that speed up RL post-training of search agents on slime and verl. - README (en, zh): what AI-search post-training is, the multi-turn tool-use family and hard scenarios, components grouped by the problem they solve, speed-ups and where time goes - EXPERIMENTS (en, zh): method, configs, per-pair speed results, health checks, time breakdown, per-workload ablations, training effect (not reviewed), not measured - src/ai_search_plugin: component registry, slime / verl entry points and adapters; 22 components ported, 5 stubs - tests: CPU tests (243 passed, 2 skipped); GPU and integration tests included, not run here - examples: slime and verl launch templates - docs: COMPONENTS.md (switches, measured effect, test coverage), PORTING.md (sources, changes) Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: binc <[email protected]>
Contributor
[Medium impact] The changes affect RL training and rollout workflows only for teams that install and enable this package. The PR is not ready to merge because four earlier blocking findings remain unfixed. Findings
SummaryAdds an opt-in search-agent training plugin for slime and verl, with launch examples, component docs, experiment results, and tests.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A["Choose components"] --> B["Build plan"]
B --> C["Environment and launch arguments"]
C --> D["slime training hooks"]
C --> E["verl external modules"]
D --> F["Selected patches in workers"]
E --> F
C --> G["SGLang startup hooks"]
Reviews (3) · Last reviewed commit: "examples: apply the repository's pre-com..." · Reviewed by Greptile |
Collaborator
|
@cb521 could you add the license? |
Rename docs/PORTING.md to docs/IMPLEMENTATION-NOTES.md and keep what helps a user: scope and naming conventions, components that are not included, test notes and what was not run, components that are present but not registered, and what is left for each stub. Drop the source-repository, branch and commit references and the history of how the code was prepared. Update the links and the stub docstrings that point to it. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: binc <[email protected]>
…-Plugin Run black and isort over the plugin's Python files, rename a few identifiers that codespell reads as typos, add te and retriev to the codespell ignore list (the Transformer Engine value and a tool-name stem), and exclude the plugin from the repository's mypy hook, as sid-gr-inference already is. No change in behaviour; the CPU tests pass. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: binc <[email protected]>
shijieliu
approved these changes
Nov 10, 2026
shijieliu
added a commit
to shijieliu/recsys-examples
that referenced
this pull request
Nov 12, 2026
Merge main up to 476cdc0: NVIDIA#544 and NVIDIA#547 in DynamicEmb; NVIDIA#535, NVIDIA#537, NVIDIA#539 and NVIDIA#540 outside it. - NVIDIA#544 deduplicates int32 keys as int64 in _dedup_indices and returns them in the input's dtype, as this branch did. The merge keeps main's widening (indices_64bit) and drops this branch's copy of it, so the keys are widened once. It keeps this branch's structure: a sharding on the hierarchical dist keeps its unique keys sized on the device, and TorchRec's dists slice them to the count. The docstring says both. - NVIDIA#544 also bucketizes an int32 key as the int64 key of its value. The hierarchical dist's own bucketize still reads a key in its own width; the next commit gives it int32 keys as int64. - DynamicEmb_APIs.md: main's paragraph on how the rules read a key, then this branch's line that the hierarchical dist takes roundrobin and hash_roundrobin only. - test_sequence_embedding_fw.py and test_twin_module.py: main's int32 runs (NVIDIA#544) and no-grad forward (NVIDIA#547), with this branch's checks that a sharding took the dist it was given (check_path, check_totals). - NVIDIA#547 (a no-grad training forward releases its slot pins, after refreshing its slots past a rehash) merges without conflicts next to this branch's row map and load_from_flat_by. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 12, 2026
Merged
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
Adds
examples/AI-Search-Plugin, an installable package of opt-in components that speed up RL post-training of search agents (AI search / deep research) on existing RL frameworks (slime, verl), plus documentation of where the time goes.What's in it
src/ai_search_plugin/: component registry and slime / verl entry points. 22 components ported, 5 registered as stubs (documented indocs/PORTING.md). Every component is opt-in;ai-search-plugin listshows switches, defaults and status. No hard runtime dependencies (torch / slime / verl / SGLang / Megatron are imported lazily).README.md/README.zh-CN.md: what AI-search post-training is, the multi-turn tool-use family and hard scenarios, components grouped by the problem they solve, results.EXPERIMENTS.md/EXPERIMENTS.zh-CN.md: method, configs, per-pair speed results, health checks, per-stage time breakdown, per-workload component ablations.docs/COMPONENTS.md,docs/PORTING.md,examples/{slime,verl}/launch templates,tests/.Results (same training, against each framework's fastest config we found that keeps samples at most 2 steps stale; same node, both orders, health-checked on both sides, independently reviewed):
Caveats are listed in the README and EXPERIMENTS (e.g. the Qwen3-Next row covers one simulated-search scenario).
Limitations
tests/gpu/) and the Ray integration test (tests/integration/) are included but were not run.Checklist
🤖 Generated with Claude Code