@@ -65,6 +65,14 @@ reaches 16–19 useful TFLOPS at every request size. GPU time by operation, from
6565 head still runs the stock model.
6666- The server waits for the GPU by polling an event with 0.5 ms sleeps: ROCm's synchronize spins a CPU core at 100% for
6767 the whole forward.
68+ - Start-up compiles every kernel copy a request can need. Triton compiles a kernel once per tile config and per class
69+ of each length argument (1, a multiple of 16, other), and the row count picks both, so a request that needs a copy
70+ not compiled yet waits for it: 0.2–0.3 s per copy here, about 1 ms when Triton's disk cache (` ~/.triton/cache ` )
71+ already holds it. In engine 2.3.1 and earlier the start-up ran two lengths only, and the first request whose length
72+ was a multiple of 16 in a range waited: in the request matrix, the first timed pass of S with 1 question (208 tokens)
73+ and of M with 2 (720 tokens), on both machines. With an empty Triton cache those passes took 1.82 and 2.30 s against
74+ 0.18 and 0.33 s for the next pass. Now no request compiles a kernel, and start-up takes 0.9 s longer (8.8 against
75+ 7.9 s with a filled Triton cache; 18.7 against 13.8 s at the first start on a machine).
6876
6977## Results against ` gguf ` : basal-2.0
7078
@@ -103,7 +111,8 @@ questions each), so thermal drift and the power limit hit both engines alike:
103111- Start-up 6.2 s and 10.1 GiB GTT (` gguf ` 3.3 s, 5.8 GiB), as with basal-1.5.
104112- The matrix run (one engine at a time, tables under [ Raw results] ( #raw-results-summary ) ) agrees with the A/B
105113 within 5%, except S with 1 question: ` strix ` 231 ms in the matrix and 142–148 ms in all 5 A/B rounds, ` gguf ` 126 and
106- 131–143 ms.
114+ 131–143 ms. The matrix's first timed pass of that shape compiled kernel copies (322 ms, see
115+ [ What ` --mode strix ` does] ( #what---mode-strix-does ) ).
107116
108117basal-1.5 → basal-2.0 on the same engines (matrix p50):
109118
@@ -148,6 +157,8 @@ reference (one does not fit in 32 GB): `strix` and `gguf` 142 of 144 decisions e
148157 RAM on the way to GTT: 33 s, and 118 s once the system was swapping.
149158- In the matrix, the first timed pass of S with 1 question and of M with 2 is a one-off ` strix ` stall on both
150159 machines (here 545 / 1,316 ms against ~ 190 / ~ 320 ms), so the matrix p50 of those two shapes overstates ` strix ` .
160+ The stall is Triton compiling kernel copies for the first lengths that are a multiple of 16; the start-up now
161+ compiles them ([ What ` --mode strix ` does] ( #what---mode-strix-does ) ).
151162
152163## Results against ` gguf ` : basal-1.5 (request matrix over HTTP)
153164
@@ -237,7 +248,8 @@ agree with these files.
237248** Request matrix** , p50 latency per request over HTTP (states S / M / L / XL ≈ 100 / 570 / 2,000 / 6,000 tokens, 1-20
238249questions; prompt tokens as the server counted them). p50 of the 2 timed passes for ` gguf ` and ` strix ` and of 1 timed
239250pass for ` fast-nocompile ` ; the fp32 reference ran each request once. Two passes give no p95 per shape: they differ by
240- less than 5% except basal-2.0 ` strix ` S with 1 question (141 / 322 ms) and M with 2 (280 / 468 ms), and basal-1.5
251+ less than 5% except basal-2.0 ` strix ` S with 1 question (141 / 322 ms) and M with 2 (280 / 468 ms), whose first timed
252+ pass compiled kernel copies ([ What ` --mode strix ` does] ( #what---mode-strix-does ) ), and basal-1.5
241253` strix ` L with 10 (1.46 / 1.57 s).
242254
243255| request | tokens 1.5 | ` gguf ` | ** ` strix ` ** | ` fast-nocompile ` | fp32 ref. | tokens 2.0 | ` gguf ` | ** ` strix ` ** | fp32 ref. |
0 commit comments