Auto-Parallelizing Large Models with Rhino: A Systematic Approach on Production AI Platform

Shiwei Zhang, Lansong Diao, Siyu Wang, Zongyan Cao, Yiliang Gu +5 more
2/16/2023
cs.DCcs.LGcs.PL

No confident code implementation found for this paper.

Abstract

We present Rhino, a system for accelerating tensor programs with automatic parallelization on AI platform for real production environment. It transforms a tensor program written for a single device into an equivalent distributed program that is capable of scaling up to thousands of devices with no user configuration. Rhino firstly works on a semantically independent intermediate representation of tensor programs, which facilitates its generalization to unprecedented applications. Additionally, it implements a task-oriented controller and a distributed runtime for optimal performance. Rhino explores on a complete and systematic parallelization strategy space that comprises all the paradigms commonly employed in deep learning (DL), in addition to strided partitioning and pipeline parallelism on non-linear models. Aiming to efficiently search for a near-optimal parallel execution plan, our analysis of production clusters reveals general heuristics to speed up the strategy search. On top of it, two optimization levels are designed to offer users flexible trade-offs between the search time and strategy quality. Our experiments demonstrate that Rhino can not only re-discover the expert-crafted strategies of classic, research and production DL models, but also identify novel parallelization strategies which surpass existing systems for novel models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2023autoparallelizing,
  title  = {Auto-Parallelizing Large Models with Rhino: A Systematic Approach on Production AI Platform},
  author = {Shiwei Zhang and Lansong Diao and Siyu Wang and Zongyan Cao and Yiliang Gu and Chang Si and Ziji Shi and Zhen Zheng and Chuan Wu and Wei Lin},
  year   = {2023},
  eprint = {2302.08141},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.08141v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.08141.svg)](https://codeofpaper.com/paper/2302.08141)

Discussion