fix(ml): widen flaky QAT checkpoint test range + use PVC sccache

- 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 <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-02-25 23:55:35 +01:00
parent 7b9da53603
commit ff8a275d47
2 changed files with 9 additions and 6 deletions

View File

@@ -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

View File

@@ -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);