Datasets:
Tasks:
Text Generation
Languages:
English
Size:
10M<n<100M
ArXiv:
Tags:
elastic-models
foundation-models
hyperparameter-transfer
maximal-update-parameterization
pretraining
License:
Card: header and introduction of ShellElastic
Browse files
README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
license: cc-by-4.0
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
-
pretty_name: ShellElastic
|
| 6 |
size_categories:
|
| 7 |
- 10M<n<100M
|
| 8 |
task_categories:
|
|
@@ -16,14 +16,40 @@ tags:
|
|
| 16 |
viewer: false
|
| 17 |
---
|
| 18 |
|
| 19 |
-
|
| 20 |
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
training uses [DCLM-Baseline](https://huggingface.co/datasets/mlfoundations/dclm-baseline-1.0) (Li et al., 2024) and validation held-out [C4](https://huggingface.co/datasets/allenai/c4) text (Raffel et al.,
|
| 23 |
2020), tokenized with the [GPT-NeoX-20B tokenizer](https://huggingface.co/EleutherAI/gpt-neox-20b) (Black et al., 2022) and packed into sequences of 2,049
|
| 24 |
tokens. This repository holds exactly the shards that the runs read, in the layout that the code of the paper reads.
|
| 25 |
-
The final checkpoints of these runs are in the
|
| 26 |
-
`Can111/ShellElastic-baseline-*`.
|
| 27 |
|
| 28 |
## Contents
|
| 29 |
|
|
|
|
| 2 |
license: cc-by-4.0
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
+
pretty_name: ShellElastic data
|
| 6 |
size_categories:
|
| 7 |
- 10M<n<100M
|
| 8 |
task_categories:
|
|
|
|
| 16 |
viewer: false
|
| 17 |
---
|
| 18 |
|
| 19 |
+
<div align="center">
|
| 20 |
|
| 21 |
+
# ShellElastic
|
| 22 |
+
|
| 23 |
+
### Scalable Elastic Pretraining with Simultaneous Maximal Updates and Hyperparameter Transfer
|
| 24 |
+
|
| 25 |
+
**Can Jin**<sup>1*</sup> · **Yan Kang**<sup>2</sup> · **Yifan Gong**<sup>2</sup> · **Chongjian Ge**<sup>2</sup> · **Mingze Xu**<sup>2</sup> · **Yuanjun Xiong**<sup>2</sup> · **Dimitris N. Metaxas**<sup>1</sup> · **Hongwu Peng**<sup>2</sup>
|
| 26 |
+
|
| 27 |
+
<sup>1</sup>Rutgers University   <sup>2</sup>Adobe Research
|
| 28 |
+
|
| 29 |
+
<sup>*</sup>Corresponding author: [can.jin@rutgers.edu](mailto:can.jin@rutgers.edu). Work done during an internship at Adobe Research.
|
| 30 |
+
|
| 31 |
+
<a href="https://github.com/jincan333/ShellElastic/tree/main/paper"><img alt="Paper" src="https://img.shields.io/badge/Paper-PDF-b31b1b?style=for-the-badge"></a>
|
| 32 |
+
<a href="http://localhost:8765/"><img alt="Project Page" src="https://img.shields.io/badge/Project-Page-2f6db5?style=for-the-badge"></a>
|
| 33 |
+
<a href="https://github.com/jincan333/ShellElastic"><img alt="Code" src="https://img.shields.io/badge/Code-GitHub-181717?style=for-the-badge&logo=github&logoColor=white"></a>
|
| 34 |
+
<a href="https://huggingface.co/collections/Can111/shellelastic-checkpoints-and-data-6ac41e3a763d5a3fd0e79111"><img alt="Checkpoints" src="https://img.shields.io/badge/Checkpoints-Hugging%20Face-ffd21e?style=for-the-badge&logo=huggingface&logoColor=white"></a>
|
| 35 |
+
<a href="https://huggingface.co/collections/Can111/shellelastic-checkpoints-and-data-6ac41e3a763d5a3fd0e79111"><img alt="Datasets" src="https://img.shields.io/badge/Datasets-Hugging%20Face-ffd21e?style=for-the-badge&logo=huggingface&logoColor=white"></a>
|
| 36 |
+
<a href="https://github.com/jincan333/ShellElastic/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/badge/License-Apache--2.0-3da639?style=for-the-badge&logo=apache&logoColor=white"></a>
|
| 37 |
+
|
| 38 |
+
</div>
|
| 39 |
+
|
| 40 |
+
## About ShellElastic
|
| 41 |
+
|
| 42 |
+
Foundation models need to support diverse inference budgets. Elastic models train several nested sub-networks inside one weight-shared supernet. ShellElastic is an elastic transformer that organizes hidden dimensions into a dense core and successive shells, so that every hidden matrix is block lower triangular. One full-width forward pass contains the exact hidden states of every sub-network, so joint training keeps a fixed computation graph and costs about as much per step as training the widest sub-network alone.
|
| 43 |
+
|
| 44 |
+
µ-Elastic extends maximal update parameterization (µP) to ShellElastic and other elastic architectures. Its scaling rules keep all sub-networks of a supernet maximally updated simultaneously, and hyperparameters tuned on a small non-elastic proxy stay near-optimal for elastic families and larger supernets. A single ShellElastic run produces sub-networks that outperform MatFormer and fully elastic baselines at matched parameter counts, and approach separately trained models that together take several times the steps.
|
| 45 |
+
|
| 46 |
+
## Tokenized training and validation data
|
| 47 |
+
|
| 48 |
+
The tokenized training and validation data of the runs of the paper. As described in Section 4.1 of the paper,
|
| 49 |
training uses [DCLM-Baseline](https://huggingface.co/datasets/mlfoundations/dclm-baseline-1.0) (Li et al., 2024) and validation held-out [C4](https://huggingface.co/datasets/allenai/c4) text (Raffel et al.,
|
| 50 |
2020), tokenized with the [GPT-NeoX-20B tokenizer](https://huggingface.co/EleutherAI/gpt-neox-20b) (Black et al., 2022) and packed into sequences of 2,049
|
| 51 |
tokens. This repository holds exactly the shards that the runs read, in the layout that the code of the paper reads.
|
| 52 |
+
The final checkpoints of these runs are in the [ShellElastic collection](https://huggingface.co/collections/Can111/shellelastic-checkpoints-and-data-6ac41e3a763d5a3fd0e79111).
|
|
|
|
| 53 |
|
| 54 |
## Contents
|
| 55 |
|