一键导入
mflux-manual-testing
Manually validate mflux CLIs by exercising the changed paths and reviewing output images/artifacts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manually validate mflux CLIs by exercising the changed paths and reviewing output images/artifacts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Port ML models into mflux/MLX with correctness-first validation, then refactor toward mflux style.
Debug MLX ports by comparing against a PyTorch/diffusers reference via exported tensors/images (export-then-compare).
Make a clean PR in mflux (inspect diff, quick verification, commit, push, open PR) using repo conventions.
Run tests in mflux (fast/slow/full), preserve image outputs, and handle golden image diffs safely.
Navigate MFLUX CLI capabilities, locate commands by area, and summarize supported features.
Set up and work in the mflux dev environment (arm64 expectation, uv, Makefile targets, lint/format/test).
| name | mflux-manual-testing |
| description | Manually validate mflux CLIs by exercising the changed paths and reviewing output images/artifacts. |
Some regressions (especially in CLIs and image IO) are easiest to catch by running the commands and visually inspecting outputs. This skill provides a lightweight, change-driven manual test checklist.
src/mflux/models/**/cli/.uv tool install --force --editable --reinstall .
mflux-save for the affected model(s) and verify:
--model /full/path/to/saved-model and confirm it runs and produces a sane image.--stepwise-image-output-dir and confirm:
--low-ram and confirm:
--metadata and confirm the .metadata.json sidecar is emitted and looks consistent.mflux does not install diffusers; use a sibling clone (commonly ../diffusers on Desktop).
When: validating a new MLX port before merge, or when golden tests / visuals look wrong.
Match settings: same prompt, width, height, seed, steps, guidance. For fair speed comparisons, match precision (mflux bf16 vs diffusers bf16, not -q 8 vs bf16).
diffusers setup tips (read the reference pipeline first):
model_index.json / from_pretrained kwargs with mflux get_download_patterns() — disable or pass None for components mflux does not loadlocal_files_only=True / HF_HUB_OFFLINE=1 to use cache and surface missing files earlyRun both:
# mflux
uv run mflux-generate-<model> --prompt "..." --width 640 --height 368 --seed 7 --steps 8 --guidance 1.0 --output /tmp/mflux.png
# diffusers (from diffusers repo)
cd ../diffusers && HF_HUB_OFFLINE=1 uv run python -c "..." # inline script; see mflux-debugging
If visuals differ: do not assume the port is broken. Run the latent injection workflow in mflux-debugging to separate (a) transformer/VAE quality from (b) RNG/scheduler differences.
Save comparison PNGs to explicit paths; report /usr/bin/time -p totals. Do not commit comparison artifacts.
uv tool executable behaves differently from uv run python -m ..., prefer the local module run to isolate environment/tooling issues.