llama.cpp/scripts
Xuejun Zhai e626db7caa
server-bench : fix TypeError in histogram generation (#32518)
* fix(server-bench): prevent float bin-count TypeError in histogram generation

Symptom: benchmark crashes while generating gen_rate histogram.

Root cause: np.ceil(...) returns numpy.float64, and that value was used where an integer count/shape argument is required.

Fix: cast ceil result to int before +1, ensuring bin count is an integer.

Result: histogram path completes and gen_rate.png is generated reliably.

* Update scripts/server-bench.py

Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@huggingface.co>

---------

Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@huggingface.co>
2026-11-20 15:16:52 +01:00
..
apple scripts : make the shell scripts cross-platform (#14341) 2025-06-30 10:17:18 +02:00
hip CI/HIP: update fattn symbol names in hip-quality-check (#32331) 2026-11-15 15:53:22 +01:00
jinja ci : bump ty to 0.0.100 (#32030) 2026-11-10 21:54:14 +01:00
snapdragon hexagon: add support for SSM_SCAN op (#31921) 2026-11-13 12:27:51 -08:00
bench-models.sh common: migrate the deprecated --mmap/--no-mmap to --load-mode (#26934) 2026-08-15 16:35:53 +08:00
build-info.sh llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
build-profile.ps1 cmake : add PCH and unity build to improve build times (#28091) 2026-09-11 13:01:29 +02:00
build-profile.sh cmake : add PCH and unity build to improve build times (#28091) 2026-09-11 13:01:29 +02:00
ccache-clear.sh ci : apply ccache-clear with older/min/dry-run to all ccache jobs (#27602) 2026-08-24 10:49:20 +03:00
chat_tts_norm.py chat: add tts_dict for kokoro G2P template (#32397) 2026-11-17 12:52:50 +01:00
check-apiabi-compat.sh ci: Fix --strict mode for API check (#30623) 2026-10-20 13:38:45 +03:00
check-release-apiabi.sh ci : added ABI reports as github artifact (#30619) 2026-10-17 11:41:53 +02:00
check-requirements.sh scripts : make the shell scripts cross-platform (#14341) 2025-06-30 10:17:18 +02:00
ci-status.sh scripts : add ci-status.sh to list active CI runs (#30586) 2026-10-15 16:28:09 +03:00
compare-commits.sh scripts: add sqlite3 check for compare-commits.sh (#15633) 2025-08-28 19:23:22 +08:00
compare-llama-bench.py args: refactor mlock/mmap/directio into load-mode (#20834) 2026-07-23 20:32:56 +08:00
compare-logprobs.py server: use port 9931 by default (#30159) 2026-10-09 10:40:03 +02:00
connect-download.cmake server: add --connect, allow p2p access to server outside LAN (#28277) 2026-10-20 00:23:14 +02:00
create_ops_docs.py Docs: add instructions for adding backends (#14889) 2025-07-27 09:36:43 +08:00
debug-test.sh refactor : remove libcurl, use OpenSSL when available (#18828) 2026-01-14 18:02:47 +01:00
gen-authors.sh scripts : make the shell scripts cross-platform (#14341) 2025-06-30 10:17:18 +02:00
gen-unicode-data.py unicode : add opt-in NFC normalization for Unigram tokenizers (#30390) 2026-10-14 08:33:24 +03:00
get-flags.mk build : pass all warning flags to nvcc via -Xcompiler (#5570) 2024-02-18 16:21:52 -05:00
get-hellaswag.sh scripts : update get-hellaswag.sh and get-winogrande.sh (#20542) 2026-03-14 11:21:50 +01:00
get-pg.sh scripts : make the shell scripts cross-platform (#14341) 2025-06-30 10:17:18 +02:00
get-wikitext-2.sh scripts : improve get-wikitext-2.sh (#19952) 2026-03-02 15:40:49 +01:00
get-winogrande.sh scripts : update get-hellaswag.sh and get-winogrande.sh (#20542) 2026-03-14 11:21:50 +01:00
get_chat_template.py scripts: corrected encoding when getting chat template (#11866) (#11907) 2025-02-18 10:30:16 +01:00
git-bisect-run.sh llama: end-to-end tests (#19802) 2026-03-08 12:30:21 +01:00
git-bisect.sh llama: end-to-end tests (#19802) 2026-03-08 12:30:21 +01:00
hf.sh scripts : make the shell scripts cross-platform (#14341) 2025-06-30 10:17:18 +02:00
install-oneapi.bat support SYCL backend windows build (#5208) 2024-01-31 08:08:07 +05:30
make-release-checks.sh ci : skip container re-tagging when Require Docker is disabled (#30008) 2026-10-05 21:22:08 +03:00
make-release-desc.sh scripts : make-release-desc - link previous release in changelog title (#29336) 2026-09-24 07:46:38 +03:00
make-release-summary.txt ui: move the web UI to ui/apps/chat and call it Llama Chat (#32032) 2026-11-16 17:23:36 +01:00
moe-cache-tune.py llama_moe_cache: run missed experts on CPU, add tuning script (#30966) 2026-11-08 00:20:58 +08:00
pr2wt.sh pi : turn .pi/gg into a system prompt addendum (#30762) 2026-10-19 09:11:13 +03:00
release.sh scripts : add release.sh for release preparation (#27497) 2026-08-21 14:51:26 +03:00
serve-static.js refactor : remove libcurl, use OpenSSL when available (#18828) 2026-01-14 18:02:47 +01:00
server-bench.py server-bench : fix TypeError in histogram generation (#32518) 2026-11-20 15:16:52 +01:00
server-test-function-call.py server: use port 9931 by default (#30159) 2026-10-09 10:40:03 +02:00
server-test-model.py server: use port 9931 by default (#30159) 2026-10-09 10:40:03 +02:00
server-test-parallel-tc.py server: use port 9931 by default (#30159) 2026-10-09 10:40:03 +02:00
server-test-structured.py server: use port 9931 by default (#30159) 2026-10-09 10:40:03 +02:00
sync-ggml-am.sh scripts : update sync scripts 2025-08-18 22:06:44 +03:00
sync-ggml.last sync : ggml 2026-11-13 10:37:44 +02:00
sync-ggml.sh scripts : update sync scripts 2025-08-18 22:06:44 +03:00
sync_vendor.py vendor : update cpp-httplib-0.67.0 [no ci] (#32563) 2026-11-18 21:00:31 +01:00
tool_bench.py ci : bump ty to 0.0.100 (#32030) 2026-11-10 21:54:14 +01:00
tool_bench.sh scripts : make the shell scripts cross-platform (#14341) 2025-06-30 10:17:18 +02:00
ui-assets.cmake ui: cut Llama Chat's first-load JavaScript by 63%, load diagrams, math and PDFs on demand (#32555) 2026-11-19 08:37:35 +01:00
verify-checksum-models.py convert.py : add python logging instead of print() (#6511) 2024-05-03 22:36:41 +03:00
wc2wt.sh pi : turn .pi/gg into a system prompt addendum (#30762) 2026-10-19 09:11:13 +03:00