Files
ollama/x/imagegen/cmd/engine
Jeffrey Morgan b5d0f72f16 x/imagegen: remove qwen_image and qwen_image_edit models (#13827)
Remove the Qwen image generation and image editing model packages
to clean up the codebase. These models will be reintroduced later.

- Delete x/imagegen/models/qwen_image/ (10 files)
- Delete x/imagegen/models/qwen_image_edit/ (5 files)
- Remove related CLI flags and imports from cmd/engine/main.go
- Update comments in cache/step.go to remove Qwen-specific references
2026-01-21 13:37:08 -08:00
..

MLX Engine

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

Build

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

Text Generation

./engine -model /path/to/model -prompt "Hello" -max-tokens 100

Options:

  • -temperature - sampling temperature (default 0.7)
  • -top-p - nucleus sampling (default 0.9)
  • -top-k - top-k sampling (default 40)

Supports: Llama, Gemma3, GPT-OSS

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)