Datasets:
input_ids list |
|---|
[
2025,
998,
1042,
318,
257,
1964,
8876,
290,
3356,
326,
318,
17988,
286,
477,
655,
6637,
329,
4934,
290,
12932,
284,
35531,
262,
6712,
340,
3667,
5529,
13114,
32000,
290,
18911,
11,
6032,
1390,
3277,
12,
27219,
11,
290,
12129,
13,
3222... |
[
1028,
1997,
326,
561,
22464,
257,
1964,
2151,
13,
25913,
262,
19017,
286,
262,
28698,
45901,
287,
262,
3267,
9303,
290,
262,
7186,
3394,
7511,
1810,
11,
867,
3259,
290,
7941,
2900,
284,
20555,
4671,
543,
6348,
379,
262,
10907,
286,
41... |
[
26177,
7811,
1600,
612,
318,
645,
11529,
319,
543,
7811,
389,
4755,
290,
25699,
6901,
3294,
14061,
6583,
11,
2138,
621,
257,
18032,
41661,
11,
287,
543,
2219,
7811,
389,
4888,
1022,
4266,
286,
41661,
981,
1123,
1448,
3161,
3029,
274,
... |
[
1722,
5279,
290,
16641,
3283,
1863,
606,
17262,
286,
18911,
11,
867,
29676,
2209,
11,
39552,
11,
290,
12856,
262,
22711,
286,
530,
338,
21851,
10893,
416,
5279,
9176,
13,
198,
198,
23398,
25775,
373,
407,
1690,
6693,
416,
15993,
29676,
... |
[
393,
595,
5910,
1112,
4934,
857,
407,
39793,
262,
22375,
286,
663,
13391,
416,
25937,
4934,
884,
355,
7519,
393,
9326,
355,
9314,
11,
4249,
857,
340,
6211,
257,
1844,
16908,
286,
4795,
8492,
13,
32229,
396,
11202,
286,
1692,
3450,
11,... |
[
287,
262,
3668,
338,
4417,
379,
326,
4067,
357,
68,
13,
70,
13,
832,
24203,
286,
28962,
4771,
737,
1320,
531,
11,
435,
3077,
78,
290,
40951,
1111,
7565,
416,
32477,
13,
978,
3077,
78,
318,
4511,
1474,
262,
24971,
290,
9016,
287,
2... |
[
11,
523,
612,
389,
867,
2208,
36457,
14310,
16649,
543,
4079,
11,
4375,
510,
511,
4079,
28720,
13,
20138,
705,
13424,
6,
4771,
27508,
32732,
4954,
14580,
13,
198,
28974,
319,
1353,
286,
428,
5417,
4771,
5732,
262,
435,
3077,
78,
284,
... |
[
21857,
286,
281,
12018,
1182,
287,
44876,
12,
50,
1437,
16233,
4226,
12824,
416,
14075,
13550,
34619,
746,
82,
11,
45552,
355,
257,
46963,
1182,
351,
734,
26771,
7083,
13,
198,
198,
2215,
262,
6156,
25059,
8197,
262,
24830,
11,
484,
5... |
[
222,
1058,
10452,
3139,
317,
11,
281,
26533,
393,
1729,
12,
20307,
6194,
287,
262,
4037,
1380,
261,
5139,
45695,
973,
284,
2380,
2972,
5238,
357,
12417,
306,
1280,
23268,
1424,
8,
198,
32,
257,
28053,
113,
226,
1058,
3401,
7483,
7475,... |
[
262,
7840,
734,
12,
17936,
286,
9266,
373,
1900,
355,
262,
35856,
2238,
8604,
3726,
1141,
262,
3517,
17091,
2278,
13,
632,
373,
4752,
416,
262,
22783,
286,
7859,
422,
1596,
3134,
31719,
13,
14207,
262,
28105,
1810,
11,
340,
6150,
257,... |
[
12,
17089,
286,
477,
1687,
6426,
284,
262,
1181,
11,
475,
750,
407,
3328,
257,
27111,
2033,
287,
2594,
13,
14665,
5353,
547,
9835,
739,
33469,
287,
262,
15928,
13,
317,
9507,
2050,
4367,
326,
780,
286,
10016,
24288,
11,
366,
64,
913... |
[
262,
749,
4999,
376,
20,
290,
33685,
20,
12445,
46368,
286,
597,
1181,
11,
1864,
284,
7869,
422,
262,
2351,
28573,
1512,
6060,
3337,
329,
262,
2278,
3269,
352,
11,
11445,
11,
284,
2795,
2211,
13,
12168,
890,
12,
2213,
6021,
376,
20,... |
[
198,
47415,
423,
587,
1944,
287,
644,
318,
783,
9266,
1201,
1596,
5066,
11,
1141,
262,
17091,
6980,
286,
12173,
11,
618,
8621,
10424,
291,
6771,
2296,
38769,
422,
3576,
13,
383,
13325,
5582,
28862,
287,
262,
1181,
318,
2908,
43068,
19... |
[
352,
11,
2211,
11,
326,
39173,
550,
9657,
9266,
12,
3106,
9544,
283,
20395,
284,
19158,
5103,
286,
262,
6841,
13,
383,
8860,
8720,
4721,
319,
2693,
1478,
11,
1853,
11,
9505,
530,
1510,
6616,
3625,
319,
7192,
16051,
286,
6228,
8701,
... |
[
1687,
319,
257,
9799,
13,
198,
198,
818,
12131,
11,
4200,
290,
47547,
5704,
287,
9266,
17830,
329,
4353,
4,
286,
477,
1181,
290,
1957,
6426,
13,
198,
198,
10049,
9266,
11,
13797,
11,
290,
2520,
13336,
1687,
38464,
379,
262,
1336,
11... |
[
11,
13340,
290,
13797,
737,
383,
4387,
9856,
8810,
547,
1871,
661,
351,
617,
4152,
3707,
475,
1231,
7370,
13,
4784,
284,
2351,
25809,
286,
30038,
18387,
357,
12161,
2969,
828,
9266,
9803,
5014,
287,
3555,
290,
2319,
287,
10688,
1871,
... |
[
7335,
8546,
290,
2258,
634,
26,
28909,
9638,
10604,
1014,
287,
32930,
931,
4914,
26,
290,
8511,
10604,
287,
11942,
8511,
13,
198,
198,
47,
2096,
220,
198,
464,
4347,
286,
12173,
11,
9266,
338,
691,
8268,
7050,
2493,
11,
318,
257,
15... |
[
1820,
32308,
3099,
395,
295,
2098,
326,
383,
48010,
11544,
287,
257,
3200,
1295,
262,
1751,
673,
550,
416,
2631,
293,
385,
13,
1649,
673,
550,
39561,
11,
2631,
293,
385,
6810,
11,
26197,
683,
422,
262,
16209,
351,
691,
257,
22999,
2... |
[
15185,
338,
1918,
13,
2399,
2802,
383,
48010,
2058,
284,
4467,
262,
48629,
39561,
13,
1375,
10722,
2367,
32308,
3099,
395,
385,
284,
787,
649,
18588,
329,
683,
11,
287,
1295,
286,
262,
18588,
326,
3208,
305,
2527,
550,
587,
5762,
11,
... |
[
618,
339,
2923,
3208,
305,
2527,
13,
383,
10022,
286,
39561,
373,
635,
925,
416,
262,
2046,
5770,
13,
2399,
13273,
17514,
373,
1813,
284,
683,
416,
465,
22387,
609,
1934,
878,
339,
14888,
287,
262,
44695,
1810,
13,
632,
373,
1444,
2... |
[
11,
1444,
609,
17517,
357,
18302,
31303,
422,
281,
4697,
26219,
576,
4178,
828,
996,
465,
7664,
11,
326,
1004,
7234,
550,
18901,
2489,
625,
262,
2619,
6896,
11,
819,
3369,
3660,
2138,
621,
40435,
5417,
12,
6270,
13,
198,
198,
464,
2... |
Stew-10B
A 10-billion-token pretraining dataset for language models, already tokenized and ready to feed straight into a training loop.
"Why am I just seeing numbers?"
If you opened the dataset viewer and saw rows that look like this:
[464, 2159, 3666, 318, 257, 1332, 286, 262, ...]
...that's not a bug. This dataset doesn't contain text — it contains the token IDs that text was converted into.
Here's what's going on. Before a language model can learn from text, every word (or piece of a word) has to be mapped to a number using a "tokenizer." The sentence "The world" becomes something like [464, 995] using the GPT-2 tokenizer. Models don't read letters — they read these integer IDs.
Most datasets on the Hub ship the raw text and leave tokenization to you. That works, but tokenizing 10 billion tokens worth of text takes hours of CPU time every time someone starts a training run. It's wasted work, repeated by everyone.
Stew-10B skips that step. The text has already been tokenized once, using the standard GPT-2 tokenizer, and the resulting integer IDs are what's stored here. You get:
- Instant training startup — no tokenization phase, just load and train
- Deterministic data — every user sees the exact same token stream, so experiments are reproducible
- Smaller download — token IDs compress better than raw UTF-8 text
The tradeoff is that the data is no longer human-readable in the viewer. If you want to see what a row actually says, you decode it:
from transformers import AutoTokenizer
tok = AutoTokenizer.from_pretrained("gpt2")
print(tok.decode([464, 2159, 3666, 318, 257, 1332, 286, 262]))
# -> "The World My is a test of the"
What's actually in each row
Each row in the parquet files contains one training window of exactly 2,048 tokens under the column input_ids. That's roughly 1,500 words of English text per row, which is a standard context length for pretraining smaller GPT-style models.
Rows are packed back-to-back from the original token stream, with documents separated by the special <|endoftext|> marker (token ID 50256). So within a single row you might find the end of one Wikipedia article, the EOS token, and then the start of a web page — this is the standard "packed sequences" format used by nanoGPT, GPT-NeoX, Megatron, and basically every modern pretraining codebase.
Where the text came from
Stew-10B is a careful mix of three well-known English pretraining corpora, blended at the token level to hit exact proportions:
| Source | Share | Tokens | What it is |
|---|---|---|---|
wikimedia/wikipedia (20231101.en) |
25% | 2.5B | Clean, encyclopedic English — the "high-quality" anchor |
openbmb/Ultra-FineWeb (English split) |
50% | 5.0B | Filtered Common Crawl — broad coverage of the open web |
mlfoundations/dclm-baseline-1.0 |
25% | 2.5B | DataComp-LM baseline — aggressively filtered web text |
The mix is designed to balance quality (Wikipedia), diversity (FineWeb), and scale-trained signal (DCLM) in roughly the proportions that have been shown to work well in recent small-model pretraining recipes.
How to use it
Option 1: Hugging Face datasets (easy mode)
from datasets import load_dataset
ds = load_dataset("wonder-ai/Stew-10B-tokenized", split="train", streaming=True)
for row in ds:
tokens = row["input_ids"] # a list of 2048 integers
# ...feed into your model
break
Streaming is recommended because the full dataset is around 25 GB and you probably don't want all of it on disk at once.
Option 2: Raw binary files (fast mode)
If you're running something like nanoGPT and want zero-overhead access, there's a second copy of the data stored as raw uint16 binary files under data_bin/. These are flat token streams you can memory-map directly:
import numpy as np
from huggingface_hub import hf_hub_download
path = hf_hub_download(
"wonder-ai/Stew-10B-tokenized",
"data_bin/train-00000-of-00020.bin",
repo_type="dataset",
)
tokens = np.memmap(path, dtype=np.uint16, mode="r")
print(tokens.shape) # (500_000_000,)
print(tokens[:16]) # first 16 token IDs
Each .bin file holds 500 million tokens (1 GB), and there are 20 of them. Concatenated in order, they reconstruct the full 10-billion-token stream.
File layout
wonder-ai/Stew-10B-tokenized/
├── data/ ← the parquet files (what `datasets` loads)
│ ├── train-00000-of-00020.parquet
│ ├── train-00001-of-00020.parquet
│ └── ... (20 files total)
└── data_bin/ ← same tokens as raw uint16 binary
├── train-00000-of-00020.bin
├── train-00001-of-00020.bin
└── ... (20 files total)
Both folders contain the same tokens in the same order. Pick whichever format fits your pipeline.
Technical details
- Tokenizer:
gpt2(the fast / Rust implementation fromtokenizers) - Vocabulary size: 50,257
- End-of-document marker:
<|endoftext|>(token ID50256), inserted after every document - Sequence length (parquet): 2,048 tokens per row
- Total tokens: 10,000,000,000 (exact — enforced during the build)
- Total parquet rows: approximately 4,882,812
- Parquet schema:
input_ids: fixed_size_list<int32>[2048] - Parquet compression: zstd level 3
- Binary format: little-endian
uint16, no header, no padding
Licensing
This dataset is a derivative work combining three upstream sources. Each source retains its original license — you are responsible for complying with all of them if you use this dataset:
- Wikipedia → CC BY-SA 3.0 and GFDL (details)
- Ultra-FineWeb → see the original dataset card
- DCLM-baseline → see the original dataset card
No additional restrictions are imposed by this repository, but the dataset is marked license: other because the upstream licenses are mixed and you need to read them yourself before any downstream use.
Citation
If you use Stew-10B in research, please cite the three underlying datasets. This repository is a repackaging and does not claim original authorship of the text content.
- Downloads last month
- 61