Views
No views yet

Results obtained through the Serbian LLM Evaluation Benchmark
| MODEL | ARC-E | ARC-C | Hellaswag | PiQA | Winogrande | BoolQ | OpenbookQA | OZ_EVAL | SCORE |
|---|---|---|---|---|---|---|---|---|---|
| YugoGPT-Florida | 0.6918 | 0.5766 | 0.4037 | 0.7374 | 0.5782 | 0.8685 | 0.5918 | 0.7407 | 64,85875 |
| Yugo55A-GPT | 0.5846 | 0.5185 | 0.3686 | 0.7076 | 0.5277 | 0.8584 | 0.5485 | 0.6883 | 60,0275 |
| Yugo60-GPT | 0.4948 | 0.4542 | 0.3342 | 0.6897 | 0.5138 | 0.8212 | 0.5155 | 0.6379 | 55,76625 |
| Yugo45-GPT | 0.4049 | 0.3900 | 0.2812 | 0.6055 | 0.4992 | 0.5793 | 0.4433 | 0.6111 | 47,68125 |







1!pip -q install git+https://github.com/huggingface/transformers
21from IPython.display import HTML, display
2
3def set_css():
4 display(HTML('''
5 <style>
6 pre {
7 white-space: pre-wrap;
8 }
9 </style>
10 '''))
11get_ipython().events.register('pre_run_cell', set_css)
121import torch
2import transformers
3from transformers import AutoTokenizer, MistralForCausalLM
4
5device = "cuda" if torch.cuda.is_available() else "cpu"
6
7model = MistralForCausalLM.from_pretrained(
8 "datatab/YugoGPT-Florida",
9 torch_dtype="auto"
10).to(device)
11
12tokenizer = AutoTokenizer.from_pretrained("datatab/YugoGPT-Florida")
131from typing import Optional
2from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
3
4
5def generate(
6 user_content: str, system_content: Optional[str] = ""
7) -> str:
8 system_content = """Ispod se nalazi uputstvo koje definiše zadatak, zajedno sa unosom koji pruža dodatni kontekst.
9 Na osnovu ovih informacija, napišite odgovor koji precizno i tačno ispunjava zahtev.
10 """
11
12 messages = [
13 {
14 "role": "system",
15 "content": system_content,
16 },
17 {"role": "user", "content": user_content},
18 ]
19
20 tokenized_chat = tokenizer.apply_chat_template(
21 messages, tokenize=True, add_generation_prompt=True, return_tensors="pt"
22 ).to("cuda")
23
24 text_streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
25 output = model.generate(
26 tokenized_chat,
27 streamer=text_streamer,
28 max_new_tokens=2048,
29 temperature=0.1,
30 repetition_penalty=1.11,
31 top_p=0.92,
32 top_k=1000,
33 pad_token_id=tokenizer.pad_token_id,
34 eos_token_id=tokenizer.eos_token_id,
35 do_sample=True,
36 )
37
38 generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
391generate("Nabroj mi sve planete suncevog sistemai reci mi koja je najveca planeta?")
2Sunčev sistem sadrži osam planeta: Merkur, Venera, Zemlja, Mars, Jupiter, Saturn, Uran i Neptun. Najveća planeta u Sunčevom sistemu je Jupiter.1@article{YugoGPT-Florida},
2 title={YugoGPT-Florida},
3 author={datatab},
4 year={2024},
5 url={https://huggingface.co/datatab/YugoGPT-Florida}
6}