﻿# Tesla P100 precision case: reference logits and the cost of an FP16 carve-out

A P100 llama.cpp report found arithmetic-related logit differences. Later owner measurements qualify its original no-cost claim and show why reference builds matter.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/p100-fast-fp16-logit-reference-microbatch-speed-corrections/
Language: en

A July 2026 Tesla P100 report identifies a useful numerical-evaluation trap: a reference and a tested configuration can share the same arithmetic behavior, hiding the difference one wants to measure. Its proposed llama.cpp change improves agreement with a defined reference in reported tests. Later discussion also shows why the initial claim of a free performance fix needs qualification.

## The original experiment and its reference

The [pinned results record](https://raw.githubusercontent.com/apollo-mg/Project-Apollo/1a41c11439e6661c84c83bec333ccdf964663da6/data/Apollo%20Docs/Pascal_FAST_FP16_Carveout_Results.md) uses four P100 cards, Qwen3.6-27B Q6_K, WikiText-2, a 2048-token context and 32 chunks. The proposed change excludes sm_60 from three FAST_FP16 selection gates, following an existing exception for another Pascal architecture.

The early write-up lists median divergence falling from 0.002298 to 0.000001. However, its methodology also explains that the earlier reference was generated on the unpatched arithmetic path and was replaced after discovering a common-mode error. A reused table must therefore retain its reference provenance instead of treating every old and new number as automatically comparable under one unchanged truth file.

FP32 arithmetic is a defined comparison condition here, not a proof of mathematically exact logits. Weight quantization, cache storage, attention settings and accumulation order remain distinct factors. The [quantization quality guide](/journal/quantization-quality/) explains why a format label alone does not establish equivalent model behavior.

## Logit agreement is not downstream task accuracy

KL divergence measures a difference between output distributions. Top-token agreement asks whether the most likely next token matches the reference. Neither directly measures whether a generated program works or whether an answer is factually correct. Small numerical changes can also lead autoregressive generations down different paths, so one cannot translate a token-agreement percentage into an equal percentage of good conversations.

The [existing P100 hardware guide](/journal/nvidia-tesla-p100-llm-rendering/) covers architecture and build qualification. This case adds measured software-path behavior; it does not establish that every workload on that board has the same error or that unrelated architectures inherit it.

## Later speed measurements change the conclusion

The [upstream issue and discussion](https://github.com/ggml-org/llama.cpp/issues/25593) contain reports of slower prompt processing after the change. The original author subsequently reproduces a change in the direction of the performance result by varying microbatch size. Another contributor reports additional differences between tensor and layer splitting. These observations contradict an unconditional claim that the carve-out has no speed cost.

A [later single-card report](https://github.com/paquitos2/p100-sm60-fp16-carveout) compares the same source commit with and without the patch, using a patched FP32-cache, attention-disabled reference. On its Qwen3.6-35B-A3B IQ2_XXS case with FP16 cache and attention enabled, median divergence improves from 0.004600 to 0.001325, leaving a residual rather than reaching exact agreement.

That report also measures prefill reductions of 7.1%, 10.7% and 12.5% at microbatch sizes 512, 1024 and 2048, while generation speed remains close. These are another owner's bounded measurements, not an independent reproduction performed here. Its explanation for the remaining difference is explicitly unresolved.

## Preserve the decision rather than a universal patch verdict

At review time the upstream issue remains open and labeled unconfirmed. A fork's adoption or a successfully compiled patch does not establish an upstream release policy or validate every configuration. The useful record names source revision, loaded libraries, arithmetic path, cache type, attention setting, split mode and microbatch, then compares both numerical behavior and separate prefill/decode timings.

The practical lesson is stronger than a blanket hardware recommendation: references need their own provenance, and a precision improvement can have a workload-dependent cost. The original P100 investigation and its later corrections are valuable precisely because both sides of that trade-off remain visible.
