disagg
Routes LightX2V disaggregated deployment workflows for the controller, encoder, transformer, and decoder services.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- disagg
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Routes LightX2V disaggregated deployment workflows for the controller, encoder, transformer, and decoder services.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/topology.md1.9 KB
- 参考文档references/troubleshooting.md2.4 KB
- 参考文档references/workflows.md3.1 KB
- 脚本scripts/plan_launch.py3.7 KB
03 SKILL.md 正文
Disaggregated deployment
Use this sub-skill for the multi-process LightX2V deployment stack that splits work across controller, encoder, transformer, and decoder roles.
Typical triggers
- "run the disaggregated LightX2V stack"
- "launch controller / encoder / transformer / decoder"
- "debug Mooncake, RDMA, or ZMQ setup"
- "single-node versus multi-node disaggregation"
- "understand
run_dynamic.shorrun_baseline.sh"
Read first
references/workflows.mdfor the launch patterns and the role-by-role command flow.references/topology.mdfor the service roles, ports, and config fields that control placement.references/troubleshooting.mdfor port, backend, and world-size failures.../../references/troubleshooting.mdfor cross-cutting import and dependency failures.
What belongs here
Include:
python -m lightx2v.disagg.examples.run_servicepython -m lightx2v.disagg.examples.run_controllerpython -m lightx2v.disagg.examples.run_user- controller / encoder / transformer / decoder role planning
- dynamic and baseline disagg launch patterns
- Mooncake / RDMA / ZMQ transport notes
- single-node and multi-node deployment guidance
- request routing, stage metrics, and service topology
Exclude or route elsewhere:
- direct local generation →
sub-skills/inference/ - HTTP server and queue management →
sub-skills/serving/ - checkpoint surgery or conversion →
sub-skills/conversion/
Safe starting checks
python scripts/check_install.pypython sub-skills/disagg/scripts/plan_launch.py --config_json /path/to/config.jsonpython -m lightx2v.disagg.examples.run_service --helppython -m lightx2v.disagg.examples.run_controller --helppython -m lightx2v.disagg.examples.run_user --help
Guidance style
For disaggregated deployment questions, always identify:
- the service role
- the topology (
single_nodeormulti_node) - the config file that determines the role map
- the ports or addresses that the role must bind
- whether the workflow uses the package entry point directly or a shell launcher
Decision points
When helping with disaggregated deployment, resolve these questions first:
- topology:
single_nodeormulti_node - scope: controller-only planning, individual worker startup, or a full role set
- config source: the disagg JSON that declares the role map and transport settings
- transport: whether the run depends on ZMQ, RDMA, Mooncake, or a simpler local path
- execution mode: a shell launcher, a package entry point, or a safe command plan only
Common reminders:
- the controller, encoder, transformer, and decoder all have distinct responsibilities
- the rank and port plan must match the config file and the number of visible GPUs
- the planner helper is the safe way to inspect a deployment before starting processes
run_dynamic.shandrun_baseline.share documented mainly as launch patterns, not as direct bundled runtime code- if transport or bind failures appear, check stale processes and port collisions before changing the model config
What a good answer should contain
For a future agent, a strong answer from this route should usually include:
- the topology and the service role(s)
- the config file that defines the role map
- the ports, addresses, or bootstrap values that matter
- the launch order and whether a shell wrapper or package entry point is better
- any transport note about ZMQ, RDMA, or Mooncake prerequisites
If the user only wants the command plan, use the bundled planner helper. If they want the actual deployment sequence, read the workflow reference and then answer with the exact role-by-role launch order.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).