badc.infer_schedulerΒΆ

Lightweight scheduler helpers used by badc infer run.

This module keeps queue management simple inside the Typer CLI while centralizing how manifests become jobs, how GPU resources are described, and how telemetry is recorded. Refer to notes/inference-plan.md for lifecycle details.

Functions

load_jobs(manifest)

Parse a chunk manifest into InferenceJob objects.

log_scheduler_event(chunk_id, worker, ...[, ...])

Persist a telemetry record to data/telemetry/infer/log.jsonl.

plan_workers([max_gpus])

Detect GPUs and return worker descriptors plus diagnostics.

Classes

GPUWorker(index, name)

Description of a GPU slot available to the scheduler.

InferenceJob(chunk_id, chunk_path, recording_id)

Unit of work representing one chunk entry from a manifest.