Commit e626db7ca for llama.cpp

commit e626db7caadee98c6174b1c2dc69f3f43075faa0
Author: Xuejun Zhai <xuejun.zhai@intel.com>
Date:   Fri Nov 20 22:16:52 2026 +0800

    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>

diff --git a/scripts/server-bench.py b/scripts/server-bench.py
index f0984026c..dca157302 100755
--- a/scripts/server-bench.py
+++ b/scripts/server-bench.py
@@ -264,7 +264,7 @@ def benchmark(

     bin_max = np.ceil(token_t_last) + 1
     plt.figure()
-    plt.hist(token_t, np.linspace(0, bin_max, bin_max, endpoint=False).tolist())
+    plt.hist(token_t, np.linspace(0, bin_max, int(bin_max), endpoint=False).tolist())
     plt.xlim(0, bin_max + 1)
     plt.title(name or "")
     plt.xlabel("Time [s]")