Skip to content

Functional local implementations of main model parallelism approaches

License

Notifications You must be signed in to change notification settings

hundredblocks/large-model-parallelism

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

large-model-parallelism-illustration

Model parallelism 101

Learn how model parallelism enables training models like stable diffusion and Chat GPT in less than 300 lines of code. This notebook provides practical local implementations of the main model parallelism methods. It explores three approaches: data parallelism, tensor parallelism, and pipeline parallelism with a 2-layer MLP example that can be naturally extended to more complex models.

Reading this notebook will give you a solid overview of model parallelism techniques and an intuition for how to implement them.

Pull requests welcome. Illustration above generated with Lexica's Aperture model.

About

Functional local implementations of main model parallelism approaches

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published