Skip to content

add top-k slider to web ui - #2186

Closed
mounta11n wants to merge 2 commits into
ggml-org:masterfrom
mounta11n:server-improve-yazan
Closed

mounta11n wants to merge 2 commits into
ggml-org:masterfrom
mounta11n:server-improve-yazan

Conversation

@mounta11n

Copy link
Copy Markdown
Contributor

This pr adds a slider which allows to specify the top-k value. The updateParamsInt function is added to update the top_k value in the params object. The slider is allowing to select a value between 1 and 100 for top_k. I felt like this small improvement was necessary, since there wasn't a sampling option at all.

@mounta11n

Copy link
Copy Markdown
Contributor Author

added in #2366

@mounta11n mounta11n closed this Aug 14, 2023
wbruna pushed a commit to wbruna/llama.cpp that referenced this pull request May 7, 2026
* Linux CU13 CI

* Bump max CUDA arch

* CUDA13 Linux

* Upload the correct build to rolling (CUDA13)

* Downgrade cuda to get better compatibility

Runpod can't handle 13.1, and if they can't handle it neither can the people with a secondary GPU of an older generation.

* Add support for compute capability 89 in NVCCFLAGS
bong-water-water-bong added a commit to 1bit-MONSTER/llama.cpp that referenced this pull request Nov 11, 2026
…m that left the f16 range (engine ggml-org#2186) (#319)

The 8-bit activation blocks store their scale and their scaled sum (scale times the sum of the 32 codes) as f16.
The sum overflows once a block of same-signed activations averages above 2047, while the scale still fits.
qwen3_moe_q4k_q8_1_dot, the one function every Q4_K reader of these blocks goes through, used the stored sum
as is; it now rebuilds a non-finite sum from the 16 codes it already holds (the rule mul_mat_q5_k_q8_plane_wmma
has had since engine ggml-org#1962). A finite stored sum is used unchanged.

New device cases decode_routed_moe.q4_K.large_activation.{1,1000,3000,30000}.

Co-authored-by: bong-water-water-bong <[email protected]>
Co-authored-by: Claude Fable 5.2 <[email protected]>
bong-water-water-bong added a commit to 1bit-MONSTER/llama.cpp that referenced this pull request Nov 11, 2026
… large SwiGLU product stays finite (engine ggml-org#2186) (#317)

The fused routed gate/up publishes silu(gate) * up to an f16 plane, and the routed down projection that reads it
accumulates and publishes in f16 as well. So the product and every partial down sum had to stay under 65504: with
products up to 2.6e4 the down sums already overflowed and 1315 of 2048 outputs were inf.

The gate/up body now publishes the product at 2^-6. The down projection is linear and carries the factor. The three
weighted-reduce kernels, which widen to f32, multiply it back. The plan records the factor on both planes
(scale_log2 6), so a reader that does not ask for it does not find them.

test-hrx-ops routed_moe.q4_K.large_product.{1,30,100,300,1000}: the routed graph with every input scaled, against the
CPU on the same weights held as f32, with distinct router logits. hrx-backend-test: the rows that look the planes up
ask for the scale and assert an unscaled lookup finds nothing.

Co-authored-by: bong-water-water-bong <[email protected]>
Co-authored-by: Claude Fable 5.2 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant