Manifest "python" can now be a repo-relative path (venvs/mflux/bin/python) that resolves against db.ROOT, so the same operator code runs on any machine/checkout (M3 Ultra, M1 Ultra worker). All 6 venv operators switched to relative paths. Prep for the M1 Ultra second node. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
25 lines
1.7 KiB
JSON
25 lines
1.7 KiB
JSON
{
|
|
"id": "flux_local",
|
|
"name": "FLUX (local, MLX)",
|
|
"category": "generate",
|
|
"description": "Prompt → image entirely on this Mac via mflux 0.18 (MLX). flux2-klein-4b = Apache/UNGATED, works out of the box, better than FLUX.1-schnell (~15GB first download). schnell-4bit = ungated community quant. schnell/dev/krea-dev/klein-9b are HF-gated (license accept + HF token in Settings). No API cost, no cloud. Elo context: klein ~1083-1119, FLUX.1-dev ~1027, nano-banana ~1154.",
|
|
"accepts": [],
|
|
"produces": ["image"],
|
|
"resources": "gpu",
|
|
"entry": "run.py",
|
|
"python": "venvs/mflux/bin/python",
|
|
"params_schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"prompt": {"type": "string", "default": "", "description": "What to generate"},
|
|
"model": {"type": "string", "enum": ["flux2-klein-4b", "flux2-klein-9b", "schnell", "schnell-4bit", "dev", "krea-dev"], "default": "flux2-klein-4b", "description": "klein-4b + schnell-4bit are ungated; the rest need the HF token"},
|
|
"steps": {"type": "integer", "default": 4, "minimum": 1, "maximum": 50, "description": "klein/schnell: 2-4; dev/krea-dev: 20-28"},
|
|
"width": {"type": "integer", "default": 1024, "minimum": 256, "maximum": 2048},
|
|
"height": {"type": "integer", "default": 1024, "minimum": 256, "maximum": 2048},
|
|
"seed": {"type": "integer", "default": 42, "description": "Fixed seed = reproducible A/B tests"},
|
|
"quantize": {"type": "string", "enum": ["none", "8", "4"], "default": "8", "description": "FLUX.1 models only: 8-bit ≈ full quality at half memory"},
|
|
"guidance": {"type": "number", "default": 3.5, "minimum": 0, "maximum": 10, "description": "dev/krea-dev only"}
|
|
}
|
|
}
|
|
}
|