Offered By: IBMSkillsNetwork
Parameter efficient fine-tuning (PEFT): Adapters in PyTorch
Apply parameter-efficient fine-tuning (PEFT) in PyTorch using adapters! This hands-on project walks you through fine-tuning a transformer-based neural network using a bottleneck adapter that improves the efficiency of training and storage. Upon completion, you will have enhanced your skills in incorporating adapters and fine-tuning pre-existing models, and you will have gained insights into the advantages and disadvantages of different fine-tuning methods.
Continue readingGuided Project
Artificial Intelligence
67 EnrolledAt a Glance
Apply parameter-efficient fine-tuning (PEFT) in PyTorch using adapters! This hands-on project walks you through fine-tuning a transformer-based neural network using a bottleneck adapter that improves the efficiency of training and storage. Upon completion, you will have enhanced your skills in incorporating adapters and fine-tuning pre-existing models, and you will have gained insights into the advantages and disadvantages of different fine-tuning methods.
A look at the project ahead
- Efficient training: During the training process, a significantly smaller number of weights must be updated. This leads to a more efficient training process compared to full fine-tuning.
- Efficient storage: The models can be stored compactly by only saving the weights for the adapter's layers and the output layer. This is because the weights in the original model, except for the output layer, remain unchanged.
- Reduced overfitting: Adapter-based PEFT techniques, which preserve the original weights, are less prone to overfitting. This is largely due to the fact that the adapted model retains a substantial part of the original model’s structure.
Learning objectives
- Understand how adapters work
- Apply adapters to linear layers in a neural network
- Train a neural network in a parameter efficient way by training just the adapted layers
What you'll need
Estimated Effort
45 Minutes
Level
Intermediate
Skills You Will Learn
Artificial Intelligence, Deep Learning, Generative AI, NLP, Python, PyTorch
Language
English
Course Code
GPXX0G24EN