I use reference outputs, logits comparisons, long-context checks, and repeatable evaluations to assess whether LLM inference is correct. These practices connect to backend and quantization discrepancies, inference bugs and fixes, and balancing speed and correctness.
I asked, “what is correctness of inference?” for an LLM that did QAT and does not ship in full precision.
I asked, “What is acceptable drift?” without stating a preferred tolerance.
I raised evaluating the “First token?” as one possible way to assess inference correctness.
I asked whether to evaluate “N continuations?” as a way to assess inference correctness.
I raised “RMS?” as another possible measure of inference drift.
I also asked whether there is “No drift till the continuation has strong successive winning token?”—that is, whether drift appears only after a strong succession of winning tokens.
I recommend releasing LLM test vectors at t=0.
I recommend test vectors with the expected output for N prompts, covering full-precision models and common quants.
For specific prompts, I recommend providing full logits for a few tokens so errors due to quantization or inference can be computed.
I wrote a specification detailing the model inference, including some errors and what to use for each target.
The inference I described took 2 minutes per image even with MPS.
- I identified continuous syncs, not optimized kernels, and inference errors as problems.
I said that continued feedback, standardized benchmarks, and inference reference tests eventually helps immensely.
I recommend that inference engines compare the logits with the reference implementations, not just look inside the engines.
I recommend that inference engines check what happens with long contexts.
I expect more bugs as LLM models become more complicated, citing DeepSeek v4 as an example; the more bugs we will see.
I find that Evals take time and are boring.
I consider evals a fundamental validation step of sane LLM inference.
I want to make them as easy and fun to run as possible.