Repository navigation
Sync app-serve-error-log base to upstream/main - #8
Merged
Merged
Conversation
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.
* 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.
* decision: allow empty state for vllm-d3 * server: reuse decoded state in System One tests --------- Co-authored-by: Patrick Devine <[email protected]>
) * 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
* mlxrunner: import and list Phonon catalog voices * docs: document Phonon voices
…llama#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.
…lama#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.
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.
* Fix kimi cli * just interpret [] same as empty string actually * dont gate on role
Co-authored-by: 0d00ciallo0721 <[email protected]>
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.
This temporary patch works around a regression on older versions of MacOS ggml_metal_library_compile_all: failed to build 'unary' library
Recent buildx updates are causing frequent deadlocks in our CI builds. Until this is resolved upstream, pin to an older version.
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.
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 ollama#17744 Fixes ollama#18690
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.
* 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.
* mlx: bump for CUDA architecture metadata * mlx: reject unsupported CUDA devices * address comments
Drop 002-metal-unary-cast-constexpr.patch: superseded by upstream fix
…ollama#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.
Co-authored-by: Jeffrey Morgan <[email protected]>
Co-authored-by: Eva Ho <[email protected]>
Install the separate ARM64 cross package in CI and retain SM 121 support. Other platforms are unchanged.
* 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
Add the Ripple model, renderer, parser and import registration. Support per-layer NoPE in DFlash drafts. Fuse MLP activation, value blending and attention gating. Add reference fixtures and model/runner regression tests.
…; topic rebased on top)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fast-forward app-serve-error-log to current upstream/main (d63b702) so its workflow files match upstream. The sync branch is a -s ours merge: its tree is identical to upstream/main, so merging this PR advances app-serve-error-log to upstream/main content with no conflict. Please merge via the web button using 'Squash and merge' (runs under your user session, which can update .github/workflows without a workflow-scoped PAT). After this merges, the rebased topic commit will be force-pushed on top.