Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
đź‘‹
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Llama Local Models and Training
·
Module 2
PyTorch Foundations for Language Models
1
Creating and Transforming PyTorch Tensors
Create and transform PyTorch tensors while tracking their shapes, dtypes, and devices.
2
Mapping Token IDs to Vocabulary Logits with Embeddings and Linear Layers
Use embedding and linear layers to map token IDs to logits over a vocabulary.
3
Calculating Cross-Entropy Loss and Perplexity
Calculate cross-entropy loss and perplexity from a small set of next-token predictions.
4
Training a PyTorch Model with Automatic Differentiation and Optimization
Use automatic differentiation and an optimizer to train a small PyTorch model.
Next module isn't ready yet,
Back to course
Previous module
Local LLM Concepts and Model Selection
Next module