Loading tutorials
transformers and datasets. The code uses distilbert-base-uncased and the IMDB movie review dataset, t6 min readinput_ids and attention_mask.6 min readdatasets and `transformers6 min readTrainer code from earlier chapters. It also assumes you know what logits are, and that you know the difference between a training set and a validation set. The goal is to pick metrics that match your label distribution and compute them during t6 min readTrainer, run a fine-tuning job, and read what it does.5 min readcompute_metrics function, and a working Trainer run. It also assumes you know what overfitting is and c8 min readtrainer, train_ds, val_ds, test_ds, tokenizer, compute_metrics, and checkpoint objects from that code. You should also be comfortable reading a loss curve and know why a validation set is kept6 min readpipeline helper and a manual loop, and the mistakes that make predictions differ from what you measured during evaluation.5 min readTrainer API, as in the earlier chapters. You should know how accuracy, precision, recall, and F1 are defined, and be comfortable with PyTorch tensors and subclassing a Python class. Everything here continues from the DistilBERT setup (`ch6 min readtrainer, the tokenized val_ds and test_ds splits, and the tokenizer from the earlier examples. You should also know basic pandas and what a confusion matrix is.6 min readcheckpoint, tokenizer, train_ds, val_ds, test_ds and compute_metrics defined as before, and you should know what a weight matrix and a gradient are. LoRA changes which parameters get trained. The data pipeline, the m5 min read