SlimPajama-DC is a set of 1.3B parameter language models, distinctively trained on the different combinations of 330B subsets of SlimPajama dataset.
Despite being trained on a smaller amount of 330B tokens compared to TinyLlama and Olmo's 3 trillion, SlimPajama-DC surpasses TinyLlama and Olmo in some challenging English tasks.
‡ represents the RefinedWeb CC.
ARC easy and ARC challenge are evaluated using 25-shot. All other evaluation benchmarks are tested on 0-shot. * represents the results are averaged across multiple sub-items inside each benchmark dataset.
Our full dataset is available at
SlimPajama-627B-DC.
To load a specific checkpoint, use the revision argument as shown below, for example, SlimPajama-DC-6. All the revisions can be seen from the branch dropdown in the "Files and versions" tab. If no revision argument is provided, it will load the default checkpoint SlimPajama-DC-6.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3tokenizer = AutoTokenizer.from_pretrained(
4 "MBZUAI-LLM/SlimPajama-DC",
5 revision="SlimPajama-DC-6",
6 trust_remote_code=True
7)
8model = AutoModelForCausalLM.from_pretrained(
9 "MBZUAI-LLM/SlimPajama-DC",
10 revision="SlimPajama-DC-6",
11 trust_remote_code=True
12)
13
14prompt = 'int add(int x, int y) {'
15
16input_ids = tokenizer(prompt, return_tensors="pt").input_ids
17gen_tokens = model.generate(input_ids, do_sample=True, max_length=400)
18
19print("-"*20 + "Output for model" + 20 * '-')
20print(tokenizer.batch_decode(gen_tokens)[0])
1@article{shen2023slimpajama,
2 title={Slimpajama-dc: Understanding data combinations for llm training},
3 author={Zhiqiang Shen, Tianhua Tao, Liqun Ma, Willie Neiswanger, Zhengzhong Liu, Hongyi Wang, Bowen Tan, Joel Hestness, Natalia Vassilieva, Daria Soboleva, Eric Xing},
4 journal={arXiv preprint arXiv:2309.10818},
5 year={2023}
6}