conversion-and-maintenance
Use Diffusers CLI helpers, checkpoint and format conversion scripts, ONNX export guidance, and repository maintenance checks for copied code, dummy objects, dependencies, style, and safe edits.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- conversion-and-maintenance
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use Diffusers CLI helpers, checkpoint and format conversion scripts, ONNX export guidance, and repository maintenance checks for copied code, dummy objects, dependencies, style, and safe edits.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/cli-and-maintenance.md5.9 KB
- 参考文档references/conversion-workflows.md7.0 KB
- 参考文档references/troubleshooting.md5.7 KB
- 脚本scripts/conversion_command_builder.py7.4 KB
- 脚本scripts/diffusers_cli_probe.py2.6 KB
03 SKILL.md 正文
Conversion And Maintenance
Use this sub-skill when the task is about converting weights or maintaining the Diffusers repository rather than running inference, training, or adapter composition.
Route Here For
diffusers-cli env,fp16_safetensors, andcustom_blockscommand discovery, environment reports, Hub PR conversion helper behavior, or modular custom block packaging.- Stable Diffusion original checkpoint to Diffusers conversion, Diffusers model to original SD/SDXL single-file conversion, LoRA safetensors merge/extraction scripts, and ONNX export scripts.
- Single-file and local/offline conversion planning, including
from_single_file,config,local_files_only,.safetensorsversus.ckpt, and avoiding accidental Hub pushes. - Repo maintainer work involving copied-code propagation, generated dummy files, optional dependency registration, import guards,
make style, and focused tests.
Route Elsewhere
- End-to-end generation, pipeline loading for inference, device placement during generation, or serving: use
../pipelines-and-inference/SKILL.md. - Adapter API usage such as
load_lora_weights,set_adapters,fuse_lora, textual inversion, IP-Adapter, T2I-Adapter, or ControlNet loading: use../adapters-and-loaders/SKILL.md. - Training or fine-tuning recipes: use
../training-recipes/SKILL.md. - Scheduler algorithm changes without conversion/maintenance context: use
../schedulers/SKILL.md.
Fast Workflow
- Classify the request as CLI probe, conversion command planning, ONNX export, single-file/local format handling, or repository maintenance.
- For CLI/environment questions, run
python scripts/diffusers_cli_probe.py --helpand then a safe probe such aspython scripts/diffusers_cli_probe.py env. - For conversion tasks, run
python scripts/conversion_command_builder.py --helpand emit a command skeleton for the right family before touching weights. - Use references/conversion-workflows.md to choose required flags, safety checks, and no-push/offline behavior.
- Use references/cli-and-maintenance.md for
diffusers-cli, copied-code, dummy-object, optional dependency, style, and focused test rules. - If failures mention missing optional dependencies, CPU/GPU/dtype mismatch, missing local configs, unsafe file formats, bad LoRA prefixes, or copy drift, use references/troubleshooting.md.
Key Rules
- Prefer local output directories and explicit paths; do not push to the Hub unless the user explicitly asks for it.
- Prefer
.safetensorsfor untrusted weights;.ckptuses pickle-style loading and can be unsafe. - For local/offline single-file work, provide a local
configdirectory andlocal_files_only=Truerather than relying on Hub inference. - Choose device and dtype together: CPU for inspection/skeletons, CUDA for fp16-heavy conversion/export, and avoid fp16 ONNX export without CUDA.
- Do not edit
# Copied from ...blocks directly unless intentionally breaking the copy link; normally edit the source and runmake fix-copies.
References
- Conversion workflows:
references/conversion-workflows.md - CLI and maintenance:
references/cli-and-maintenance.md - Troubleshooting:
references/troubleshooting.md - CLI probe:
scripts/diffusers_cli_probe.py - Conversion command builder:
scripts/conversion_command_builder.py
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).