chunk_id int32 0 999 | start_idx int64 0 542M | num_tokens int32 512 512 | contains_endoftext bool 2
classes | token_ids listlengths 512 512 | text large_stringlengths 1.84k 2.31k |
|---|---|---|---|---|---|
0 | 0 | 512 | true | [
10,
430,
439,
259,
398,
401,
283,
259,
390,
496,
402,
551,
46,
551,
502,
266,
1425,
263,
1569,
624,
474,
46,
316,
382,
662,
1783,
625,
44,
516,
995,
2686,
115,
381,
405,
354,
4082,
313,
259,
1107,
46,
527,
327,
44,
551,
283,
1... |
Once upon a time there was a little boy named Ben. Ben loved to explore the world around him. He saw many amazing things, like beautiful vases that were on display in a store. One day, Ben was walking through the store when he came across a very special vase. When Ben saw it he was amazed!
He said, “Wow, that is a r... |
1 | 542,082 | 512 | true | [
656,
44,
317,
1531,
431,
263,
2285,
1193,
46,
298,
274,
605,
267,
499,
601,
2285,
397,
1977,
5197,
605,
267,
2426,
336,
1056,
354,
259,
1490,
46,
10,
647,
7197,
601,
687,
714,
263,
3795,
46,
316,
656,
44,
317,
2895,
431,
626,
22... | says, "This is the tea party. Sit down and have some tea." Jen sits down and puts her doll on a chair.
Tim pours some water into the cups. He says, "Here is your tea. It is very good." He gives Jen a cup. He says, "And here is a cake for you and your doll." He gives Jen the rag. He says, "This is a cake. It is very yu... |
2 | 1,084,164 | 512 | true | [
2151,
1392,
259,
346,
1873,
370,
4800,
354,
263,
1274,
46,
339,
1643,
266,
715,
490,
432,
46,
339,
1322,
365,
369,
266,
838,
328,
336,
1485,
415,
46,
339,
2261,
263,
1873,
267,
1864,
266,
336,
708,
46,
10,
735,
1392,
2151,
267,
... | Lisa sees a big basket of strawberries on the table. She wants to eat them all. She does not want to share with her brother Tom. She takes the basket and runs to her room.
Tom sees Lisa and follows her. He knocks on her door and says, "Lisa, can I have some strawberries, please? I like them too."
Lisa says, "No, Tom, ... |
3 | 1,626,247 | 512 | true | [
1268,
398,
44,
263,
497,
1811,
259,
390,
46,
341,
283,
378,
376,
46,
285,
2876,
1279,
324,
44,
317,
2011,
1509,
413,
341,
927,
452,
365,
655,
659,
283,
1856,
46,
10,
1103,
44,
259,
390,
1101,
550,
484,
580,
1267,
263,
497,
46,
... | This time, the tree moved a little. Tim was very happy. The unknown voice said, "Good job!" Tim still did not know who was talking.
Then, a little squirrel came out from behind the tree. It was the squirrel who had been talking! The squirrel had a special power to talk like people. Tim and the squirrel became friends ... |
4 | 2,168,329 | 512 | true | [
1285,
44,
286,
503,
605,
267,
382,
342,
386,
2569,
449,
474,
46,
317,
2011,
1509,
44,
341,
413,
392,
324,
46,
341,
534,
894,
370,
1589,
387,
4138,
263,
346,
497,
267,
365,
1014,
609,
370,
263,
1458,
3872,
46,
10,
256,
10,
10,
... | top, he looked down and saw his mom smiling at him. "Good job, Tim!" she said. Tim felt proud of himself for climbing the big tree and not being scared of the dirty cobweb.
<|endoftext|>
Once upon a time there was a lazy dog. It liked to sleep all day and night. One day it decided to go on an adventure. It jumped int... |
5 | 2,710,412 | 512 | true | [
46,
1537,
259,
2015,
676,
3820,
44,
392,
2006,
449,
263,
521,
46,
3619,
305,
6037,
384,
956,
364,
1407,
259,
960,
1320,
46,
10,
256,
10,
383,
327,
44,
259,
2613,
402,
415,
283,
378,
1325,
46,
316,
788,
313,
263,
521,
267,
382,
... | . After a few more minutes, she arrived at the park. Shirley's walk had been a great adventure.
<|endoftext|>
One day, a hero named Tom was very hungry. He walked in the park and saw a big apple tree. He wanted to eat the apples, but they were too high up. Tom saw a small girl named Lily near the tree. She was sad beca... |
6 | 3,252,494 | 512 | true | [
704,
46,
312,
405,
432,
730,
46,
539,
1087,
263,
704,
44,
508,
534,
1135,
46,
339,
710,
266,
754,
259,
1646,
46,
508,
384,
411,
653,
266,
2798,
336,
367,
44,
408,
392,
283,
731,
2979,
46,
10,
1730,
508,
283,
5649,
44,
336,
411... | show. They were all excited. But before the show, Sue felt tired. She decided to take a nap. Sue's friends tried to wake her up, but she was fast asleep.
While Sue was napping, her friends danced together. They had so much fun. Then, something unexpected happened. Sue's friends won the dance show! When Sue woke up, sh... |
7 | 3,794,576 | 512 | true | [
2203,
427,
387,
259,
956,
328,
336,
386,
46,
424,
283,
1194,
699,
44,
391,
392,
1931,
336,
1045,
1900,
46,
2203,
528,
266,
2185,
1007,
392,
788,
46,
339,
4906,
259,
376,
1289,
46,
10,
1730,
362,
405,
1280,
44,
2203,
384,
3282,
1... | Ann went for a walk with her mom. It was cold outside, so she wore her warm coat. Ann liked to whistle while she walked. She whistled a happy song.
While they were walking, Ann's bracelet fell off her wrist. She didn't notice. When they got home, Ann looked for her bracelet. It was gone! She was sad.
Ann and her mom w... |
8 | 4,336,659 | 512 | true | [
266,
325,
328,
309,
46,
10,
410,
459,
945,
354,
263,
1274,
1078,
263,
2686,
283,
46,
285,
459,
653,
266,
325,
328,
263,
2686,
44,
408,
263,
2686,
452,
365,
369,
266,
325,
46,
285,
459,
657,
1870,
267,
1413,
263,
2686,
46,
285,
... | to play with it.
The cat jumped on the table where the vase was. The cat tried to play with the vase, but the vase did not want to play. The cat got mad and pushed the vase. The vase tried to stay still, but it was hard.
Then, something bad happened. The vase fell off the table and broke into many pieces. The cat was ... |
9 | 4,878,741 | 512 | true | [
723,
720,
4326,
449,
263,
2162,
46,
312,
720,
563,
309,
431,
5492,
46,
312,
375,
365,
1266,
2164,
46,
10,
842,
431,
365,
376,
46,
339,
2261,
263,
2162,
574,
46,
339,
656,
362,
2184,
325,
328,
309,
46,
339,
656,
362,
499,
266,
... | They both point at the coin. They both say it is theirs. They do not stop fighting.
Mom is not happy. She takes the coin away. She says they cannot play with it. She says they have to go to their room. She says they have to learn to share and be nice.
Lila and Ben are sad. They do not have the coin. They do not have th... |
10 | 5,420,824 | 512 | true | [
44,
263,
418,
384,
2462,
6125,
267,
309,
283,
398,
387,
309,
266,
843,
574,
46,
3040,
324,
1408,
266,
342,
543,
358,
267,
1251,
448,
309,
846,
367,
714,
263,
816,
46,
285,
418,
4906,
512,
449,
3040,
44,
267,
362,
673,
362,
529,
... | , the bird's wing healed and it was time for it to fly away. Will said goodbye to his new friend and watched as it flew up into the sky. The bird whistled back at Will, and they knew they would always be friends.
<|endoftext|>
Once upon a time, there was a little boy named Tim. Tim loved to jog every day. One day, whil... |
11 | 5,962,906 | 512 | true | [
3198,
459,
402,
415,
46,
415,
364,
259,
358,
402,
546,
44,
659,
283,
259,
465,
46,
312,
528,
266,
325,
457,
313,
263,
521,
46,
527,
327,
44,
546,
324,
44,
317,
735,
44,
831,
384,
325,
259,
1027,
328,
3454,
397,
10,
735,
528,
... | popular cat named Tom. Tom had a friend named Sam, who was a dog. They liked to play together in the park. One day, Sam said, "Tom, let's play a game with numbers."
Tom liked the idea and said, "Okay, Sam, I will remind you of the rules. We take turns saying a number. The first one to say the number ten wins."
They st... |
12 | 6,504,988 | 512 | true | [
701,
387,
5018,
46,
312,
364,
259,
346,
2106,
266,
576,
263,
5018,
313,
46,
10,
34,
1110,
44,
338,
505,
259,
346,
727,
413,
406,
324,
44,
2075,
367,
259,
738,
44,
1143,
5115,
2243,
46,
10,
34,
1235,
44,
381,
384,
259,
558,
727... | look for worms. They had a big bucket to put the worms in.
"Look, I found a big one!" Lily said, holding up a long, wriggly worm.
"Wow, that's a good one!" Ben said. "Let me see!"
He reached out to take the worm, but Lily pulled it back.
"Joke!" she said, laughing. "It's not a worm, it's a carrot!"
She showed him the ... |
13 | 7,047,071 | 512 | true | [
1393,
605,
46,
10,
430,
362,
364,
720,
1527,
263,
2954,
44,
362,
364,
259,
346,
8754,
46,
2461,
407,
266,
1036,
263,
2954,
44,
1007,
336,
1485,
407,
266,
1094,
309,
266,
2291,
342,
1109,
313,
263,
1711,
46,
2461,
8149,
336,
2631,
... | reached down.
Once they had both grabbed the acorn, they had a big argument. Mary wanted to keep the acorn, while her brother wanted to use it to wash his hands in the river. Mary stamped her feet, yelling “no!” Her brother held the acorn tightly and said, “Please, little sister. I need to wash my hands.”
Mary thought... |
14 | 7,589,153 | 512 | true | [
2455,
267,
2138,
608,
263,
2124,
457,
267,
309,
283,
2114,
46,
312,
581,
854,
370,
2034,
5186,
46,
10,
1037,
263,
2455,
267,
2138,
3474,
266,
468,
1627,
44,
362,
929,
267,
739,
757,
553,
362,
502,
757,
553,
46,
5151,
283,
1710,
... | prince and princess took the trip together and it was magical. They made lots of wonderful memories.
When the prince and princess returned to their castle, they hugged and told each other they loved each other. Everything was perfect and they were so happy in their marriage. The end.
<|endoftext|>
Lily and Ben like ... |
15 | 8,131,236 | 512 | true | [
317,
2142,
44,
5086,
33,
1043,
384,
480,
457,
397,
10,
9010,
267,
4000,
1765,
267,
3586,
457,
977,
362,
505,
263,
5279,
708,
46,
1671,
44,
362,
382,
854,
370,
613,
267,
364,
391,
759,
443,
585,
328,
490,
46,
5086,
528,
263,
543,... | "Sure, Bounce! Let's go together."
Bounce and Zoom rolled and bounced together until they found the luxury room. Inside, they saw lots of toys and had so much fun playing with them. Bounce liked the new room and was happy to have a friend like Zoom. They played together every day, and Bounce was never lonely again.
<|... |
16 | 8,673,318 | 512 | true | [
46,
10,
256,
10,
383,
327,
44,
259,
390,
477,
402,
508,
427,
266,
263,
1701,
328,
336,
386,
46,
508,
283,
378,
2758,
46,
339,
528,
266,
3520,
336,
613,
856,
925,
267,
4050,
46,
3468,
44,
392,
407,
266,
3520,
336,
3808,
46,
339... | .
<|endoftext|>
One day, a little girl named Sue went to the beach with her mom. Sue was very organized. She liked to sort her toys by color and size. Today, she wanted to sort her sunglasses. She had a red pair, a blue pair, and a yellow pair.
At the beach, Sue met a new friend named Tim. "Look at my sunglasses!" Sue ... |
17 | 9,215,401 | 512 | true | [
467,
492,
843,
313,
729,
2668,
862,
397,
514,
582,
876,
267,
364,
420,
823,
46,
316,
505,
259,
346,
1644,
267,
1459,
309,
367,
46,
285,
418,
945,
2452,
263,
1644,
46,
10,
1293,
267,
263,
418,
427,
744,
514,
384,
604,
46,
312,
... | can't fly in this rough wind." Max thought hard and had an idea. He found a big leaf and held it up. The bird jumped onto the leaf.
Max and the bird went inside Max's house. They were safe from the storm. The bird said, "I have a secret. I am a magic bird!" The bird waved its wings and a yummy treat appeared. Max and ... |
18 | 9,757,483 | 512 | true | [
2652,
512,
46,
316,
505,
263,
465,
3344,
263,
2652,
266,
259,
390,
477,
659,
283,
494,
46,
285,
390,
477,
283,
378,
376,
266,
645,
263,
2652,
46,
341,
382,
729,
267,
534,
376,
422,
46,
316,
452,
365,
2430,
381,
263,
465,
608,
... | boot back. He found the dog giving the boot to a little girl who was sad. The little girl was very happy to get the boot. Tim saw this and felt happy too. He did not mind that the dog took his boot. In the end, Tim and the little girl became friends and played together.
<|endoftext|>
Mama and Bobby were very excited.... |
19 | 10,299,565 | 512 | true | [
715,
263,
1999,
457,
46,
10,
772,
630,
1888,
267,
1791,
608,
259,
1745,
44,
362,
720,
324,
44,
317,
4598,
33,
1268,
1999,
431,
3003,
413,
312,
807,
492,
655,
381,
263,
1999,
364,
1368,
887,
46,
1888,
267,
1791,
534,
2187,
267,
3... | eat the cheese together.
But when Mimi and Billy took a bite, they both said, "Yuck! This cheese is disgusting!" They didn't know that the cheese had gone bad. Mimi and Billy felt sick and had to go to bed. They were sad that their special cheese treat had a bad ending.
<|endoftext|>
Once upon a time, in a big green p... |
20 | 10,841,648 | 512 | true | [
381,
327,
354,
44,
286,
673,
309,
283,
1206,
266,
3022,
1502,
46,
10,
256,
10,
430,
439,
259,
398,
44,
401,
283,
259,
346,
465,
402,
415,
46,
415,
528,
266,
956,
624,
263,
521,
587,
327,
46,
527,
327,
44,
415,
382,
259,
559,
... | that day on, he knew it was important to relax sometimes.
<|endoftext|>
Once upon a time, there was a big dog named Tom. Tom liked to walk around the park every day. One day, Tom saw a small cat named Tim. Tim looked sad because he had a task to do. He had to find his toy, but he could not do it alone.
Tom wanted to h... |
21 | 11,383,730 | 512 | true | [
267,
2323,
710,
266,
1245,
778,
259,
346,
497,
46,
312,
405,
391,
376,
266,
499,
505,
263,
3301,
46,
10,
772,
44,
5102,
544,
33,
3030,
362,
405,
5519,
44,
259,
346,
862,
550,
267,
1546,
263,
3301,
574,
46,
593,
267,
2323,
1955,
... | and Cat decided to rest under a big tree. They were so happy to have found the radio.
But, oh no! While they were resting, a big wind came and blew the radio away. Spot and Cat woke up and saw that the radio was gone. They were very sad. "We lost our radio," said Spot. They looked and looked, but they could not find t... |
22 | 11,925,813 | 512 | true | [
891,
324,
46,
339,
283,
1030,
46,
317,
535,
581,
309,
494,
46,
2683,
529,
349,
516,
309,
840,
1675,
4661,
349,
476,
10,
1132,
534,
781,
46,
316,
807,
492,
1157,
266,
530,
263,
418,
494,
46,
316,
803,
407,
266,
325,
46,
316,
50... | Anna said. She was angry. "You made it sad. How would you like it if someone sprayed you?"
Ben felt sorry. He didn't mean to make the bird sad. He just wanted to play. He looked at Anna and said, "I'm sorry, Anna. You're right. I wouldn't like it. The bird is harmless. It's our friend. Can we be friends again?"
Anna s... |
23 | 12,467,895 | 512 | true | [
378,
896,
266,
538,
342,
613,
432,
880,
263,
954,
46,
10,
735,
685,
381,
309,
431,
1206,
266,
576,
625,
574,
267,
1036,
342,
708,
865,
46,
316,
452,
365,
369,
342,
613,
266,
530,
259,
1192,
600,
46,
713,
44,
286,
576,
490,
512... | very surprised to see his toys all over the place.
Tom learned that it is important to put things away and keep his room clean. He did not want his toys to make a mess again. So, he put them back in the big box and promised to always store them when he was done playing. And from that day on, Tom's room was always tidy... |
24 | 13,009,977 | 512 | true | [
427,
266,
263,
521,
328,
342,
386,
46,
312,
382,
259,
346,
1083,
401,
46,
341,
283,
391,
376,
33,
316,
407,
266,
1083,
605,
309,
432,
327,
46,
799,
386,
324,
44,
317,
2165,
837,
44,
341,
46,
615,
863,
492,
369,
266,
645,
901,
... | went to the park with his mom. They saw a big slide there. Tim was so happy! He wanted to slide down it all day. His mom said, "Be careful, Tim. You don't want to get hurt."
Tim went up the slide and slid down fast. He felt like he was flying! But then, he saw a harmless bug. The bug was sitting on the slide, and Tim ... |
25 | 13,552,060 | 512 | true | [
1386,
267,
1451,
578,
457,
46,
1609,
375,
349,
369,
266,
1451,
476,
10,
666,
267,
415,
324,
44,
317,
1146,
369,
266,
1451,
259,
1627,
46,
438,
346,
267,
995,
1627,
46,
2431,
662,
1295,
267,
1976,
46,
718,
328,
259,
2539,
267,
25... | blocks and build something together. What do you want to build?"
Lily and Tom said, "We want to build a castle. A big and beautiful castle. With many colors and shapes. And with a flag and a moat and a drawbridge."
Mom said, "That sounds wonderful. Let's do it. But first, let me kiss your waists and legs and arms. The... |
26 | 14,094,142 | 512 | true | [
313,
2196,
46,
5814,
630,
349,
1489,
1350,
387,
1820,
776,
387,
6068,
397,
10,
410,
390,
477,
1105,
267,
562,
46,
539,
448,
263,
1903,
3276,
44,
392,
2353,
266,
322,
7040,
263,
851,
6117,
580,
263,
3232,
46,
339,
1624,
266,
2663,
... | in life. Like when you're ready for school or for bedtime."
The little girl nodded and smiled. But as the days passed, she seemed to be forgetting the special reminder from the angel. She forgot to brush her teeth before bedtime, she was late for morning kindergarten, and she got upset when her sister touched her toys... |
27 | 14,636,225 | 512 | true | [
1134,
263,
2018,
44,
408,
309,
283,
365,
2375,
46,
316,
503,
449,
263,
3308,
267,
382,
578,
2777,
46,
316,
283,
609,
267,
452,
365,
655,
577,
266,
375,
46,
316,
1306,
433,
266,
530,
342,
2018,
843,
600,
46,
415,
1022,
342,
358,
... | fix the plane, but it was not easy. He looked at the engine and saw something burn. He was scared and did not know what to do. He needed help to make his plane fly again. Tom called his friend, Sam, who knew a lot about planes.
Sam came to help Tom with the burning engine. They worked together and soon, the plane was ... |
28 | 15,178,307 | 512 | true | [
324,
44,
317,
842,
44,
467,
338,
325,
328,
623,
2106,
313,
263,
553,
708,
476,
799,
386,
324,
44,
317,
736,
44,
408,
1188,
44,
544,
1192,
413,
10,
647,
427,
266,
263,
553,
708,
267,
548,
266,
2730,
367,
342,
613,
46,
316,
1229... | said, "Mom, can I play with my bucket in the other room?" His mom said, "Yes, but remember, no mess!"
Tim went to the other room and started to wrap up his toys. He hid them all around Grandma's house. When he was done, he ran back to his mom and said, "Mom, I made a game! Can you find all the toys I wrapped up?" His ... |
29 | 15,720,390 | 512 | false | [
317,
1071,
483,
349,
1452,
44,
623,
5829,
476,
891,
267,
551,
563,
44,
317,
1146,
483,
585,
1838,
46,
1195,
349,
369,
266,
1433,
578,
476,
722,
656,
44,
317,
2142,
44,
338,
529,
868,
266,
1433,
578,
46,
1609,
375,
349,
499,
476,... | "What are you doing, my sweeties?" Anna and Ben say, "We are playing shop. Do you want to buy something?" Mom says, "Sure, I would love to buy something. What do you have?"
Anna and Ben show her their toys and books. Mom says, "Wow, you have a lot of things. They are all very nice. But I think I want to buy something ... |
30 | 16,262,472 | 512 | true | [
316,
739,
342,
386,
267,
724,
665,
263,
443,
286,
364,
328,
263,
5459,
46,
312,
432,
562,
267,
700,
46,
10,
256,
10,
10,
10,
2192,
267,
551,
405,
1968,
659,
528,
266,
325,
328,
3149,
46,
312,
364,
662,
3149,
370,
1312,
1295,
2... | He told his mom and dad about the fun he had with the roots. They all smiled and laughed.
<|endoftext|>
Lila and Ben were twins who liked to play with boats. They had many boats of different colors and sizes. Some boats could float on water, some boats could make sounds, and some boats had sails or flags.
One day, t... |
31 | 16,804,554 | 512 | true | [
1081,
286,
827,
259,
911,
1074,
46,
316,
503,
367,
266,
538,
259,
346,
2265,
4931,
2077,
474,
449,
1331,
3383,
46,
285,
1136,
283,
3249,
44,
391,
286,
1568,
574,
448,
1539,
448,
5700,
46,
32,
10,
34,
72,
111,
711,
33,
5698,
391,... | soon he heard a loud noise. He looked up to see a big sheep racing towards him at full speed. The bunny was anxious, so he hopped away as quickly as possible.
"Ho ho! Not so fast, little one!" the sheep said. The bunny stopped, wondering what the sheep wanted.
"You ought to be careful. That wool you were eating belo... |
32 | 17,346,637 | 512 | true | [
336,
1747,
727,
8272,
5627,
1087,
392,
1568,
484,
370,
1042,
46,
10,
256,
10,
10,
430,
439,
259,
398,
44,
401,
283,
259,
390,
477,
402,
1378,
46,
1378,
283,
378,
1048,
44,
408,
392,
283,
1061,
259,
1442,
3079,
46,
527,
327,
44,
... | her parents one final wink before she hopped out of bed.
<|endoftext|>
Once upon a time, there was a little girl named Jane. Jane was very brave, but she was also a bit fearful. One day, she decided to explore her backyard alone. As she ventured outside, she heard a loud noise. Jane was feeling very scared.
Jane aske... |
33 | 17,888,719 | 512 | true | [
283,
259,
887,
524,
397,
643,
656,
46,
10,
842,
267,
1297,
2066,
468,
4648,
267,
4735,
46,
312,
754,
574,
263,
524,
267,
263,
613,
46,
312,
530,
415,
267,
643,
865,
263,
708,
267,
1134,
263,
1394,
46,
312,
375,
365,
831,
490,
... | was a bad car." Mia says.
Mom and Dad shake their heads and sigh. They take away the car and the toys. They make Tom and Mia clean the room and fix the wall. They do not let them play with cars for a long time.
Tom and Mia are very sorry and sad. They wish they never found the new car. They wish they played with their... |
34 | 18,430,802 | 512 | true | [
2257,
1302,
266,
2225,
309,
630,
2236,
286,
827,
259,
1279,
46,
10,
34,
2170,
33,
1354,
384,
623,
3193,
638,
324,
420,
2740,
500,
46,
10,
1293,
503,
367,
267,
382,
263,
780,
500,
46,
316,
283,
494,
381,
263,
3193,
283,
365,
342,... | stepped closer to grab it when suddenly he heard a voice.
"Hey! That's my flute," said an elderly man.
Max looked up and saw the old man. He was sad that the flute was not his to keep.
"I'm sorry," Max said. He was about to step away when the old man smiled.
"It's okay," the old man said. "You can keep it if you promi... |
35 | 18,972,884 | 512 | true | [
439,
259,
398,
44,
401,
283,
259,
2527,
459,
402,
415,
46,
415,
528,
266,
1233,
432,
327,
267,
855,
998,
342,
947,
46,
527,
327,
44,
415,
384,
386,
324,
44,
317,
735,
44,
840,
349,
863,
492,
433,
822,
44,
363,
617,
4757,
349,
... | upon a time, there was a lazy cat named Tom. Tom liked to sleep all day and never helped his family. One day, Tom's mom said, "Tom, if you don't help us, we will punish you!"
Tom did not want to be punished, so he went to find something to do. He saw his sister, Sue, sewing with a needle. Tom thought sewing looked fun... |
36 | 19,514,966 | 512 | true | [
713,
44,
286,
608,
484,
259,
346,
44,
3279,
2629,
267,
286,
548,
266,
1657,
263,
4985,
46,
316,
3546,
263,
2629,
432,
880,
263,
4985,
977,
309,
283,
732,
267,
1657,
46,
10,
1037,
263,
4985,
382,
381,
309,
283,
865,
267,
1657,
44... | So, he took out a big, fluffy towel and he started to dry the zigzag. He rubbed the towel all over the zigzag until it was nice and dry.
When the zigzag saw that it was clean and dry, it smiled. Joe felt so proud that he made the zigzag so happy. From then on, Joe dried the zigzag every time it rained outside. The zig... |
37 | 20,057,049 | 512 | true | [
1241,
46,
285,
2421,
653,
266,
480,
367,
263,
1241,
44,
408,
309,
283,
378,
876,
46,
285,
2421,
653,
267,
653,
44,
408,
309,
466,
365,
480,
367,
46,
285,
991,
382,
263,
2421,
267,
534,
494,
46,
312,
407,
263,
2421,
266,
2975,
... | hill. The van tried to go up the hill, but it was very hard. The van tried and tried, but it could not go up. The kids saw the van and felt sad. They wanted the van to collect nice things for them.
The next day, the van tried again to go up the hill. This time, the van went very fast. The van went up, up, up the hill.... |
38 | 20,599,131 | 512 | true | [
266,
4624,
46,
298,
293,
2789,
263,
1111,
259,
4130,
1517,
45,
855,
2554,
259,
1157,
465,
33,
5754,
966,
574,
580,
3265,
993,
46,
32,
10,
410,
1208,
370,
298,
293,
384,
1004,
431,
266,
322,
837,
659,
349,
2554,
267,
855,
322,
24... | to suffer. Sid taught the birds a valuable lesson- never trust a mean dog! Always stay away from bullies.
The moral of Sid's story is to be careful who you trust and never be afraid to stand up for yourself.
<|endoftext|>
Once upon a time, there was a little boy named Tim. Tim was a good boy, but he had a terrible ti... |
39 | 21,141,214 | 512 | true | [
267,
407,
266,
1518,
313,
46,
1720,
44,
401,
405,
662,
808,
585,
328,
263,
3432,
46,
312,
432,
364,
443,
267,
690,
558,
411,
46,
1727,
263,
871,
370,
263,
327,
44,
362,
405,
432,
376,
712,
362,
364,
259,
960,
398,
585,
328,
26... | and wanted to join in. Soon, there were many animals playing with the loop. They all had fun and became good friends. At the end of the day, they were all happy because they had a great time playing with the loop together.
<|endoftext|>
One day, a little yellow owl named Ollie lived in a big tree. Ollie loved to play ... |
40 | 21,683,296 | 512 | true | [
2220,
1871,
33,
316,
562,
267,
7890,
309,
354,
46,
285,
1871,
1402,
264,
474,
605,
267,
286,
534,
759,
824,
46,
10,
1664,
634,
354,
44,
263,
500,
855,
427,
387,
3274,
1788,
342,
2220,
1871,
46,
316,
702,
534,
1402,
44,
874,
313,... | thin fan! He smiled and switched it on. The fan cooled him down and he felt much better.
From then on, the man never went for walks without his thin fan. He always felt cool, even in the hot sun!
<|endoftext|>
Once upon a time, there was a chicken named Bob. Bob lived on a farm with other animals. He was a happy chick... |
41 | 22,225,378 | 512 | true | [
46,
312,
737,
267,
1313,
267,
499,
443,
46,
10,
383,
327,
44,
362,
538,
259,
346,
465,
313,
263,
521,
46,
285,
465,
431,
1810,
267,
2520,
46,
316,
1155,
259,
738,
1291,
267,
346,
3402,
46,
316,
1450,
1340,
46,
935,
267,
415,
3... | . They run and laugh and have fun.
One day, they see a big dog in the park. The dog is brown and furry. He has a long tail and big ears. He looks friendly. Sara and Tom want to pet the dog.
"Hello, dog," Sara says. "Can we pet you?"
The dog wags his tail. He likes Sara and Tom. He lets them rub his fur and scratch his ... |
42 | 22,767,461 | 512 | true | [
1669,
267,
4620,
309,
46,
424,
3957,
267,
286,
1392,
259,
1843,
328,
662,
1304,
46,
316,
431,
609,
267,
1643,
266,
480,
512,
46,
10,
34,
666,
44,
433,
519,
413,
286,
3064,
46,
316,
2579,
266,
1379,
263,
1669,
408,
309,
431,
422,... | sign and pushes it. It opens and he sees a road with many cars. He is scared and wants to go back.
"Lily, help me!" he cries. He tries to close the sign but it is too heavy.
Lily hears Tom and runs to him. She is brave and kind. She pulls the sign and helps Tom to get back to the park. She hugs him and says, "Don't do... |
43 | 23,309,543 | 512 | true | [
46,
339,
739,
406,
381,
263,
1828,
466,
1366,
322,
505,
856,
1675,
659,
1362,
1748,
266,
263,
7029,
46,
406,
4761,
1379,
5029,
266,
263,
1004,
44,
1441,
266,
1188,
587,
7700,
336,
386,
1209,
46,
10,
410,
984,
327,
44,
406,
2850,
... | . She told Lily that the treasure could only be found by someone who listened carefully to the clues. Lily paid close attention to the story, trying to remember every clue her mom shared.
The next day, Lily searched the house for the treasure. She remembered the clues and followed them. Finally, she found a small box h... |
44 | 23,851,626 | 512 | true | [
259,
543,
445,
266,
325,
328,
46,
424,
283,
259,
877,
1637,
1237,
381,
286,
505,
313,
263,
1275,
46,
10,
34,
1615,
44,
2887,
381,
413,
324,
722,
46,
317,
1100,
431,
365,
259,
445,
46,
424,
1155,
2926,
397,
539,
593,
452,
365,
... | a new toy to play with. It was a shiny round thing that he found in the grass.
"Spot, drop that!" said Mom. "That is not a toy. It has value." But Spot did not listen. He held it in his mouth and ran away. He was very fast and Mom could not catch him. Spot felt happy and kept running with the shiny thing.
Spot ran int... |
45 | 24,393,708 | 512 | true | [
405,
609,
46,
539,
362,
427,
1302,
266,
701,
46,
936,
362,
909,
263,
618,
44,
362,
505,
259,
390,
418,
744,
46,
285,
418,
283,
4207,
712,
309,
283,
1194,
46,
514,
267,
1052,
534,
781,
387,
263,
418,
46,
312,
608,
263,
418,
584... | were scared. But they went closer to look. When they opened the box, they found a little bird inside. The bird was shaking because it was cold. Max and Kitty felt sorry for the bird. They took the bird home and made it warm. Now, they had a new friend to play with.
<|endoftext|>
One day, a little girl named Anna wante... |
CS336 Assignment 1 — Pre-tokenized Data & BPE Tokenizers
This repository contains preprocessing artifacts produced for Stanford CS336: Language Modeling from Scratch, Spring 2025 — Assignment 1: Basics.
It includes:
- pre-tokenized TinyStories train/validation data,
- pre-tokenized OpenWebText (OWT sample) train/validation data,
- byte-level BPE vocabularies and merge tables for both datasets.
The main purpose of this repository is to avoid repeating the relatively expensive tokenization step when running language-model training experiments.
Note: This is a personal course-project artifact and is not an official Stanford CS336 release.
Background
CS336 Assignment 1 builds a Transformer language model from scratch, including:
- a byte-level BPE tokenizer,
- Transformer model components,
- cross-entropy loss and AdamW,
- checkpointing and a training loop,
- language-model training and evaluation on TinyStories and OpenWebText.
The Spring 2025 assignment uses two tokenizer settings:
| Dataset | BPE vocabulary size |
|---|---|
| TinyStories | 10,000 |
| OpenWebText | 32,000 |
The special token <|endoftext|> is included in the tokenization setup.
Repository Structure
cs336-basics-collection/
├── tokenized/
│ ├── tinystories_train_ids.npy
│ ├── tinystories_valid_ids.npy
│ ├── owt_train_ids.npy
│ └── owt_valid_ids.npy
│
└── tokenizer/
├── tinystories/
│ ├── vocab.json
│ └── merges.json
│
└── owt/
├── vocab.json
└── merges.json
Tokenized data
The .npy files contain contiguous sequences of integer token IDs obtained by encoding the corresponding train or validation corpus with its dataset-specific BPE tokenizer.
They are intended for causal language-model training, where random contiguous windows can be sampled directly from the token array.
| File | Description |
|---|---|
tokenized/tinystories_train_ids.npy |
TinyStories training tokens |
tokenized/tinystories_valid_ids.npy |
TinyStories validation tokens |
tokenized/owt_train_ids.npy |
OpenWebText training tokens |
tokenized/owt_valid_ids.npy |
OpenWebText validation tokens |
Tokenizers
Each tokenizer directory contains:
vocab.json: mapping between token IDs and byte/token representationsmerges.json: learned BPE merge operations
The token IDs in the .npy files must be interpreted with the corresponding tokenizer.
In particular, TinyStories and OpenWebText use different vocabularies, so their token IDs are not interchangeable.
Usage
Install the required packages:
pip install numpy huggingface_hub
Download a tokenized split:
from huggingface_hub import hf_hub_download
import numpy as np
path = hf_hub_download(
repo_id="victorhu493/cs336-basics-collection",
repo_type="dataset",
filename="tokenized/tinystories_train_ids.npy",
)
tokens = np.load(path, mmap_mode="r")
print(tokens.shape)
print(tokens.dtype)
print(tokens[:20])
Using mmap_mode="r" is recommended for the larger arrays, particularly OpenWebText, since the full dataset does not need to be loaded into RAM.
Sampling a language-model batch
A standard next-token prediction batch can be constructed directly from the token array:
import numpy as np
import torch
def get_batch(
tokens,
batch_size=32,
context_length=256,
):
starts = np.random.randint(
0,
len(tokens) - context_length - 1,
size=batch_size,
)
x = np.stack([
tokens[i : i + context_length]
for i in starts
])
y = np.stack([
tokens[i + 1 : i + context_length + 1]
for i in starts
])
return (
torch.from_numpy(x.astype(np.int64)),
torch.from_numpy(y.astype(np.int64)),
)
This produces:
x: [batch_size, context_length]
y: [batch_size, context_length]
where y is x shifted by one token, as required for autoregressive language modeling.
Original Data
The preprocessing follows the datasets used in the Spring 2025 CS336 Assignment 1 setup:
- TinyStories —
roneneldan/TinyStories - OpenWebText sample —
stanford-cs336/owt-sample
The original CS336 assignment downloads the raw TinyStories and OpenWebText text files and then asks students to train BPE tokenizers and encode the corpora into integer token sequences.
This repository contains the resulting derived tokenizer and token-ID artifacts, rather than the original raw text files.
Important Notes
Tokenizer compatibility
Always pair each tokenized dataset with its corresponding tokenizer:
tinystories_* <-> tokenizer/tinystories/
owt_* <-> tokenizer/owt/
Using the wrong vocabulary will assign different meanings to the same integer IDs.
Hugging Face Dataset Viewer
These files are stored as NumPy token arrays rather than row-oriented Parquet/Arrow data.
Therefore, this repository is primarily intended to be consumed directly with NumPy / PyTorch rather than through the Hugging Face Dataset Viewer.
Reproducibility
These artifacts are useful when reproducing CS336-style language-model training experiments without retraining the BPE tokenizer or re-encoding the entire corpus.
For exact reproduction, model hyperparameters, random seeds, batching strategy, optimizer settings, and training code should still be recorded separately.
References
- Stanford CS336 — Language Modeling from Scratch, Spring 2025
stanford-cs336/assignment1-basicsstanford-cs336/owt-sampleroneneldan/TinyStories
Disclaimer
This repository is an independent educational artifact created while working through CS336.
It is not affiliated with, endorsed by, or maintained by Stanford University or the CS336 course staff.
Please refer to the original datasets and course materials for their respective licensing and usage terms.
- Downloads last month
- 116