-
Biznes i ekonomia
- Bitcoin
- Bizneswoman
- Coaching
- Controlling
- E-biznes
- Ekonomia
- Finanse
- Giełda i inwestycje
- Kompetencje osobiste
- Komputer w biurze
- Komunikacja i negocjacje
- Mała firma
- Marketing
- Motywacja
- Multimedialne szkolenia
- Nieruchomości
- Perswazja i NLP
- Podatki
- Polityka społeczna
- Poradniki
- Prezentacje
- Przywództwo
- Public Relation
- Raporty, analizy
- Sekret
- Social Media
- Sprzedaż
- Start-up
- Twoja kariera
- Zarządzanie
- Zarządzanie projektami
- Zasoby ludzkie (HR)
-
Dla dzieci
-
Dla młodzieży
-
Edukacja
-
Encyklopedie, słowniki
-
E-prasa
-
Historia
-
Informatyka
- Aplikacje biurowe
- Aplikacje biznesowe
- Bazy danych
- Bioinformatyka
- Biznes IT
- CAD/CAM
- Digital Lifestyle
- DTP
- Elektronika
- Fotografia cyfrowa
- Grafika komputerowa
- Gry
- Hacking
- Hardware
- IT w ekonomii
- Pakiety naukowe
- Podręczniki szkolne
- Podstawy komputera
- Programowanie
- Programowanie mobilne
- Serwery internetowe
- Sieci komputerowe
- Start-up
- Systemy operacyjne
- Sztuczna inteligencja
- Technologia dla dzieci
- Webmasterstwo
-
Inne
-
Języki obce
-
Kultura i sztuka
-
Lektury szkolne
-
Literatura
- Antologie
- Ballada
- Dla dorosłych
- Dramat
- Dzienniki, pamiętniki, listy
- Epos, epopeja
- Esej
- Fantastyka i science-fiction
- Felietony
- Fikcja
- Humor, satyra
- Inne
- Klasyczna
- Kryminał
- Literatura faktu
- Literatura piękna
- Mity i legendy
- Nobliści
- Nowele
- Obyczajowa
- Okultyzm i magia
- Opowiadania
- Pamiętniki
- Podróże
- Poemat
- Poezja
- Polityka
- Popularnonaukowa
- Powieść
- Powieść historyczna
- Proza
- Przygodowa
- Publicystyka
- Reportaż
- Romans i literatura obyczajowa
- Sensacja
- Thriller, Horror
- Wywiady i wspomnienia
-
Nauki przyrodnicze
-
Nauki społeczne
-
Podręczniki szkolne
-
Popularnonaukowe i akademickie
- Archeologia
- Bibliotekoznawstwo
- Filmoznawstwo
- Filologia
- Filologia polska
- Filozofia
- Finanse i bankowość
- Geografia
- Gospodarka
- Handel. Gospodarka światowa
- Historia i archeologia
- Historia sztuki i architektury
- Kulturoznawstwo
- Lingwistyka
- Literaturoznawstwo
- Logistyka
- Matematyka
- Medycyna
- Nauki humanistyczne
- Pedagogika
- Pomoce naukowe
- Popularnonaukowa
- Pozostałe
- Psychologia
- Socjologia
- Teatrologia
- Teologia
- Teorie i nauki ekonomiczne
- Transport i spedycja
- Wychowanie fizyczne
- Zarządzanie i marketing
-
Poradniki
-
Poradniki do gier
-
Poradniki zawodowe i specjalistyczne
-
Prawo
- BHP
- Historia
- Kodeks drogowy. Prawo jazdy
- Nauki prawne
- Ochrona zdrowia
- Ogólne, kompendium wiedzy
- Podręczniki akademickie
- Pozostałe
- Prawo budowlane i lokalowe
- Prawo cywilne
- Prawo finansowe
- Prawo gospodarcze
- Prawo gospodarcze i handlowe
- Prawo karne
- Prawo karne. Przestępstwa karne. Kryminologia
- Prawo międzynarodowe
- Prawo międzynarodowe i zagraniczne
- Prawo ochrony zdrowia
- Prawo oświatowe
- Prawo podatkowe
- Prawo pracy i ubezpieczeń społecznych
- Prawo publiczne, konstytucyjne i administracyjne
- Prawo rodzinne i opiekuńcze
- Prawo rolne
- Prawo socjalne, prawo pracy
- Prawo Unii Europejskiej
- Przemysł
- Rolne i ochrona środowiska
- Słowniki i encyklopedie
- Zamówienia publiczne
- Zarządzanie
-
Przewodniki i podróże
- Afryka
- Albumy
- Ameryka Południowa
- Ameryka Środkowa i Północna
- Australia, Nowa Zelandia, Oceania
- Austria
- Azja
- Bałkany
- Bliski Wschód
- Bułgaria
- Chiny
- Chorwacja
- Czechy
- Egipt
- Europa
- Francja
- Góry
- Grecja
- Hiszpania
- Holandia
- Islandia
- Litwa
- Mapy, Plany miast, Atlasy
- Miniprzewodniki
- Niemcy
- Podróże aktywne
- Polska
- Portugalia
- Pozostałe
- Rosja
- Rumunia
- Słowacja
- Słowenia
- Szwecja
- Świat
- Turcja
- Ukraina
- Węgry
- Wielka Brytania
- Włochy
-
Psychologia
- Filozofie życiowe
- Komunikacja międzyludzka
- Mindfulness
- Ogólne
- Perswazja i NLP
- Psychologia akademicka
- Psychologia duszy i umysłu
- Psychologia pracy
- Relacje i związki
- Rodzicielstwo i psychologia dziecka
- Rozwiązywanie problemów
- Rozwój intelektualny
- Sekret
- Seksualność
- Uwodzenie
- Wygląd i wizerunek
- Życiowe filozofie
-
Religia
-
Sport, fitness, diety
-
Technika i mechanika
-
Biznes i ekonomia
- Bitcoin
- Bizneswoman
- Coaching
- E-biznes
- Ekonomia
- Finanse
- Giełda i inwestycje
- Kompetencje osobiste
- Komunikacja i negocjacje
- Mała firma
- Marketing
- Motywacja
- Nieruchomości
- Perswazja i NLP
- Poradniki
- Prezentacje
- Przywództwo
- Public Relation
- Sekret
- Social Media
- Sprzedaż
- Start-up
- Twoja kariera
- Zarządzanie
- Zarządzanie projektami
- Zasoby ludzkie (HR)
-
Dla dzieci
-
Dla młodzieży
-
Edukacja
-
Encyklopedie, słowniki
-
Historia
-
Informatyka
-
Inne
-
Języki obce
-
Kultura i sztuka
-
Lektury szkolne
-
Literatura
- Antologie
- Ballada
- Dla dorosłych
- Dramat
- Dzienniki, pamiętniki, listy
- Epos, epopeja
- Esej
- Fantastyka i science-fiction
- Felietony
- Fikcja
- Humor, satyra
- Inne
- Klasyczna
- Kryminał
- Literatura faktu
- Literatura piękna
- Nobliści
- Nowele
- Obyczajowa
- Opowiadania
- Pamiętniki
- Podróże
- Poezja
- Polityka
- Popularnonaukowa
- Powieść
- Powieść historyczna
- Proza
- Przygodowa
- Publicystyka
- Reportaż
- Romans i literatura obyczajowa
- Sensacja
- Thriller, Horror
- Wywiady i wspomnienia
-
Nauki przyrodnicze
-
Nauki społeczne
-
Popularnonaukowe i akademickie
-
Poradniki
-
Prawo
-
Przewodniki i podróże
-
Psychologia
- Filozofie życiowe
- Komunikacja międzyludzka
- Mindfulness
- Ogólne
- Perswazja i NLP
- Psychologia akademicka
- Psychologia duszy i umysłu
- Psychologia pracy
- Relacje i związki
- Rodzicielstwo i psychologia dziecka
- Rozwiązywanie problemów
- Rozwój intelektualny
- Sekret
- Seksualność
- Uwodzenie
- Wygląd i wizerunek
- Życiowe filozofie
-
Religia
-
Sport, fitness, diety
-
Bazy danych
-
Big Data
-
Biznes i ekonomia
-
Cyberbezpieczeństwo
-
Data Science
-
DevOps
-
Dla dzieci
-
Elektronika
-
Grafika/Wideo/CAX
-
Gry
-
Microsoft Office
-
Narzędzia programistyczne
-
Programowanie
-
Rozwój osobisty
-
Sieci komputerowe
-
Systemy operacyjne
-
Testowanie oprogramowania
-
Urządzenia mobilne
-
UX/UI
-
Web development
Reducing time cost in machine learning leads to a shorter waiting time for model training and a faster model updating cycle. Distributed machine learning enables machine learning practitioners to shorten model training and inference time by orders of magnitude. With the help of this practical guide, you'll be able to put your Python development knowledge to work to get up and running with the implementation of distributed machine learning, including multi-node machine learning systems, in no time. You'll begin by exploring how distributed systems work in the machine learning area and how distributed machine learning is applied to state-of-the-art deep learning models. As you advance, you'll see how to use distributed systems to enhance machine learning model training and serving speed. You'll also get to grips with applying data parallel and model parallel approaches before optimizing the in-parallel model training and serving pipeline in local clusters or cloud environments. By the end of this book, you'll have gained the knowledge and skills needed to build and deploy an efficient data processing pipeline for machine learning model training and inference in a distributed manner.
- Distributed Machine Learning with Python
- Contributors
- About the author
- About the reviewers
- Preface
- Who this book is for
- What this book covers
- To get the most out of this book
- Download the example code files
- Download the color images
- Conventions used
- Get in touch
- Share Your Thoughts
- Section 1 Data Parallelism
- Chapter 1: Splitting Input Data
- Single-node training is too slow
- The mismatch between data loading bandwidth and model training bandwidth
- Single-node training time on popular datasets
- Accelerating the training process with data parallelism
- Data parallelism the high-level bits
- Stochastic gradient descent
- Model synchronization
- Hyperparameter tuning
- Global batch size
- Learning rate adjustment
- Model synchronization schemes
- Summary
- Single-node training is too slow
- Chapter 2: Parameter Server and All-Reduce
- Technical requirements
- Parameter server architecture
- Communication bottleneck in the parameter server architecture
- Sharding the model among parameter servers
- Implementing the parameter server
- Defining model layers
- Defining the parameter server
- Defining the worker
- Passing data between the parameter server and worker
- Issues with the parameter server
- The parameter server architecture introduces a high coding complexity for practitioners
- All-Reduce architecture
- Reduce
- All-Reduce
- Ring All-Reduce
- Collective communication
- Broadcast
- Gather
- All-Gather
- Summary
- Chapter 3: Building a Data Parallel Training and Serving Pipeline
- Technical requirements
- The data parallel training pipeline in a nutshell
- Input pre-processing
- Input data partition
- Data loading
- Training
- Model synchronization
- Model update
- Single-machine multi-GPUs and multi-machine multi-GPUs
- Single-machine multi-GPU
- Multi-machine multi-GPU
- Checkpointing and fault tolerance
- Model checkpointing
- Load model checkpoints
- Model evaluation and hyperparameter tuning
- Model serving in data parallelism
- Summary
- Chapter 4: Bottlenecks and Solutions
- Communication bottlenecks in data parallel training
- Analyzing the communication workloads
- Parameter server architecture
- The All-Reduce architecture
- The inefficiency of state-of-the-art communication schemes
- Leveraging idle links and host resources
- Tree All-Reduce
- Hybrid data transfer over PCIe and NVLink
- On-device memory bottlenecks
- Recomputation and quantization
- Recomputation
- Quantization
- Summary
- Communication bottlenecks in data parallel training
- Section 2 Model Parallelism
- Chapter 5: Splitting the Model
- Technical requirements
- Single-node training error out of memory
- Fine-tuning BERT on a single GPU
- Trying to pack a giant model inside one state-of-the-art GPU
- ELMo, BERT, and GPT
- Basic concepts
- RNN
- ELMo
- BERT
- GPT
- Pre-training and fine-tuning
- State-of-the-art hardware
- P100, V100, and DGX-1
- NVLink
- A100 and DGX-2
- NVSwitch
- Summary
- Chapter 6: Pipeline Input and Layer Split
- Vanilla model parallelism is inefficient
- Forward propagation
- Backward propagation
- GPU idle time between forward and backward propagation
- Pipeline input
- Pros and cons of pipeline parallelism
- Advantages of pipeline parallelism
- Disadvantages of pipeline parallelism
- Layer split
- Notes on intra-layer model parallelism
- Summary
- Vanilla model parallelism is inefficient
- Chapter 7: Implementing Model Parallel Training and Serving Workflows
- Technical requirements
- Wrapping up the whole model parallelism pipeline
- A model parallel training overview
- Implementing a model parallel training pipeline
- Specifying communication protocol among GPUs
- Model parallel serving
- Fine-tuning transformers
- Hyperparameter tuning in model parallelism
- Balancing the workload among GPUs
- Enabling/disabling pipeline parallelism
- NLP model serving
- Summary
- Chapter 8: Achieving Higher Throughput and Lower Latency
- Technical requirements
- Freezing layers
- Freezing layers during forward propagation
- Reducing computation cost during forward propagation
- Freezing layers during backward propagation
- Exploring memory and storage resources
- Understanding model decomposition and distillation
- Model decomposition
- Model distillation
- Reducing bits in hardware
- Summary
- Section 3 Advanced Parallelism Paradigms
- Chapter 9: A Hybrid of Data and Model Parallelism
- Technical requirements
- Case study of Megatron-LM
- Layer split for model parallelism
- Row-wise trial-and-error approach
- Column-wise trial-and-error approach
- Cross-machine for data parallelism
- Implementation of Megatron-LM
- Case study of Mesh-TensorFlow
- Implementation of Mesh-TensorFlow
- Pros and cons of Megatron-LM and Mesh-TensorFlow
- Summary
- Chapter 10: Federated Learning and Edge Devices
- Technical requirements
- Sharing knowledge without sharing data
- Recapping the traditional data parallel model training paradigm
- No input sharing among workers
- Communicating gradients for collaborative learning
- Case study: TensorFlow Federated
- Running edge devices with TinyML
- Case study: TensorFlow Lite
- Summary
- Chapter 11: Elastic Model Training and Serving
- Technical requirements
- Introducing adaptive model training
- Traditional data parallel training
- Adaptive model training in data parallelism
- Adaptive model training (AllReduce-based)
- Adaptive model training (parameter server-based)
- Traditional model-parallel model training paradigm
- Adaptive model training in model parallelism
- Implementing adaptive model training in the cloud
- Elasticity in model inference
- Serverless
- Summary
- Chapter 12: Advanced Techniques for Further Speed-Ups
- Technical requirements
- Debugging and performance analytics
- General concepts in the profiling results
- Communication results analysis
- Computation results analysis
- Job migration and multiplexing
- Job migration
- Job multiplexing
- Model training in a heterogeneous environment
- Summary
- Why subscribe?
- Other Books You May Enjoy
- Packt is searching for authors like you
- Share Your Thoughts
- Tytuły: Distributed Machine Learning with Python
- Autor: Guanhua Wang
- Tytuł oryginału: Distributed Machine Learning with Python
- ISBN Ebooka: 9781801817219, 9781801817219
- Data wydania: 2022-04-29
- Identyfikator pozycji: e_2t1m
-
Kategorie: