Tips N Tricks #6: How to train multiple deep neural networks on TPUs simultaneously @abhishekkrthakur
Tips N Tricks #6: How to train multiple deep neural networks on TPUs simultaneously  @abhishekkrthakur
Uploaded April 2020 | Updated November 2026, 1 hour ago
In this video, I will show you how you can train multiple neural networks on TPUs simultaneously. You can use this trick to train multiple folds for a dataset really quick and avoid all the optimization of hyperparameters that are usually associated with TPUs. I am not talking about how TPUs work.

Please note: you need to use "xm.optimizer_step(optimizer, barrier=True)" in the train_fn. This is not mentioned in the video.

You can see the full code here: kaggle.com/abhishek/super-duper-fast-pytorch-tpu-kernel

If you want to present something on my live show, fill up the form here: bit.ly/AbhishekTalks

#TPU #Tricks #DataScience

Follow me on:
Twitter: twitter.com/abhi1thakur
LinkedIn: linkedin.com/in/abhi1thakur
Kaggle: kaggle.com/abhishek
Tips N Tricks #6: How to train multiple deep neural networks on TPUs simultaneouslyI just got access to GitHubs Codespaces and its amazing!What is reciprocal rank fusion in hybrid search?Episode 2: A Cross Validation FrameworkKaggles 30 Days Of ML (Day-10): Underfitting, Overfitting & Random ForestsThe EASIEST way to finetune LLAMA-v2 on local machine!End-to-End: Automated Hyperparameter Tuning For Deep Neural NetworksKaggles 30 Days Of ML (Day-2): Say Hello to Python: variables, types and arithmetic operationsHyperparameter Optimization: This Tutorial Is All You NeedKaggles 30 Days Of ML (Day-13 Part-1): Scikit-Learn PipelinesData Processing For Question & Answering Systems: BERT vs. RoBERTaKaggles 30 Days Of ML (Day-5, Part-2): Python Loops and List Comprehension
Abhishek Thakur |

Tips N Tricks #6: How to train multiple deep neural networks on TPUs simultaneously

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER