﻿# llama.cpp CUDA OCP FP8: a support headline does not imply every kernel is FP8-native

CUDA OCP FP8 in b12284 has operation-specific scope and deferred work; validate actual kernel arithmetic instead of inferring it from stored weights.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-engine-cuda-ocp-fp8-operation-scope/
Language: en

llama.cpp b12284 adds CUDA OCP FP8 support through a series of conversion, copy, matrix and attention changes. The upstream PR explicitly defers parts of the implementation scope. The responsible compatibility question is which operations, layouts and precision requests the published path handles, rather than whether one “FP8 supported” label applies to the whole model.

## Stored FP8 and native FP8 arithmetic differ

An implementation can store weights in FP8 and convert them before multiplication, or use a hardware-native arithmetic path where supported. These are different execution strategies with different resource implications. The PR’s deferred-work list prevents interpreting the support headline as native FP8 execution for every tiled prefill or MoE path. Record the actual arithmetic route when discussing either speed or numerical behaviour.

## Layout and alignment remain part of coverage

The release history includes strided copies, odd-row conversion fixes and alignment restrictions. A model that loads and runs one aligned matrix therefore provides incomplete evidence for the broader FP8 implementation. A proposed suite should include conversions and copies as well as multiplication, using odd dimensions and supported views. Negative cases matter too: an unsupported layout should be rejected or routed safely instead of entering a kernel with incompatible assumptions.

## Precision requests need explicit interpretation

Upstream identifies honoring certain accumulator and source-precision requests as separate work. A user-level precision request should not therefore be assumed to select a particular accumulation behaviour in every new FP8 route. When a comparison depends on that property, verify the implementation and test it directly. Compare against a reference with matching conversion assumptions, rather than attributing every difference to the FP8 format itself.

## Scope performance claims by phase

Conversion, matrix-vector work and batched prefill can select different implementations. Report their costs separately before combining them into an end-to-end result. The PR contains upstream snapshots, which are not universal predictions for other shapes or devices. This article reports the operation-specific support boundary and a qualification approach, without claiming a new FP8 speed record or asserting that all existing model paths use the newly added kernels.

## Sources

- [llama.cpp b12284 release](https://github.com/ggml-org/llama.cpp/releases/tag/b12284)
- [llama.cpp pull request #28413](https://github.com/ggml-org/llama.cpp/pull/28413)

## Related reading

- [llama.cpp b12202 and the difference between a precision request and an accumulator](/journal/news-llamacpp-b12202-precision-request-vs-accumulator/)
- [__CUDA_ARCH__ is a compilation-pass choice, not a runtime GPU query](/journal/fg2-cuda-arch-macro-device-pass-header-consistency/)
