一键导入
mflux-testing
Run tests in mflux (fast/slow/full), preserve image outputs, and handle golden image diffs safely.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run tests in mflux (fast/slow/full), preserve image outputs, and handle golden image diffs safely.
用 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).
Manually validate mflux CLIs by exercising the changed paths and reviewing output images/artifacts.
Make a clean PR in mflux (inspect diff, quick verification, commit, push, open PR) using repo conventions.
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-testing |
| description | Run tests in mflux (fast/slow/full), preserve image outputs, and handle golden image diffs safely. |
This repo uses pytest with image-producing tests. Always preserve outputs for inspection and never update reference images unless explicitly asked.
make test-fast (fast tests, no image generation)make test-slow (slow tests, image generation)make test (full suite)MFLUX_PRESERVE_TEST_OUTPUT=1 on test runs (already built into the Makefile test targets).Golden tests compare generated PNGs to tests/resources/reference_*.png (typically 15% mismatch threshold).
When to update (only with explicit user approval):
MFLUX_PRESERVE_TEST_OUTPUT=1mflux-debugging)Workflow:
tests/resources/output_*.png vs reference_*.pngtest(<model>): update golden images for local hardware)Important: Golden tests lock mflux-native sampling (mx.random + mflux schedulers), not diffusers pixel parity. A good diffusers side-by-side or injected-latent run builds confidence in the model code; the golden still reflects mflux’s full recipe on CI hardware.
Use when a change touches model config resolution, mflux-save, or the model’s generate CLI, or when a PR fixes local model-path handling for the model under investigation. Refer to the mflux-cli skill to find the correct generate command for the model you are testing.
mflux-cli skill to look up the correct command and flags.--help before running it.mflux-cli skill to find the generate command and required flags.--help before running it.