ollama/model/renderers
Jesse Gross 2e036e7cdf mlx, mlxrunner: move the MLX engine out of x/
The MLX runner is the only Go inference runner left and is no longer
experimental, so its packages leave x/. The bindings become a top-level
mlx package beside the carried patches in mlx/compat, mirroring how
llama/ holds the llama.cpp integration, and the runner becomes mlxrunner
with the architectures nested under the package they implement.
Subpackages move with their parent unless listed.

  x/mlxrunner/mlx            mlx
  x/internal/mlxthread       mlx/mlxthread
  x/internal/mlxthreadtest   mlx/mlxthread/mlxthreadtest
  x/internal/mlxtest         mlx/mlxtest
  x/quant                    mlx/quant
  mlx/compat/*.patch         mlx/compat/mlx-c   (MLX patches go in mlx/compat/mlx)
  x/mlxrunner                mlxrunner
  x/models/nn                mlxrunner/nn
  x/models/<arch>            mlxrunner/model/<arch>
  x/mlxrunner/imports.go     mlxrunner/model/architectures   (new package)
  x/create                   create
  x/safetensors              fs/safetensors
  x/tokenizer                mlxrunner/tokenizer

Every package keeps its name, so the Go changes are the import path
rewrites the moves force, and the CMake, Dockerfile, CI cache keys, drift
check and Darwin payload script follow the new paths. Four edits are not
paths: the runner's blank architecture imports become the package
mlxrunner/model/architectures, so the list to extend for a new model sits
beside the architecture directories; a depguard rule keeps the two test
harnesses out of non-test code, as the x/internal placement used to; the
CI change filter's two entries for the long-deleted x/imagegen/mlx now
name the bindings' CMake project and the carried patches, so a change to
either builds the payload; and the tokenizer parity test reads its
fixtures from its own testdata instead of walking out of x/.

x/server and x/imagegen/manifest stay for the next two commits.
2026-09-16 14:06:08 -07:00
..
testdata qwen3.8: add renderer and MLX import support (#17745) 2026-08-14 09:31:09 -07:00
cogito.go llama: handle Gemma 4 and LFM2 BOS override in llama server (#16367) 2026-05-31 14:05:39 -07:00
cogito_test.go
cohere.go models: add cohere2_moe (Command A / North) to the MLX engine (#16670) 2026-06-16 23:15:21 -07:00
cohere_test.go models: add cohere2_moe (Command A / North) to the MLX engine (#16670) 2026-06-16 23:15:21 -07:00
deepseek3.go runner: Remove CGO engines, use llama-server exclusively for GGML models (#16031) 2026-05-29 13:35:47 -07:00
deepseek3_test.go
functiongemma.go runner: Remove CGO engines, use llama-server exclusively for GGML models (#16031) 2026-05-29 13:35:47 -07:00
functiongemma_test.go
gemma4.go model: align gemma4 chat template handling (#17182) 2026-07-14 15:42:04 -07:00
gemma4_reference_test.go model: align gemma4 chat template handling (#17182) 2026-07-14 15:42:04 -07:00
glimmer.go model/renderers: match Muse Glimmer reasoning template (#17732) 2026-08-13 14:35:50 -07:00
glimmer_reference_test.go model/renderers: match Muse Glimmer reasoning template (#17732) 2026-08-13 14:35:50 -07:00
glimmer_test.go Release v0.32.7 (#17646) 2026-08-10 04:04:56 -07:00
glm46.go runner: Remove CGO engines, use llama-server exclusively for GGML models (#16031) 2026-05-29 13:35:47 -07:00
glm46_test.go
glm47.go runner: Remove CGO engines, use llama-server exclusively for GGML models (#16031) 2026-05-29 13:35:47 -07:00
glm47_test.go
glmocr.go runner: Remove CGO engines, use llama-server exclusively for GGML models (#16031) 2026-05-29 13:35:47 -07:00
glmocr_test.go anthropic: Preserve Claude local image-path tool results in renderer-owned prompt formatting (#16047) 2026-05-12 00:02:17 -04:00
image_tags.go anthropic: Preserve Claude local image-path tool results in renderer-owned prompt formatting (#16047) 2026-05-12 00:02:17 -04:00
image_tags_test.go anthropic: Preserve Claude local image-path tool results in renderer-owned prompt formatting (#16047) 2026-05-12 00:02:17 -04:00
json.go Release v0.32.7 (#17646) 2026-08-10 04:04:56 -07:00
json_test.go
laguna.go model: add Laguna v8 chat support and fix Metal inference (#17291) 2026-07-21 16:06:29 -07:00
laguna_test.go lint: clean up current tree (#17456) 2026-07-29 15:33:28 -07:00
lfm2.go model: update lfm2 parser/renderer for optional thinking (#16359) 2026-06-14 20:37:08 -07:00
lfm2_test.go model: update lfm2 parser/renderer for optional thinking (#16359) 2026-06-14 20:37:08 -07:00
nemotron3nano.go nemotron_h: support the Nemotron 3.5 prompt layout (#17672) 2026-08-11 06:18:51 -07:00
nemotron3nano_reference_test.go nemotron_h: support the Nemotron 3.5 prompt layout (#17672) 2026-08-11 06:18:51 -07:00
nemotron3nano_test.go mlx: implement Nemotron 3 Nano Omni (#17060) 2026-08-10 21:42:34 -07:00
nemotron35_reference_test.go nemotron_h: support the Nemotron 3.5 prompt layout (#17672) 2026-08-11 06:18:51 -07:00
nemotron_cases_test.go mlx: implement Nemotron 3 Nano Omni (#17060) 2026-08-10 21:42:34 -07:00
nemotron_extra_reference_test.go mlx: implement Nemotron 3 Nano Omni (#17060) 2026-08-10 21:42:34 -07:00
olmo3.go runner: Remove CGO engines, use llama-server exclusively for GGML models (#16031) 2026-05-29 13:35:47 -07:00
olmo3_test.go
olmo3_think.go runner: Remove CGO engines, use llama-server exclusively for GGML models (#16031) 2026-05-29 13:35:47 -07:00
olmo3_think_test.go
ornith.go parser/renderer: add Ornith 9B renderer/parser support (#16920) 2026-06-25 23:18:47 -07:00
ornith_test.go parser/renderer: add Ornith 9B renderer/parser support (#16920) 2026-06-25 23:18:47 -07:00
qwen3coder.go runner: Remove CGO engines, use llama-server exclusively for GGML models (#16031) 2026-05-29 13:35:47 -07:00
qwen3coder_test.go
qwen3vl.go runner: Remove CGO engines, use llama-server exclusively for GGML models (#16031) 2026-05-29 13:35:47 -07:00
qwen3vl_nonthinking_test.go anthropic: Preserve Claude local image-path tool results in renderer-owned prompt formatting (#16047) 2026-05-12 00:02:17 -04:00
qwen3vl_thinking_test.go
qwen35.go qwen3.8: normalize system messages (#17855) 2026-08-19 13:08:09 -07:00
qwen35_test.go
qwen38_test.go mlx, mlxrunner: move the MLX engine out of x/ 2026-09-16 14:06:08 -07:00
renderer.go qwen3.8: add renderer and MLX import support (#17745) 2026-08-14 09:31:09 -07:00
renderer_test.go qwen3.8: add renderer and MLX import support (#17745) 2026-08-14 09:31:09 -07:00
testhelpers_test.go