third_party/xla/docs/errors/error_0102.md
Category: Runtime: Program Input Buffer Mismatch
This error occurs when the XLA runtime detects a mismatch between the size of a memory buffer expected by a compiled program and the size of the buffer that is actually provided at execution time.
Sample error message:
XlaRuntimeError: INVALID_ARGUMENT: Executable(jit_embedding_pipeline_step_fn) expected parameter 2482 of size 5242880 (bf16[16,1280,40]{2,1,0:T(8,128)(2,1)}) but got buffer with incompatible size 1638400 (bf16[16,1280,40]{1,2,0:T(8,128)(2,1)}): while running replica 0 and partition 0 of a replicated computation (other replicas may have failed as well).
XLA backends: TPU
The error message indicates both the expected and actual sizes, as well as the tensor shapes and layouts. Note that these errors might occur even if two tensors have the same shape but their size in memory can be different if their physical layout (how the data is tiled and arranged on the hardware) is different.
These errors are predominantly caused by: