Building LLMs with PyTorch
eBook - ePub

Building LLMs with PyTorch

A step-by-step guide to building advanced AI models with PyTorch (English Edition)

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Building LLMs with PyTorch

A step-by-step guide to building advanced AI models with PyTorch (English Edition)

About this book

Description
PyTorch has become the go-to framework for building cutting-edge large language models (LLMs), enabling developers to harness the power of deep learning for natural language processing. This book serves as your practical guide to navigating the intricacies of PyTorch, empowering you to create your own LLMs from the ground up. You will begin by mastering PyTorch fundamentals, including tensors, autograd, and model creation, before diving into core neural network concepts like gradients, loss functions, and backpropagation. Progressing through regression and image classification with convolutional neural networks, you will then explore advanced image processing through object detection and segmentation. The book seamlessly transitions into NLP, covering RNNs, LSTMs, and attention mechanisms, culminating in the construction of Transformer-based LLMs, including a practical mini-GPT project. You will also get a strong understanding of generative models like VAEs and GANs.By the end of this book, you will possess the technical proficiency to build, train, and deploy sophisticated LLMs using PyTorch, equipping you to contribute to the rapidly evolving landscape of AI.

What you will learn
? Build and train PyTorch models for linear and logistic regression.
? Configure PyTorch environments and utilize GPU acceleration with CUDA.
? Construct CNNs for image classification and apply transfer learning techniques.
? Master PyTorch tensors, autograd, and build fundamental neural networks.
? Utilize SSD and YOLO for object detection and perform image segmentation.
? Develop RNNs and LSTMs for sequence modeling and text generation.
? Implement attention mechanisms and build Transformer-based language models.
? Create generative models using VAEs and GANs for diverse applications.
? Build and deploy your own mini-GPT language model, applying the acquired skills.

Who this book is for
Software engineers, AI researchers, architects seeking AI insights, and professionals in finance, medical, engineering, and mathematics will find this book a comprehensive starting point, regardless of prior deep learning expertise.

Table of Contents
1. Introduction to Deep Learning
2. Nuts and Bolts of AI with PyTorch
3. Introduction to Convolution Neural Network
4. Model Building with Custom Layers and PyTorch 2.0
5. Advances in Computer Vision: Transfer Learning and Object Detection
6. Advanced Object Detection and Segmentation
7. Mastering Object Detection with Detectron2
8. Introduction to RNNs and LSTMs
9. Understanding Text Processing and Generation in Machine Learning
10. Transformers Unleashed
11. Introduction to GANs: Building Blocks of Generative Models
12. Conditional GANs, Latent Spaces, and Diffusion Models
13. PyTorch 2.0: New Features, Efficient CUDA Usage, and Accelerated Model Training
14. Building Large Language Models from Scratch

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Building LLMs with PyTorch by Anand Trivedi in PDF and/or ePUB format, as well as other popular books in Computer Science & Artificial Intelligence (AI) & Semantics. We have over one million books available in our catalogue for you to explore.

Table of contents

  1. Cover
  2. Title Page
  3. Copyright Page
  4. Dedication Page
  5. About the Author
  6. Acknowledgement
  7. Preface
  8. Table of Contents
  9. 1. Introduction to Deep Learning
  10. 2. Nuts and Bolts of AI with PyTorch
  11. 3. Introduction to Convolution Neural Network
  12. 4. Model Building with Custom Layers and PyTorch 2.0
  13. 5. Advances in Computer Vision: Transfer Learning and Object Detection
  14. 6. Advanced Object Detection and Segmentation
  15. 7. Mastering Object Detection with Detectron2
  16. 8. Introduction to RNNs and LSTMs
  17. 9. Understanding Text Processing and Generation in Machine Learning
  18. 10. Transformers Unleashed
  19. 11. Introduction to GANs: Building Blocks of Generative Models
  20. 12. Conditional GANs, Latent Spaces, and Diffusion Models
  21. 13. PyTorch 2.0: New Features, Efficient CUDA Usage, and Accelerated Model Training
  22. 14. Building Large Language Models from Scratch
  23. Index