Skip to main content

ai-chip-integrity

CI PyPI DOI

An open tester for silent data corruption (SDC) in GPUs and AI chips: wrong answers that come back with no error raised.

Results, one page per chip and the findings so far: chipintegrity.org.

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. Nine 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.3 (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), model.py v0.1.3 (probe 4, a small language model run on the chip with every matrix multiply inside it checked against float64; built, first rows to come), reduce.py v0.1.1 (probe 5, sums, running sums, means and row and column sums, exact or bounded for any summation order; built, first rows to come), abft.py v0.1.0 (probe 6, checksum-protected matrix multiply with proven thresholds), soak.py v0.1.0 (probe 7, hours under load, every result checked with the chip's temperature, clocks and power beside it), 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 eight). One device at a time, eight measured chips. Read the limits section before relying on a PASS.

Quick start

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.5.0

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.

Measured results

Every row comes from a run of this code with the result files in results/. Nothing here is modelled or estimated.

Compute probe (screen.py)

Device Date Tool Shapes (MxKxN) Runs per step fp32 fp16 bf16 int8 FP8 Injected faults caught Verdict
AMD Radeon Pro 5500M via MPS, 16-inch MacBook Pro 2019 (Intel Core i9-9980HK), PyTorch 2.2.2 2026-10-21 v0.3.4 1024x1024x1024, 4096x4096x4096, 32x4096x11008 50 PASS PASS skipped, no bf16 on this backend skipped, no int8 matmul on MPS skipped, no FP8 on this backend 30 of 30 no-silent-errors
NVIDIA B200, driver 580.126.09, PyTorch 2.8.0+cu128, rented pod 2026-10-19 v0.3.4 1024x1024x1024, 4096x4096x4096, 32x4096x11008 50 PASS PASS PASS PASS, exact PASS, exact with full and fast accumulation 90 of 90 no-silent-errors
NVIDIA GeForce RTX 4090, driver 580.159.04, PyTorch 2.8.0+cu128, rented pod, ECC off 2026-10-11 v0.3.2 1024x1024x1024, 4096x4096x4096, 32x4096x11008 50 PASS PASS PASS PASS, exact PASS, exact with full and fast accumulation 90 of 90 no-silent-errors
NVIDIA RTX A5000, driver 580.159.04, PyTorch 2.8.0+cu128, rented pod, ECC off 2026-10-11 v0.3.2 1024x1024x1024, 4096x4096x4096, 32x4096x11008 50 PASS PASS PASS PASS, exact skipped, no FP8 on this card (compute capability 8.6) 60 of 60 no-silent-errors
NVIDIA H100 80GB HBM3 (SXM), driver 580.126.09, PyTorch 2.8.0+cu128, rented pod 2026-10-10 v0.3.2 1024x1024x1024, 4096x4096x4096, 32x4096x11008 50 PASS PASS PASS PASS, exact PASS, exact with full and fast accumulation 90 of 90 no-silent-errors
NVIDIA H200, PyTorch 2.8.0+cu128, rented pod 2026-10-08 v0.2.0 1024x1024x1024, 4096x4096x4096, 32x4096x11008 50 PASS PASS PASS PASS, exact not in v0.2.0 60 of 60 no-silent-errors
NVIDIA A100-SXM4-80GB, PyTorch 2.8.0+cu128, rented pod 2026-10-07 v0.2.0 1024x1024x1024, 4096x4096x4096, 32x4096x11008 50 PASS PASS PASS PASS, exact not in v0.2.0 60 of 60 no-silent-errors
NVIDIA H100 80GB HBM3 (SXM), driver 580.126.09, PyTorch 2.8.0+cu128, rented pod 2026-10-07 v0.2.0 1024x1024x1024, 4096x4096x4096, 32x4096x11008 50 PASS PASS PASS PASS, exact not in v0.2.0 60 of 60 no-silent-errors
Apple GPU via MPS, MacBook Pro (arm64) 2026-10-07 v0.2.0 1024x1024x1024, 4096x4096x4096, 32x4096x11008 50 PASS PASS PASS skipped, no int8 matmul on MPS not in v0.2.0 45 of 45 no-silent-errors
Apple GPU via MPS, MacBook Pro (arm64) 2026-10-07 v0.1.0 1024x1024x1024 50 PASS, 1.6 s PASS, 1.1 s not run not run not run 10 of 10 no-silent-errors

Kernel probe (kernels.py)

Device Date Tool Kernels Size Runs per step fp32 fp16 bf16 Injected faults caught Verdict
AMD Radeon Pro 5500M via MPS, 16-inch MacBook Pro 2019 (Intel Core i9-9980HK), PyTorch 2.2.2 2026-10-21 v0.2.3 softmax, layer norm, GELU, RoPE, attention 4096x4096; RoPE 4096 positions x 128; attention 8 heads x 1024 tokens x 128 25 PASS except RoPE, outside-error-bound PASS except layer norm, GELU and RoPE, outside-error-bound skipped, no bf16 on this backend 30 of 30 outside-error-bound on 4 of 10 steps, every run repeatable; see the notes
NVIDIA B200, driver 580.126.09, PyTorch 2.8.0+cu128, rented pod 2026-10-19 v0.2.3 softmax, layer norm, GELU, RoPE, attention 4096x4096; RoPE 4096 positions x 128; attention 8 heads x 1024 tokens x 128 25 PASS PASS PASS 45 of 45 no-silent-errors
NVIDIA GeForce RTX 4090, driver 580.159.04, PyTorch 2.8.0+cu128, rented pod, ECC off 2026-10-11 v0.2.2 softmax, layer norm, GELU, RoPE, attention 4096x4096; RoPE 4096 positions x 128; attention 8 heads x 1024 tokens x 128 25 PASS PASS PASS 45 of 45 no-silent-errors
NVIDIA RTX A5000, driver 580.159.04, PyTorch 2.8.0+cu128, rented pod, ECC off 2026-10-11 v0.2.2 softmax, layer norm, GELU, RoPE, attention 4096x4096; RoPE 4096 positions x 128; attention 8 heads x 1024 tokens x 128 25 PASS PASS PASS 45 of 45 no-silent-errors
NVIDIA H100 80GB HBM3 (SXM), driver 580.126.09, PyTorch 2.8.0+cu128, rented pod 2026-10-10 v0.2.2 softmax, layer norm, GELU, RoPE, attention 4096x4096; RoPE 4096 positions x 128; attention 8 heads x 1024 tokens x 128 25 PASS PASS PASS 45 of 45 no-silent-errors
Apple GPU via MPS, MacBook Pro (arm64) 2026-10-10 v0.2.0 softmax, layer norm, GELU, RoPE, attention 4096x4096; RoPE 4096 positions x 128; attention 8 heads x 1024 tokens x 128 25 PASS PASS PASS 45 of 45 no-silent-errors
Apple GPU via MPS, MacBook Pro (arm64) 2026-10-08 v0.1.0 softmax, layer norm, GELU, attention 4096x4096; attention 8 heads x 1024 tokens x 128 25 PASS PASS PASS 36 of 36 no-silent-errors

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.

Checksum probe (abft.py)

Device Date Tool Shapes (MxKxN) Runs per step fp32 fp16 bf16 Blind-spot runs Injected errors located Verdict
AMD Radeon Pro 5500M via MPS, 16-inch MacBook Pro 2019 (Intel Core i9-9980HK), PyTorch 2.2.2 2026-10-21 v0.1.0 1024x1024x1024, 32x4096x11008 20 PASS PASS skipped, no bf16 on this backend 0 12 of 12 no-silent-errors
NVIDIA B200, driver 580.126.09, PyTorch 2.8.0+cu128, rented pod 2026-10-19 v0.1.0 1024x1024x1024, 32x4096x11008 20 PASS PASS PASS 0 18 of 18 no-silent-errors
NVIDIA GeForce RTX 4090, driver 580.159.04, PyTorch 2.8.0+cu128, rented pod, ECC off 2026-10-11 v0.1.0 1024x1024x1024, 32x4096x11008 20 PASS PASS PASS 0 18 of 18 no-silent-errors
NVIDIA RTX A5000, driver 580.159.04, PyTorch 2.8.0+cu128, rented pod, ECC off 2026-10-11 v0.1.0 1024x1024x1024, 32x4096x11008 20 PASS PASS PASS 0 18 of 18 no-silent-errors
NVIDIA H100 80GB HBM3 (SXM), driver 580.126.09, PyTorch 2.8.0+cu128, rented pod 2026-10-10 v0.1.0 1024x1024x1024, 32x4096x11008 20 PASS PASS PASS 0 18 of 18 no-silent-errors
Apple GPU via MPS, MacBook Pro (arm64) 2026-10-10 v0.1.0 1024x1024x1024, 32x4096x11008 20 PASS PASS PASS 0 18 of 18 no-silent-errors

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.

Data pattern probe (patterns.py)

Device Date Tool Patterns Shapes (MxKxN) Runs per step fp32 fp16 bf16 int8 FP8 Subnormal inputs Injected faults caught Verdict
AMD Radeon Pro 5500M via MPS, 16-inch MacBook Pro 2019 (Intel Core i9-9980HK), PyTorch 2.2.2 2026-10-21 v0.1.4 wide, mantissa, cancel, alternate, sparse, subnormal, near_max 1024x1024x1024, 32x4096x11008 20 PASS PASS except wide and sparse at 1024x1024x1024, outside-error-bound skipped, no bf16 on this backend skipped, no int8 matmul on MPS skipped, no FP8 on this backend flushed in fp32, kept in fp16 84 of 84 outside-error-bound on 2 of 28 steps, every run repeatable; see the notes
NVIDIA B200, driver 580.126.09, PyTorch 2.8.0+cu128, rented pod 2026-10-19 v0.1.4 wide, mantissa, cancel, alternate, sparse, subnormal, near_max, extremes 1024x1024x1024, 32x4096x11008 20 PASS PASS PASS PASS, exact PASS, exact with full and fast accumulation kept in fp32, fp16 and bf16 168 of 168 no-silent-errors
NVIDIA GeForce RTX 4090, driver 580.159.04, PyTorch 2.8.0+cu128, rented pod, ECC off 2026-10-11 v0.1.2 wide, mantissa, cancel, alternate, sparse, subnormal, near_max, extremes 1024x1024x1024, 32x4096x11008 20 PASS PASS PASS PASS, exact PASS, exact with full and fast accumulation kept in fp32, fp16 and bf16 168 of 168 no-silent-errors
NVIDIA RTX A5000, driver 580.159.04, PyTorch 2.8.0+cu128, rented pod, ECC off 2026-10-11 v0.1.2 wide, mantissa, cancel, alternate, sparse, subnormal, near_max, extremes 1024x1024x1024, 32x4096x11008 20 PASS PASS PASS PASS, exact skipped, no FP8 on this card kept in fp32, fp16 and bf16 144 of 144 no-silent-errors
NVIDIA H100 80GB HBM3 (SXM), driver 580.126.09, PyTorch 2.8.0+cu128, rented pod 2026-10-10 v0.1.2 wide, mantissa, cancel, alternate, sparse, subnormal, near_max, extremes 1024x1024x1024, 32x4096x11008 20 PASS PASS PASS PASS, exact PASS, exact with full and fast accumulation kept in fp32, fp16 and bf16 168 of 168 no-silent-errors
Apple GPU via MPS, MacBook Pro (arm64) 2026-10-10 v0.1.0 wide, mantissa, cancel, alternate, sparse, subnormal, near_max 1024x1024x1024, 32x4096x11008 20 PASS PASS PASS skipped, no int8 matmul on MPS skipped, no FP8 on MPS flushed in fp32 and bf16, kept in fp16 126 of 126 no-silent-errors

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.

Memory sweep (memcheck.py)

Device Date Memory tested Patterns Dwell Bad words Injected flips located Verdict
AMD Radeon Pro 5500M via MPS, 8.0 GiB as system_profiler reports it, 16-inch MacBook Pro 2019 (Intel) 2026-10-21 3.75 GiB (1,006,632,960 words) 6 2 s 0 30 of 30 no-memory-errors
NVIDIA B200, 178.4 GiB total, rented pod 2026-10-19 142.00 GiB (38,117,834,752 words) 6 2 s 0 30 of 30 no-memory-errors
NVIDIA GeForce RTX 4090, 23.5 GiB total, rented pod, ECC off 2026-10-11 18.50 GiB (4,966,055,936 words) 6 2 s 0 30 of 30 no-memory-errors
NVIDIA RTX A5000, 23.5 GiB total, rented pod, ECC off 2026-10-11 18.50 GiB (4,966,055,936 words) 6 2 s 0 30 of 30 no-memory-errors
NVIDIA H200, 139.8 GiB total, rented pod 2026-10-08 111.25 GiB (29,863,444,480 words) 6 2 s 0 30 of 30 no-memory-errors
NVIDIA A100-SXM4-80GB, 79.3 GiB total, rented pod 2026-10-07 63.00 GiB (16,911,433,728 words) 6 2 s 0 30 of 30 no-memory-errors
NVIDIA H100 80GB HBM3 (SXM), 79.2 GiB total, rented pod, v0.1.1 with error counters 2026-10-10 62.75 GiB (16,844,324,864 words) 6 2 s 0 30 of 30 no-memory-errors
NVIDIA H100 80GB HBM3 (SXM), 79.2 GiB total, rented pod, v0.1.0 2026-10-07 62.75 GiB (16,844,324,864 words) 6 2 s 0 30 of 30 no-memory-errors
Apple GPU via MPS, MacBook Pro (arm64), 11.8 GiB recommended max 2026-10-07 5.50 GiB (1,476,395,008 words) 6 2 s 0 30 of 30 no-memory-errors

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.

Hours under load (soak.py)

Device Date Tool Length Shape (MxKxN) Precisions Runs Conditions during the soak Silent faults Injected faults caught Verdict
NVIDIA B200, driver 580.126.09, PyTorch 2.8.0+cu128, rented pod 2026-10-19 v0.1.0 10 min, 10 windows of 60 s 8192x4096x8192 bf16, fp16, fp32, int8, FP8 1,096,120 32 to 60 C, 1477 to 1965 MHz, up to 1014.2 W, sw-power-cap in every window 0 not run no-silent-errors

Notes on the Radeon rows: measured on 21 October 2026 on the author's own 2019 16-inch MacBook Pro, whose discrete GPU is an AMD Radeon Pro 5500M driven through Apple's Metal Performance Shaders by PyTorch 2.2.2, the last PyTorch built for Intel Macs, on Python 3.12.7, with chip-integrity run --name radeon5500m --out-dir results; the two memory steps were rerun after memcheck.py v0.1.3, because the first run crashed on two calls this old backend does not have (torch.mps.recommended_max_memory and a right shift on tensors), and the suite's device label was taught to read the Metal chipset from system_profiler on Intel Macs. It is the first row on a GPU that is neither NVIDIA nor Apple silicon. bf16, int8 and FP8 matrix multiplies do not exist on this backend and every such step was skipped. Of the 1,190 runs across 48 steps in the four short probes, none differed from its first run and 140 sat outside their proven bound, all in six steps where every run agreed with every other. Compute was clean at all three shapes in fp32 and fp16, with worst error over bound 0.0012 for fp32 and 0.43 for fp16; the checksum multiply was clean with every checksum consistent; the memory sweep read all 1,006,632,960 words back correctly; and every self-test caught every planted fault, 186 of 186 across the five probes. The six steps outside the bound: RoPE fp32 at 120.6 times the bound and RoPE fp16 at 7.6, where the probe measured the backend's own sin and cos at 1.22e-4 absolute error against the arithmetic model's 2^-20 (9.5e-7) allowance, so for those two steps the function library, not the chip, is outside the model; GELU fp16 at 2.05 times, with the backend's erf measured at 1.9e-7, inside its allowance, so the excess there is not the erf; layer norm fp16 at 1.85 times, while layer norm fp32 on the same inputs sat at 0.0008 of its bound; and the fp16 matrix multiply at 1024x1024x1024 on wide-exponent inputs at 1.15 times and on sparse inputs at 1.57 times, while the same inputs at 32x4096x11008 sat at 0.18 and 0.33 of the bound and uniform inputs at 1024x1024x1024 in the compute probe at 0.43. The verdict word for these steps covers both a faulty unit and a software stack outside the arithmetic model; the shape and precision pattern is consistent with fp16 kernels keeping intermediates below FP32 on this backend and not with a single faulty unit, which is a reading of the evidence rather than a measurement, so the finding is recorded as open on chipintegrity.org/findings/metal-pytorch-2-2-2.html. The site counts these 140 results separately from silent faults, which it defines as runs that differed from their own repeat, checksums that did not agree, memory words that came back wrong or results under load that differed from the verified first one, and the home page shows both counts. The card keeps subnormal inputs in fp16 and flushes them in fp32. No error counters exist on this backend, so every run reads counters-unavailable. Result files: results/radeon5500m_clean.jsonl, results/radeon5500m_inject.jsonl, results/radeon5500m_kernels.jsonl, results/radeon5500m_kernels_inject.jsonl, results/radeon5500m_abft.jsonl, results/radeon5500m_abft_inject.jsonl, results/radeon5500m_patterns.jsonl, results/radeon5500m_patterns_inject.jsonl, results/radeon5500m_memcheck.jsonl and results/radeon5500m_memcheck_inject.jsonl.

Notes on the B200 rows: measured on 19 October 2026 on a rented pod, installed from the repository at v0.4.2 and run with chip-integrity run --name b200 followed by chip-integrity soak --minutes 10, on Python 3.12.3. All 2,515 runs across the five short 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. The worst error over bound was 0.0053 for fp32, 0.21 for fp16 and 0.66 for bf16 in the compute probe, the same three figures as the H100 and the RTX 4090; 0.999 for fp16 softmax in the kernel probe and 0.935 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 on: the volatile corrected and uncorrected ECC counts read 0 before and after every run, no rows were remapped, and nothing was pending or failed, so every clean run ended counters-quiet. The memory sweep covered 142.00 GiB of the 178.4 GiB the driver reports in 23.7 s, about twice the H100's rate per GiB. The error-counter step reads the chip's temperature and power before and after each run: the compute, kernel, checksum and pattern runs all ended at 32 C and under 237 W, because each run is seconds of GPU work between much longer CPU-side checks, and the memory sweep ended at 45 C and 768 W. The ten-minute soak is the only probe that loaded the chip: it took it to 60 C and 1,014.2 W, at its 1,000 W software power limit, with the driver reporting sw-power-cap in every window and the SM clock moving between 1477 and 1965 MHz. All 1,096,120 results under that load were bit-identical to their verified first result, and the first results the soak was checked against used at most a fifth of their bound (bf16, 0.20). The soak self-test was not run on this pod; it is covered by tests/test_soak.py on the CPU and will be run on the next rented card. The driver version is not in these files, because v0.4.2 did not record it; it was read with nvidia-smi on the pod after the run, and from v0.4.3 every file carries it. Result files: results/b200_clean.jsonl, results/b200_inject.jsonl, results/b200_kernels.jsonl, results/b200_kernels_inject.jsonl, results/b200_abft.jsonl, results/b200_abft_inject.jsonl, results/b200_patterns.jsonl, results/b200_patterns_inject.jsonl, results/b200_memcheck.jsonl, results/b200_memcheck_inject.jsonl and results/b200_soak.jsonl.

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.

Evidence for the gpu-sdc self-test fault on a real GPU: results/evidence/rtx4090_gpu_sdc_reference.jsonl, measured on 15 October 2026 on a rented RTX 4090 with PyTorch 2.8.0+cu128 and v0.4.2, running screen.py --size 1024 --iters 50 --inject 49 --inject-model gpu-sdc. In each of the six precisions the reference check alone flagged all 49 planted faults, 294 of 294 in all. That check judges each run on its own, so the same faults would be flagged if they repeated on every run, which is what a permanent fault does. The file sits in results/evidence/ because it is a self-test measurement rather than a chip row, so the site does not add it to the tables.

First real-model run of the full-model probe (probe 4): results/evidence/i9_9980hk_cpu_model.jsonl, measured on 21 October 2026 on an Intel Core i9-9980HK laptop CPU (the file labels it CPU i386, the processor name macOS reports on Intel) with PyTorch 2.2.2, transformers 4.55.4 and model.py v0.1.2, running model.py --device cpu --max-prompts 8. Qwen2.5-0.5B (494,032,768 parameters, 24 layers, weights pinned by hash in the file) ran in fp32 against the float64 reference on 8 prompts, 77 prompt tokens and 8 generated tokens each, three times. All 36,504 matrix multiply calls were inside their bound, the worst at 0.0219 of it (in layer 21; the output head at 0.0064), the three runs were bit-identical, and every weight read back unchanged. Against float64 the fp32 model picked the same token at all 77 prompt positions and generated the same 8 tokens on every prompt, with the largest logit difference at a decision position 7.7e-5. The reference took 22.7 s and the checked runs 572 s. A CPU is not a chip row, so the file sits in results/evidence/; the first GPU run of this probe is the next paragraph.

First run of the full-model probe (probe 4) on a GPU: results/evidence/radeon_mps_model.jsonl, measured on 21 October 2026 on the AMD Radeon Pro 5500M in the same Intel MacBook Pro, driven through Metal (PyTorch 2.2.2, transformers 4.55.4, model.py v0.1.3), running model.py --device mps --max-prompts 8: the same Qwen2.5-0.5B weights (same hash in the file), the same 8 prompts, 77 prompt tokens and 8 generated tokens each, three runs each in fp16 and fp32. fp32 was clean: all 36,504 multiply calls inside their bound, the worst at 0.0086 of it (layer 17; the output head at 0.0026), the three runs bit-identical, every weight unchanged, the same token as float64 at all 77 prompt positions and the same 8 generated tokens on every prompt, with the largest logit difference at a decision position 4.0e-5. fp16 was repeatable but outside the bound: the three runs bit-identical and every weight unchanged, but 750 of the 36,504 multiply calls sat outside their bound, the worst at 1.49 times it in layer 16; layers 3 and 21 carried 213 and 219 of the 750, and layers 1, 2, 22 and 23 and the output head carried none (head worst 0.93). Against float64 the fp16 model picked a different token at 1 of the 77 prompt positions, where float64's top two logits were 0.0233 apart, and on one other prompt its generated tokens diverged from the sixth token; the largest logit difference at a decision position was 0.342. The step verdict is outside-error-bound; no run differed from another and no weight changed, so it is not a silent fault. It is the same backend and precision as the two fp16 pattern steps outside the bound in the Radeon row, and it is recorded with them on the finding on Metal through PyTorch 2.2.2. The file carries the counts per layer, not per projection, so which of a layer's seven multiplies went outside is not recorded; a later version will record it. The reference took 26.0 s; the checked runs took 2,566 s for fp16 and 1,003 s for fp32, against 572 s for fp32 on the CPU of the same machine, since the check copies every multiply's input, weight and output back to the CPU for every call, which on the CPU run was no copy at all.

First run of the reduction probe (probe 5) on a GPU: results/evidence/radeon_mps_reduce.jsonl, measured on 21 October 2026 on the AMD Radeon Pro 5500M in an Intel MacBook Pro, driven through Metal (PyTorch 2.2.2, reduce.py v0.1.1), running reduce.py with the Apple-GPU defaults: a 4,194,304-element vector and a 2048 by 2048 matrix in fp16 and fp32, 18 steps of 3 runs each. Every step was clean: every run bit-identical, every exact result exact, every bounded result inside its bound. The worst error over bound was 0.793 for the fp16 running sum and 0.224 for the fp32 one (the early prefixes, where the bound is tightest), 0.215 and 0.21 for fp16 row and column sums, 8.9e-5 and 1.1e-4 for fp32 row and column sums, and 2.9e-7 (fp16) and 1.8e-10 (fp32) for the long sum and the mean, where the any-order bound is loose by design. The self-test run before it, reduce.py --inject 2, planted 36 faults across the 18 steps and caught and located all 36. The file sits in results/evidence/ until the probe has its site pages and joins run.

Smoke run of v0.4.2 on the same RTX 4090: chip-integrity run --quick, which runs every probe and its self-test at small sizes with the default mixed faults. All 10 steps passed, and the compute, kernel and data pattern self-tests caught all 153 planted faults, 55 of them NVIDIA-shaped. The quick run is a smoke test, so its files also sit in results/evidence/ and never replace a chip row: rtx4090_quick_abft.jsonl, rtx4090_quick_abft_inject.jsonl, rtx4090_quick_clean.jsonl, rtx4090_quick_inject.jsonl, rtx4090_quick_kernels.jsonl, rtx4090_quick_kernels_inject.jsonl, rtx4090_quick_memcheck.jsonl, rtx4090_quick_memcheck_inject.jsonl, rtx4090_quick_patterns.jsonl, rtx4090_quick_patterns_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.

Notes on the Apple rows: in the v0.2.0 run all 450 results across 9 steps were bit-for-bit identical to their first run, so the matrix multiply on this chip is deterministic, and fp16 and bf16 stayed inside the FP32-accumulation error bound at every shape. The 4096x4096x4096 steps took 23 to 30 s each for 50 runs. The fault column is the self-test described below (software injected, not a property of the chip). Result files: results/mac_v020.jsonl and results/mac_v020_inject.jsonl.

Probe 1: compute (screen.py)

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}.

Every run is checked two ways.

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. The same comparison has since been validated on CPUs at fleet scale: Vavelidou et al. (ITHICA, MICRO 2026, arXiv:2605.15638) found that the defects most likely to escape manufacturing test produce different outputs from the same instruction and inputs depending on the context it runs in, and that checks built on that comparison detected 39% more defective servers than the final-output checks they were added to.

Verdict per precision

Verdict Meaning
no-silent-errors Every run inside the bound and bit-identical to run 0
silent-data-corruption Some runs differ from run 0 (intermittent fault), possibly also outside the bound
outside-error-bound All runs agree with each other but sit outside the bound: a faulty unit, a device breaking the arithmetic model (accumulating below FP32, or TF32 used for fp32), or an int8 or FP8 result that is not exact
nondeterministic-kernel At least 3 runs and at least 10% of runs differ from run 0, yet all stay inside the bound. The repeat check cannot be used on that device and precision

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.

Probe 2: memory (memcheck.py)

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.

Verdict per pass

Verdict Meaning
no-memory-errors Every word read back correctly on every pattern
memory-errors At least one word differed; the measurements say which patterns and the log says where

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.

Probe 3: transformer kernels (kernels.py)

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.

Kernel Default input Operations exercised
softmax 4096 x 4096 logits, N(0, 3) exp, sum reduction, divide
layernorm 4096 x 4096 activations, N(2, 1.5), random weight and bias mean, variance, reciprocal square root, scale, shift
gelu 4096 x 4096, N(0, 3), erf form erf, multiply
rope 4096 positions x 128 (one head), base 10000, FP32 angles up to 4095 rad sin and cos with large-angle argument reduction, multiply, add
attention 8 heads x 1024 tokens x 128, scaled_dot_product_attention QK^T, softmax, PV through the fused kernel

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:

  1. softmax: the relative error of each exponential, EPS_FN + u|x_i - max| + u, carried through the sum (gamma_n) and the quotient.
  2. layer norm: error of the mean, of each deviation, of the variance (sized to cover the two-pass, Welford and E[x^2] - mean^2 methods), of the reciprocal square root, then of scale and shift.
  3. GELU: argument scaling, erf, 1 + erf, the product and the output rounding.
  4. rope: cos and sin of the FP32 angles (2^-20 absolute), their cast to the test type, then two products and a sum, each rounded in the test type, as eager PyTorch does.
  5. attention: the matrix-unit error of every logit from QK^T, propagated through softmax as expm1(2 * max logit error); the exp of each weight and of every online-softmax rescale (at most one per block of 16 keys); the row sum; P rounded to the input precision, with an absolute allowance where P is subnormal; and the matrix-unit error of PV.

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:

  1. Scalar FP32 arithmetic rounds to nearest; matrix units accumulate faithfully (truncation allowed).
  2. exp, divide, square root and reciprocal square root are within EPS_FN = 2^-20 relative error, eight FP32 ulps anywhere in a binade. erf, sin and cos are within 2^-20 absolute, which admits the absolutely accurate approximations vector libraries use (PyTorch's ARM CPU erf is Abramowitz and Stegun 7.1.26: up to 5.4e-7 absolute error, but up to 100% relative near zero).
  3. Fused attention keeps logits and softmax in FP32 and holds P in the input precision. On CUDA, fp16 and bf16 attention may only use the fused kernels (flash, memory-efficient, cuDNN), so the unfused path, which rounds logits to the input precision, cannot stand in silently. The fused kernels take a batch dimension, so the probe passes (1, heads, tokens, dim), tries each kernel on its own in the order flash, cuDNN, memory-efficient (then the math path for fp32 only), runs the first that accepts the inputs, and records its name as attention_backend; if none accepts, the step is refused with every reason.

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.

Probe 4: full model forward pass (model.py)

A chip can pass every kernel on its own and still return a wrong token, because a model strings thousands of those kernels together with real weights and real activations, in shapes the probes above never use. This probe runs a small open language model on the chip (Qwen2.5-0.5B by default, downloaded from the Hugging Face Hub) with a float64 copy of the same model on the CPU as the reference, and checks it three ways. The matrix multiplies are where a wrong answer is made, and a bound carried through a whole model would be far too loose to catch anything, so every matrix multiply inside the model (the attention projections, the MLP and the output head, about 170 of them in the default model) is checked on its own: a hook sees the input the chip actually gave it, computes the float64 answer from that same input and the proven rounding bound from probe 1, and every output element has to sit inside the bound. The kernels between the multiplies (RMSNorm, SwiGLU, rotary embeddings, softmax) are covered by probe 3 with their own bounds. Second, after every run the weights are read back from the chip and compared bit for bit with what was loaded, because a flipped bit in a weight sitting in device memory is the simplest silent fault there is. Third, the whole run, every logit of the prompt and of each generated token, is repeated and compared bit for bit, as in probe 1.

The decision figures against float64 are recorded as measurements, not verdicts: how many prompt positions pick a different token than float64 would, the smallest float64 margin at those positions (a near tie is a legitimate place for fp16 or bf16 to differ), the first generated token that diverges, and the largest logit difference at the decision position. Low precision can flip a near tie without any fault, so the verdict rests on the three checks above.

Verdict Meaning
no-silent-errors Every run bit-identical, every multiply inside its bound, every weight unchanged
silent-data-corruption Runs differed, or a weight came back changed from the chip: an intermittent fault or a memory fault
outside-error-bound Runs agree but a multiply sat outside its bound: a faulty unit, or an arithmetic model this chip does not follow
nondeterministic-kernel Runs differed but every multiply stayed inside its bound, so the bit-for-bit check cannot judge this chip and precision; reported as a finding
model-pinned, reference-computed Setup steps: the weights and tokenizer vocabulary are hashed into the file, and the float64 reference is computed on the CPU

The default prompt set is sixteen short English prompts built into the probe (scope stated: English, general knowledge, up to 64 tokens each, 8 tokens generated greedily after each); --prompts FILE replaces it with one prompt per line. Every step records the weights hash, so a row names exactly which weights it measured. The defaults run bf16, fp16 and fp32 on CUDA, fp16 and fp32 on Apple GPUs and fp32 on CPUs, three clean runs per precision. The default model needs about 7 GB of host memory (the checkpoint, its float64 copy while the reference is computed, and a copy in the tested precision with a pristine twin for the read-back check); the output head's weight goes to float64 one slice at a time so no check needs more than a few hundred MB of scratch. The float64 reference takes under a minute on a laptop CPU; the checked runs took about ten minutes for fp32 on a laptop CPU and 17 to 43 minutes per precision on a Radeon through Metal (both under Measured results), with progress printed per prompt; CUDA is not yet measured. --inject N adds N runs with a planted fault after the clean ones, alternating between two kinds: one output element of one random multiply is moved eight bounds away from its float64 answer on the chip, which the multiply check must catch at that very multiply; and one bit of one random weight is flipped on the chip (restored afterwards), which the read-back must catch. Both must also be localised to the right layer or parameter for the self-test to pass. A random single-bit flip in an intermediate value is deliberately not used: rounding further down the model can absorb it so that nothing changes at the output, which is a masked fault rather than a missed one, and a self-test has to be deterministic. --model tiny builds a two-layer model of the same family from the seed with no download, which is how the self-test runs on a CPU in CI. The probe needs the transformers package (pip install 'ai-chip-integrity[model]'); transformers 4.56 and newer need PyTorch 2.6 or newer, so on a machine stuck on an older PyTorch, such as an Intel Mac on 2.2.2, install transformers==4.55.4, which the probe supports.

v0.1.3 covers one prompt at a time through the prefill and the cached decode path, and the attention projections, MLP and output head. Its first real-model runs, Qwen2.5-0.5B in fp32 on a laptop CPU and in fp16 and fp32 on an AMD Radeon Pro 5500M through Metal, are in results/evidence/ and described under Measured results. Batched prompts, int8 and FP8 weights, an inference server path (vLLM class) and a larger prompt set come later.

Probe 5: reductions (reduce.py)

Adding is everywhere in AI: every matrix multiply is a chain of additions, every softmax adds up a row, every norm adds up squares, and training adds gradients across devices. Probes 1 to 4 only see the adders inside a matrix multiply. A chip also has separate reduction paths for plain sums over long vectors, running sums, means, and sums down the rows and columns of a matrix, and those run through different kernels. This probe hands the chip a long vector (8,388,608 numbers on CUDA, 4,194,304 on Apple GPUs, 1,048,576 on CPUs) and a square matrix (4096, 2048 or 1024 a side) in each precision and asks for the sum, the running sum, the mean, and the row and column sums. Every result is checked two ways, and each operation is a step for each kind of input.

The exact inputs are whole numbers from {-1, 0, 1}, arranged in pairs so that every running total stays between -1 and 128: every partial sum in any order is an integer the output type holds exactly, even bf16 with its 8-bit mantissa, so the true answer is one exact number and any difference is a fault (or an accumulator narrower than the FP32 the arithmetic model assumes, which is also a finding). The bounded inputs are random numbers rounded to the input type, checked with Higham's summation bound: for n terms the error is at most gamma(n-1) times the sum of their magnitudes whatever order or tree the chip adds in, plus the rounding of the result into its type and the float64 reference's own error, so the chip's kernel never has to be known. That bound is loose for a very long sum (at 8 million terms it is about the sum of magnitudes itself), which is why the exact case exists; for row and column sums of 4096 terms, running sums early in the vector, and the mean, it is tight. The reference is float64 recursive summation with its own error term in the bound, which is stricter than Kahan summation in the input type and the same reference every other probe uses. Every result is also repeated three times and compared bit for bit.

Verdict Meaning
no-silent-errors Every run bit-identical, every result exact or inside its bound
silent-data-corruption Runs differed and a result was wrong: an intermittent fault
outside-error-bound Runs agree but a result was wrong on every run: a faulty unit, or an accumulator narrower than the arithmetic model assumes
nondeterministic-kernel Runs differed but every result stayed inside its bound; reported as a finding

--inject N adds N planted-fault runs per step after the clean ones: one result is moved eight bounds away from its float64 answer, or by one whole unit in the exact case, at a random element for the running sum and the row and column sums, and the check must catch it and locate it. Vector lengths and matrix sides are powers of two and the vector is capped at 2^23 elements so that every partial sum stays exact in an FP32 accumulator and the bound stays defined (at 2^24 terms Higham's gamma is undefined).

v0.1.1 covers one device. Its first GPU run, the AMD Radeon Pro 5500M through Metal, is in results/evidence/ and described under Measured results. Variance, and the all-reduce across GPUs over NVLink and PCIe with checksums that must agree at both ends, come next; the latter needs a multi-GPU node.

Probe 6: checksum-protected matrix multiply (abft.py)

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.

Probe 7: hours under load (soak.py)

Some faults only show up once a chip has been hot for a while, has lowered its clocks or sits at its power limit, so a short run can pass a chip that fails in production. This probe keeps the chip busy for as long as you ask and checks every result it produces. One fixed matrix multiply runs back to back, one precision at a time in rotation, and every result is compared bit for bit with the first one. That first result is checked against the proven rounding bound before the soak begins (for int8 and FP8, against the exact answer), and repeated three times to make sure the kernel gives the same bits. With TF32 off, deterministic algorithms and CUBLAS_WORKSPACE_CONFIG set, as in the compute probe, the same multiply must return the same bits every time, so any result that differs is a fault. A precision whose first result or repeats fail is left out of the soak and fails the run.

The soak is cut into windows, one minute and one precision each by default, and every window is one OCP step with the chip's state beside its verdict. On NVIDIA GPUs that state comes from NVML: temperature, SM and memory clock, power, and the reasons the driver gives for running below full clock, such as sw-power-cap or hw-thermal-slowdown. A result that differs is also checked against the bound (up to three per window), and the temperature at the moment the first one was seen is recorded, so every failure carries the conditions it happened in. Apple GPUs and CPUs are soaked the same way, without the telemetry.

Verdict Meaning
no-silent-errors Every run in the window was bit-identical to the verified first result
silent-data-corruption Runs differed from the verified first result. For int8 and FP8, whose answer is exact, any difference is a wrong answer
nondeterministic-kernel Many runs differed but every one checked stayed inside the bound, so this kernel does not repeat itself exactly on this device and the bit-for-bit check cannot judge it
first-result-verified Setup step: the first result is inside the bound (or exact) and its three repeats match it bit for bit
outside-error-bound Setup step: the first result sits outside the bound, so it cannot serve as the reference

On CUDA the default shape is 8192x4096x8192: K stays at 4096 so FP8 keeps its exact answer, and M and N are large enough that each multiply takes several times longer than the comparison that follows it. The defaults soak bf16, fp16, fp32, int8 and FP8 on CUDA, fp16 and fp32 at 1024x1024x1024 on Apple GPUs, and fp32 at 256x256x256 on CPUs. On CUDA the float64 reference and bound kept for each float precision take about 1.1 GB of host memory at the default shape, and the inputs and verified results about 2 GB of device memory in all. --inject N plants a fault in N runs of every window, with the compute probe's fault models, on a copy taken back from the device, so the self-test proves the check catches corruption while the chip is under load without touching the chip. Ctrl-C ends the soak cleanly: the window in progress is recorded, the summary step says it was interrupted, and the error counters are still read.

v0.1.0 soaks the matrix multiply. Running the kernel, checksum and memory probes under the same load comes later, and the clocks are left to the driver: lowering them on purpose is probe 8.

Probe 9: data patterns (patterns.py)

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.

Pattern Inputs What it reaches
wide random exponents across about 80 binades (fp32, bf16) or 15 (fp16) the shifters that align operands before they are added
mantissa every mantissa bit set, at exponents -2 to 2 the longest carry chains in multipliers and adders
cancel A = [Y Y], B = [X; -X] an exact answer of zero, so only rounding may remain
alternate checkerboard signs, so every product in a dot product has the same sign sums at their largest, the worst case for truncating accumulators
sparse nine values in ten exactly zero zero handling and zero skipping
subnormal A below the smallest normal number of its type, B large enough that every product is normal the subnormal input path
near_max scaled so the largest possible partial sum is a quarter to a half of the output type's maximum the largest exponents and the output conversion
extremes int8 only: -128, -127, 0 and 127 the corners of the integer multiplier

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.

Probe 11: error counters (counters.py)

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?

Verdict Meaning
counters-quiet No counter moved and the probe found nothing wrong
silent-error-confirmed The probe found wrong answers and every counter stayed quiet: silent in the strict sense, the case ECC and the error logs cannot see
hardware-noticed The probe found wrong answers and a counter moved too
corrected-during-run A corrected-error counter moved but every answer was right. The hardware caught something; on a healthy chip that is worth watching. The run still passes
uncorrected-during-run An uncorrected-error counter moved, or row remapping failed: a hardware fault even if the answers held. The run fails
self-test-run Faults were planted in software, so no cross-check is drawn; the counters are still recorded
counters-unavailable No NVIDIA management library, or a device without these counters (Apple GPU, CPU). Never fails a run
ecc-off ECC is switched off on the device, so its memory error counters cannot move and their silence proves nothing. The probes' own checks still stand. Never fails a run

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.

Run it

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.

Options for chip-integrity run:

Option Default Meaning
--device auto cpu, mps, cuda or cuda:N, passed to every probe
--name chip prefix of the result file names
--out-dir chip-integrity-results folder for the files; chip-integrity-quick with --quick
--quick off small sizes: a smoke test, not a publishable row
--skip none comma list of probes to leave out, from screen, kernels, abft, patterns, memcheck

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. chip-integrity soak runs probe 7, chip-integrity model runs probe 4 and chip-integrity reduce runs probe 5 the same way; run leaves them out for now (the soak lasts as long as you ask, the model probe downloads a model, and the reduction probe joins run at the next release together with its site pages).

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 soak.py                   # hours under load; 60 minutes by default, one precision per minute
python soak.py --minutes 5 --inject 3   # soak self-test
python model.py                  # full model forward pass; downloads Qwen2.5-0.5B, 16 prompts, three runs per precision
python model.py --model tiny --inject 2   # model self-test on a two-layer model built from the seed, no download
python reduce.py                 # reductions: sum, running sum, mean, row and column sums, exact and bounded, per precision
python reduce.py --inject 2      # reduction self-test
python -m pytest -q              # 305 tests on CPU; 9 more validate the output against OCP's schema

Options for memcheck.py:

Option Default Meaning
--device auto cpu, mps, cuda or cuda:N
--gb none memory to test in GiB; overrides --fraction
--fraction 0.8 fraction of free device memory to test
--chunk-mb 256 allocation chunk size
--dwell 2.0 seconds between write and read-back
--passes 1 repeat the whole pattern set
--seed 1234 hash pattern seed
--inject 0 bit flips to inject per pattern (self-test, max 100)
--out memcheck.jsonl OCP output file

Options for screen.py:

Option Default Meaning
--device auto cpu, mps, cuda or cuda:N
--shapes 1024x1024x1024,4096x4096x4096,32x4096x11008 comma list of MxKxN
--size none shortcut for one square NxNxN shape
--iters 50 runs per shape and precision
--dtypes fp32,fp16,bf16,int8,fp8,fp8fast comma list from fp32, fp16, bf16, int8, fp8, fp8fast
--seed 1234 input seed
--inject 0 faults to inject per step (self-test)
--inject-model mixed self-test faults: bit, gpu-sdc (shaped like Tung et al., DSN 2026) or mixed, which alternates them
--out results.jsonl OCP output file

Options for kernels.py:

Option Default Meaning
--device auto cpu, mps, cuda or cuda:N
--size 4096 rows and columns for softmax, layer norm and GELU, positions for RoPE (head dimension 128); attention uses 8 heads x size/4 tokens x 128
--iters 25 runs per kernel and precision
--kernels softmax,layernorm,gelu,rope,attention comma list of kernels
--dtypes fp32,fp16,bf16 comma list from fp32, fp16, bf16
--seed 1234 input seed
--inject 0 faults to inject per step (self-test)
--inject-model mixed self-test faults: bit, gpu-sdc (shaped like Tung et al., DSN 2026) or mixed, which alternates them
--out kernels.jsonl OCP output file

Options for abft.py:

Option Default Meaning
--device auto cpu, mps, cuda or cuda:N
--shapes 1024x1024x1024,32x4096x11008 comma list of MxKxN
--iters 20 runs per shape and precision
--dtypes fp32,fp16,bf16 comma list from fp32, fp16, bf16
--seed 1234 input seed
--inject 0 errors to inject per step (self-test)
--out abft.jsonl OCP output file

Options for patterns.py:

Option Default Meaning
--device auto cpu, mps, cuda or cuda:N
--shapes 1024x1024x1024,32x4096x11008 comma list of MxKxN
--iters 20 runs per shape, precision and pattern
--dtypes fp32,fp16,bf16,int8,fp8,fp8fast comma list of precisions
--patterns all eight comma list from wide, mantissa, cancel, alternate, sparse, subnormal, near_max, extremes
--seed 1234 input seed
--inject 0 faults to inject per step (self-test)
--inject-model mixed self-test faults: bit, gpu-sdc (shaped like Tung et al., DSN 2026) or mixed, which alternates them
--out patterns.jsonl OCP output file

Options for soak.py:

Option Default Meaning
--device auto cpu, mps, cuda or cuda:N
--minutes 60 how long to keep the chip under load, after the setup steps
--window-s 60 seconds per window; each window is one precision and one OCP step
--sample-s 5 seconds between telemetry readings
--shape by device one MxKxN: 8192x4096x8192 on CUDA, 1024x1024x1024 on Apple GPUs, 256x256x256 on CPUs
--dtypes by device comma list from fp32, fp16, bf16, int8, fp8, fp8fast, one per window in rotation: bf16,fp16,fp32,int8,fp8 on CUDA, fp16,fp32 on Apple GPUs, fp32 on CPUs
--seed 1234 input seed
--inject 0 faults to inject per window (self-test)
--inject-model mixed self-test faults: bit, gpu-sdc (shaped like Tung et al., DSN 2026) or mixed, which alternates them
--out soak.jsonl OCP output file

Options for model.py:

Option Default Meaning
--device auto auto, cpu, mps, cuda or cuda:N
--model Qwen/Qwen2.5-0.5B Hugging Face model id, or tiny for a two-layer model built from the seed (no download)
--dtypes by device comma list from fp32, fp16, bf16 for the chip: bf16,fp16,fp32 on CUDA, fp16,fp32 on Apple GPUs, fp32 on CPUs; the reference is always float64 on the CPU
--prompts built-in text file, one prompt per line (default: the sixteen built-in prompts)
--max-prompts 16 prompts to use from the set
--max-tokens 64 prompt tokens kept per prompt
--new-tokens 8 tokens generated greedily after each prompt
--runs 3 clean runs per precision; runs after the first are compared bit for bit
--attention sdpa attention implementation, sdpa or eager
--seed 1234 random seed
--inject 0 planted-fault runs per precision (self-test)
--out model.jsonl OCP output file

Options for reduce.py:

Option Default Meaning
--device auto auto, cpu, mps, cuda or cuda:N
--n by device vector length, a power of two from 256 to 8388608: 8388608 on CUDA, 4194304 on Apple GPUs, 1048576 on CPUs
--side by device matrix side for the row and column sums, a power of two from 32: 4096 on CUDA, 2048 on Apple GPUs, 1024 on CPUs
--dtypes by device comma list from fp32, fp16, bf16: fp32,fp16,bf16 on CUDA, fp16,fp32 on Apple GPUs, fp32 on CPUs
--ops sum,cumsum,mean,rowsum,colsum comma list of operations
--runs 3 clean runs per step; runs after the first are compared bit for bit
--seed 1234 random seed
--inject 0 planted-fault runs per step (self-test)
--out reduce.jsonl OCP output file

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.

Run it in CI

action.yml in this repository is a GitHub Action, so a fleet can screen a card on a schedule and fail the build when a wrong answer comes back. The runner needs Python 3.10 or newer on PATH.

On a self-hosted runner that has the GPU:

name: Chip integrity
on:
  schedule:
    - cron: "0 3 * * 1"
  workflow_dispatch:

jobs:
  check:
    runs-on: [self-hosted, gpu]
    steps:
      - uses: tech4biz-yasha/ai-chip-integrity@v0.5.0
        with:
          device: cuda
          name: h100-node-01
          torch-index-url: https://download.pytorch.org/whl/cu128

A one-minute smoke test on a hosted runner, which proves the wiring without a GPU:

      - uses: actions/setup-python@v7
        with:
          python-version: "3.12"
      - uses: tech4biz-yasha/ai-chip-integrity@v0.5.0
        with:
          device: cpu
          quick: "true"

Inputs:

Input Default What it does
device auto auto, cpu, mps, cuda or cuda:N
name chip prefix for the result file names, usually the chip or the node
out-dir chip-integrity-results folder the result files are written to
quick false true runs small sizes: a smoke test, not a publishable row
skip empty comma list of probes to leave out, from screen,kernels,abft,patterns,memcheck
version empty version to install from PyPI; empty installs the newest
torch-index-url empty extra pip index for PyTorch; empty keeps the torch already on the runner
install true false uses the chip-integrity already on PATH
upload-results true upload the result files as a build artifact
artifact-name chip-integrity-results name of that artifact
fail-on-fault true false reports a fault and lets the build pass; a run error always fails

Outputs: result (clean, fault or error), exit-code and out-dir.

A run that cannot complete fails the build whatever fail-on-fault says, so a broken run is never read as a clean chip.

Files

Path What it is
chip_integrity/screen.py Probe 1, matrix multiply
chip_integrity/kernels.py Probe 3, transformer kernels
chip_integrity/abft.py Probe 6, checksum-protected matrix multiply
chip_integrity/patterns.py Probe 9, data patterns through the matrix multiply
chip_integrity/counters.py Probe 11, the chip's error counters, read around every run of the other probes
chip_integrity/memcheck.py Probe 2, memory sweep
chip_integrity/soak.py Probe 7, hours under load: every result checked bit for bit, with temperature, clocks and power per window
chip_integrity/model.py Probe 4, full model forward pass: every matrix multiply inside a small language model checked against float64, weights read back, runs repeated bit for bit
chip_integrity/reduce.py Probe 5, reductions: sums, running sums, means and row and column sums, exact inputs and Higham's any-order bound
chip_integrity/arith.py The arithmetic model every bound is derived from, with its id written into each result file
chip_integrity/cli.py The chip-integrity command: run executes every probe and its self-test, each in its own process, and writes the ten result files; chip-integrity <probe> runs one probe with its own options
screen.py, kernels.py, abft.py, patterns.py, memcheck.py, soak.py, model.py, reduce.py Small wrappers so python screen.py and the other probe commands keep working from a clone
pyproject.toml Package metadata for PyPI. The version lives in chip_integrity/__init__.py and must match CITATION.cff
Dockerfile The ghcr.io/tech4biz-yasha/ai-chip-integrity image: PyTorch 2.8.0 with CUDA 12.8, the same build the H100 rows were measured with, the transformers extra so chip-integrity model runs from the image, and chip-integrity run as its default command
action.yml The GitHub Action: one CI step that installs the package, runs every probe and its self-test on the runner's chip, uploads the result files and fails the build when a wrong answer comes back
.github/workflows/ ci.yml runs every test, including the OCP schema checks, builds the package, and runs a quick pass and a few seconds of probe 7 inside the Docker image on every push; release.yml publishes the package to PyPI and the image to GitHub's container registry when a release is published
build_site.py Builds chipintegrity.org into docs/ from the sources in site/ (one layout, a style sheet, a script, the page and findings sources, the self-hosted IBM Plex fonts under the SIL Open Font License, and the logo), including the share images in docs/og/ and the updates feed docs/feed.xml, and every file in results/, so the published tables can never say more than the files do. One row per device and probe; a newer tool version replaces the older row. Run python build_site.py after adding result files It also writes one page per chip at docs/chips/<chip>.html with an index at docs/chips/index.html, every link relative so the site works from its folder or on any host, docs/sitemap.xml and the measured section of docs/llms.txt, all from the same files.
results/ Every published result file, in OCP format
tests/ The test suite below

Tests

python -m pytest -q runs 305 tests on the CPU in about a minute; 9 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 303 passed.

  1. tests/test_screen.py (37): every verdict path, every bit position caught by the self-test, NaN handling, int8 and FP8 off-by-one, FP8 inputs exact and K above 4096 skipped, rectangular shapes, bound tightness.
  2. tests/test_kernels.py (23): all kernels and precisions, the self-test on six seeds, intermittent and systematic faults, a one-ulp change, internal fp16 arithmetic and tanh-GELU both caught as outside the bound, NaN handling, fp32 bound tightness, a sin that is off by 1e-4 caught in RoPE, RoPE angles reaching every position, the device's own exp, erf, sin and cos measured, and the CUDA attention path forced onto the CPU: a batch dimension added with the same shape and values back, the kernel that ran recorded, fused kernels only for fp16 and bf16, and a loud refusal when no kernel fits.
  3. tests/test_memcheck.py (10): a stuck bit reported with its offset, a dead row counted word by word, injected flips located, the patterns themselves.
  4. tests/test_arith.py (25): the model checked against simulations of the hardware it claims to cover. A simulated tensor core that truncates, at block widths 1 to 32, stays inside the bound; a constructed case breaks the old v0.2.0 bound by almost 2x and stays inside the new one; a FlashAttention-2 style kernel emulated op by op stays inside the attention bound; PyTorch's ARM CPU erf and GELU, emulated op by op, stay inside the GELU bound; and FP8 sums of {-1, 0, 1} stay exact in a 13-bit accumulator while a 9-bit one loses them.
  5. tests/test_build_site.py (12): a newer tool version replaces the older row for the same device on the site, kernel sizes render from the files, data pattern rows render with the flushing behaviour, a mixed policy is shown as such, checksum rows render with their located self-test count, and the attention kernel that ran is named; every chip gets its own page that links all of its result files, the chip totals add up to the home page, the sitemap and llms.txt list every chip page, every link on every page opens a real file and section from a plain folder, every page has its share image, the updates feed parses as Atom, and every glossary term links to its definition.
  6. tests/test_patterns.py (17): every pattern passes on CPU, each input set really has its pattern and stays clear of overflow, FP8 and int8 inputs stay exact, flushing is detected and judging a flushing device against the wrong model fails, the policy is measured at each step's own shape (a library that picks its kernel by shape), a kernel that keeps in some places and flushes in others passes with and without injected flips, a fault four times the bound is caught on the cancelling pattern, injected flips are caught on every pattern, and the output matches the OCP schema.
  7. tests/test_abft.py (25): clean runs in every precision, injected errors located to their exact row and column on several seeds, a single error pointing at its element, a fault in a checksum flagging only its line, no false alarm on the same-sign, wide, near-maximum and cancelling patterns in every precision, checksums scaled to stay in range, the rectangle fault counted as a blind spot, NaN, and the OCP schema.
  8. tests/test_counters.py (22): with a simulated NVIDIA management library, every cross-check verdict; unsupported counters left out rather than zeroed; no counters on CPU and Apple devices; corrected errors reported without failing a run; uncorrected errors failing it; a wrong answer with quiet counters confirmed silent; the site keeping the counter step out of the precision list; and the OCP schema.
  9. tests/test_readme.py (19): this README carries every probe's version, every option and its default, every option of chip-integrity run, every result file, every script and test file, and the citation version and DOI, and the package version matches the citation, so neither can drift from the code without a test failing.
  10. tests/test_cli.py (13): chip-integrity run executes exactly the ten probe commands in this README with the same file names and self-test strength, --quick only adds small sizes, --skip leaves whole probes out, a failing step fails the run without stopping the others, a quick run is never offered as a row, bad names and unknown probes are refused before anything runs, one probe runs with its own options, the old python screen.py paths still work, and a real quick run writes its files.
  11. tests/test_gpu_sdc.py (20): the gpu-sdc self-test fault pinned to Tung et al., DSN 2026: the outcome mix exactly as published, every plant changing at least one element even in an all-zero output, faults confined to one warp-aligned chunk of 32 at even spacing, outcome shares within 3 points of the measured 50.68% zeroed and 48.31% bit-flipped, single-bit flips under 40% with the low bits flipped more often, integer outputs only zeroed or bit-flipped, mixed alternating the two models, and the compute self-test catching every planted fault under each model.
  12. tests/test_soak.py (27): a clean soak passing every window with its totals adding up; the self-test catching every planted fault under each fault model and in exact int8; an intermittent fault failing only its own window; any difference in int8 counted as wrong; a kernel that wobbles by one ulp inside the bound reported as non-deterministic, not as corruption; a first result outside the bound and a kernel that does not repeat both left out at setup; precisions rotating one per window; an unsupported precision skipped while the rest are soaked; every window carrying temperature, clocks, power and named clock-event reasons, with the temperature of the first differing run; NVML read through a simulated library, with older call names and missing readings left out; Ctrl-C keeping every completed measurement; a real fault failing the self-test; bad options refused; the chip-integrity soak command and the python soak.py script; and the OCP schema.
  13. tests/test_model.py (20): on the two-layer tiny model, a clean run passing with every multiply inside its bound, the weights hashed the same way every time, the self-test catching and localising every planted wrong element and weight flip across several seeds, a weight changed on the chip or a run that differs failing as corruption, runs that agree but sit outside the bound reported as a faulty unit, a last-bit wobble inside the bound reported as non-deterministic rather than a fault, the self-test still failing on a real fault, a prompt file and a second precision, bad arguments rejected, the chip-integrity model subcommand and the script wrapper, and the output validated against the official OCP schema when OCP_SCHEMA_DIR is set.
  14. tests/test_reduce.py (23): every step passing in fp32, fp16 and bf16 at small sizes; the exact inputs representable, with every prefix, in all three precisions; the bound holding for five different summation orders including one at a time; the self-test catching and locating every planted fault across four seeds and two precisions; a differing wrong result failing as corruption, the same wrong answer every run as a faulty unit, a last-bit wobble inside the bound as non-deterministic, the self-test still failing on a real fault, operations selectable, bad arguments rejected, the gamma limit at 2^23 terms, the chip-integrity reduce subcommand and the script wrapper, and the output validated against the official OCP schema when OCP_SCHEMA_DIR is set.
  15. tests/test_action.py (12): the GitHub Action is composite, every step names a shell or another action, every input it references exists, hyphenated inputs use the bracket form so out-dir is not read as a subtraction, every output points at a real step that writes it, the README input table and action.yml agree on every name and default, skip names only the probes run executes, the README snippets pin a released tag and pass only real inputs, and a run that cannot complete fails the build whatever fail-on-fault says.

Output format

All seven probes write one JSON object per line following the OCP Test and Validation output spec, version 2.0, written through the official ocptv library:

  • testRunStart with the parameters used (for screen.py and kernels.py these include bound_model, the id of the arithmetic model in arith.py, and for every probe with --inject-model the inject_model used), the host name as DUT id, the device as a hardware component, and the torch and python versions as software components, plus on CUDA the cuda runtime PyTorch was built with and the nvidia-driver version (NVML, or nvidia-smi where the bindings are missing), from v0.4.3
  • one test step per shape and precision, named gemm_<precision>_<MxKxN> (for example gemm_fp16_4096x4096x4096), carrying the measurements runs, shape_mkn, exact_check, accumulation_factor (the g used in the bound, float precisions only), seconds, reference_check_failed_runs, repeat_check_failed_runs, worst_error_over_bound_ratio (float precisions only), worst_abs_error, worst_nonfinite_values, and in self-test mode injected_runs, injected_runs_detected, gpu_sdc_faults_planted and gpu_sdc_faults_detected, with validators on the counts that must be zero or equal to the injected count
  • a diagnosis per step with the verdict above
  • testRunEnd with the overall PASS or FAIL

kernels.py writes one step per kernel and precision, named <kernel>_<precision> (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_<precision>_<MxKxN>, 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 <counter>_before, <counter>_after and <counter>_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_<precision>_<pattern>_<MxKxN> (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.

soak.py writes one setup step per precision, named soak_setup_<precision>, with precision, shape_mkn, exact_check, accumulation_factor and worst_error_over_bound_ratio (float precisions), first_result_outside_bound, repeat_runs, repeat_runs_differing and seconds; then one step per window, named soak_window_<number>_<precision> (for example soak_window_0007_fp32), with precision, runs, seconds, differing_runs (validated to be zero), differing_runs_checked_against_bound, differing_runs_outside_bound, telemetry_available, the lowest and highest temperature_c, sm_clock_mhz, memory_clock_mhz and power_w read during the window, clock_event_reasons, first_differing_run_temperature_c when a run differed, and the self-test counts; and a final soak_summary step with the totals, the extremes over the whole soak and whether Ctrl-C ended it.

model.py writes model_load (model, weights_sha256, tokenizer_vocab_sha256, parameters, layers, hidden_size, vocab_size, checkpoint_dtype, attention, transformers_version, prompts, prompt_tokens), model_reference_float64, then one step per precision named model_forward_<precision> with repeat_runs_differing, linear_calls, linear_calls_outside_bound and weight_elements_changed (all validated to be zero outside self-test), worst_error_over_bound_ratio, linear_calls_nonfinite_input, the decision measurements against float64 (positions_compared_with_float64, positions_disagreeing_with_float64, prompts_disagreeing_with_float64, smallest_float64_margin_at_disagreement, max_logit_abs_diff_at_decision, prompts_with_generated_divergence, first_divergence_token_min), one <layer>_calls_outside_bound and <layer>_worst_error_over_bound_ratio per layer and for the head, and in self-test injected_runs, injected_runs_detected and injected_runs_localised (both validated equal to injected_runs) and injected_kinds; then model_summary.

reduce.py writes one step per operation, input kind and precision, named reduce_<op>_<exact|bounded>_<precision> (for example reduce_rowsum_bounded_bf16), with operation, input_kind, precision, elements, terms_per_result, results, runs, seconds, repeat_runs_differing and results_wrong (both validated to be zero outside self-test), largest_error (exact) or accumulation_factor and worst_error_over_bound_ratio (bounded), worst_result_index when a result was wrong, and in self-test injected_runs, injected_runs_detected and injected_runs_located (both validated equal); then reduce_summary.

memcheck.py writes one step per pass (memory_sweep_pass1, ...) with bytes_tested, device_memory_bytes, coverage_fraction, dwell_seconds, seconds, one bad_words_<pattern> 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_<pattern> and injected_detected_<pattern>.

Assumptions and limits

  1. Every bound follows from the arithmetic model in arith.py: FP32 scalar arithmetic rounds to nearest, matrix units accumulate faithfully in FP32 (truncation allowed), exp, divide and square roots stay within eight ulps, and erf within 2^-20 absolute. TF32 is switched off on CUDA. A device that accumulates below FP32 or breaks the model in another way shows up as outside-error-bound on every run, and the message says so. That was not the case on any chip measured above.
  2. These are nine probes. A PASS means "no silent error in these matrix multiplies, these checksums, these data patterns, these transformer kernels, this model on these prompts, these reductions, this memory sweep and this soak, in these runs, on this device today". It is not a certificate of a healthy chip. The OSDI 2026 results above show that defects depend on the data, the kernel, temperature and age; this version sweeps shapes, precisions, five transformer kernels, memory and hours under load, but not the rest.
  3. Only probe 7 loads the chip for long; the others run for seconds to minutes. Aging is not exercised by any of them, and the soak so far covers the matrix multiply only.
  4. One device per run. Multi-device comparison is on the roadmap.
  5. The error counters are NVIDIA's volatile counts since the driver last loaded; on other devices probe 11 records that none are available. In the compute and kernel probes the injected faults are applied to the output on the CPU side, so they test the checker, not the chip. The memory probe injects into device memory itself.

Roadmap

The suite is the first stage of one ladder: measure silent errors, then prevent them in software, then put the prevention in silicon. Every stage uses the same maths, the same fault library and the same chips. Versions below are targets, not promises; measured results live in results/.

Stage 1. Yardstick (now to December 2026, 0.5.x)

Twelve probes, each aimed at one part of the chip. Seven are built: 1, 2, 3, 6, 7, 9 and 11.

  1. Matrix multiply (screen.py). Done for fp32, fp16, bf16, int8 and FP8 (E4M3, exact, from v0.3.0). FP4 follows once a Blackwell card is measured.
  2. Memory pattern sweep (memcheck.py). Done for device memory. On-chip SRAM (shared memory and L2) is next, NVIDIA GPUs only.
  3. Transformer kernels (kernels.py). Done, with rotary embeddings (sin and cos) added in v0.2.0.
  4. Full model forward pass (model.py). Built (v0.1.3): a small LLM run on the chip with every matrix multiply inside it checked against float64 from the chip's own input, so each bound stays as tight as a single kernel's, the weights read back bit for bit, and the whole run repeated bit for bit; first rows to come. Batched prompts, int8 and FP8 weights and an inference server path next.
  5. Reductions, all-reduce and copy engines (reduce.py). Built for one device (v0.1.1): sums, running sums, means and row and column sums, with exact integer inputs and Higham's bound for any summation order; first rows to come. Variance, the all-reduce across GPUs over NVLink and PCIe with checksums at both ends, and copies of known patterns next.
  6. Checksum-protected matrix multiply (abft.py, algorithm-based fault tolerance, Huang and Abraham 1984). Done for fp32, fp16 and bf16: row and column checksums computed in the same multiply detect and locate a wrong element, with proven thresholds and the blind spot measured. int8 and FP8 checksums come later.
  7. Hours under load (soak.py). Done for the matrix multiply in every precision (v0.1.0): every result checked bit for bit against a verified first result, with temperature, clocks, power and clock-event reasons logged per window. The kernel, checksum and memory probes under load come next.
  8. Clock and voltage margin sweep. Lower the margin step by step where the driver allows it and record where each unit starts to fail. Likely needs bare-metal access, since container pods rarely allow clock control.
  9. Data pattern library (patterns.py). Done for the matrix multiply: wide exponents, full mantissas, cancellation, alternating signs, sparsity, subnormals with flush detection, near-overflow and int8 extremes. Patterns for the transformer kernels are next.
  10. Fault injection inside the computation. Flip bits in registers during the multiply (NVBit on NVIDIA) to measure how often a flip becomes a wrong answer. The basis for a space radiation column.
  11. ECC and error counters (counters.py). Done: every run of every probe reads the chip's counters before and after and records whether the hardware noticed what the probe noticed. Its first real test was the H100 run on 10 October 2026, with every ECC and row-remap counter quiet.
  12. Recovery. After a detected fault, reset and rerun on the same card to see whether the fault clears. Likely needs bare-metal access, since a GPU reset needs root on the host.

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.

Chips still to measure: Jetson Orin, Apple Neural Engine, one AMD MI-series and one Intel Gaudi. Stage 1 is done when one outside operator runs the suite in CI and one vendor or operator thread is open on a measured row.

Stage 2. Verification runtime (January to June 2027, 0.6 to 0.8)

Check the vendor's matrix multiplies while a model runs, with a stated miss probability and a measured overhead and coverage table per chip and precision, published next to the results. Integer matrix multiplies already have a published verifier that locates and repairs a wrong element (SProbe, arXiv 2609.19743); the new work here is floating point, where the check must allow for legitimate rounding without letting a real fault through. Done when one production user runs it and the method paper is on Zenodo with the overhead table.

Stage 3. Fault library and verified-compute levels (through 2027)

A public fault library recording fault class, bit position, precision, chip, condition (heat, clock margin, radiation beam or orbit), outcome and detection method. Verified-compute levels L0 to L3 for a chip and for a fleet, defined from the library and issued from measured rows, with paid assessments against them. Done when one standards body document or one vendor page references the levels.

Stage 4. Orbital proof (2027 to 2028)

Fly the runtime on a rideshare payload, measure in orbit and publish the row next to a proton-beam column, then choose checkpoint interval, replication and voting from measured fault rates rather than assumed ones. Done when one on-orbit run has a published row and a named operator uses the result.

Stage 5. Silicon IP (2028 onwards)

A hardware checksum unit for tensor-core datapaths: RTL, verification and licensing terms. Done when one chip vendor evaluates the block under licence.

Rules for every stage

Nothing is claimed that was not measured on real hardware; the result files are the record. Kernels and probes stay open; fleet features, assessments and IP are the paid tiers.

Contributing a row

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. A soak row (NAME_soak.jsonl from chip-integrity soak --minutes 60 --out NAME_soak.jsonl) is welcome alongside them. Rows are added only from attached result files.

Citing

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.5.0, 2026.
https://doi.org/10.5281/zenodo.23505677
https://github.com/tech4biz-yasha/ai-chip-integrity

A CITATION.cff file is included.

Author and license

Yasha Khandelwal, yasha.khandelwal@tech4biz.io

MIT License. See LICENSE.

Metadata

Release files for ai-chip-integrity 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-chip-integrity 0.5.0
File Size Uploaded Provenance Actions
ai_chip_integrity-0.5.0.tar.gz 154.6 kB With provenance Details for ai_chip_integrity-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ai-chip-integrity 0.5.0
File Interpreter ABI Platform Actions
ai_chip_integrity-0.5.0-py3-none-any.whl Python 3 none any Details for ai_chip_integrity-0.5.0-py3-none-any.whl

Total release size: 258.6 kB

Release files / ai_chip_integrity-0.5.0.tar.gz

Download URL ai_chip_integrity-0.5.0.tar.gz
Size 154.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3145d2cf69ab154e6f27105176949d97cf5ae79952a1d4c39472209742c3f955
BLAKE2b-256 checksum
How to use checksums
4417d557c3fb403070ca7ebbf1caa808adf3adb63303205dc05f8620a5471a10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Release files / ai_chip_integrity-0.5.0-py3-none-any.whl

Download URL ai_chip_integrity-0.5.0-py3-none-any.whl
Size 104.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7ba2c52d0dd50cf60ac84c4919f305690bf6d464782df6c7553254532425a6e
BLAKE2b-256 checksum
How to use checksums
33304e76585ed951acea4b6ee6aae718a47b15f7a13ef763b98ef57d90854757
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Security for ai-chip-integrity 0.5.0

Provenance

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ai_chip_integrity-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page