Open, vendor-neutral tests for silent computation errors in AI chips, with every result in OCP Test and Validation format
pip install ai-chip-integrity==0.4.2 Copy PIP instructions
An open tester for silent computation errors in AI chips.
It runs a fixed calculation on a GPU, NPU or CPU many times and proves, element by element, whether the chip returned the right answer every time. Results come out in the Open Compute Project Test and Validation format, so they drop straight into fleet tooling.
Status: early. Six probes so far, numbered as on the roadmap below: screen.py v0.3.4 (probe 1, matrix multiply across several shapes, four precisions and exact FP8), memcheck.py v0.1.1 (probe 2, a sweep of most of the device memory), kernels.py v0.2.3 (probe 3, softmax, layer norm, GELU, rotary embeddings and fused attention), abft.py v0.1.0 (probe 6, checksum-protected matrix multiply with proven thresholds), patterns.py v0.1.4 (probe 9, data patterns that drive the matrix multiply) and counters.py v0.1.1 (probe 11, the chip's own error counters, read around every run of the other five). One device at a time, six measured chips. Read the limits section before relying on a PASS.
It needs Python 3.10 or newer. Install it in its own virtual environment:
python3 -m venv chip-env && source chip-env/bin/activate pip install ai-chip-integrity chip-integrity run --quick # about a minute: every probe and its self-test at small sizes chip-integrity run # the full run: ten OCP result files in chip-integrity-results/ On many Macs the built-in python3 is version 3.9, and pip then reports "No matching distribution found for ai-chip-integrity". Install a newer Python from python.org or with brew install python, and create the environment with its versioned command, for example python3.12 -m venv chip-env.
On an NVIDIA GPU host with Docker and the NVIDIA container toolkit, with nothing else installed:
docker run --rm --gpus all -v "$PWD:/results" ghcr.io/tech4biz-yasha/ai-chip-integrity:0.4.2 Why this exists A chip can pass its vendor diagnostics and still compute wrong answers with no error raised. ByteDance reported at OSDI 2026 that the standard practice of isolating faulty GPUs with synthetic microbenchmarks missed over 60% of defective devices, that defects often appear later through aging, and that the failures are data dependent and unit specific, so a device that passes a general stress test can fail on specific input data (Zheng et al., OSDI '26). A second ByteDance and Tsinghua study found 18 silent corruption incidents and 13 faulty GPUs across 35 million GPU hours of production training (Lei et al., OSDI '26).
Those detectors live inside one company's training stack. This project is the open, vendor neutral version: the same idea, runnable by anyone on any chip, with results in a shared format and a public table.
Every row comes from a run of this code with the result files in results/. Nothing here is modelled or estimated.
Notes on the Apple rows: in the v0.2.0 run all 375 results across 15 steps were inside the bound and bit-for-bit identical to their first run, including RoPE with angles up to 4095 radians; result files results/mac_kernels_v020.jsonl and results/mac_kernels_v020_inject.jsonl. The v0.1.0 run (300 results across 12 steps, all clean, 36 of 36 faults caught) is kept as results/mac_kernels.jsonl and results/mac_kernels_inject.jsonl; the site shows the newest version per device.
Notes on the H100 row: all 375 results across 15 steps were inside the bound and bit-for-bit identical to their first run. Attention ran on FlashAttention in fp16 and bf16 and on the memory-efficient kernel in fp32, each chosen and recorded by the probe. The 16-bit kernels sit closest to their bounds (up to 0.999 for fp16 softmax), as expected where the single rounding of the output dominates the bound; fp32 stays at or below 0.162. The GPU's own functions were well inside the 2^-20 allowance: exp within 1.5e-7 relative, erf within 6.1e-8 and sin and cos within 8.4e-8 absolute. Result files: results/h100_kernels_v022.jsonl and results/h100_kernels_v022_inject.jsonl.
Notes on the Apple row: all 120 runs across 6 steps had every row and column checksum consistent, sat inside the reference bound and were bit-for-bit identical to their first run, and every injected error was located to its exact row and column. Result files: results/mac_abft.jsonl and results/mac_abft_inject.jsonl.
Notes on the H100 row: all 120 runs had every checksum consistent, and every injected error was located to its exact row and column. The proven threshold over a typical value was 2.3 for fp32, 9.8 for fp16 and 14.1 for bf16 at 1024x1024x1024, and 193, 780 and 827 at 32x4096x11008, so at the decode shape the checksums alone can only guarantee to catch errors hundreds of times larger than a typical output; the reference and repeat checks carry the rest. The largest residual seen used under 4% of its threshold (bf16) and about 0.004% (fp32), the margin a statistical threshold would trade for proof. The fp16 checksum at the decode shape was scaled by 2^-2 to stay in range. Result files: results/h100_abft.jsonl and results/h100_abft_inject.jsonl.
Notes on the Apple row: all 840 results across 42 steps were inside the bound and bit-for-bit identical to their first run. The Apple GPU's matrix multiply flushes subnormal inputs to zero in fp32 and bf16 and keeps them in fp16; each precision was checked against the exact model that matches. Result files: results/mac_patterns.jsonl and results/mac_patterns_inject.jsonl.
Notes on the H100 row: all 1,120 results across 56 steps were inside the bound or exact, and bit-for-bit identical to their first run; the worst error over bound was 0.93 (bf16, sparse, 1024x1024x1024). The H100 keeps subnormal inputs in fp32, fp16 and bf16 at both shapes, measured at each step's own shape. The same multiply flushes them on the Apple GPU in fp32 and bf16, and the pod's own host CPU (Xeon Platinum 8480+) flushed bf16 subnormals in its AMX kernels while keeping them at 16x16, so identical inputs can legitimately give different answers on different chips. Result files: results/h100_patterns.jsonl and results/h100_patterns_inject.jsonl.
The H200 sweep took 24.8 s for 111.25 GiB, the A100 sweep took 28.3 s, the H100 sweep took 21.6 s both clean and with injection (21.8 s and 21.7 s in the v0.1.1 run, with every error counter quiet), so about 17 GiB/s of write, read and compare at HBM speed; the Mac sweep took 69 s clean and 85 s with injection. Result files: results/h200_memcheck.jsonl, results/h200_memcheck_inject.jsonl, results/a100_memcheck.jsonl, results/a100_memcheck_inject.jsonl, results/h100_memcheck.jsonl, results/h100_memcheck_inject.jsonl, results/h100_memcheck_v011.jsonl, results/h100_memcheck_v011_inject.jsonl, results/mac_memcheck.jsonl and results/mac_memcheck_inject.jsonl.
The H200, A100 and first H100 rows were measured with v0.2.0, before the FP8 steps existed.
Notes on the H100 v0.3.2 row: all 900 results across 18 steps were inside the bound or exact, and bit-for-bit identical to their first run. FP8 was exact on every element with both full and fast accumulation at all three shapes, including K = 4096. The worst error over bound was 0.0053 for fp32, 0.21 for fp16 and 0.66 for bf16. Result files: results/h100_v032.jsonl and results/h100_v032_inject.jsonl.
Error counters (counters.py), first real cross-check. On the H100, every clean run of the five probes ended counters-quiet. ECC was on, the volatile corrected and uncorrected ECC counts read 0 before and after each run, no memory rows were remapped, and nothing was pending or failed. During the compute run the GPU went from 31 to 34 C, from 345 to 1980 MHz and from 69.7 to 118.9 W. Apple rows read counters-unavailable, as designed.
Notes on the RTX 4090 rows: measured on 11 October 2026 on a rented pod, the same way as the RTX A5000. All 2,515 runs across the five probes were inside their bound or exact, and bit-for-bit identical to their first run, and all 351 planted faults were caught or located. FP8 was exact on every element with both full and fast accumulation at all three shapes, including K = 4096, on this consumer card (compute capability 8.9). The worst error over bound was 0.0053 for fp32, 0.21 for fp16 and 0.66 for bf16 in the compute probe, 0.999 for fp16 softmax in the kernel probe and 0.93 for bf16 sparse in the pattern probe. Attention ran on FlashAttention in fp16 and bf16 and on the memory-efficient kernel in fp32. The card keeps subnormal inputs in fp32, fp16 and bf16. ECC was off, with the same counters as the RTX A5000, so the cross-check proves nothing for this card either. The compute run took 3,567 s, and the timestamps in its file show why: 3,002 s of it went on building three exact references on the pod's CPU, outside the timed GPU runs, for int8, FP8 and fast-accumulation FP8 at 4096x4096x4096 (1,021 s, 996 s and 985 s). From v0.4.1 the probes build those references with a float64 matrix multiply, which gives the same answer bit for bit because every sum is a whole number far below 2^53. The memory sweep took 20.8 s for 18.50 GiB. Result files: results/rtx4090_clean.jsonl, results/rtx4090_inject.jsonl, results/rtx4090_kernels.jsonl, results/rtx4090_kernels_inject.jsonl, results/rtx4090_abft.jsonl, results/rtx4090_abft_inject.jsonl, results/rtx4090_patterns.jsonl, results/rtx4090_patterns_inject.jsonl, results/rtx4090_memcheck.jsonl and results/rtx4090_memcheck_inject.jsonl.
Notes on the RTX A5000 rows: measured on 11 October 2026 on a rented pod, installed with pip install ai-chip-integrity (v0.4.0) and run with chip-integrity run, on Python 3.12.3. All 2,055 runs across the five probes were inside their bound or exact, and bit-for-bit identical to their first run, and all 297 planted faults were caught or located. The worst error over bound was 0.0024 for fp32, 0.21 for fp16 and 0.66 for bf16 in the compute probe, 0.999 for fp16 softmax in the kernel probe and 0.93 for bf16 sparse in the pattern probe. Attention ran on FlashAttention in fp16 and bf16 and on the memory-efficient kernel in fp32. The card keeps subnormal inputs in fp32, fp16 and bf16. Its compute capability is 8.6, below the 8.9 that FP8 needs, so the FP8 steps are recorded as skipped, not passed. ECC was off on this pod. NVML reported no ECC counts, only the remapped-row counters, and rows are only remapped after ECC detects errors, so those counters could not move and the cross-check proves nothing for this card. The v0.4.0 files say counters-quiet; the site shows them as ECC off, the verdict counters.py v0.1.1 records in this case. The memory sweep took 23.7 s for 18.50 GiB. Result files: results/rtxa5000_clean.jsonl, results/rtxa5000_inject.jsonl, results/rtxa5000_kernels.jsonl, results/rtxa5000_kernels_inject.jsonl, results/rtxa5000_abft.jsonl, results/rtxa5000_abft_inject.jsonl, results/rtxa5000_patterns.jsonl, results/rtxa5000_patterns_inject.jsonl, results/rtxa5000_memcheck.jsonl and results/rtxa5000_memcheck_inject.jsonl.
Notes on the H200 row: all 600 results across 12 steps were bit-for-bit identical to their first run and int8 was exact on every element. Result files: results/h200_clean.jsonl and results/h200_inject.jsonl.
Notes on the A100 row: all 600 results across 12 steps were bit-for-bit identical to their first run and int8 was exact on every element, the same as the H100. Result files: results/a100_clean.jsonl and results/a100_inject.jsonl.
Notes on the H100 v0.2.0 row: all 600 results across 12 steps were bit-for-bit identical to their first run, with TF32 and reduced-precision reductions disabled and cuBLAS set deterministic. int8 ran through the tensor cores and matched the exact int64 reference on every element. Wall time per step (56 to 59 s at 4096x4096x4096) is dominated by the CPU-side checking of 16.8 million elements per run, not by the GPU. Result files: results/h100_clean.jsonl and results/h100_inject.jsonl.
Matrix multiplies C = A @ B with fixed inputs, repeated --iters times for every shape and precision. Three shapes run by default: 1024x1024x1024, 4096x4096x4096, and 32x4096x11008, which is the shape of an LLM decode step through a feed-forward layer (M tokens by K hidden by N intermediate). Float inputs are drawn uniformly from [-1, 1) with a fixed seed, then rounded to the test precision, so every precision starts from the same underlying matrices. int8 inputs are integers in [-16, 16), and FP8 inputs come from {-1, 0, 1}.
1. Reference check. For float precisions the reference R is computed in float64 on the CPU from the rounded inputs, and each element of the device result must satisfy
|C - R| <= acc + u_out * ( |R| + acc ) + floor acc = (g + g_ref) * (|A| @ |B|) + (K + 1) * 2^-126 + products with a subnormal input g = n * u / (1 - n * u) Higham's inner product bound g_ref = gamma(K, 2^-53) the float64 reference's own rounding (from v0.3.1) fp32 n = K, u = 2^-24 IEEE FP32 fused multiply-add, TF32 off (CUDA and CPU) fp16 n = 2K, u = 2^-23 matrix units: faithful accumulation, truncation allowed, bf16 any block width (also fp32 on other devices, plus 2^-20 per product) u_out = 2^-24, 2^-11 or 2^-8 output rounding (fp32, fp16, bf16) floor = half the subnormal spacing of the output type The first term is the largest error the accumulation can produce under the arithmetic model in arith.py, plus the reference's own rounding and FP32 underflow; the second is the final rounding to the output type. NVIDIA tensor cores accumulate with truncation rather than round to nearest (Fasi, Higham, Mikaitis and Pranesh, PeerJ CS 2021; Valpey and Pai, arXiv 2502.15999), so for fp16 and bf16 the bound uses the truncation unit and allows for block accumulation. Up to v0.2.0 the bound used n = K, u = 2^-24 for every precision, about four times tighter at fp16 and bf16; every published row passed that tighter bound, so it passes this one. Any element outside the bound, and any NaN or Inf, is a wrong answer, not a tolerance judgement.
For int8 the device returns int32 and the reference is computed exactly in int64, so the bound is zero: any difference at all is a wrong answer.
FP8. From v0.3.0 the probe also runs the FP8 (E4M3) tensor-core path that inference engines use, through torch._scaled_mm with FP32 output, once with full accumulation (fp8) and once with fast accumulation (fp8fast). The inputs come from {-1, 0, 1}, so every product is exact and every partial sum is an integer no larger than K: with K up to 4096 that fits in 13 significant bits. Hopper's FP8 tensor cores are reported to keep 14 bits when they add (DeepSeek-V3 technical report, 2024), so the exact answer is the only correct one, even with fast accumulation, and any difference is a fault or an accumulator narrower than 13 bits. It needs an Ada, Hopper or Blackwell GPU; on an A100 or an Apple GPU these steps are skipped and recorded. Shapes with K above 4096 are skipped for FP8. FP4 follows once a Blackwell card is measured.
2. Repeat check. Every run is compared bit for bit with the first run on the same device. A single flipped bit anywhere in the output fails this check, even when it is far too small to leave the reference bound.
Self-test. --inject N plants a fault in N runs (never run 0), after the result has been copied back from the device. It proves the checker catches corruption; it does not stress the chip. --inject-model picks the fault. bit flips one random bit of one random output element. gpu-sdc plants a fault shaped like NVIDIA's gate-level fault injection study of a data-center GPU (Tung et al., DSN 2026, arXiv:2605.04213): one warp-aligned chunk of 32 output elements is hit, the corrupted elements repeat with a period of 2, 4, 8 or 16 inside it, and each one is set to zero (50.68%), to NaN or an infinity (1.01% together) or has one to eight of its bits flipped, the low bits more often than the high ones (48.31%). The paper gives the flip-count histogram only as a figure, so 35% of the bit-flip outcomes here are single-bit, under the 40% ceiling it reports; integer outputs get only the zero and bit-flip outcomes. mixed, the default, alternates the two, starting with bit. The verdict then becomes injection-self-test-pass only if every injected run was caught and no uninjected run failed.
The matrix multiply touches a few megabytes. The memory sweep fills as much of the device memory as it can (by default 80% of what is free on CUDA, 48% of the recommended maximum on Apple MPS, 2 GiB on CPU, or --gb to choose), writes a known value into every 32-bit word, waits a dwell time (default 2 s), reads everything back and counts every word that differs.
Six patterns run in order: all zeros, all ones, 0xAAAAAAAA, 0x55555555, an address hash (every word pseudo-random from its own address, so neighbouring cells never hold the same value) and the bitwise inverse of that hash. Together they drive every bit of every word to both 0 and 1 while its neighbours hold the opposite, which is what catches stuck bits, coupled cells and weak rows. The expected value is recomputed on the device at read time, so the comparison runs at device speed. For every failing pattern the first ten byte offsets and the OR of the bad bits are logged, so a stuck bit shows up as a single mask such as 0x00000020.
Self-test. --inject N flips one random bit in N random words of device memory after each pattern is written. Unlike the compute probe's self-test, this corrupts real device memory, so it also exercises the read-back path. The verdict is injection-self-test-pass only when every injected flip is located and no other word fails.
Matrix multiply exercises the multiply-accumulate units. A transformer block also runs exponentials, divisions, square roots and error functions, which run on different hardware, and faults are data dependent. This probe runs five kernels through the device's own implementations and checks every output element against a float64 reference on the CPU, with the same two checks as the compute probe.
Precisions: fp32, fp16, bf16. 25 runs per kernel and precision by default.
Bounds. Each kernel has a componentwise bound from standard rounding-error analysis (Higham), applied to every element:
Every bound adds the output rounding of the test precision and an absolute floor of half the subnormal spacing of the output type, the most that rounding to nearest can lose below the smallest normal number.
Stated assumptions, the arithmetic model in arith.py, recorded in every result file:
A device that breaks any of them, or that substitutes the tanh approximation for GELU, shows as outside-error-bound on every run and the message says so. To tell a faulty unit from a loose function library, every softmax, GELU and RoPE step also measures the device's own exp, erf, sin and cos on that step's inputs and records the worst error; when it exceeds the allowance, the verdict message says the library is outside the model. At the test default, the fp32 bounds sit within 3e-5 of the output scale for softmax, layer norm and GELU, and within 1e-3 for attention, whose bound carries worst-case matrix-unit accumulation through the softmax (tests/test_kernels.py::test_bounds_are_tight_for_fp32).
Verdicts, the --inject N self-test and --inject-model are the same as the compute probe.
Huang and Abraham's algorithm-based fault tolerance (IEEE Transactions on Computers, 1984). A is extended with a row holding its column sums and B with a column holding its row sums, so one multiply on the device returns C together with C's own row sums and column sums, computed by the same hardware in the same pass:
A' = [ A ; 2^-sc * (column sums of A) ] B' = [ B , 2^-sr * (row sums of B) ] A' @ B' = [ C , 2^-sr * (row sums of C) ; 2^-sc * (column sums of C) , . ] A wrong element breaks exactly one row check and one column check, and their crossing is the element. No reference answer is needed, so the same check can run inside real work for the cost of one extra row and column (0.2% more arithmetic at 1024x1024, about 3% at the 32-row decode shape).
Thresholds. In floating point a correct row sum differs from its checksum by rounding, so the threshold decides everything. Each one is derived per row and per column from the arithmetic model in arith.py: the bounds of every element in the row and of the checksum element, the float64 host sum, and the rounding of the checksum vectors to the input type, which the host knows exactly and removes. A correct device cannot cross it. The powers of two 2^-sc and 2^-sr keep the checksums inside the input type, the output type and an FP32 accumulator, because a checksum is a sum of m or n values and would otherwise overflow near the top of the range; they are recorded as checksum_scale_power_of_two.
What a proven threshold costs. threshold_over_typical_value reports how large an error must be, compared with a typical element of C, before the checksums are guaranteed to see it. On CPU it is about 0.07 in fp32 at 256x256x256 and between 1.5 and 9 in bf16. Because the threshold adds up the worst-case rounding of every element in a row, it grows with the row length and the inner dimension: on the H100 it was 2.3 in fp32 at 1024x1024x1024 and 193 at 32x4096x11008. Smaller faults are left to the reference check and the bit-for-bit repeat check, which run on every run as in the compute probe.
The blind spot, measured. Four errors in a rectangle, +d, -d, -d, +d, cancel in every row and column sum, so checksums cannot see them. Every run the reference check fails while every checksum holds is counted as checksum_missed_runs and named in the verdict message, never passed.
Self-test. --inject N adds, in N runs, an error four times the threshold to one random element of C after it is copied back; the self-test passes only if the checksums flag exactly that row and that column every time. fp32, fp16 and bf16 are supported; int8 and FP8 need checksums wider than their own types and come later.
Some faults only fire on particular bit patterns, and uniform random inputs almost never produce them. This probe runs the compute probe's matrix multiply, with the same two checks and the same proven or exact reference, on inputs built to reach specific parts of the arithmetic.
Every input set is scaled by a power of two where needed, so that no partial sum, in any order, can overflow the output type or an FP32 accumulator. FP8 keeps its inputs in {-1, 0, 1} so its answers stay exact, so it runs alternate and sparse only; int8 runs extremes, alternate and sparse.
Subnormals. Flushing subnormal inputs to zero is allowed by the arithmetic model, but a bound wide enough to cover both behaviours would let real faults through. So before each subnormal step the probe multiplies a matrix of the step's own shape, A holding one subnormal value everywhere and B one power of two, which makes every product the same normal number and every sum exact. Each output then shows directly whether that element's subnormal inputs were kept or flushed. The shape matters because libraries choose kernels by shape: on an H100 pod's host CPU, the small-matrix path kept subnormals while the larger bf16 kernels (AMX and AVX-512 BF16 instructions, which ignore the flush setting) flushed them. The probe records subnormal_input_policy (keeps, flushes or mixed) and subnormal_inputs_flushed, then checks the device against the exact model that matches, with no allowance for the other. Only a kernel that keeps in some places and flushes in others (mixed) gets the wider bound, which also lets any product with a subnormal input be dropped. Tests in tests/test_patterns.py make the CPU flush inside the matmul only and confirm that judging it against the wrong model fails, emulate a library that picks its kernel by shape, and emulate a kernel that mixes, with and without injected flips.
The bound for every float step adds two terms the compute probe also carries from v0.3.1: the float64 reference's own rounding, gamma(K, 2^-53) * (|A| @ |B|), and (K + 1) * 2^-126 for products that may underflow FP32. Both are far below the other terms on ordinary data; they make the bound hold on the extreme inputs as well.
Every run of the other five probes reads the chip's own error counters at its start and its end, and records them in one more step, device_error_counters. Then it asks the question a silent error raises: did the hardware notice?
On NVIDIA GPUs the counters come from NVML through the nvidia-ml-py package (installed on Linux by requirements.txt): volatile ECC counts since the driver loaded, corrected and uncorrected; remapped memory rows with their pending and failure flags (A100 and newer); and retired pages (older parts). Temperature, SM clock and power are recorded beside them for context. A counter the device does not support is left out of the file, never reported as zero. When the device reports ECC switched off, the verdict is ecc-off rather than counters-quiet: remapped rows and retired pages are driven by ECC detections, so with ECC off no counter can register a memory error (added in v0.1.1 after the RTX A5000 run). The device is matched to NVML by UUID, because CUDA and NVML can number devices differently.
chip-integrity run executes every probe and then its self-test, each in its own process, and writes ten OCP result files. It runs exactly the ten probe commands listed further down, with the same self-test strength, so its files are the same as running them by hand.
The exit code is 0 when every step passes and 1 when any fails; a summary names each step and its file. chip-integrity screen (and memcheck, kernels, abft, patterns) runs one probe with its own options, listed below, and chip-integrity --version prints the suite version and every probe's version.
From a clone of the repository, the probes also run as scripts, with no install beyond the requirements:
python3 -m venv .venv && source .venv/bin/activate pip install -r requirements.txt python screen.py # compute probe; auto picks cuda, then mps, then cpu; 3 shapes x 4 precisions, plus FP8 python screen.py --inject 5 # compute self-test python kernels.py # kernel probe; softmax, layer norm, GELU, RoPE, attention x fp32, fp16, bf16 python kernels.py --inject 3 # kernel self-test python abft.py # checksum probe; C with its own row and column checksums python abft.py --inject 3 # checksum self-test: injected errors must be located python patterns.py # data pattern probe; 8 patterns through the matrix multiply python patterns.py --inject 3 # data pattern self-test python memcheck.py # memory probe; 6 patterns over most of the device memory python memcheck.py --inject 5 # memory self-test python -m pytest -q # 176 tests on CPU; 6 more validate the output against OCP's schema Options for memcheck.py:
Exit code is 0 for PASS and 1 for FAIL. A precision or shape the device does not support (for example int8 matmul on a device without it) is skipped and recorded as an error artifact.
On CUDA, screen.py and kernels.py turn off TF32 and reduced precision reductions, set CUBLAS_WORKSPACE_CONFIG, and ask PyTorch for deterministic algorithms, so the bound and the repeat check both hold. kernels.py also limits fp16 and bf16 attention to the fused kernels and records which one ran; that control needs PyTorch 2.3 or later, and on older versions the device default runs.
To run the schema test, clone ocp-diag-core and set OCP_SCHEMA_DIR to its json_spec/output folder.
python -m pytest -q runs 207 tests on the CPU in under a minute; 6 more validate every probe's output against the official OCP schema when OCP_SCHEMA_DIR is set. On CPUs whose matrix multiply ignores flush-to-zero, such as Apple silicon, the two flushing tests in tests/test_patterns.py skip themselves, giving 174 passed.
All five probes write one JSON object per line following the OCP Test and Validation output spec, version 2.0, written through the official ocptv library:
kernels.py writes one step per kernel and precision, named _ (for example attention_bf16), with runs, attention_backend (attention steps: flash, cudnn, efficient, math or default), size, elements, seconds, assumed_fn_rel_error, reference_check_failed_runs, repeat_check_failed_runs, worst_error_over_bound_ratio, worst_abs_error, worst_nonfinite_values, device_exp_rel_worst_error, device_erf_abs_worst_error or device_sincos_abs_worst_error (softmax, GELU and RoPE steps), the self-test counts, and a diagnosis with the verdict. Its run parameters also record assumed_fn_rel_error and attention_kernels (which attention kernels were allowed).
abft.py writes one step per shape and precision, named abft_ _ , with runs, shape_mkn, seconds, flop_overhead, checksum_scale_power_of_two, row_threshold_median, typical_value_median, threshold_over_typical_value, worst_row_residual_over_threshold, worst_column_residual_over_threshold, checksum_check_failed_runs, reference_check_failed_runs, repeat_check_failed_runs, checksum_missed_runs, in self-test mode injected_runs and injected_runs_located, and a diagnosis with the verdict and, on a failure, the flagged rows and columns.
Every probe ends its run with a device_error_counters step from counters.py: counters_available, ecc_enabled, then for each counter the device supports _before, _after and _delta (ecc_corrected_volatile, ecc_uncorrected_volatile, remapped_rows_corrected, remapped_rows_uncorrected, retired_pages_single_bit, retired_pages_double_bit), remap_pending, remap_failure, temperature_c, sm_clock_mhz and power_w before and after, and a diagnosis with the cross-check verdict.
patterns.py writes one step per shape, precision and pattern, named gemm_ _ _ (for example gemm_bf16_near_max_1024x1024x1024), with the compute probe's measurements plus pattern, input_scale_power_of_two and, for the subnormal pattern, subnormal_input_policy and subnormal_inputs_flushed.
memcheck.py writes one step per pass (memory_sweep_pass1, ...) with bytes_tested, device_memory_bytes, coverage_fraction, dwell_seconds, seconds, one bad_words_ per pattern (validated to be zero outside self-test), a warning log line per failing pattern with the first byte offsets and the bad-bit mask, and in self-test mode injected_ and injected_detected_ .
Twelve probes, each aimed at one part of the chip. Six are built: 1, 2, 3, 6, 9 and 11.
Around the probes: a fleet mode that runs every probe across many devices and collects the files, side by side runs against vendor diagnostics on the same device, and a rulebook for submitting rows to the public table.
Run chip-integrity run --name NAME on your device, or the ten probe commands in Run it, then open a pull request with the ten result files (NAME_clean.jsonl, NAME_inject.jsonl, NAME_kernels.jsonl, NAME_kernels_inject.jsonl, NAME_abft.jsonl, NAME_abft_inject.jsonl, NAME_patterns.jsonl, NAME_patterns_inject.jsonl, NAME_memcheck.jsonl and NAME_memcheck_inject.jsonl), the device name, driver version and PyTorch version. Rows are added only from attached result files.
If you use this in research, please cite it as
Yasha Khandelwal. ai-chip-integrity: an open tester for silent computation errors in AI chips. Version 0.4.2, 2026. https://doi.org/10.5281/zenodo.23302804 https://github.com/tech4biz-yasha/ai-chip-integrity A CITATION.cff file is included.
Yasha Khandelwal, yasha.khandelwal@tech4biz.io
silent data corruption SDC GPU reliability AI accelerator testing OCP Test and Validation ABFT FP8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.




