Skip to content

One-command GPU run for the transformer grids - #33

Merged
professor3333 merged 1 commit into
mainfrom
feature/gpu-runbook
Nov 5, 2026
Merged

professor3333 merged 1 commit into
mainfrom
feature/gpu-runbook

Conversation

@professor3333

Copy link
Copy Markdown
Owner

Summary

  • scripts/gpu/run_neural.sh (Kaggle, Colab or any CUDA box):
    • creates a Python 3.12 environment with CUDA PyTorch, with a TORCH_INDEX fallback for older drivers;
    • rebuilds the corpus from the pinned snapshot and stops unless its SHA-256 matches the documented one;
    • runs the DistilBERT and DeBERTa grids (2 learning rates × 3 seeds each), predicts with every run on the pilot and dev-batch documents, and packs a results archive (no weights) plus the best bundle of each grid. Re-running resumes.
  • scripts/gpu/score_neural.sh RESULTS.tgz (development machine): agreement and hand-labelled reports for every run, plus paired comparisons of each grid's best run against crf-batches-01-02. Tested end to end with a stand-in run.
  • train / experiment --dev-gold: early stopping and the experiment table use only the given files' dev records. The runbook passes the model-drafted batches 03 and 06, so the 10 hand-labelled dev documents never influence model selection. New test.
  • docs/training_on_gpu.md now opens with the one-command run (Kaggle steps); the manual Colab notes are kept. README usage updated.

The test split is not touched. Not yet run on a GPU.

Checks

  • ruff check, ruff format --check, mypy src/, pytest -m "not slow" (234 passed); shellcheck clean on both scripts; both grids dry-run to 6 runs each; Linux dependency resolution gives torch 2.14.1 with the CUDA 13 runtime.

scripts/gpu/run_neural.sh builds a CUDA environment, rebuilds and checks
the pinned corpus, runs the DistilBERT and DeBERTa grids, predicts with
every run and packs the results; scripts/gpu/score_neural.sh scores them
here. train and experiment take --dev-gold, so early stopping uses only
the model-drafted dev batches and the hand-labelled dev documents stay
out of model selection.
@professor3333
professor3333 merged commit 7602da8 into main Nov 5, 2026
2 checks passed
@professor3333
professor3333 deleted the feature/gpu-runbook branch November 5, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant