IK Imran Khalid

Speech & Audio AI Ongoing Scrybix Maintained

Scrybix GPU Test Harness

Diarization and Upload Testing on Serverless GPUs

Scrybix GPU Test Harness project cover

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

  1. Built a fixed reference set of audio samples covering speakers, overlap and noise
  2. Logged timing and quality metrics for every run to establish a baseline
  3. Verified storage round-trips so uploads are never silently dropped
  4. Compared timestamp output against reference segments before promotion

Results & impact

Upload + GPU Coverage Both pipeline entry points
Structured Logging Per-run JSON records
Pre-release Regression Detection Caught before production

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

Technologies used

PythonModalSpeaker DiarizationPyTorchStructured LoggingTest Automation