vTrain: A Simulation Framework for Evaluating Cost-effective and Compute-optimal Large Language Model Training

Jehyeon Bang, Yujeong Choi, Myeongwoo Kim, Yongdeok Kim, Minsoo Rhu
11/27/2023
cs.LGcs.AIcs.AR

Official code: VIA-Research/vTrain (85 stars, MIT, last commit 2025-05-27).

Abstract

As large language models (LLMs) become widespread in various application domains, a critical challenge the AI community is facing is how to train these large AI models in a cost-effective manner. Existing LLM training plans typically employ a heuristic based parallel training strategy which is based on empirical observations rather than grounded upon a thorough examination of the search space of LLM parallelization. Such limitation renders existing systems to leave significant performance left on the table, wasting millions of dollars worth of training cost. This paper presents our profiling-driven simulator called vTrain, providing AI practitioners a fast yet accurate software framework to determine an efficient and cost-effective LLM training system configuration. We demonstrate vTrain's practicality through several case studies, e.g., effectively evaluating optimal training parallelization strategies that balances training time and its associated training cost, efficient multi-tenant GPU cluster schedulers targeting multiple LLM training jobs, and determining a compute-optimal LLM model architecture given a fixed compute budget.

View on arXivView PDF

Code Implementations(1)

MIT
8517C++, PythonJul 18, 20241 years agoMIT

Similar Papers

Cite this paper

@article{bang2023vtrain,
  title  = {vTrain: A Simulation Framework for Evaluating Cost-effective and Compute-optimal Large Language Model Training},
  author = {Jehyeon Bang and Yujeong Choi and Myeongwoo Kim and Yongdeok Kim and Minsoo Rhu},
  year   = {2023},
  eprint = {2312.12391},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.12391v2}
}

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/2312.12391.svg)](https://codeofpaper.com/paper/2312.12391)

Discussion