Public engineering evidence

llama.cpp ADD_ID fails with invalid configuration argument above 65535 tokens

Upstream correction merged; independent boundary investigation

Status: Upstream correction merged; independent boundary investigation. Evidence reviewed 27 November 2026.

Affected environment

HIP/CUDA ADD_ID; NH Applied tested the HIP module launch path on AMD gfx1151.

Exact fault or symptom

ggml_cuda_compute_forward: ADD_ID failed; ROCm error: invalid configuration argument. The upstream report identified a grid dimension limit when token counts exceed 65535.

Verified findings

NH Applied established a 65,537-token failure boundary for the tested HIP module launch path, with 40/40 experimental controls passed, including expected baseline rejections. The upstream contributor acknowledged the findings; upstream PR #33162 closed the issue.

Qualification scope

The measured boundary applies to the tested launch path. The merged correction was delivered upstream.

Upstream evidence

Need help with a similar fault?

NH Applied provides paid, independent GPU software compatibility investigations, diagnosis and qualification. Include the exact error, software version, hardware and operating system when contacting nigel@nhapplied.co.uk.

Browse fault register · Engineering achievements · NH Applied Doctor