Expand description
Examples from Chapter 5
Modules§
- Auxiliary module for examples::ch05
Structs§
- Example usage of
text_to_token_idsandtoken_ids_to_text - Example computation of cross-entropy and perplexity
- Split text into train and validation datasets and loaders
- Example usage of `calc_loss_loader
- Example usage of
train_model_simplefunction and plotting loss curves - Manual multinomial with/without temperature scaling
- Example of extracting topk probas
- Example usage of
generate - Saving and loading a candle model
- Example for downloading safetensors from HuggingFace Hub
- Example usage of
load_weights_into_gpt