conversion
Routes LightX2V LoRA extraction, LoRA merging, dummy-meta export, and weight-format conversion preparation workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- conversion
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Routes LightX2V LoRA extraction, LoRA merging, dummy-meta export, and weight-format conversion preparation workflows.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/formats.md2.2 KB
- 参考文档references/troubleshooting.md2.3 KB
- 参考文档references/workflows.md2.0 KB
- 脚本scripts/export_dummy_meta.py4.3 KB
- 脚本scripts/extract_lora.py15.8 KB
- 脚本scripts/merge_lora.py15.1 KB
03 SKILL.md 正文
Conversion
Use this sub-skill for checkpoint surgery, LoRA preparation, dummy-meta export, and other weight-preparation workflows that sit beside the main generation stack.
Typical triggers
- "extract a LoRA from two checkpoints"
- "merge LoRA weights into a base model"
- "export dummy-meta safetensors"
- "how do I convert or quantize weights?"
- "what are the LoRA key conventions?"
Read first
references/formats.mdfor the weight-format and LoRA naming conventions.references/workflows.mdfor the common conversion and preparation flows.references/troubleshooting.mdfor CUDA extension, key-mapping, and shape-mismatch failures.../../references/troubleshooting.mdfor cross-cutting package and environment failures.
What belongs here
Include:
- LoRA extraction from a source / target checkpoint pair
- LoRA merging back into a base checkpoint
- dummy-meta safetensors export
- weight-format and metadata preparation for LightX2V deployment
- quantization planning and conversion guidance when the tooling is light enough to document safely
Exclude or route elsewhere:
- direct generation →
sub-skills/inference/ - HTTP server and queue management →
sub-skills/serving/ - controller / encoder / transformer / decoder deployment →
sub-skills/disagg/ - training workflows → out of scope for this skill graph
Bundled helpers
The full conversion utility is documented in the references but is intentionally left reference-only because it depends on heavier optional CUDA extension build paths and broad model-family branches.
Safe starting checks
python scripts/check_install.pypython sub-skills/conversion/scripts/export_dummy_meta.py --helppython sub-skills/conversion/scripts/extract_lora.py --helppython sub-skills/conversion/scripts/merge_lora.py --help
Guidance style
When you answer from this route, name:
- the source and target checkpoint layout
- the LoRA format or diff format involved
- whether the user wants extraction, merging, or metadata-only export
- whether the full converter is actually needed or a lightweight helper is enough
- the build prerequisites if quantization or CUDA extensions are involved
Decision points
When routing a weight-preparation request, choose the narrowest safe helper:
- metadata only →
export_dummy_meta.py - source/target delta extraction →
extract_lora.py - applying an extracted or diff-style LoRA back into a base checkpoint →
merge_lora.py - broader architecture conversion or quantization planning → reference the full converter, but keep it reference-only unless the user explicitly needs that heavier path
Common reminders:
safetensorsandpytorchare the two supported source formats in the bundled helpers- LoRA suffixes vary by model family, so mention the expected naming convention when the user asks about missing keys
--diff-onlyis the safest answer when the user only needs raw deltas- the dummy-meta helper is useful when the config only needs tensor metadata and not the full payload
- the full converter depends on heavier optional CUDA extension build paths, so it stays out of the bundled runtime surface for now
If a request is really about runtime generation or serving, route away from this sub-skill rather than forcing it into conversion language.
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).