From ff8a275d47d6427986b9999185b587d812c34a62 Mon Sep 17 00:00:00 2001 From: jgrusewski Date: Wed, 25 Feb 2026 23:55:35 +0100 Subject: [PATCH] fix(ml): widen flaky QAT checkpoint test range + use PVC sccache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Widen observer checkpoint test bounds from 4σ to 5σ — random calibration data can exceed 4.0 with 100 batches of normal(0,1) - Override SCCACHE_BUCKET="" in .rust-base so check/test jobs use PVC-backed SCCACHE_DIR instead of S3 Co-Authored-By: Claude Opus 4.6 --- .gitlab-ci.yml | 3 +++ crates/ml/src/memory_optimization/qat.rs | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index db8446821..178391673 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -136,6 +136,9 @@ build-infra-runner: tags: - kapsule - rust + variables: + # Override SCCACHE_BUCKET (CI variable) so sccache uses SCCACHE_DIR (PVC) instead of S3 + SCCACHE_BUCKET: "" # -------------------------------------------------------------------------- # Stage 1: cargo check + clippy diff --git a/crates/ml/src/memory_optimization/qat.rs b/crates/ml/src/memory_optimization/qat.rs index 2fad69ee2..a7299707b 100644 --- a/crates/ml/src/memory_optimization/qat.rs +++ b/crates/ml/src/memory_optimization/qat.rs @@ -1593,13 +1593,13 @@ mod tests { // - Expected zero_point = 127 (symmetric quantization) assert!( - loaded_min >= -4.0 && loaded_min <= 0.0, - "Loaded min out of expected range: {} (expected [-4.0, 0.0])", + loaded_min >= -5.0 && loaded_min <= 0.0, + "Loaded min out of expected range: {} (expected [-5.0, 0.0])", loaded_min ); assert!( - loaded_max >= 0.0 && loaded_max <= 4.0, - "Loaded max out of expected range: {} (expected [0.0, 4.0])", + loaded_max >= 0.0 && loaded_max <= 5.0, + "Loaded max out of expected range: {} (expected [0.0, 5.0])", loaded_max ); assert!( @@ -1614,8 +1614,8 @@ mod tests { ); println!(" ✓ Statistics within expected ranges"); - println!(" - Min: {:.6} (expected [-4.0, 0.0])", loaded_min); - println!(" - Max: {:.6} (expected [0.0, 4.0])", loaded_max); + println!(" - Min: {:.6} (expected [-5.0, 0.0])", loaded_min); + println!(" - Max: {:.6} (expected [0.0, 5.0])", loaded_max); println!(" - Scale: {:.6} (expected (0.0, 0.1))", loaded_scale); println!(" - Zero point: {} (expected 127)", loaded_zero_point);