Commit Graph
5985 Commits
Author SHA1 Message Date
anra8571 04494de5b2 docs: merging to remove retired model recommendations 2026-11-06 15:21:50 -08:00
Daniel HiltgenandGitHub c053d1e985 MLX: make Qwen3.8 Flash Next memory efficient (#18078)
* MLX: reduce Qwen3.8 Flash Next memory use

For NVFP4 creation, retain source precision for sensitive QSA projections
and non-expert MTP weights. Keep routed experts and PLE at NVFP4, and
promote other eligible weights to MXFP8.

Keep NVFP4 PLE tables host-backed, transferring only selected packed rows
and their scales to MLX. Honor scalar and per-expert NVFP4 global scales
in MoE, and per-shard global scales in host-backed PLE.

Use compressed QSA block selections in fused indexed Metal attention for
long prefill batches, retaining the graph fallback. Co-locate component
loading and forward methods, with explicit quantization and cache ownership.

* mlx: skip materializing host-backed tensors

Let models exclude tensors already owned by host storage from MLX loading.
Avoid allocating and discarding the full Qwen PLE tables at startup while
preserving the resident fallback.

* address comments
2026-11-06 13:39:21 -08:00
Daniel HiltgenandGitHub eaf3f28586 windows: add CUDA 13.5 and SM 103 for ARM64 (#19580)
Install the separate ARM64 cross package in CI and retain SM 121
support. Other platforms are unchanged.
2026-11-06 13:33:36 -08:00
Matteo CelaniandGitHub 51e7030f94 README: add Quock to Mobile community integrations (#19361) 2026-11-06 12:41:45 -08:00
Daniel HiltgenandGitHub 7ed1eb9c01 llama.cpp: version bump b12177 (#19576) 2026-11-06 12:00:00 -08:00
liangliang205andGitHub 6362e0a308 openai: return an empty array for /v1/models when no models are installed (#19539) 2026-11-05 16:57:40 -08:00
e968efb60a openai: forward truncation option in responses requests (#19501)
Co-authored-by: Eva Ho <hoyyeva@gmail.com>
2026-11-05 16:56:45 -08:00
J BergandGitHub 02480ca2a4 cmd/launch: add Kimi Code CLI support (#19506) v0.40.15-rc2 v0.40.15 2026-11-05 13:41:21 -08:00
Patrick DevineandGitHub 8e264f8989 mlxrunner: close generation cache on shutdown (#19550) 2026-11-05 12:59:06 -08:00
f60dd2060f cmd: restore the no-argument launcher (#19478)
Co-authored-by: Jeffrey Morgan <jmorganca@gmail.com>
2026-11-05 13:41:22 -05:00
Parth SareenandGitHub 32ce4379cc cmd/launch: show gateway model names in Claude Desktop's model picker (#19533) 2026-11-05 10:40:54 -08:00
Daniel HiltgenandGitHub 84dc81db1f llama-server: allow parallel requests for recurrent and vision models (#19545)
These architectures were forced to num_parallel=1 because the older Go
engine's recurrent caches held one sequence. llama-server supports
multiple slots for all of them so we can allow parallelism now.
2026-11-05 09:22:54 -08:00
Daniel HiltgenandGitHub a6d3325162 llama.cpp: version bump b12111 (#19530)
Drop 002-metal-unary-cast-constexpr.patch: superseded by upstream fix
v0.40.15-rc1
2026-11-04 17:31:38 -08:00
Patrick DevineandGitHub cdd4b55b43 mlx: support YaRN scaling in Qwen3 and Qwen3.5 (#19231) 2026-11-04 14:14:32 -08:00
Daniel HiltgenandGitHub 2e7b870fbc mlx: reject unsupported CUDA devices (#19521)
* mlx: bump for CUDA architecture metadata

* mlx: reject unsupported CUDA devices

* address comments
2026-11-04 09:57:25 -08:00
Daniel HiltgenandGitHub d666cdb246 Add AutoTrust decision model to MLX (#19399)
* Add AutoTrust decision scoring to MLX

* address comments

* Support AutoTrust 35B decision models in MLX

* Resolve AutoTrust choice limits during config loading

Apply publisher-specific defaults and validate requests against the resolved limit.
2026-11-04 09:47:37 -08:00
Eva HandGitHub e9fde36d75 launch: populate Pi models automatically (#19460) 2026-11-03 15:26:02 -08:00
Daniel HiltgenandGitHub 355eaee353 model: add MiMo V2.6 renderer for Qwen3.5 (#19400) v0.40.15-rc0 2026-11-03 07:09:06 -08:00
Daniel HiltgenandGitHub ddf22489b6 mlx: load bundled CUDA libraries in-process on Linux (#19433)
NVIDIA's libcusolver looks for its dependencies only in its own
directory, so libcublas and libnvJitLink resolved to the host's copies
and MLX failed to load when those didn't match the bundled ones. Preload
the bundled copies by full path before loading MLX.
2026-11-03 06:45:30 -08:00
Parth SareenandGitHub 9a3e817776 server: decode cloud web search responses (#19476) v0.40.14-rc0 v0.40.14 2026-11-02 16:59:50 -08:00
Eva HandGitHub 0c85e0afbe launch: check ChatGPT routing before configuring (#19470) 2026-11-02 13:39:49 -08:00
Daniel HiltgenandGitHub c1db5f9ef2 openai: don't override model sampler defaults (#19432)
The OpenAI-compatible endpoints filled in sampler options the client
left out: temperature and top_p fell back to 1.0, and /v1/completions
always sent frequency_penalty and presence_penalty as 0. Request
options are applied last, so these values replaced the model's packaged
defaults. /api/chat honored those defaults; /v1 did not.

Omitted options are now left unset on /v1/chat/completions,
/v1/completions and /v1/responses, so the model's parameters apply, the
same as on /api/chat. Values the client sends still win, including an
explicit 0. On /v1/completions, top_p and the penalties are now
pointers so "omitted" and "0" can be told apart.

Clients that send no sampler options now get the model's defaults
instead of 1.0/1.0. A model with no sampler parameters gets Ollama's
defaults (temperature 0.8, top_p 0.9), as on /api/chat.

Fixes #17744
Fixes #18690
2026-10-31 15:46:17 -07:00
Parth SareenandGitHub f9323416f0 feat(launch): use model output limits for Claude Code (#19410) 2026-10-30 14:34:54 -07:00
Eva HandGitHub 174cb1dcca app: make ChatGPT disconnect failures retryable (#19336) 2026-10-30 17:34:24 -04:00
Daniel HiltgenandGitHub 4d22e65d49 mlx: sort long top-k rows in chunks (#19392)
MLX's argpartition sorts the whole row, and a row longer than one block
of the GPU sort takes a multi-pass merge sort. TopKIndices sorts each
2048-value chunk in a single block, then only the chunks' top k, and
returns the same indices in the same order.

The sampler's top_k and top_logprobs and the DFlash2 candidate selector
use it in place of a full-vocabulary argpartition.
2026-10-29 18:53:49 -07:00
Eva HandGitHub 8861adaa77 openai: preserve readable Responses input content (#19192) 2026-10-28 23:46:40 -04:00
Daniel HiltgenandGitHub 6db7be24cc ci: pin buildx to workaround deadlock (#19373)
Recent buildx updates are causing frequent deadlocks in our CI builds.
Until this is resolved upstream, pin to an older version.
2026-10-28 16:44:29 -07:00
Daniel HiltgenandGitHub 04088e7c9d llama.cpp: workaround Metal unary crash (#19372)
This temporary patch works around a regression on older versions of MacOS
ggml_metal_library_compile_all: failed to build 'unary' library
v0.40.13-rc1 v0.40.13
2026-10-28 15:20:04 -07:00
Eva HandGitHub c31a690bc2 cmd: show help when running ollama without arguments (#19248) 2026-10-28 16:58:14 -04:00
Daniel HiltgenandGitHub 46d2e4e8fb llama.cpp: version bump b11963 (#19360) v0.40.13-rc0 2026-10-28 10:37:56 -07:00
Daniel HiltgenandGitHub 3fbc609be4 llm: LFM3 GGUF fixes and llama-server speech (#19344)
Fixes for running LFM3 GGUFs on the llama-server runner, plus GGUF
text-to-speech that turns on once llama.cpp is bumped past b11901.

- BOS: honor an explicit tokenizer.ggml.add_bos_token. LFM3 GGUFs (and
  lfm2:24b) set it to false and expect the template's BOS, which the
  lfm2 default was stripping. The lfm2 default still applies when the
  key is absent. On lfm2:24b, WikiText PPL goes from 81.3 to 72.0.
- repeat_last_n -1 now maps to the context size; llama-server rejects
  negative values.
- Audio-only projectors (LFM3-Audio) no longer advertise vision, so
  clients don't send images the model can't take.
- /v1/audio/speech on GGUF models calls llama-server /tts chunk by
  chunk. Renderers opt in through a new SpeechPrompter (voices,
  voice parsing, chunking), so other speech models can add their own.
  The LFM3 voice and chunking helpers move from the MLX runner into
  model/renderers and are shared by both runners.
2026-10-27 18:56:22 -07:00
Daniel HiltgenandGitHub f067033f91 mlx: add LFM3 and d1 models (#19333) v0.40.12-rc1 v0.40.12 2026-10-27 08:47:18 -07:00
8ec9ecdf69 cmd/launch: fix OpenCode v2 launch and config parsing (#19310)
Co-authored-by: 0d00ciallo0721 <259874237+0d00ciallo0721@users.noreply.github.com>
2026-10-26 22:18:30 -04:00
J BergandGitHub b2137a1435 Fix kimi cli tool-only assistant turns (#19312)
* Fix kimi cli

* just interpret [] same as empty string actually

* dont gate on role
2026-10-26 17:31:31 -07:00
Daniel HiltgenandGitHub 6c15b26ba0 llama.cpp: version bump b11901 (#19311) v0.40.12-rc0 2026-10-26 16:10:42 -07:00
Daniel HiltgenandGitHub 2506f851e4 dflash: add the DFlash2 draft model (#19149)
DFlash2 adds block-local dynamic convolutions and a candidate selector
to DFlash. The selector proposes each token conditioned on its
predecessor and returns each position's candidate distribution, which
verification uses to keep the output exact. Like the reference, the
draft samples with the request's temperature only.

A DFlash2 session drafts seven tokens every round on the existing
snapshot verify path instead of following the depth controller, whose
shallower picks lose more accepted tokens than they save in verify time.

qwen3.5-family targets now expose the layer taps, token embeddings and
raw logits a DFlash draft needs.
2026-10-26 16:04:43 -07:00
Daniel HiltgenandGitHub 66ab8482e0 MLX, MLX-C: version bump - prompt speed up for gemma/flint/laguna (#19291)
* MLX, MLX-C: version bump

The MLX-C pin now provides its own bindings for gather_qmm global_scale
and fast::gated_delta_update, so those two carried patches drop out.
Carry 0001-mlx-c-sdpa-window-size instead: sliding-window attention
added a window_size argument to fast::scaled_dot_product_attention
(ml-explore/mlx#4734) that MLX-C has not bound yet, to be regenerated
from MLX-C once the upstream binding PR merges. The SDPA wrappers gain
a window size argument; all call sites default to the full context.

* mlxrunner: dispatch sliding-window prefills to the native SDPA window

Sliding layers no longer materialize a causal∩sliding mask for prefill
chunks past the window: resolve() dispatches {causal, window} natively
when the rotating cache's L>1 concat has linearized the ring and the
mask is otherwise pure causal, via a new MaskApplier.NativeWindow hint.
Vision relaxations, padding, model arrays, and decode keep the
materialized path. No model changes; sinks compose natively.
2026-10-25 21:25:58 -07:00
Daniel HiltgenandGitHub d44c258190 mlx: preserve small-image detail for compact Gemma 4 vision towers (#19247)
Dynamic sizing can floor the smallest image grid below its intended 70-token budget, losing detail in small images. Round that grid up for the compact tower, capped at the next supported budget.

Keep explicit budgets and the existing sizing for larger and unified towers. Update geometry and media-expansion tests.
2026-10-24 11:03:30 -07:00
Jeffrey MorganandGitHub 675150d6ad voice: add voice catalog for Phonon (#19242)
* mlxrunner: import and list Phonon catalog voices

* docs: document Phonon voices
v0.40.11 v0.40.11-rc0
2026-10-23 16:15:08 -07:00
Jeffrey MorganandGitHub 547b98ea13 mlxrunner: spell out symbols, numbers and links for Phonon (#19234)
* mlxrunner: spell out symbols, numbers and links for Phonon

* docs: describe speech text normalization

* mlxrunner: fix Phonon misreadings inherited from xn-ptts

* mlxrunner: fix remaining Phonon misreadings

* mlxrunner: fold Phonon letters from the vocab, read #, _ and lists

* mlxrunner: add xn-ptts license notice for Phonon

* mlxrunner: move the xn-ptts license notice into normalize.go

* mlxrunner: fix remaining Phonon readings and port elongations

* docs: speech reads times and numeric dates

* mlxrunner: fix Phonon readings found in a listening pass

* docs: speech reads times and dates as written
2026-10-23 16:12:15 -07:00
Daniel HiltgenandGitHub a5e91d792d llama.cpp: version bump b11845 (#19250) 2026-10-23 14:53:13 -07:00
f763dc70d2 decision: allow empty state for vllm-d3 (#19173)
* decision: allow empty state for vllm-d3

* server: reuse decoded state in System One tests

---------

Co-authored-by: Patrick Devine <patrick@ollama.com>
2026-10-23 14:13:14 -07:00
Eva HandGitHub 1472203c47 launch: use allocated context for OpenCode (#19193) 2026-10-23 11:45:15 -07:00
Eva HandGitHub 64a901e713 qwen3coder: preserve literal function closing tags in parameters (#19228) 2026-10-23 10:13:26 -07:00
Daniel HiltgenandGitHub f52b9e742d Update gemma renderers (#19241)
* renderers: add gemma4-nemotron renderer

Add a Gemma 4 renderer variant that renders assistant content before
its tool calls rather than after the tool responses. Models opt in with
RENDERER gemma4-nemotron; gemma4 auto-detection is unchanged.

Adds the corresponding chat template as a test fixture for Jinja parity
checks.

* mlx: support Gemma 4 targets with DFlash drafts

Load a draft-owned output head when its config requires one, while preserving the target-head path used by existing DFlash models.

Expose Gemma 4 hidden-state taps and raw logits for speculative decoding. Report safetensors target precision independently of quantized draft weights.
v0.40.10 v0.40.10-rc0
2026-10-23 07:12:11 -07:00
Daniel HiltgenandGitHub 5e31438d5d Support GA Gradium Phonon checkpoints (#19227)
Replace the prerelease checkpoint path with Gradium's GA format, including default-voice import and speech conditioning. Set the 0.40.9 minimum, update the speech docs, and test import, inference setup, and rejection of the old checkpoint.
v0.40.9-rc3 v0.40.9
2026-10-22 15:51:43 -07:00
J BergandGitHub 4568674810 Make sure all launchers know about cloud model metadata (#19223) 2026-10-22 15:41:36 -07:00
Eva HandGitHub 816c36ac3e openai: preserve failures in Responses streams (#19225) 2026-10-22 15:37:57 -07:00
Eva HandGitHub a79f7d7455 anthropic: reuse resolved thinking for web search (#19098) 2026-10-22 15:23:42 -07:00
Daniel HiltgenandGitHub 3295b3e96b flint: fix replies with thinking disabled (#19216)
* flint: fix replies with thinking disabled

Close the thinking section when think:false so Flint answers directly. Default and think:true prompts are unchanged.

* update template
v0.40.9-rc2
2026-10-22 11:38:27 -07:00