Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Building a Transformer with PyTorch
  • Table Of Contents Toc
Building a Transformer with PyTorch

Building a Transformer with PyTorch

By : DataLab , Jeroen Hermans
1 (2)
close
close
Building a Transformer with PyTorch

Building a Transformer with PyTorch

1 (2)
By: DataLab , Jeroen Hermans

Overview of this book

Transformers have revolutionized the field of AI, especially in natural language processing, powering models like GPT and BERT. In this code-along, you’ll dive deep into the architecture that started it all—the Transformer, introduced in the seminal paper Attention Is All You Need. Through a hands-on PyTorch implementation, you’ll gain a clear understanding of key components like self-attention, positional encoding, multi-head attention, and feedforward layers. Each part of the architecture is broken down and explained, allowing you to build a working transformer model from the ground up. By applying the model to a simple use case, you’ll see how transformers process sequences in parallel, enabling faster and more efficient learning than traditional RNNs. Whether you’re aiming to understand how large language models work or want to build your own, this session offers a solid foundation in modern deep learning. Create your own DataLab workbook for this code along: (https://www.datacamp.com/datalab/new?accountType=personal&_tag=workspace&workspaceId=189c9a05-1123-42bd-be3d-ae7dd7667cec&title=Building%20a%20Transformer%20with%20PyTorch&visibility=private)
Table of Contents (1 chapters)
close
close
1
Building a Transformer with PyTorch
chevron up
You're currently viewing a free sample. Access the full title and Packt library for free now with a free trial.
Chapter: 1
Building a Transformer with PyTorch
Icon This video is locked
Icon
Icon
0:00
2.0x
1.5x
1.25x
1.0x
0.5x
caption settings
caption off
English
Icon Icon
ShowHide Transcripts Icon
CONTINUE WATCHING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Building a Transformer with PyTorch
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon