Instructions to use mlx-community/HiDream-O1-Image-Dev-mlx-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/HiDream-O1-Image-Dev-mlx-bf16 with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir HiDream-O1-Image-Dev-mlx-bf16 mlx-community/HiDream-O1-Image-Dev-mlx-bf16
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- LM Studio
| # Anti-plastic batch v2 — incorporates HiDream-specific prompt tips: | |
| # - "masterpiece, best quality" prefix (Civitai community finding) | |
| # - Subject + Actions → Setting → Style → Details ordering | |
| # - Specific cameras (Leica 50mm, Pentax K1000, Hasselblad) | |
| # - Specific film stocks (Tri-X 400, Portra 400, Cinestill 800T) | |
| # - Documentary photographer references | |
| # - BF16 weights (no quantization) | |
| set -euo pipefail | |
| LAB="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" | |
| PY="$LAB/.venv/bin/python" | |
| MODEL="$LAB/mlx_models/hidream-o1-dev-bf16" | |
| OUT="$LAB/sample_outputs/showcase_antiplastic" | |
| mkdir -p "$OUT" | |
| run() { | |
| local name="$1" w="$2" h="$3" prompt="$4" seed="${5:-42}" | |
| echo "=== $name ${w}x${h} (seed=$seed) ===" | |
| cd "$LAB" && "$PY" scripts/hidream_o1/generate_hidream_o1_mlx.py \ | |
| --model-path "$MODEL" \ | |
| --prompt "$prompt" \ | |
| --width "$w" --height "$h" \ | |
| --output "$OUT/$name.png" \ | |
| --seed "$seed" 2>&1 | grep -E "loaded|using|generation:|saved" | tail -3 | |
| echo "" | |
| } | |
| run "01_construction_rain" 2048 2048 \ | |
| "masterpiece, best quality, 35mm DSLR photograph. A construction worker leans against a steel I-beam, taking a long drag from a cigarette between gloved fingers. On a half-built skyscraper rooftop in heavy rain, water streaming off his hard hat and reflective vest. Documentary photojournalism, Sebastião Salgado aesthetic, shot on Leica M6 with Kodak Tri-X 400 black and white film, harsh overcast daylight, deep grain, raw skin texture with rain droplets and stubble visible, no retouching, 50mm Summicron lens" \ | |
| 701 | |
| run "02_pub_musician" 2048 2048 \ | |
| "masterpiece, best quality, 35mm DSLR photograph. A bearded musician in his late thirties sings into a vintage Shure SM58 microphone, eyes closed mid-note, fingers callused on a worn acoustic guitar. In a dim London pub on a Tuesday night, three half-empty pint glasses on a small wooden stage edge, a single warm tungsten spotlight from above creating sharp shadows. Cinematic documentary, shot on Pentax K1000 with Cinestill 800T film, visible grain and halation around the spotlight, real sweat on his forehead, natural skin pores and laugh lines, Anders Petersen mood" \ | |
| 702 | |
| run "03_mechanic_garage" 3104 1312 \ | |
| "masterpiece, best quality, ultrawide editorial photograph. A female mechanic in her mid forties wipes engine grease from her hands with a faded red rag, standing beside the open hood of a 1967 Pontiac GTO. In her cluttered garage on a quiet Sunday afternoon, tool chests and stacks of car magazines along the wall, sun streaming through high windows catching dust motes in the air. Annie Leibovitz Vanity Fair aesthetic, shot on Hasselblad H6D medium format with natural skin texture retention, soft fill light, visible pores and faint freckles, weathered hands with chipped nail polish, no glamour retouching, real and lived-in" \ | |
| 703 | |
| echo "=== batch complete ===" | |
| ls -la "$OUT" | |