Scrybix GPU Test Harness
Diarization and Upload Testing on Serverless GPUs
Overview
Standalone Python harnesses for validating Modal GPU diarization, audio uploads and timestamp accuracy before any change reaches production users.
The problem
Speaker diarization on serverless GPUs is expensive and sensitive to input variation. Pushing untested changes straight to production risks wasted GPU spend and broken transcripts for customers.
The solution
Built isolated test scripts (modal_diarize.py, upload.py) with structured logging, storage verification and timestamp comparisons. Each run measures diarization quality and processing time on representative audio before promotion.
Project gallery
Technical architecture
Isolated GPU test scripts with structured verification
Modal Diarization Harness
Runs diarization on Modal GPU workers with configurable model versions and inputs.
Upload Validator
Exercises the upload path with varied formats, sizes and bitrates, verifying storage and retrieval.
Accuracy Comparison
Compares returned speaker segments against reference timestamps to measure drift.
Structured Logging
JSON logs per run so regressions can be traced to a model, input or configuration change.
Methodology
- Built a fixed reference set of audio samples covering speakers, overlap and noise
- Logged timing and quality metrics for every run to establish a baseline
- Verified storage round-trips so uploads are never silently dropped
- Compared timestamp output against reference segments before promotion
Results & impact
Key impact
- Prevented diarization regressions from reaching production users
- Reduced wasted GPU spend on broken runs
- Made upload failures reproducible and diagnosable
Challenges & solutions
GPU Cost Per Test
Kept a small reference set and batched runs instead of testing on every change
Timestamp Drift
Compared segment boundaries against fixed references and reported deltas per speaker