Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
input_ids
list
attention_mask
list
domain_ids
int64
labels
list
[ 1, 4, 1193, 804, 277, 740, 366, 4029, 771, 702, 277, 8951, 818, 3459, 277, 4164, 1239, 1409, 593, 7858, 1990, 2462, 3402, 277, 750, 7657, 11076, 23, 417, 344, 392, 14994, 8263, 12903, 1348, 306, 4374, 343, 1138, 367, 1782, 1003, 23,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
[ 1, 4, 1193, 804, 277, 740, 366, 4029, 771, 702, 277, 8951, 818, 3459, 277, 4164, 1239, 1409, 593, 7858, 1990, 2462, 3402, 277, 750, 7657, 11076, 23, 417, 344, 392, 14994, 8263, 12903, 1348, 306, 4374, 343, 1138, 367, 1782, 1003, 23,...
[ 1, 274, 1422, 804, 689, 277, 669, 596, 403, 3011, 2941, 23, 828, 2627, 368, 1216, 541, 338, 20906, 526, 753, 3245, 362, 983, 689, 277, 492, 435, 2042, 1285, 277, 1412, 1580, 20906, 526, 753, 3245, 23, 932, 928, 594, 2890, 306, 606...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
0
[ 1, 274, 1422, 804, 689, 277, 669, 596, 403, 3011, 2941, 23, 828, 2627, 368, 1216, 541, 338, 20906, 526, 753, 3245, 362, 983, 689, 277, 492, 435, 2042, 1285, 277, 1412, 1580, 20906, 526, 753, 3245, 23, 932, 928, 594, 2890, 306, 606...
[ 829, 3487, 2690, 277, 2690, 383, 8711, 23, 528, 669, 596, 403, 650, 323, 728, 1204, 2939, 545, 1319, 23, 521, 515, 23, 603, 23, 622, 7335, 454, 278, 443, 23, 1051, 21627, 362, 323, 20586, 22975, 1512, 23, 2209, 2476, 286, 3173, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
0
[ 829, 3487, 2690, 277, 2690, 383, 8711, 23, 528, 669, 596, 403, 650, 323, 728, 1204, 2939, 545, 1319, 23, 521, 515, 23, 603, 23, 622, 7335, 454, 278, 443, 23, 1051, 21627, 362, 323, 20586, 22975, 1512, 23, 2209, 2476, 286, 3173, 59...
[ 23, 1174, 521, 1412, 2278, 306, 977, 948, 277, 981, 448, 21169, 978, 1740, 277, 502, 5121, 2573, 979, 469, 23, 438, 860, 1949, 277, 9105, 609, 6977, 23, 8001, 600, 388, 361, 652, 277, 600, 388, 361, 652, 1472, 1740, 277, 1472, 174...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
0
[ 23, 1174, 521, 1412, 2278, 306, 977, 948, 277, 981, 448, 21169, 978, 1740, 277, 502, 5121, 2573, 979, 469, 23, 438, 860, 1949, 277, 9105, 609, 6977, 23, 8001, 600, 388, 361, 652, 277, 600, 388, 361, 652, 1472, 1740, 277, 1472, 174...
[ 1, 5, 1232, 804, 277, 669, 596, 403, 3011, 2941, 740, 689, 16424, 3033, 360, 306, 3139, 306, 932, 384, 440, 1031, 462, 707, 968, 10160, 3556, 383, 5441, 564, 804, 424, 3418, 628, 930, 1102, 306, 5468, 5375, 338, 1797, 1267, 1034, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
0
[ 1, 5, 1232, 804, 277, 669, 596, 403, 3011, 2941, 740, 689, 16424, 3033, 360, 306, 3139, 306, 932, 384, 440, 1031, 462, 707, 968, 10160, 3556, 383, 5441, 564, 804, 424, 3418, 628, 930, 1102, 306, 5468, 5375, 338, 1797, 1267, 1034, ...
[ 18344, 492, 4791, 688, 6721, 1471, 20980, 418, 4151, 341, 735, 1009, 266, 4040, 357, 497, 727, 306, 9237, 1856, 741, 323, 4972, 476, 341, 2069, 380, 1837, 360, 11580, 8464, 434, 315, 741, 16439, 341, 2069, 727, 424, 2193, 2035, 9407, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
0
[ 18344, 492, 4791, 688, 6721, 1471, 20980, 418, 4151, 341, 735, 1009, 266, 4040, 357, 497, 727, 306, 9237, 1856, 741, 323, 4972, 476, 341, 2069, 380, 1837, 360, 11580, 8464, 434, 315, 741, 16439, 341, 2069, 727, 424, 2193, 2035, 9407, ...
[ 4042, 10140, 438, 368, 6583, 1329, 15056, 3283, 341, 807, 9156, 538, 1532, 538, 1442, 349, 13180, 321, 485, 1401, 2398, 1796, 7177, 13343, 1758, 13590, 366, 704, 977, 7165, 307, 1329, 6437, 325, 970, 316, 383, 306, 5441, 295, 608, 367...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
0
[ 4042, 10140, 438, 368, 6583, 1329, 15056, 3283, 341, 807, 9156, 538, 1532, 538, 1442, 349, 13180, 321, 485, 1401, 2398, 1796, 7177, 13343, 1758, 13590, 366, 704, 977, 7165, 307, 1329, 6437, 325, 970, 316, 383, 306, 5441, 295, 608, 367...
[ 1, 5, 3392, 13702, 298, 2552, 341, 7941, 7637, 277, 424, 323, 16933, 3602, 6762, 4419, 2164, 306, 11048, 14113, 591, 3029, 1624, 379, 2836, 277, 547, 362, 323, 1694, 551, 612, 23, 20626, 2701, 2297, 591, 3029, 1624, 379, 2836, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
0
[ 1, 5, 3392, 13702, 298, 2552, 341, 7941, 7637, 277, 424, 323, 16933, 3602, 6762, 4419, 2164, 306, 11048, 14113, 591, 3029, 1624, 379, 2836, 277, 547, 362, 323, 1694, 551, 612, 23, 20626, 2701, 2297, 591, 3029, 1624, 379, 2836, 277, ...
[ 777, 659, 3726, 18058, 382, 3510, 277, 3392, 863, 7555, 1177, 1322, 894, 2289, 797, 1959, 2570, 302, 23, 5870, 362, 2827, 1316, 368, 797, 1959, 604, 2570, 302, 277, 7555, 1177, 1322, 271, 314, 450, 266, 1544, 7555, 277, 19294, 306, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
0
[ 777, 659, 3726, 18058, 382, 3510, 277, 3392, 863, 7555, 1177, 1322, 894, 2289, 797, 1959, 2570, 302, 23, 5870, 362, 2827, 1316, 368, 797, 1959, 604, 2570, 302, 277, 7555, 1177, 1322, 271, 314, 450, 266, 1544, 7555, 277, 19294, 306, ...
[ 313, 460, 3371, 318, 277, 1174, 1470, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
0
[ 313, 460, 3371, 318, 277, 1174, 1470, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
[ 1, 4, 1551, 403, 2898, 893, 15242, 2711, 367, 4073, 403, 277, 4188, 14285, 4214, 22453, 13949, 21951, 22121, 17588, 17529, 4563, 13949, 697, 9756, 401, 1276, 5812, 23, 1193, 804, 3428, 403, 5015, 4456, 23, 669, 596, 403, 401, 1276, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
[ 1, 4, 1551, 403, 2898, 893, 15242, 2711, 367, 4073, 403, 277, 4188, 14285, 4214, 22453, 13949, 21951, 22121, 17588, 17529, 4563, 13949, 697, 9756, 401, 1276, 5812, 23, 1193, 804, 3428, 403, 5015, 4456, 23, 669, 596, 403, 401, 1276, 93...
[ 536, 4650, 640, 23, 2184, 492, 603, 277, 686, 8711, 641, 277, 2377, 686, 8851, 23, 323, 7122, 8711, 462, 277, 688, 278, 580, 8557, 23, 1800, 308, 12468, 908, 277, 4224, 808, 630, 2828, 9983, 5563, 23, 2057, 7763, 1206, 472, 7596, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
[ 536, 4650, 640, 23, 2184, 492, 603, 277, 686, 8711, 641, 277, 2377, 686, 8851, 23, 323, 7122, 8711, 462, 277, 688, 278, 580, 8557, 23, 1800, 308, 12468, 908, 277, 4224, 808, 630, 2828, 9983, 5563, 23, 2057, 7763, 1206, 472, 7596, ...
[ 1, 5, 440, 519, 612, 6504, 1669, 277, 444, 338, 945, 444, 338, 323, 945, 299, 444, 338, 1295, 15213, 6157, 6912, 1154, 531, 612, 578, 5918, 630, 306, 18054, 949, 438, 964, 355, 1719, 2628, 379, 1562, 306, 18054, 949, 435, 984, 302...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
0
[ 1, 5, 440, 519, 612, 6504, 1669, 277, 444, 338, 945, 444, 338, 323, 945, 299, 444, 338, 1295, 15213, 6157, 6912, 1154, 531, 612, 578, 5918, 630, 306, 18054, 949, 438, 964, 355, 1719, 2628, 379, 1562, 306, 18054, 949, 435, 984, 302...
[ 1, 8, 694, 1031, 659, 12204, 338, 5592, 316, 18561, 6452, 366, 395, 11224, 310, 5463, 11925, 308, 23, 18561, 694, 4630, 277, 11925, 308, 384, 341, 6778, 9295, 23, 379, 2165, 323, 2452, 10330, 11925, 308, 277, 2452, 10330, 745, 573, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
[ 1, 8, 694, 1031, 659, 12204, 338, 5592, 316, 18561, 6452, 366, 395, 11224, 310, 5463, 11925, 308, 23, 18561, 694, 4630, 277, 11925, 308, 384, 341, 6778, 9295, 23, 379, 2165, 323, 2452, 10330, 11925, 308, 277, 2452, 10330, 745, 573, ...
[ 6171, 418, 2425, 277, 531, 422, 2425, 6814, 6337, 1071, 2425, 954, 12615, 6194, 277, 2107, 403, 23, 527, 445, 12049, 587, 2325, 384, 1236, 22607, 306, 5245, 283, 1809, 283, 9122, 6705, 1261, 277, 401, 561, 403, 16144, 277, 694, 1170, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
[ 6171, 418, 2425, 277, 531, 422, 2425, 6814, 6337, 1071, 2425, 954, 12615, 6194, 277, 2107, 403, 23, 527, 445, 12049, 587, 2325, 384, 1236, 22607, 306, 5245, 283, 1809, 283, 9122, 6705, 1261, 277, 401, 561, 403, 16144, 277, 694, 1170, ...
[ 594, 19934, 23, 12278, 18561, 694, 867, 675, 383, 598, 1391, 23, 5974, 7793, 527, 401, 2735, 844, 284, 1079, 1133, 418, 298, 912, 2955, 277, 383, 338, 19414, 17010, 340, 885, 2896, 277, 1025, 284, 1079, 1133, 1253, 4338, 1617, 404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
[ 594, 19934, 23, 12278, 18561, 694, 867, 675, 383, 598, 1391, 23, 5974, 7793, 527, 401, 2735, 844, 284, 1079, 1133, 418, 298, 912, 2955, 277, 383, 338, 19414, 17010, 340, 885, 2896, 277, 1025, 284, 1079, 1133, 1253, 4338, 1617, 404, ...
[ 1, 274, 1422, 804, 1711, 23, 4559, 1193, 3428, 403, 23, 3512, 316, 513, 2581, 537, 1157, 362, 587, 4367, 384, 362, 22300, 2013, 2581, 23, 485, 3958, 367, 21839, 362, 587, 435, 829, 354, 1083, 422, 2581, 862, 323, 14947, 362, 435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
0
[ 1, 274, 1422, 804, 1711, 23, 4559, 1193, 3428, 403, 23, 3512, 316, 513, 2581, 537, 1157, 362, 587, 4367, 384, 362, 22300, 2013, 2581, 23, 485, 3958, 367, 21839, 362, 587, 435, 829, 354, 1083, 422, 2581, 862, 323, 14947, 362, 435, ...
[ 1, 5, 288, 5796, 1959, 359, 849, 11042, 23, 1232, 804, 330, 965, 11325, 306, 954, 1554, 366, 1241, 299, 23984, 3009, 23, 862, 1846, 333, 330, 965, 862, 1846, 333, 23, 862, 6683, 333, 23, 1015, 4432, 360, 862, 6683, 333, 23, 8805, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
0
[ 1, 5, 288, 5796, 1959, 359, 849, 11042, 23, 1232, 804, 330, 965, 11325, 306, 954, 1554, 366, 1241, 299, 23984, 3009, 23, 862, 1846, 333, 330, 965, 862, 1846, 333, 23, 862, 6683, 333, 23, 1015, 4432, 360, 862, 6683, 333, 23, 8805, ...
End of preview. Expand in Data Studio

Darja-GPT-50M-Padded-Data

License Source Dataset Tokenizer Model Sequences

Darja-GPT-50M-Padded-Data is the official pre-tokenized, chunked, and domain-conditioned dataset used to pre-train Darja-GPT-50M.

It processes the raw conversational transcripts from the Algerian Darja Corpus (conditioned subset) into fixed 1,024-token sequences with custom Byte-Level BPE tokens, explicit attention_mask tensors, target labels, and per-sequence domain_ids for multi-domain adapter training.



Dataset Overview & Motivation

Training a causal language model from scratch on dialectal transcripts poses unique challenges:

  1. The Truncation Waste Problem: Naively truncating long podcast or vlog transcripts at 1,024 tokens discards over 80% of conversational content.
  2. The Document Bleed Problem: Standard group_texts concatenates multiple unrelated documents into one long stream. In domain-conditioned training, this causes cooking recipes to bleed into football match discussions within the same context window.
  3. Dynamic Padding Inefficiency: Dynamic batch padding on Kaggle GPU instances introduces variable memory usage, risk of CUDA OOMs, and recompilation overhead.

This dataset solves all three problems by sequentially chunking each document individually, padding non-full trailing chunks to a static 1,024 length with -100 label masking, and attaching metadata domain_ids directly to the tensor structure.


Data Pipeline & Preprocessing Engineering

The dataset was constructed from 11,151 documents of the conditioned subset of touati-kamel/algerian-darja-corpus:

  1. Reproducible Split: Split into 97% training (10,816 documents) and 3% held-out evaluation (335 documents) using fixed seed 42.
  2. Domain Merge Rule: <comedy> and <lifestyle_vlog> were consolidated into <general> to concentrate colloquial expressions and eliminate memorization risks on small document counts.
  3. Tokenization: Tokenized with touati-kamel/darja-tokenizer-50m (Vocab size 24,000, Byte-Level BPE).
  4. Sequential Chunking:
    • Each encoded document is sliced into consecutive chunks of 1,024 tokens: [0:1024], [1024:2048], etc.
    • Any short final chunk (<5 tokens) is discarded.
    • Chunks shorter than 1,024 tokens are padded with tokenizer.pad_token_id (0).
    • Yield: Expanded the training corpus from 10,816 raw documents into 52,038 dense 1,024-token training examples (~4.8× usable data yield).

Dataset Schema & Features

Each example in train and eval contains the following pre-computed fields:

Feature Type Shape Description
input_ids Sequence(int32) [1024] Token IDs encoded with darja-tokenizer-50m, right-padded with 0
attention_mask Sequence(int8) [1024] Binary mask: 1 for valid conversational tokens, 0 for padding tokens
domain_ids int64 Scalar Integer domain index [0, 5] specifying which LoRA adapter to activate
labels Sequence(int64) [1024] Causal LM target tokens. Matches input_ids for valid tokens, set to -100 for pad tokens

Domain Distribution & ID Mapping

The scalar domain_ids feature maps to the 6 primary domain adapters of Darja-GPT-50M:

Domain ID Tag Description Representative Source Content
0 <general> General conversation, comedy, vlogs DZjoker, Anes Tina, Mourad Oudia, everyday life vlogs
1 <cooking> Traditional & modern culinary arts Amina Cuisine, Chef Moha, recipes, kitchen terms
2 <tech> Electronics, gadgets, technology Hardware benchmarks, mobile reviews, e-commerce
3 <sports> Sports commentary, Algerian football Dzair Foot, Dz Sport tv, national team, Mahrez, leagues
4 <podcast> Business, marketing, self-help Entrepreneurship podcasts, career mindset, freelancing
5 <story> Narrative folklore & social tales Storytelling, family chronicles, traditional stories

(Note: During model training, an additional virtual domain 6: <NULL> was dynamically introduced with 10% dropout to enable Classifier-Free Guidance).


Text-Tag Dropout Regularization

To ensure that the domain adapters learn genuine semantic and syntactic domain features rather than simply memorizing the prompt's prefix tag:

  • 20% of training examples had the literal text tag (e.g. <cooking> ) stripped from the beginning of the text during processing.
  • Crucially, the domain_ids tensor remained set to the correct domain index (1).
  • This forced the attention and MLP adapters to model the vocabulary, register, and grammar of the domain directly from the conversational content.

Quickstart & Usage Example

1. Installation

pip install datasets transformers torch

2. Loading the Dataset & PyTorch Formatting

from datasets import load_dataset
from transformers import AutoTokenizer

DATASET_ID = "touati-kamel/darja-gpt-50m-padded-data"
TOKENIZER_ID = "touati-kamel/darja-tokenizer-50m"

# 1. Load dataset splits
dataset = load_dataset(DATASET_ID)
print("Splits:", dataset)
print("Train examples:", len(dataset["train"]))
print("Eval examples:", len(dataset["eval"]))

# 2. Set format for PyTorch
cols = ["input_ids", "attention_mask", "domain_ids", "labels"]
dataset["train"].set_format(type="torch", columns=cols)
dataset["eval"].set_format(type="torch", columns=cols)

# 3. Inspect a sample batch
sample = dataset["train"][0]
print("\n--- Sample 0 ---")
print("Input IDs shape:", sample["input_ids"].shape)
print("Domain ID:", sample["domain_ids"].item())
print("Valid tokens:", sample["attention_mask"].sum().item())
print("Padding tokens:", (sample["labels"] == -100).sum().item())

# 4. Decode the content
tokenizer = AutoTokenizer.from_pretrained(TOKENIZER_ID)
valid_ids = sample["input_ids"][:sample["attention_mask"].sum()]
print("\nDecoded text preview:")
print(tokenizer.decode(valid_ids, skip_special_tokens=False)[:300], "...")

3. Using Directly with PyTorch DataLoader

from torch.utils.data import DataLoader

train_loader = DataLoader(
    dataset["train"],
    batch_size=16,
    shuffle=True,
    num_workers=2,
    pin_memory=True
)

for batch in train_loader:
    # Directly feed into DarjaGPTForCausalLM
    # out = model(
    #     input_ids=batch["input_ids"],
    #     domain_ids=batch["domain_ids"],
    #     attention_mask=batch["attention_mask"],
    #     labels=batch["labels"]
    # )
    break

Citation & Contact

If you use Darja-GPT-50M-Padded-Data or the Algerian Darja Corpus, please cite:

@misc{touati2026darjapaddeddata,
  author       = {Kamel Touati},
  title        = {Darja-GPT-50M-Padded-Data: Pre-Tokenized and Chunked Domain-Conditioned Dataset for Algerian Darija},
  year         = {2026},
  publisher    = {Hugging Face},
  howpublished = {\url{https://huggingface.co/datasets/touati-kamel/darja-gpt-50m-padded-data}}
}

@misc{touati2026darjagpt50m,
  author       = {Kamel Touati},
  title        = {Darja-GPT-50M: Domain-Conditioned Causal Language Model for Algerian Darija with Classifier-Free Guidance},
  year         = {2026},
  publisher    = {Hugging Face},
  howpublished = {\url{https://huggingface.co/touati-kamel/darja-gpt-50m}}
}

Developer: Kamel Touati (Hugging Face Profile)
License: Apache 2.0

Downloads last month
85