executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
trainingUse BERT-pytorch to instantiate the model, train on a tiny corpus, choose CPU or CUDA, and save checkpoints.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is about bert, BERT, BERTLM, BERTTrainer, model construction, device choice, training, or checkpoint saving.
BERT and BERTLM.BERTTrainer around a DataLoader..ep{epoch} suffix.../data-preparation/SKILL.md.scripts/train_smoke.py for a safe one-epoch smoke run with explicit device selection.torch.cuda.is_available() is true and the host really has a compatible GPU setup.references/training-workflow.md: model/trainer flow, device selection, and checkpoint semantics.references/troubleshooting.md: CLI bool flags, hidden/head mismatch, GPU, memory, and save-path issues.../data-preparation/SKILL.md: if the corpus or vocab is the actual blocker.scripts/train_smoke.py: build a tiny dataset, train one epoch, and save a checkpoint.../../scripts/make_tiny_corpus.py: create a deterministic tiny corpus fixture when you want to run the smoke script against a known input.BERT.forward() returns the encoded sequence tensor before the language-model heads.BERTLM.forward() returns next-sentence and masked-language-model log probabilities.BERTTrainer.save(epoch, file_path) writes file_path + ".ep{epoch}".BERTTrainer chooses cuda:0 only when CUDA is available and requested.