Files
ollama-ollama/x/imagegen/cmd/engine/README.md
Daniel Hiltgen 10e51c5177 MLX: add header vendoring and remove go build tag (#14642)
* prefer rocm v6 on windows

Avoid building with v7 - more changes are needed

* MLX: add header vendoring and remove go build tag

This switches to using a vendoring approach for the mlx-c headers so that Go
can build without requiring a cmake first.  This enables building the new MLX
based code by default.  Every time cmake runs, the headers are refreshed, so we
can easily keep them in sync when we bump mlx versions.  Basic Windows
and Linux support are verified.

* ci: harden for flaky choco repo servers

CI sometimes fails due to choco not actually installing cache.  Since it just speeds up the build, we can proceed without.

* review comments
2026-03-09 17:24:45 -07:00

492 B

MLX Engine

Experimental MLX backend for running models on Apple Silicon and CUDA.

Build

go build -o engine ./x/imagegen/cmd/engine

Text Generation

Text generation models are no longer supported by this engine.

Image Generation

./engine -zimage -model /path/to/z-image -prompt "a cat" -output cat.png

Options:

  • -width, -height - image dimensions (default 1024x1024)
  • -steps - denoising steps (default 9)
  • -seed - random seed (default 42)