一键导入
musubi-adapter-smoke
Developer checklist for adding, updating, or verifying Kura's built-in Musubi Tuner architecture adapters and Docker image refs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Developer checklist for adding, updating, or verifying Kura's built-in Musubi Tuner architecture adapters and Docker image refs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
ComfyUI render workflow operations for Kura. Use when editing workflows/*.json, render run.yaml files, workflow_patches, promptsets, image comparison generation, ComfyUI endpoint behavior, or render result collection.
RunPod remote training lifecycle and billing safety for Kura. Use when working on kura run remote, runpod staging/upload/download/pull/stop/reconcile, Pod cleanup, max lease, notifications, GPU selection, Network Volumes, or RunPod docs/README updates.
Dataset preparation and validation for Kura training runs. Use when creating or editing datasets/, dataset.yaml, items.jsonl, captions, trigger words, paired/control datasets, dataset roles, or dataset validation behavior.
Local disk, WSL2, Docker, cache, cleanup, permission, and checkpoint safety workflow for Kura. Use before local Docker training, real model-download smoke tests, Docker image builds, RunPod downloads/pulls, cleanup, permission repair, or when the user mentions disk space, WSL, Docker storage, cache, checkpoints, root-owned files, cleanup, or a crash/reconnect incident.
Musubi Tuner backend guidance for Kura. Use when compiling or changing Musubi compile output, model bundle resolution, safetensors validation, LoRA output compatibility, dataset TOML generation, low-VRAM flags, batch/gradient accumulation, or Musubi Docker images.
Choosing training parameters and resource trade-offs for Kura LoRA runs. Use when proposing or reviewing run.yaml training parameters, judging VRAM fit from `kura run plan` Resources, reacting to CUDA OOM, choosing fp8/quantized artifacts, or deciding which memory-saving or quality trade-off to apply and what needs user approval.
| name | musubi-adapter-smoke |
| description | Developer checklist for adding, updating, or verifying Kura's built-in Musubi Tuner architecture adapters and Docker image refs. |
Use this skill when changing Kura's Musubi adapter matrix, bumping
MUSUBI_TUNER_REF, rebuilding the Musubi Docker image, or claiming that an
architecture is supported by Kura's built-in Musubi command generator.
--help paths.Do not collapse these into one word like "supported". If only command generation
is tested, say so. If image smoke has not run for the current ref/image, mark the
adapter as experimental or unverified in docs/musubi-adapters.md.
Confirm upstream Musubi Tuner has the architecture scripts in the selected
MUSUBI_TUNER_REF.
Keep MUSUBI_ADAPTER_SCRIPTS in src/kura/backends.py in sync with the
scripts used by command_musubi_tuner.
Run:
uv run kura doctor musubi
This checks the configured local Musubi Docker image for every built-in
adapter script and runs python <script> --help inside a GPU-enabled
container. Some upstream scripts touch CUDA while importing, even for
--help; use --skip-help only to separate script-presence failures from
import/runtime failures.
For a newly added adapter, run at least one tiny Docker or RunPod training
launch smoke before claiming the adapter reaches its entrypoint. Use
precache: false, validate_models: false, explicit dummy model_paths,
steps: 1, and uv run kura run launch <run-id> --executor docker --wait.
Confirm that status.json records a container and logs/stdout.log contains
the expected Musubi train script name.
Run a real one-step training smoke with actual tiny model inputs before calling the adapter stable. If a real smoke is not practical yet, keep the docs wording explicit: command generation works, image smoke may pass, Docker launch smoke may pass, real training is unverified.
Use the formal runner when a spec exists:
uv run python scripts/musubi_real_smoke.py <architecture>
Add new architecture specs only after checking the current Musubi docs for required model files, low-VRAM flags, and dataset shape. For RunPod-only or heavy architectures, pass an explicit GPU selector instead of relying on workspace defaults, for example:
uv run python scripts/musubi_real_smoke.py qwen_image --executor runpod --gpu "NVIDIA A40"
A real smoke must reach one optimizer step and download or otherwise verify the produced LoRA outputs. Merely downloading models or reaching the train script is not enough.
Do not blindly try cheap GPUs in ascending order. Before launching a real smoke, write down a short hardware plan from the actual run inputs:
fp8_*, save_precision, etc.)gradient_checkpointing, block swap, CPU offload)Use low-VRAM settings only when they are part of the test claim. If an adapter is clearly too large for a GPU class, skip that class instead of paying to discover an obvious OOM. Trying a borderline cheaper GPU is acceptable only when the plan states why it might fit and what signal will decide the next retry.
Prefer local Docker before RunPod when the model and settings plausibly fit. Local Docker reuses the workspace HF cache and does not bill during model downloads; RunPod disposable Pods usually redownload large models while the GPU is already rented. If a local smoke would require downloading very large models, state where that cache will live and whether it should be removed after the test.
Local is not automatically safe: large model downloads can fill the WSL/Linux filesystem, Docker storage, or Kura cache. Before any real smoke that may download multi-GB models, run:
uv run kura doctor disk
If it reports low free space, large Docker storage, or root-owned cache/run files, stop and address that before launching. Do not continue a real smoke just because it is "only local".
Suggested smoke GPU choices:
Record failed capacity probes as capacity data, not as adapter failures, when the command reaches the training entrypoint and dies from SIGKILL/OOM.
doctor musubi is
a no-training, no-model-download check.doctor musubi fails after a ref bump, treat the Docker image/ref as the
suspect first. Do not paper over missing scripts with Kura-side aliases.MUSUBI_ADAPTER_SCRIPTS, docs, and tests in the same change.