Datasets:
Dataset Viewer
The dataset viewer is not available for this dataset.
The JWT signature verification failed. Check the signing key and the algorithm.
Error code: JWTInvalidSignature
Exception: InvalidSignatureError
Message: Signature verification failed
Traceback: Traceback (most recent call last):
File "/src/libs/libapi/src/libapi/jwt_token.py", line 286, in validate_jwt
decoded = jwt.decode(
jwt=token,
...<2 lines>...
options=options,
)
File "/usr/local/lib/python3.14/site-packages/jwt/api_jwt.py", line 368, in decode
decoded = self.decode_complete(
jwt,
...<8 lines>...
leeway=leeway,
)
File "/usr/local/lib/python3.14/site-packages/jwt/api_jwt.py", line 265, in decode_complete
decoded = self._jws.decode_complete(
jwt,
...<3 lines>...
detached_payload=detached_payload,
)
File "/usr/local/lib/python3.14/site-packages/jwt/api_jws.py", line 270, in decode_complete
self._verify_signature(
~~~~~~~~~~~~~~~~~~~~~~^
signing_input,
^^^^^^^^^^^^^^
...<4 lines>...
options=merged_options,
^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/jwt/api_jws.py", line 417, in _verify_signature
raise InvalidSignatureError("Signature verification failed")
jwt.exceptions.InvalidSignatureError: Signature verification failedNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
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
- 16