You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TINYCODER_TOKEN_TIMES=1 records every decode step and prints one [tg-times]
summary per rep -- mean, p50, p95, max and first-5 vs last-5 -- plus the full
series, labelled "cold" for the warmup pass and "rep N" for the measured ones.
The point is to answer "are warm runs faster?" from a single run instead of
inferring it from two aggregate rates: slow first tokens with a steady tail is
a one-time cost inside the timed region (lazy kernel build, allocator growth,
first touch); a uniformly slow series is clocks or bandwidth. The flag is off
by default and costs no timing calls when unset, so published numbers are
unchanged.
Checked on the CPU path (Qwen2.5-0.5B-Instruct-Q2_K, 8 tokens): the per-token
series sums to 4908.79 ms against the harness's own 4909.0 ms decode window,
the 0.2 ms gap being argmax and loop overhead outside the timed region. With
the flag unset the bench prints nothing new; --help documents the variable.
Also reorders the Gpu* kernel includes in GPUComputeInternal.hpp -- include
order only, no code change; the forward objects were rebuilt against the
reordered header before this commit.