Building Transformer Models with PyTorch 2.0: NLP, Computer Vision, and Speech Processing with PyTorch and Hugging Face

  • 3h 26m
  • Prem Timsina
  • BPB Publications
  • 2024

This book covers transformer architecture for various applications including NLP, computer vision, speech processing, and predictive modeling with tabular data. It is a valuable resource for anyone looking to harness the power of transformer architecture in their machine learning projects.

The book provides a step-by-step guide to building transformer models from scratch and fine-tuning pre-trained open-source models. It explores foundational model architecture, including GPT, VIT, Whisper, TabTransformer, Stable Diffusion, and the core principles for solving various problems with transformers. The book also covers transfer learning, model training, and fine-tuning, and discusses how to utilize recent models from Hugging Face. Additionally, the book explores advanced topics such as model benchmarking, multimodal learning, reinforcement learning, and deploying and serving transformer models.

In conclusion, this book offers a comprehensive and thorough guide to transformer models and their various applications.

KEY FEATURES

  • Transformer architecture for different modalities and multimodalities.
  • Practical guidelines to build and fine-tune transformer models.
  • Comprehensive code samples with detailed documentation.

WHAT YOU WILL LEARN

  • Understand the core architecture of various foundational models, including single and multimodalities.
  • Step-by-step approach to developing transformer-based Machine Learning models.
  • Utilize various open-source models to solve your business problems.
  • Train and fine-tune various open-source models using PyTorch 2.0 and the Hugging Face ecosystem.
  • Deploy and serve transformer models.
  • Best practices and guidelines for building transformer-based models.

WHO THIS BOOK IS FOR

This book caters to data scientists, Machine Learning engineers, developers, and software architects interested in the world of generative AI.

About the Author

Prem Timsina is the Director of Engineering at Mount Sinai Health Systems, where he oversees the development and implementation of Machine Learning Data Products. He has overseen multiple Machine Learning products that have been used as clinical decision support tool at multiple hospitals within New York City. With over 10 years of experience in the field, Dr. Timsina is a dedicated machine learning enthusiast who has worked on a variety of big data challenges using tools such as PyTorch, Deep Learning, Generative AI, Apache Spark, and various NoSQL platforms. He has contributed to the field through more than 40 publications in machine learning, text mining, and big data analytics. He earned his Doctor of Science degree in Information Systems from Dakota State University.

In this Book

  • Code Bundle and Coloured Images
  • Transformer Architecture
  • Hugging Face Ecosystem
  • Transformer Model in PyTorch
  • Transfer Learning with PyTorch and Hugging Face
  • Large Language Models: BERT, GPT-3, and BART
  • NLP Tasks with Transformers
  • CV Model Anatomy: ViT, DETR, and DeiT
  • Computer Vision Tasks with Transformers
  • Speech Processing Model Anatomy: Whisper, SpeechT5, and Wav2Vec
  • Speech Tasks with Transformers
  • Transformer Architecture for Tabular Data Processing
  • Transformers for Tabular Data Regression and Classification
  • Multimodal Transformers, Architectures and Applications
  • Explore Reinforcement Learning for Transformer
  • Model Export, Serving, and Deployment
  • Transformer Model Interpretability, and Experimental Visualization
  • PyTorch Models: Best Practices and Debugging
SHOW MORE
FREE ACCESS