AGENTS.md
Research code for training and evaluating text classifiers. PyTorch, Hydra configs, experiments tracked in MLflow.
Commands
- Environment:
uv sync - Quick sanity run (CPU, tiny data):
uv run python train.py +experiment=smoke - Tests:
uv run pytest -q - Do not start full training runs. They need GPUs and are launched by people via
scripts/launch.sh.
Rules
- Every result must be reproducible: seed set in the config, config saved with the run, data version recorded.
- Never change the evaluation split or metrics code in the same PR as a model change.
- New metrics need a unit test with a hand-computed example.
- Data in
data/raw/is read-only. Derived data is produced byscripts/prepare.py. - Keep notebooks for exploration only; reusable code goes in
src/with tests. - When reporting results, include the baseline and the number of seeds.