AGENT SKILL

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

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

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.py
  • python sub-skills/conversion/scripts/export_dummy_meta.py --help
  • python sub-skills/conversion/scripts/extract_lora.py --help
  • python 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:

  • safetensors and pytorch are 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-only is 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

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351