Papers › RedCoast: A Lightweight Tool to Automate Distributed Training of LLMs on Any GPU/TPUs

RedCoast: A Lightweight Tool to Automate Distributed Training of LLMs on Any GPU/TPUs

25 Oct 2023arXiv:2310.16355archive 2025-07-28

Bowen Tan, Yun Zhu, Lijuan Liu, Hongyi Wang, Yonghao Zhuang, Jindong Chen, Eric Xing, Zhiting Hu

The recent progress of AI can be largely attributed to large language models (LLMs). However, their escalating memory requirements introduce challenges for machine learning (ML) researchers and engineers. Addressing this requires developers to partition a large model to distribute it across multiple GPUs or TPUs. This necessitates considerable coding and intricate configuration efforts with existing model parallel tools, such as Megatron-LM, DeepSpeed, and Alpa. These tools require users' expertise in machine learning systems (MLSys), creating a bottleneck in LLM development, particularly for developers without MLSys background. In this work, we present RedCoast (Redco), a lightweight and user-friendly tool crafted to automate distributed training and inference for LLMs, as well as to simplify ML pipeline development. The design of Redco emphasizes two key aspects. Firstly, to automate model parallelism, our study identifies two straightforward rules to generate tensor parallel strategies for any given LLM. Integrating these rules into Redco facilitates effortless distributed LLM training and inference, eliminating the need of additional coding or complex configurations. We demonstrate the effectiveness by applying Redco on a set of LLM architectures, such as GPT-J, LLaMA, T5, and OPT, up to the size of 66B. Secondly, we propose a mechanism that allows for the customization of diverse ML pipelines through the definition of merely three functions, avoiding redundant and formulaic code like multi-host related processing. This mechanism proves adaptable across a spectrum of ML algorithms, from foundational language modeling to complex algorithms like meta-learning and reinforcement learning. As a result, Redco implementations exhibit significantly fewer lines of code compared to their official counterparts.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.16355")

Code

Syntology Ran 12 of 17 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 12 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

tanyuqian/redco officialmentioned in papermentioned on GitHubjaxApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 12 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

12ran
5unverified

Licence: 0 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from tanyuqian/redco. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

add_idxes tanyuqian/redco/redco/predictors/utils.py official repository ran fingerprinted Apache-2.0 (permissive) · 7f7471520b9c1e90 · report
collate_fn_wrapper tanyuqian/redco/redco/predictors/utils.py official repository ran Apache-2.0 (permissive) · ea2c12ce7fd1ec53 · report
get_data_batches tanyuqian/redco/redco/deployers/data_utils.py official repository ran Apache-2.0 (permissive) · 12b3e76802e87387 · report
get_dataloader tanyuqian/redco/redco/deployers/data_utils.py official repository ran Apache-2.0 (permissive) · d0f722215b22ccd3 · report
get_dtype tanyuqian/redco/redco/deployers/ckpt_utils.py official repository ran Apache-2.0 (permissive) · 10a72bd31f42a074 · report
get_host_examples tanyuqian/redco/redco/deployers/data_utils.py official repository ran Apache-2.0 (permissive) · 957b81e4437fbde6 · report
get_logger tanyuqian/redco/redco/deployers/log_utils.py official repository ran Apache-2.0 (permissive) · 1879d59e1c180941 · report
get_lr_schedule_fn tanyuqian/redco/redco/deployers/opt_utils.py official repository ran Apache-2.0 (permissive) · 2688afb7a47925ea · report
load_params_shape tanyuqian/redco/redco/deployers/ckpt_utils.py official repository ran Apache-2.0 (permissive) · 2e474ceda07a5811 · report
pred_fn_wrapper tanyuqian/redco/redco/predictors/utils.py official repository ran Apache-2.0 (permissive) · 546098c0795323a5 · report
save_outputs tanyuqian/redco/redco/deployers/log_utils.py official repository ran Apache-2.0 (permissive) · f66310247f3da124 · report
set_partitions tanyuqian/redco/redco/deployers/partition_utils.py official repository ran Apache-2.0 (permissive) · 0e68538ba4cd72e2 · report
default_train_step tanyuqian/redco/redco/trainers/utils.py official repository unverified Apache-2.0 (permissive) · 89d887e9e94260f0 · report
eval_step tanyuqian/redco/redco/trainers/utils.py official repository unverified Apache-2.0 (permissive) · 4925175b59c41e2d · report
get_mesh tanyuqian/redco/redco/deployers/partition_utils.py official repository unverified Apache-2.0 (permissive) · 9d2ee7610dbfcffd · report
get_params_spec tanyuqian/redco/redco/deployers/partition_utils.py official repository unverified Apache-2.0 (permissive) · 90b07cf07631b623 · report
load_ckpt tanyuqian/redco/redco/deployers/ckpt_utils.py official repository unverified Apache-2.0 (permissive) · dd029e53ad532a38 · report

Tasks

Language ModelingLanguage ModellingMeta-Learning

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdafactorAttentionAttention DropoutBPEDense ConnectionsDropoutGated Linear UnitInverse Square Root ScheduleLayer NormalizationLinear LayerMulti-Head AttentionOPTResidual ConnectionSETSentencePieceSoftmaxT5

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections