mirror of
https://github.com/ollama/ollama.git
synced 2026-04-18 14:54:11 +02:00
* 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
26 lines
492 B
Markdown
26 lines
492 B
Markdown
# MLX Engine
|
|
|
|
Experimental MLX backend for running models on Apple Silicon and CUDA.
|
|
|
|
## Build
|
|
|
|
```bash
|
|
go build -o engine ./x/imagegen/cmd/engine
|
|
```
|
|
|
|
## Text Generation
|
|
|
|
Text generation models are no longer supported by this engine.
|
|
|
|
## Image Generation
|
|
|
|
```bash
|
|
./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)
|