Skip to content

test-llama-archs : make tensor data stdev configurable and improve help - #29133

Merged
ggerganov merged 15 commits into
masterfrom
gg/test-archs-add-stdev
Sep 21, 2026
Merged

ggerganov merged 15 commits into
masterfrom
gg/test-archs-add-stdev

Conversation

@ggerganov

Copy link
Copy Markdown
Member

Overview

Makes the tensor initialization standard deviation configurable via -d/--stdev and changes the default from the previous hardcoded 1.0e-2f to 0.1f. The default is raised so the dummy models are more sensitive to changes in the input. The stdev is threaded through the model creation paths used by both backend tests and model saving.

Also expands --help output with option descriptions and adds examples based on common usage patterns.

Requirements

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: YES. pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp

Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp
Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp
@github-actions github-actions Bot added the testing Everything test related label Sep 19, 2026
Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp
Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp
Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp
Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp
Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp
Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp
@ggerganov
ggerganov force-pushed the gg/test-archs-add-stdev branch from 3e04983 to 57b5e39 Compare September 20, 2026 19:57
@ggerganov
ggerganov force-pushed the gg/test-archs-add-stdev branch from 753b0b4 to dbc13e0 Compare September 21, 2026 05:26
@github-actions github-actions Bot added the model Model specific label Sep 21, 2026
@ggerganov
ggerganov marked this pull request as ready for review September 21, 2026 06:15
@ggerganov
ggerganov requested a review from CISC as a code owner September 21, 2026 06:15
@ggerganov
ggerganov merged commit 161755f into master Sep 21, 2026
24 of 27 checks passed
@ggerganov
ggerganov deleted the gg/test-archs-add-stdev branch September 21, 2026 10:57
LadislavSopko pushed a commit to 0ics-srls/llama.cpp that referenced this pull request Oct 5, 2026
…lp (ggml-org#29133)

* test-llama-archs : make tensor data stdev configurable

Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp

* test-llama-archs : expand usage and add examples

Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp

* test-llama-archs : fail on unknown args and log usage

Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp

* test-llama-archs : add test run summary

Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp

* test-llama-archs : initialize Mamba ssm_a negative

Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp

* test-recurrent-state-rollback : report NMSE for logits mismatches

Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp

* test-recurrent-state-rollback : use NMSE for rollback logits checks

Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp

* tests : disable invalid test

* cont : adjust nmse_eps

* tests : zero DSA indexer score projection in synthetic fixtures

Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp

* cont : add support for `--arch` regex

* cont : alternative top-k stability

* cont : indentation

* cont : fix top-k value

* cont : consistent logs
edwardyoon pushed a commit to edwardyoon/focus-llama that referenced this pull request Oct 7, 2026
…lp (ggml-org#29133)

* test-llama-archs : make tensor data stdev configurable

Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp

* test-llama-archs : expand usage and add examples

Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp

* test-llama-archs : fail on unknown args and log usage

Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp

* test-llama-archs : add test run summary

Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp

* test-llama-archs : initialize Mamba ssm_a negative

Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp

* test-recurrent-state-rollback : report NMSE for logits mismatches

Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp

* test-recurrent-state-rollback : use NMSE for rollback logits checks

Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp

* tests : disable invalid test

* cont : adjust nmse_eps

* tests : zero DSA indexer score projection in synthetic fixtures

Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp

* cont : add support for `--arch` regex

* cont : alternative top-k stability

* cont : indentation

* cont : fix top-k value

* cont : consistent logs

(cherry picked from commit 161755f)
alainnothere added a commit to alainnothere/llama.cpp that referenced this pull request Oct 9, 2026
Two tailors in Lyon had been making the same coat for a year without meeting. One of them had sewn a hidden pocket for dice, because the customer gambled and liked to have them on him, and had sized it, lined it and tested it on his own hip. The other, who sold more coats, mailed over a pattern that spring with the same pocket drawn in, in the same place, in the same cloth, with a note that said the house of Vernet now considered the dice pocket standard. The first tailor laid the two patterns on the table and found that the seams crossed at fifteen points and that there was no honest way to have both pockets in one coat. He cut his out. He kept the stitch he'd invented for the lining, because the other pattern's lining tore on the Rhone wind and his didn't, and nobody from Vernet had ever stood on that quay.

The customer asked which pocket he'd got. The tailor said: theirs, with my thread, and the dice fit the same, and you will not find the seam because I moved it under the arm.

---

607 upstream commits (6d9c82e..06cad0b, b11480).

Dropped the fork's --spec-accept stochastic (f8a6903 / e9c788d /
60bc680) for upstream ggml-org#27694 --spec-draft-sampling probabilistic: same
rejection sampling, same three hook points, plus spec_retune() so the draft
samples at the target temperature. Running both side by side meant fifteen
conflicting hunks in common/speculative.cpp for one switch. test-spec-accept,
the stochastic/exact/fallback counters in server-common.h and
llama_sampler_grammar_is_active go with it. Server verify order is now synth,
replay, rejection, exact; the draft params block carries result_q/temp/seed
next to the tuner's n_draft_cur.

Kept: the keep vector on common_speculative_process, --spec-draft-auto,
--spec-draft-ctx-step, -lcd write-back, disk cache v4/v5 and checkpoint
spill, perf instrumentation, idempotent synchronize. server-http registers
upstream's callback lambda under path_prefix + path.

Upstream ggml-org#28498 writes n_rot_k/n_rot_v into the KV state blob, so disk-cache
files from the old binary fail with "incompatible key rotation" once, get
reprocessed and rewritten. Not a bug.

test-recurrent-state-rollback: upstream's dummy models (ggml-org#29133) are noisier
and Vulkan drifts ~1e-8 nmse between two contexts even without a restore, so
the composed/partial rollback tests bound nmse at 1e-4 and test_rollback at
1e-7 instead of asking for bit-exact logits. CPU stays bit-exact. 130/130
models pass on Vulkan.

Server pytests: 24 pass with the uncached upstream presets (tinylaya,
tinyopenjev) skipped; they cannot be fetched behind the proxy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

model Model specific testing Everything test related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant