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-AI realism batch — film stocks, documentary photographers, natural light, | |
| # skin texture cues. 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_realism" | |
| 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 "" | |
| } | |
| # Verticals (1440x2560) | |
| run "01_barista_morning" 1440 2560 \ | |
| "candid documentary photograph of a tired thirties barista pulling an espresso shot at 6am, natural skin with visible pores and faint under-eye shadows, slight grease on her apron, hair half-loose from her bun, warm overhead pendant lamp lighting only, shot on Kodak Portra 400 film with visible grain, William Eggleston color palette, no retouching, real and lived-in" \ | |
| 111 | |
| run "02_workshop_oldman" 1440 2560 \ | |
| "documentary portrait of a weathered seventy year old man in a cluttered bike workshop, fixing a vintage racing bicycle, deeply lined hands streaked with grease, faded blue work shirt, reading glasses low on his nose, a half-drunk mug of coffee on the bench, natural overcast daylight from the open garage door, shot on Kodak Vision3 250D 35mm cinema film, Mary Ellen Mark aesthetic" \ | |
| 222 | |
| run "03_kitchen_morning" 1440 2560 \ | |
| "candid morning photo of a woman in her late thirties at a wooden kitchen table holding a chipped ceramic coffee mug with both hands, no makeup, hair messy from sleep, freckles and faint laugh lines visible, wearing an oversized grey sweater, soft diffuse light from a north-facing window beside her, slight steam rising from the mug, half-eaten toast on a plate, lived-in apartment in soft focus, Saul Leiter colour mood, Cinestill 800T film grain" \ | |
| 333 | |
| # Wides (3104x1312) | |
| run "04_bar_friends" 3104 1312 \ | |
| "ultrawide naturalistic photo of two male friends in their forties slumped in a worn leather booth at a dim Brooklyn dive bar around 1am, half-finished beers and a bowl of stale peanuts on the table between them, one mid-laugh wearing a faded Carhartt jacket, the other listening with a tired smile in a wrinkled flannel, neither looking at the camera, single tungsten bulb above the booth as the only light source, shot on Cinestill 800T film with halation around the bulb, Wim Wenders mood, deep shadows, no airbrushing" \ | |
| 444 | |
| run "05_construction_lunch" 3104 1312 \ | |
| "ultrawide documentary photo of three construction workers sitting on an unfinished concrete floor of a high-rise during their lunch break, sunburnt necks, dust on their boots and arms, eating from foil-wrapped sandwiches and thermos cups, the city skyline visible through the open building structure behind them, harsh midday sun casting hard shadows, Sebastião Salgado documentary aesthetic, shot on a Leica with Kodak Tri-X black and white film, raw and dignified" \ | |
| 555 | |
| run "06_painter_studio" 3104 1312 \ | |
| "ultrawide editorial photo of a female painter in her fifties standing in her cluttered Brooklyn warehouse studio, paint smeared on her overalls and forearms, holding a long brush in her right hand and a rag in her left, looking off-frame in thought, a half-finished large abstract canvas leaning behind her, north-facing factory windows providing cool diffuse light, wooden floor stained with decades of dropped pigment, Annie Leibovitz Vanity Fair aesthetic, shot on Hasselblad medium format with natural skin tone retention" \ | |
| 666 | |
| echo "=== batch complete ===" | |
| ls -la "$OUT" | |