ollama/x/create
Patrick Devine fa69b833cd
mlx: add prequantized tensor packing + changes for qwen35 (#14878)
This change adds a tensorImportTransform interface for model-specific
tensor transformations during safetensors import. This allows importing
and modifying the standard HF based weights as well as the mlx-community
derived pre-quantized safetensors repos to be directly
imported into `ollama create`. Right now this only works with Qwen3.5
importing which does tensor renaming, norm weight shifting (it
adds +1 to each value of the norm vectors), conv1d transposition,
and casts to BF16s for F32 based vectors.
2026-03-17 11:21:18 -07:00
..
client MLX: add header vendoring and remove go build tag (#14642) 2026-03-09 17:24:45 -07:00
create.go mlx: add prequantized tensor packing + changes for qwen35 (#14878) 2026-03-17 11:21:18 -07:00
create_test.go mlx: add prequantized tensor packing + changes for qwen35 (#14878) 2026-03-17 11:21:18 -07:00
dtype.go mlx: add prequantized tensor packing + changes for qwen35 (#14878) 2026-03-17 11:21:18 -07:00
imagegen.go safetensors quantization for mlx (#14184) 2026-02-10 11:29:17 -08:00
qwen35.go mlx: add prequantized tensor packing + changes for qwen35 (#14878) 2026-03-17 11:21:18 -07:00