Views
No views yet
15,621,685,248 token/78,48 GB/10,900,000,000 word/18,800,000 paragraph corpus of Czech obtained by Web Crawling.266,44 GB.

| Name | Value | Note |
|---|---|---|
| dataset_type | Concat | Sequences at the model's input were concatenated up to $max_seq_len, divided by EOS token. |
| tokenizer_size | 64k | |
| max_seq_len | 1024 | |
| batch_size | 1024 | |
| learning_rate | 1.0e-4 | |
| optimizer | LionW | |
| optimizer_betas | 0.9/0.95 | |
| optimizer_weight_decay | 0 | |
| optimizer_eps | 1.0e-08 | |
| gradient_clipping_max_norm | 1.0 | |
| attn_impl | flash2 | |
| dropout | 0.1 | for residuals, attention, embeddings |
| fsdp | SHARD_GRAD_OP | (optimized for A100 40GB GPUs) |
| precision | bf16 | |
| scheduler | linear | |
| scheduler_warmup | 10,000 steps | |
| scheduler_steps | 200,000 | |
| scheduler_alpha | 0.1 | So LR on last step is 0.1*(vanilla LR) |
1from transformers import AutoTokenizer, AutoModelForCausalLM
2import torch
3
4t = AutoTokenizer.from_pretrained("BUT-FIT/Czech-GPT-2-XL-133k")
5m = AutoModelForCausalLM.from_pretrained("BUT-FIT/Czech-GPT-2-XL-133k").eval()
6
7# Try the model inference
8prompt = "Nejznámějším českým spisovatelem "
9input_ids = t.encode(prompt, return_tensors="pt")
10with torch.no_grad():
11 generated_text = m.generate(input_ids=input_ids,
12 do_sample=True,
13 top_p=0.95,
14 repetition_penalty=1.0,
15 temperature=0.8,
16 max_new_tokens=64,
17 num_return_sequences=1)
18 print(t.decode(generated_text[0], skip_special_tokens=True))martin.fajcik@vut.cz.DH23P03OVV060 and
by the Ministry of Education, Youth and Sports of the Czech Republic through the e-INFRA CZ (ID:90254).