sail/data-mixture-pile-cc-1b

Model

Models Trained with Human Selection

3

7 commits

2 linked in READMEs

updated Jul 11, 2024

See the code

README

Models Trained with Human Selection

This is a collection of the language models trained using Pile-CC, each with approximately 1B parameters, trained on different seeds. This project aims to validate the generalization capabilities of the RegMix approach (https://huggingface.co/papers/2407.01492) from small-scale (e.g., 1M parameters) to large-scale (e.g., 1B parameters) models.

Key Features

  • Model Size: 5 separate models trained with different seeds, each with ~1B parameters
  • Training Data: The pile-cc only data mixture on the RegMix-Data dataset

Dataset

The models were trained using the RegMix-Data dataset, which is split into different domains from The Pile dataset.

Training Hyperparameters

HyperparameterValue
Batch Size1M tokens
Learning Rate4e-4
Minimum Learning Rate1e-5
Learning Rate ScheduleCosine
Warmup Ratio4%
Total Tokens25B

How to Load a Model

You can load any model using the corresponding branch with the Hugging Face Transformers library:

from transformers import AutoModel, AutoTokenizer

model = AutoModel.from_pretrained("sail/data-mixture-pile-cc-1b", revision="seed-1")
tokenizer = AutoTokenizer.from_pretrained("sail/data-mixture-pile-cc-1b", revision="seed-1")

Data Mixture

The specific data mixture used for training this 1B model is as follows, which can be also found in our code:

train:
  train_the_pile_pile_cc: 1.0
valid:
  valid_the_pile_pile_cc: 1.0
model_name: tinyllama_1_1b

Model Variants

To access different model variants, simply change the revision parameter in the from_pretrained method to the desired seed (e.g., "seed-2", "seed-3"), and the maxium seed is 5.

Model Performance

We evaluated each model using lm-evaluation-harness. The performance metric for each task is the average of 0-shot to 5-shot accnorm (accuracy normalized, if available) or acc (accuracy) scores.

SeedPIQALAMBADAMultiRCLogiQASocialIQAWinograndeRACEOpenBookQACOPAHellaSwagSciQARC EasyQQPAverage
169.2333.1650.3327.5733.2252.1031.8031.0765.8344.1581.7751.8057.0448.39
268.6233.6953.1525.1332.9651.2431.0630.8469.8043.2883.1852.0058.0648.69
369.0435.6852.3826.3633.4551.9530.8330.1666.8042.8083.3251.5757.6948.62
469.3533.5650.0126.2433.6250.9931.8130.4465.6043.0083.0052.3356.1448.16
567.9135.0949.9327.5033.9052.8531.7730.0469.4042.6280.9451.2561.0348.79

Usage Notes

  • These models are primarily intended for research purposes.
  • Performance may vary depending on the specific task and domain.

Citation

If you use these models in your research, please cite the RegMix paper:

@article{liu2024regmix,
  title={RegMix: Data Mixture as Regression for Language Model Pre-training},
  author={Liu, Qian and Zheng, Xiaosen and Muennighoff, Niklas and Zeng, Guangtao and Dou, Longxu and Pang, Tianyu and Jiang, Jing and Lin, Min},
  journal={arXiv preprint arXiv:2407.01492},
  year={2024}
}

For more information about the RegMix methodology and its applications, please refer to the original paper.

endpoints_compatible
llama
regmix
text-generation
transformers

sail/data-mixture-pile-cc-1b

Model

Models Trained with Human Selection

3

7 commits

2 linked in READMEs

updated Jul 11, 2024

See the code

README

Models Trained with Human Selection

This is a collection of the language models trained using Pile-CC, each with approximately 1B parameters, trained on different seeds. This project aims to validate the generalization capabilities of the RegMix approach (https://huggingface.co/papers/2407.01492) from small-scale (e.g., 1M parameters) to large-scale (e.g., 1B parameters) models.

Key Features

  • Model Size: 5 separate models trained with different seeds, each with ~1B parameters
  • Training Data: The pile-cc only data mixture on the RegMix-Data dataset

Dataset

The models were trained using the RegMix-Data dataset, which is split into different domains from The Pile dataset.

Training Hyperparameters

HyperparameterValue
Batch Size1M tokens
Learning Rate4e-4
Minimum Learning Rate1e-5
Learning Rate ScheduleCosine
Warmup Ratio4%
Total Tokens25B

How to Load a Model

You can load any model using the corresponding branch with the Hugging Face Transformers library:

from transformers import AutoModel, AutoTokenizer

model = AutoModel.from_pretrained("sail/data-mixture-pile-cc-1b", revision="seed-1")
tokenizer = AutoTokenizer.from_pretrained("sail/data-mixture-pile-cc-1b", revision="seed-1")

Data Mixture

The specific data mixture used for training this 1B model is as follows, which can be also found in our code:

train:
  train_the_pile_pile_cc: 1.0
valid:
  valid_the_pile_pile_cc: 1.0
model_name: tinyllama_1_1b

Model Variants

To access different model variants, simply change the revision parameter in the from_pretrained method to the desired seed (e.g., "seed-2", "seed-3"), and the maxium seed is 5.

Model Performance

We evaluated each model using lm-evaluation-harness. The performance metric for each task is the average of 0-shot to 5-shot accnorm (accuracy normalized, if available) or acc (accuracy) scores.

SeedPIQALAMBADAMultiRCLogiQASocialIQAWinograndeRACEOpenBookQACOPAHellaSwagSciQARC EasyQQPAverage
169.2333.1650.3327.5733.2252.1031.8031.0765.8344.1581.7751.8057.0448.39
268.6233.6953.1525.1332.9651.2431.0630.8469.8043.2883.1852.0058.0648.69
369.0435.6852.3826.3633.4551.9530.8330.1666.8042.8083.3251.5757.6948.62
469.3533.5650.0126.2433.6250.9931.8130.4465.6043.0083.0052.3356.1448.16
567.9135.0949.9327.5033.9052.8531.7730.0469.4042.6280.9451.2561.0348.79

Usage Notes

  • These models are primarily intended for research purposes.
  • Performance may vary depending on the specific task and domain.

Citation

If you use these models in your research, please cite the RegMix paper:

@article{liu2024regmix,
  title={RegMix: Data Mixture as Regression for Language Model Pre-training},
  author={Liu, Qian and Zheng, Xiaosen and Muennighoff, Niklas and Zeng, Guangtao and Dou, Longxu and Pang, Tianyu and Jiang, Jing and Lin, Min},
  journal={arXiv preprint arXiv:2407.01492},
  year={2024}
}

For more information about the RegMix methodology and its applications, please refer to the original paper.

endpoints_compatible
llama
regmix
text-generation
transformers