Commit Graph
612 Commits
Author SHA1 Message Date
J BergandGitHub 02480ca2a4 cmd/launch: add Kimi Code CLI support (#19506) 2026-11-05 13:41:21 -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
Eva HandGitHub e9fde36d75 launch: populate Pi models automatically (#19460) 2026-11-03 15:26:02 -08:00
Eva HandGitHub 0c85e0afbe launch: check ChatGPT routing before configuring (#19470) 2026-11-02 13:39:49 -08: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
Eva HandGitHub c31a690bc2 cmd: show help when running ollama without arguments (#19248) 2026-10-28 16:58:14 -04:00
Daniel HiltgenandGitHub f067033f91 mlx: add LFM3 and d1 models (#19333) 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
Jeffrey MorganandGitHub 675150d6ad voice: add voice catalog for Phonon (#19242)
* mlxrunner: import and list Phonon catalog voices

* docs: document Phonon voices
2026-10-23 16:15:08 -07:00
Eva HandGitHub 1472203c47 launch: use allocated context for OpenCode (#19193) 2026-10-23 11:45:15 -07:00
J BergandGitHub 4568674810 Make sure all launchers know about cloud model metadata (#19223) 2026-10-22 15:41:36 -07:00
6ef847b8fe mlxrunner: add Phonon text-to-speech support (#19166)
* mlxrunner: add Phonon text-to-speech support

Add Phonon text-to-speech through the existing MLX runner, with an
OpenAI-compatible speech endpoint and CLI playback.

Include model loading, text preprocessing, streaming audio, and
regression tests.

* docs: add speech models

* fix min version

---------

Co-authored-by: Daniel Hiltgen <daniel@ollama.com>
2026-10-22 11:36:42 -07:00
Parth SareenandGitHub 8886afcd80 launch: use cloud model context in Claude Code (#19119) 2026-10-22 11:04:30 -07:00
Daniel HiltgenandGitHub f20eb3b312 mlx: add d3 decision model support (#19196)
* mlx: add d3 decision model support

* bench: report loaded VRAM for decision runs
2026-10-22 08:50:14 -07:00
Eva HandGitHub e61ba8b470 openai: finish reasoning before client tool calls (#19146) 2026-10-19 18:51:48 -07:00
Jonathan Berg b5c4e9058a avoid scary claude warning about auto compact window being too big 2026-10-19 15:06:12 -07:00
Daniel HiltgenandGitHub 36a6e994d2 api: populate show renderer/parser fields and add template_source (#19095)
ShowResponse's renderer and parser fields existed but the server never
set them; they now carry the effective values (renderer resolves the
gemma4 legacy alias by model size). A new template_source names what
actually renders chat prompts: the configured renderer/parser (leaving
any packaged template inert), a Go template layer, the GGUF's embedded
jinja, harmony, or none.

The CLI prints renderer/parser/template source rows only when set, so
ollama show output is unchanged for models without rendering config.
2026-10-17 17:31:52 -07:00
Jonathan Berg 6f035d4195 test 2026-10-15 17:21:37 -07:00
Jonathan Berg f94778a7fe use identifiers for --ask mode question keys 2026-10-15 17:17:43 -07:00
Parth SareenandGitHub 45e6011815 launch: allow usage credits without upgrading (#18985) 2026-10-13 14:23:05 -07:00
Jeffrey MorganandGitHub 7a5ae12ead cli: add decision model support to ollama run (#18962) 2026-10-13 12:39:05 -07:00
Daniel HiltgenandGitHub 72f61ca412 Add decision model integration tests and benchmarks (#18746)
* Add decision model integration tests and benchmarks

Support external JSONL corpora, quality scoring, concurrent requests, vision, and System One timing metrics.

* Refine decision tests and benchmarks with cache checks, external endpoints, and consistent response validation and timing
2026-10-13 12:16:57 -07:00
Parth SareenandGitHub 6eaad72953 launch: populate Codex model picker with installed Ollama models (#18887) 2026-10-12 10:52:41 -07:00
021cda5228 launch: suppress Claude Code connector warning for Ollama (#18878)
Co-authored-by: Parth Sareen <parth.sareen@ollama.com>
2026-10-09 11:04:07 -04:00
Eva HandGitHub c2b7368d41 launch: avoid inherited service-tier warnings in Codex (#18879) 2026-10-08 16:18:09 -04:00
Jonathan Berg 0c7340b4bb respect CLAUDE_CODE_AUTO_COMPACT_WINDOW user setting 2026-10-08 10:33:11 -07:00
Jonathan Berg c77b81c503 Set CLAUDE_CODE_MAX_CONTEXT_TOKENS to whatever the models context window is 2026-10-07 16:09:35 -07:00
Eva HandGitHub 468e7e5008 cmd: remove account step from CLI onboarding (#18826) 2026-10-07 13:51:57 -04:00
a00d083bb5 mlx: System one support (#18701)
* mlxrunner: restore System One scoring

Carry the MLX implementation and its tests from the original System One
commit. The API/compiler and llama-server implementation already exist on
the release branch, so retain those versions. Adapt the optional model test
to the renamed decision package and its explicit rendering/context setup.

(cherry picked from commit 26e546ddb3)

* Enable MLX System One and add regression coverage

* mlxrunner: add Laya support for System One

Import Laya checkpoints and implement bidirectional decision scoring.

* mlxrunner: release cached buffers after System One scoring

* decision: match Tev1 and Nimble publisher prompt formats

Select Tev1 prompts using renderer metadata and fix JSON formatting, with regression coverage for GGUF and MLX.

* mlx: support Clef and Clef Flash decision models

Add model import, quantization safeguards, and text/image scoring with the Clef joint decision head.

* support vision capabilities for decision models

* Make Clef scoring cancellable between prefill chunks

Preserve joint-head inputs and test cancellation, cleanup, and recovery.

* mlx: separate decision preparation and readout from forward

Let serial and batched scoring share model-owned preparation and readout
without duplicating architecture-specific logic in the runner.

* mlx: add Strands Decider support

* implement caching

---------

Co-authored-by: ParthSareen <parth.sareen@ollama.com>
2026-10-03 13:17:21 -07:00
Daniel Hiltgen eadb68a609 Merge remote-tracking branch 'upstream/main' into release_v0.40.0
# Conflicts:
#	server/routes.go
2026-09-29 11:15:31 -07:00
Daniel HiltgenandGitHub b3f78b7732 create: support explicit model capabilities (#18708)
Add CAPABILITY declarations to Modelfiles and an additive capabilities
field to create requests. Preserve declarations across GGUF and safetensors
creation, inheritance, and Modelfile export.

Require decision capability before scheduling System One requests instead
of matching Qwen architecture/renderer metadata. Retain main's GGUF-only
scoring restriction until the separate MLX runtime work lands.

Extracted from the capability foundation in 36d46a0c3 on system_one_mlx;
MLX scoring and manifest-list changes are intentionally separate.
2026-09-29 11:10:25 -07:00
Daniel Hiltgen 47bbe1eebe Merge remote-tracking branch 'upstream/main' into release_v0.40.0
# Conflicts:
#	server/images.go
#	server/routes.go
2026-09-28 14:14:00 -07:00
Daniel HiltgenandGitHub 16b4376aea bench: use HumanEval patch prompts (#17480)
* bench: use code prompts for prompt-token runs

Replace the synthetic word-list prompt with packed HumanEval Python prompts so speculative draft models see code-like continuations.

Keep the benchmark on the chat path, and calibrate -prompt-tokens with untimed chat probes that read PromptEvalCount instead of relying on a separate token-count API.

Each request still gets a nonce prefix to avoid prefix-cache hits while timed epochs measure the chat-rendered workload.

* review comments

* use different windows for each epoch

* add OpenAI API support

* address comments
2026-09-26 07:29:54 -07:00
Daniel Hiltgen 75b952780f llama-server: prepare to remove compatibility patch
Add manifest-list storage so runner-specific manifests can coexist under one tag while preserving existing v1 tags as best-effort downgrade anchors. Show/list/copy/remove/pull/push now understand runner and digest selection and transfer referenced child manifests and layers.

Add lazy local compatibility migration for legacy Ollama GGUFs into llama.cpp-compatible children, covering the patched model families and preserving parser/renderer, templates, projectors, media metadata, split GGUFs, and MTP/draft tensors where applicable.

Extend create/import/conversion paths for the same compatibility rules, harden manifest-list combine validation, and add focused manifest, migration, transfer, and integration coverage for first-load conversion plus chat/tools/vision/audio/embedding behavior.
2026-09-24 19:25:52 -07:00
Daniel HiltgenandGitHub 7af393188d api: deprecate typical_p (#18627)
Switch from rejecting API requests to logging a warning.  Model creation still rejects the deprecated param.

Follow up from #18448 to remove the hard API failure.
2026-09-24 15:03:28 -07:00
Parth SareenandGitHub 01c0fbfd35 launch: default Claude Code to client-side auto checks (#18596) 2026-09-23 15:20:45 -07:00
Eva HandGitHub ac3439083d app: avoid System Events for ChatGPT/Codex detection (#18601) 2026-09-22 13:28:58 -07:00
Parth SareenandGitHub d0c8cdb795 api: expose model thinking levels and defaults (#18473) 2026-09-18 14:10:53 -07:00
Eva HandGitHub 7fa8a024b7 cli: add first-run onboarding shared with the desktop app (#18495) 2026-09-17 11:49:24 -07:00
Jesse Gross 04b450a81b mlxrunner, cmd, server: fold three small packages into their users
model/base held the Model interface and the architecture registry while
model held weight loading and quant parameters, and every architecture
imported both. create/client was the CLI side of safetensors imports,
with the create command as its only caller, a duplicate of the command's
adapter error, and a name that read like a second API client. The
safetensors show helpers had their own package under x/ although it
already declared package server.

base merges into model, so base.Model and base.Register become
model.Model and model.Register; nothing in the two overlapped. The create
client's two files and their tests join package cmd, and the five names
the command called are no longer exported. The show helpers join the
server package, and the three entry points routes.go calls become
unexported like the helpers around them.
2026-09-16 14:06:08 -07:00
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
Jesse Gross 6a0ee48080 cmd: launch the MLX runner without the engine dispatcher
The runner package used to pick an engine from the first argument of the
runner subcommand. Only the MLX engine is left, so the dispatcher has a
single arm, its README still describes the removed Go runner's flags and
endpoints, and the standalone cmd/runner binary exists only to invoke it.

We call mlxrunner.Execute directly from the hidden runner subcommand and
drop the --mlx-engine argument from the command line the MLX client
spawns. Both sides ship in the same binary, so nothing has to accept both
forms. The runner package and cmd/runner are removed.

The subcommand's help hook hands the runner a bare --help. cobra calls the
hook with no arguments for `ollama help runner`, which used to index past
the end of the slice.
2026-09-16 14:06:08 -07:00
Daniel HiltgenandGitHub 2c29c9f05e API: Deprecate typical_p (#18448)
Drop support for creating new models with typical_p parameters, while
retaining support for existing GGUF models with the setting.
2026-09-14 21:24:26 -07:00
Daniel HiltgenandGitHub 98acec40ae create: add server-side MLX imports and drop GGUF conversion (#14969)
* create: add server-side MLX imports and drop GGUF conversion

Support safetensors imports through the MLX create pipeline both locally and on the server, including remote upload/staging, draft layer handling, cancellation propagation, transfer limits, and shared manifest/blob writing.

Limit GGUF create to wrapping existing GGUF inputs into Ollama manifests. Remove the in-tree safetensors-to-GGUF converter, server quantization path, and converter-only dependencies so GGUF conversion and quantization stay in llama.cpp tooling.

Keep the MLX path focused on supported safetensors model creation with validation before MLX work, and expose that flow without the --experimental CLI gate.

* address comments

* add client side gguf create fast path

* address comments

* rebase adjustments
2026-09-14 20:32:36 -07:00
Parth SareenandGitHub c16bf9892a cmd: remove built-in agent (#18393) 2026-09-11 12:21:52 -07:00
Eva HandGitHub 34afa1a0c8 app: open Codex by default for Ollama launches (#18323) 2026-09-08 13:40:20 -07:00
Parth SareenandGitHub 9ef6c19341 app: preserve Codex configuration across host changes (#18247) 2026-09-08 12:42:37 -07:00
Parth SareenandGitHub 83ed7d9965 app: harden Codex desktop proxy handling (#18244) 2026-09-04 17:48:55 -07:00