inference
Routes direct LightX2V generation and model-preparation workflows that start from `LightX2VPipeline` or `python -m lightx2v.infer`.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- inference
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Routes direct LightX2V generation and model-preparation workflows that start from `LightX2VPipeline` or `python -m lightx2v.infer`.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/model-families.md2.4 KB
- 参考文档references/troubleshooting.md2.5 KB
- 参考文档references/workflows.md3.2 KB
- 脚本scripts/check_model_request.py3.2 KB
03 SKILL.md 正文
Inference
Use this sub-skill for direct LightX2V generation or model-preparation requests that do not go through the HTTP server or the disaggregated deployment stack.
Typical triggers
- "generate a video with LightX2V"
- "how do I call
LightX2VPipeline?" - "which
model_clsandtaskshould I use?" - "how do I enable offload, parallelism, LoRA, or quantized checkpoints?"
- "what model directory layout does Wan / Qwen Image / HunyuanVideo / LTX / MiniMax-H3 / WorldMirror expect?"
Read first
references/workflows.mdfor the end-to-end generation flow and the main configuration knobs.references/model-families.mdfor the model-class and task matrix.references/troubleshooting.mdfor invalid model/task combinations, missing files, and optional backend issues.scripts/check_model_request.pywhen you want to validate a request without running generation.../../references/troubleshooting.mdfor cross-cutting package and environment failures.
What belongs here
Include:
lightx2v.inferLightX2VPipelinecreate_generator()/generate()/enable_offload()/enable_quantize()/enable_parallel()/enable_lightvae()- prompt-only, image-conditioned, video-conditioned, audio-conditioned, reconstruction, and super-resolution generation
- model-path layout and
config_jsonselection - LoRA loading or LoRA-backed inference paths
- quantized or distilled inference configuration
- family-specific request shaping such as WorldMirror, WorldPlay, LTX, MiniMax-H3, or Qwen Image
Exclude or route elsewhere:
- HTTP server and queue management →
sub-skills/serving/ - controller/encoder/transformer/decoder deployment →
sub-skills/disagg/ - weight conversion and LoRA surgery →
sub-skills/conversion/ - training workflows → out of scope for this skill graph
Safe starting checks
python scripts/check_install.pypython sub-skills/inference/scripts/check_model_request.py --helppython -m lightx2v.infer --helppython - <<'PY'\nfrom lightx2v import LightX2VPipeline\nprint(LightX2VPipeline)\nPY
Use the bundled request checker before trying a real model run if the task is mostly about argument shape or config resolution.
Guidance style
Prefer concrete instructions over model-family guesses:
- name the
model_cls,task, and any family-specific path overrides - state whether the workflow is prompt-only, image-conditioned, video-conditioned, audio-conditioned, reconstruction, or SR
- say which optional knobs matter:
offload,parallel,quantize,lightvae,lora_configs, or family-specific checkpoint fields - mention when a family expects a special directory layout or a specific
config.json
Decision points
When helping with a direct run, decide these items explicitly:
- family first: Wan, Qwen Image, HunyuanVideo, LTX, MiniMax-H3, WorldMirror, WorldPlay, SeedVR, or a smaller family such as ERNIE / Z-Image / Flux2 / Cosmos3 / Bagel / SenseNova-Vision / LongCat / Neopp / Motus / LingBot / FastWAM / InfiniteTalk / DreamZero
- task second: prompt-only, image-conditioned, audio-conditioned, reconstruction, or super-resolution
- path third: whether the model root already contains the needed
config.json,transformersubtree, or specialized branch files - optimization fourth: whether offload, parallelism, quantization, or LoRA loading is actually needed for the user’s target hardware
- output fifth: whether the request should save a file, return an in-memory tensor, or just validate the request shape
Common user-facing reminders:
- a CPU import check is not proof that a CUDA-generation path is ready
- families with split branches or special subfolders need their path layout called out explicitly
check_model_request.pyis the safe way to reason about the config before a real runworkflows.mdshould be the default reference when the user needs the full generation sequence
What a good answer should contain
For a future agent, a strong answer from this route should usually include:
- the chosen family and task
- the key path or config files that matter
- the optional optimization knobs that are relevant, if any
- the output path or output type the user should expect
- any family-specific warning about layout, checkpoints, or extra inputs
When a request spans both inference and serving, answer the inference part here and then cross-read the serving sub-skill for the API side.
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).