Views
No views yet
TINYLLAMA1.2B_cztokenizer64k_align1.7k_tllama1.1B_C2048_lr1e-04_150k, at 160k step).scratch_cztokenizer64k_tllama1.1B_C2048_lr1e-04_150k. We swap 1.7K tokens in this run, similarly as for our other models (see Czech-GPT-2-XL-133k)


| 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 | 2048 | |
| batch_size | 512 | |
| learning_rate | 1.0e-4 | |
| optimizer | LionW | |
| optimizer_betas | 0.9/0.95 | |
| optimizer_weight_decay | 0 | |
| gradient_clipping_max_norm | 1.0 | |
| attn_impl | flash2 | |
| fsdp | SHARD_GRAD_OP | (optimized for A100 40GB GPUs) |
| precision | bf16 | |
| scheduler | cosine | |
| scheduler_warmup | 100 steps | |
| scheduler_steps | 200,000 | |
| scheduler_alpha | 0.1 | So LR on last step is 0.1*(vanilla LR) |
1import torch
2import transformers
3from transformers import pipeline
4
5name = 'BUT-FIT/CSTinyLlama-1.2B'
6
7config = transformers.AutoConfig.from_pretrained(name, trust_remote_code=True)
8model = transformers.AutoModelForCausalLM.from_pretrained(
9 name,
10 config=config,
11 trust_remote_code=True
12)
13
14tokenizer = transformers.AutoTokenizer.from_pretrained(name, trust_remote_code=True)
15
16pipe = pipeline('text-generation', model=model, tokenizer=tokenizer, device='cuda:0')
17
18with torch.autocast('cuda', dtype=torch.bfloat16):
19 print(
20 pipe('Nejznámějším českým spisovatelem ',
21 max_new_tokens=100,
22 top_p=0.95,
23 repetition_penalty=1.0,
24 do_sample=True,
25 use_cache=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).1@article{benczechmark,
2 author = {Martin Fajčík, Martin Dočekal, Jan Doležal, Karel Beneš, Michal Hradiš},
3 title = {BenCzechMark: Machine Language Understanding Benchmark for Czech Language},
4 journal = {arXiv preprint arXiv:insert-arxiv-number-here},
5 year = {2024},
6 month = {March},
7 eprint = {insert-arxiv-number-here},
8 archivePrefix = {arXiv},
9 primaryClass = {cs.CL},
10}
11