Datasets:
Search is not available for this dataset
input_ids listlengths 2.05k 2.05k | labels listlengths 2.05k 2.05k |
|---|---|
[
4955,
30,
1928,
14903,
3082,
7410,
6474,
9280,
29133,
8811,
1811,
3143,
16,
8724,
30,
3627,
10791,
3044,
5367,
19456,
3746,
2369,
277,
31912,
287,
1946,
7142,
1694,
16,
2464,
30,
2769,
5302,
29141,
418,
19892,
28286,
5027,
340,
8300,
16... | [
4955,
30,
1928,
14903,
3082,
7410,
6474,
9280,
29133,
8811,
1811,
3143,
16,
8724,
30,
3627,
10791,
3044,
5367,
19456,
3746,
2369,
277,
31912,
287,
1946,
7142,
1694,
16,
2464,
30,
2769,
5302,
29141,
418,
19892,
28286,
5027,
340,
8300,
16... |
[
18,
11172,
261,
6893,
4962,
16719,
16,
6103,
5852,
2676,
17,
19758,
16,
1386,
328,
4017,
710,
2339,
17,
1926,
16,
1706,
6836,
660,
4138,
379,
2424,
1515,
18,
13343,
515,
22144,
12924,
18,
11987,
548,
6495,
2112,
16,
4283,
776,
6018,
... | [
18,
11172,
261,
6893,
4962,
16719,
16,
6103,
5852,
2676,
17,
19758,
16,
1386,
328,
4017,
710,
2339,
17,
1926,
16,
1706,
6836,
660,
4138,
379,
2424,
1515,
18,
13343,
515,
22144,
12924,
18,
11987,
548,
6495,
2112,
16,
4283,
776,
6018,
... |
[
290,
1767,
17,
276,
290,
7329,
269,
378,
431,
8872,
864,
917,
28194,
5205,
11763,
6380,
225,
2031,
2811,
13601,
16,
385,
71,
276,
3524,
1623,
611,
16,
2250,
339,
2442,
265,
7230,
16,
3995,
308,
431,
1571,
8874,
286,
297,
84,
2015,
... | [
290,
1767,
17,
276,
290,
7329,
269,
378,
431,
8872,
864,
917,
28194,
5205,
11763,
6380,
225,
2031,
2811,
13601,
16,
385,
71,
276,
3524,
1623,
611,
16,
2250,
339,
2442,
265,
7230,
16,
3995,
308,
431,
1571,
8874,
286,
297,
84,
2015,
... |
[
431,
372,
559,
3074,
1414,
6308,
460,
381,
5300,
5215,
18,
9470,
1286,
5022,
3687,
8791,
14181,
371,
16641,
7340,
3813,
4003,
18,
381,
25206,
11317,
8791,
14181,
7340,
2730,
1404,
700,
4145,
16,
19337,
9206,
7667,
6177,
10826,
567,
4281... | [
431,
372,
559,
3074,
1414,
6308,
460,
381,
5300,
5215,
18,
9470,
1286,
5022,
3687,
8791,
14181,
371,
16641,
7340,
3813,
4003,
18,
381,
25206,
11317,
8791,
14181,
7340,
2730,
1404,
700,
4145,
16,
19337,
9206,
7667,
6177,
10826,
567,
4281... |
[
2262,
611,
1235,
12930,
3544,
817,
1131,
14235,
30296,
2090,
16,
3327,
225,
2220,
1840,
398,
2245,
301,
12925,
16,
1819,
11282,
28803,
453,
360,
295,
3930,
531,
450,
295,
3930,
440,
17534,
16853,
788,
20430,
7561,
689,
8661,
18,
11674,
... | [
2262,
611,
1235,
12930,
3544,
817,
1131,
14235,
30296,
2090,
16,
3327,
225,
2220,
1840,
398,
2245,
301,
12925,
16,
1819,
11282,
28803,
453,
360,
295,
3930,
531,
450,
295,
3930,
440,
17534,
16853,
788,
20430,
7561,
689,
8661,
18,
11674,
... |
[
826,
396,
3130,
1093,
615,
558,
6366,
396,
565,
3116,
572,
2552,
18,
412,
7588,
1803,
10477,
24496,
5541,
2688,
9071,
1939,
1551,
495,
12123,
1706,
1939,
25237,
442,
7448,
8336,
510,
16614,
8542,
264,
6304,
626,
2972,
9480,
310,
225,
... | [
826,
396,
3130,
1093,
615,
558,
6366,
396,
565,
3116,
572,
2552,
18,
412,
7588,
1803,
10477,
24496,
5541,
2688,
9071,
1939,
1551,
495,
12123,
1706,
1939,
25237,
442,
7448,
8336,
510,
16614,
8542,
264,
6304,
626,
2972,
9480,
310,
225,
... |
[
761,
8381,
14372,
29168,
5879,
294,
18,
4671,
12713,
19789,
11585,
5688,
1879,
6536,
857,
17821,
13554,
2288,
396,
25727,
17674,
14573,
754,
2195,
3311,
14889,
16,
8017,
1012,
296,
7115,
649,
830,
20512,
18,
992,
16,
1879,
6536,
857,
11... | [
761,
8381,
14372,
29168,
5879,
294,
18,
4671,
12713,
19789,
11585,
5688,
1879,
6536,
857,
17821,
13554,
2288,
396,
25727,
17674,
14573,
754,
2195,
3311,
14889,
16,
8017,
1012,
296,
7115,
649,
830,
20512,
18,
992,
16,
1879,
6536,
857,
11... |
[
371,
28424,
18511,
531,
511,
1446,
5097,
2112,
22594,
16425,
5214,
16,
13244,
14606,
22064,
13148,
11668,
3145,
531,
12195,
2552,
18,
568,
1409,
456,
1345,
3048,
1660,
31336,
11668,
3145,
23057,
11279,
3451,
10649,
2928,
679,
978,
9826,
1... | [
371,
28424,
18511,
531,
511,
1446,
5097,
2112,
22594,
16425,
5214,
16,
13244,
14606,
22064,
13148,
11668,
3145,
531,
12195,
2552,
18,
568,
1409,
456,
1345,
3048,
1660,
31336,
11668,
3145,
23057,
11279,
3451,
10649,
2928,
679,
978,
9826,
1... |
[
1568,
312,
2251,
12676,
764,
18,
3228,
338,
10891,
16,
1455,
10005,
16,
3318,
1991,
16795,
1820,
442,
16,
443,
389,
316,
7929,
442,
4327,
4213,
5178,
18,
1507,
6280,
14353,
948,
5473,
7510,
264,
3499,
2145,
3317,
16,
4170,
1616,
9901,... | [
1568,
312,
2251,
12676,
764,
18,
3228,
338,
10891,
16,
1455,
10005,
16,
3318,
1991,
16795,
1820,
442,
16,
443,
389,
316,
7929,
442,
4327,
4213,
5178,
18,
1507,
6280,
14353,
948,
5473,
7510,
264,
3499,
2145,
3317,
16,
4170,
1616,
9901,... |
[
913,
4988,
3019,
35,
29063,
4385,
791,
4537,
35,
17,
2241,
9033,
1481,
4535,
290,
392,
8557,
1355,
264,
18,
5711,
16,
2427,
9127,
264,
13383,
16,
721,
1635,
16,
3459,
7303,
4967,
3615,
27889,
852,
412,
5520,
7537,
376,
1809,
373,
20... | [
913,
4988,
3019,
35,
29063,
4385,
791,
4537,
35,
17,
2241,
9033,
1481,
4535,
290,
392,
8557,
1355,
264,
18,
5711,
16,
2427,
9127,
264,
13383,
16,
721,
1635,
16,
3459,
7303,
4967,
3615,
27889,
852,
412,
5520,
7537,
376,
1809,
373,
20... |
End of preview. Expand in Data Studio
Kazakh Tokenized Corpus (2048 blocks)
Pre-tokenized Kazakh corpus ready for language model training. Built from Abzalbek89/corpus_clean using Abzalbek89/kk-tokenizer-bpe-32k.
Dataset Summary
| Metric | Value |
|---|---|
| Train blocks | 236,981 |
| Validation blocks | 12,473 |
| Total blocks | 249,454 |
| Block size | 2,048 tokens |
| Total tokens | ~0.51B (510M) |
| Tokenizer | ByteLevel BPE, 32K vocab |
| Val ratio | 5% |
Pipeline
- Source: Abzalbek89/corpus_clean — 1,502,583 cleaned Kazakh texts
- Chunking: Long texts split into chunks of up to 20K characters at paragraph/word boundaries (1,548,725 chunks)
- Tokenization: ByteLevel BPE tokenizer (Abzalbek89/kk-tokenizer-bpe-32k, vocab=32,000)
- Grouping: All token sequences concatenated and split into fixed blocks of 2,048 tokens (no padding, no truncation)
- Split: 95% train / 5% validation (seed=42)
Fields
input_ids(list[int]) — token IDs, length 2,048labels(list[int]) — copy ofinput_ids(for causal LM training)
Usage
from datasets import load_dataset
ds = load_dataset("Abzalbek89/corpus_clean_tokenized")
train = ds["train"]
val = ds["validation"]
# Each example is a fixed-size block of 2048 tokens
print(len(train[0]["input_ids"])) # 2048
print(len(train[0]["labels"])) # 2048
Training with HuggingFace Trainer
from transformers import AutoModelForCausalLM, TrainingArguments, Trainer
from datasets import load_dataset
ds = load_dataset("Abzalbek89/corpus_clean_tokenized")
model = AutoModelForCausalLM.from_pretrained("your-model")
training_args = TrainingArguments(
output_dir="./output",
per_device_train_batch_size=8,
num_train_epochs=3,
learning_rate=5e-4,
logging_steps=100,
save_steps=1000,
eval_strategy="steps",
eval_steps=500,
)
trainer = Trainer(
model=model,
args=training_args,
train_dataset=ds["train"],
eval_dataset=ds["validation"],
)
trainer.train()
Source Data
| Component | Link |
|---|---|
| Raw corpus | Abzalbek89/corpus_clean |
| Tokenizer | Abzalbek89/kk-tokenizer-bpe-32k |
License
Apache 2.0
- Downloads last month
- 18