Accelerate Transformer training with AWS Trainium

  Рет қаралды 1,670

Julien Simon

Julien Simon

Күн бұрын

In this video, I show you how to accelerate Transformer training with AWS Trainium, a new custom chip designed by AWS.
First, I walk you through the setup of an Amazon EC2 trn1.32xlarge instance, equipped with 16 Trainium chips. Then, I run a natural language processing job where I adapt existing Transformer training code for Trainium, accelerating a BERT model to classify the Yelp review datatset. Finally, I run the job on 1, 8, and 32 Neuron cores.
⭐️⭐️⭐️ Don't forget to subscribe to be notified of future videos ⭐️⭐️⭐️
⭐️⭐️⭐️ Want to buy me a coffee? I can always use more :) www.buymeacoff... ⭐️⭐️⭐️
AWS Trainium: aws.amazon.com...
AWS Neuron SDK documentation: awsdocs-neuron...
AWS Neuron SDK samples: github.com/aws...
Hugging Face tutorial: huggingface.co...
Setup steps and code: gitlab.com/jul...
Interested in hardware acceleration? Check out my other videos :
Habana Gaudi: • Accelerate Transformer...
Graphcore: • Accelerate Transformer...
Trainium on SageMaker: • Accelerate Transformer...

Пікірлер: 1
@junkmail75034
@junkmail75034 2 жыл бұрын
Hey Julien thanks for this helpful video. In 16:23, you saved the checkpoint in pt. Per your example, this is how I load checkpoint back: model = AutoModelForSequenceClassification.from_pretrained("bert-base-cased", num_labels=5) ckpt = torch.load("checkpoints/checkpoint.pt") model_weights = ckpt['state_dict'] model.load_state_dict(model_weights) model.to('xla') Hope this is right.
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 13 МЛН
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 35 МЛН
How I Turned a Lolipop Into A New One 🤯🍭
00:19
Wian
Рет қаралды 11 МЛН
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 9 МЛН
Transformer training shootout: AWS Trainium vs. NVIDIA A10G
12:09
Designing Custom ML Pipelines with AWS SageMaker
15:43
Data Science Salon
Рет қаралды 625
À quoi servent les POILS dans les ESCALATORS ? #escalator #metro #education
0:52
Gauthier Dm - Science
Рет қаралды 4,3 МЛН
Meet Saudi's first HUMANOID Robot!
0:29
Dhruv Rathee Shorts
Рет қаралды 19 МЛН
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 13 МЛН