light-x2v
Routes LightX2V generation, serving, disaggregation, and weight-preparation workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- light-x2v
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Routes LightX2V generation, serving, disaggregation, and weight-preparation workflows.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/overview.md2.4 KB
- 参考文档references/repo-provenance.md1.6 KB
- 参考文档references/repo-routing-metadata.json502 B
- 参考文档references/troubleshooting.md8.0 KB
- 脚本scripts/check_install.py2.5 KB
- 脚本scripts/setup_env.sh2.0 KB
03 SKILL.md 正文
LightX2V
LightX2V is a lightweight image/video generation framework with direct Python pipelines, a CLI entry point, a FastAPI service layer, and disaggregated multi-process deployment helpers.
Use this skill when a request mentions LightX2V, LightX2VPipeline, python -m lightx2v.infer, python -m lightx2v.server, python -m lightx2v.disagg.*, LoRA preparation, quantized checkpoints, or a LightX2V model family such as Wan, Qwen Image, HunyuanVideo, LTX, MiniMax-H3, WorldMirror, WorldPlay, or SeedVR.
Start here
- Read
references/overview.mdfor the high-level model-family map and the major workflow surfaces. - Read
references/troubleshooting.mdbefore debugging imports, optional backends, server startup, or weight-conversion failures. - Read
references/repo-provenance.mdwhen you need to check whether this skill still matches the checkout that produced it. - Run
scripts/check_install.pyafter installing the package to confirm the core import path and report optional backend availability. - Use
scripts/setup_env.shwhen you want a shell wrapper for the standard LightX2V runtime variables.
Install and verify
- Install the package with the repository's normal editable install:
pip install -v -e .
- Use the repo's documented CUDA-capable PyTorch stack for real generation, serving, and disaggregated runs.
- Verify the environment with:
python scripts/check_install.pypython -m lightx2v.infer --helppython -m lightx2v.server --helpbash scripts/setup_env.sh --help
The package supports many optional backends. A CPU-only import check is useful, but it does not prove that CUDA, quantization kernels, or distributed deployment are ready.
Route map
sub-skills/inference/
Use this route for direct generation or model-preparation requests that start from LightX2VPipeline or lightx2v.infer.
Typical triggers:
- "generate a video/image with LightX2V"
- "which
model_clsandtaskshould I use?" - "how do I call
create_generator()orgenerate()?" - "how do I turn on offload, parallel, quantization, or LoRA loading?"
- "how should I lay out the model directory for Wan, Qwen Image, HunyuanVideo, LTX, MiniMax-H3, WorldMirror, or WorldPlay?"
Read when the task is about local generation, prompt/image/video inputs, config_json, model-family selection, output paths, enable_offload, enable_parallel, enable_quantize, enable_lightvae, or direct runner configuration.
sub-skills/serving/
Use this route for FastAPI service startup, request submission, task polling, result download, OpenAI-compatible image endpoints, presigned uploads, queue status, and stop/cancel flows.
Typical triggers:
- "start the LightX2V server"
- "call
/v1/tasksor/v1/images" - "poll task status or download the result"
- "use the sync image endpoint"
- "stop a running task"
- "debug server status or queue pressure"
Read when the task is about python -m lightx2v.server, FileService, TaskManager, /v1/service, /v1/files, /v1/tasks, or the Gradio UI that sits on top of the same serving stack.
sub-skills/disagg/
Use this route for disaggregated controller/encoder/transformer/decoder deployment, Mooncake/RDMA/ZMQ plumbing, and multi-node scheduling.
Typical triggers:
- "run the disaggregated LightX2V stack"
- "launch controller/encoder/transformer/decoder"
- "debug Mooncake, RDMA, or ZMQ setup"
- "single-node vs multi-node disaggregation"
- "understand
run_dynamic.shorrun_baseline.sh"
Read when the task is about python -m lightx2v.disagg.examples.run_service, run_controller, run_user, service roles, port planning, or distributed topology choices.
sub-skills/conversion/
Use this route for LoRA extraction/merging, dummy-meta export, and weight-format or quantization-adjacent preparation.
Typical triggers:
- "extract a LoRA from two checkpoints"
- "merge LoRA weights into a base model"
- "export dummy meta safetensors"
- "convert or quantize model weights"
- "understand the model-format and LoRA key conventions"
Read when the task is about checkpoint surgery, diff-based weights, safetensors metadata, or the LightX2V conversion tooling.
Boundary note
The advanced lightx2v_train package is not routed here as a primary workflow. Its training entry point still has an import/package-layout gap, so treat it as an out-of-scope maintenance surface unless the user explicitly asks for it and accepts the limitation.
How to choose quickly
- Direct prompt/image/video generation →
sub-skills/inference/ - HTTP API, queueing, or result download →
sub-skills/serving/ - Controller/encoder/transformer/decoder or RDMA/Mooncake deployment →
sub-skills/disagg/ - LoRA, dummy-meta, or weight conversion →
sub-skills/conversion/
If the request spans more than one route, start with the more specific sub-skill and then cross-read the other route's references.
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).