Codex system overviewΒΆ
Last Updated: 2026-06-22
This document sketches the offline-first flow across training, inference, and tracking surfaces.
Data and training flowΒΆ
- Configs: Hydra-friendly YAML under
configs/defines model/data/train/logging defaults. - Training:
codex-trainlaunches CPU-friendly loops, optionally enabling--system-metricsfor telemetry. - Checkpoints: Training writes checkpoints and metrics under
runs/with NDJSON logs.
Inference flowΒΆ
src/codex_ml/serving/inference_server.pymounts a FastAPI app with/predictand/embedroutes.- The default
SimpleInferenceModelruns deterministically and is safe for local smoke tests. - Error handling returns HTTP 500 with clear messages; health/metrics endpoints remain lightweight.
Experiment tracking and quality gatesΒΆ
- Runs and provenance live under
runs/andreports/for local auditability. - Duplication analysis (
tools/duplication_analyzer.py) enforces code health and writesreports/duplication_report.json. - Gap/task alignment is captured in
codex_gap_registry.yamlwith tasks defined incodex_task_sequence.yaml.
ExtensibilityΒΆ
- Registries for datasets, metrics, models, and tokenizers can be extended via local plugins; see
docs/extensibility/registries_and_plugins.md. - LoRA configurations are validated for dtype and device before adapters are applied.