File size: 7,389 Bytes
3a988ad 0b4a810 3a988ad 392ac7e d767d57 392ac7e 3a988ad 9bd3c44 3a988ad 80770ef 841c31c 80770ef 841c31c 80770ef 841c31c 80770ef 841c31c 80770ef 841c31c 80770ef 5b5440c 39560b3 841c31c 39560b3 841c31c fa10524 cea8bde fa10524 dd50ebf 841c31c 5b5440c 703ad1a 5b5440c 21712c7 37cebc0 21712c7 37cebc0 b827b89 a62be85 b827b89 ef95dfc b827b89 ef95dfc b827b89 dcf670e b827b89 080f1b3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 |
---
license: mit
datasets:
- datatab/SrpWikiDataset
- datatab/open-orca-slim-serbian
language:
- sr
base_model:
- datatab/Yugo55A-GPT
---

- **Developed by:** datatab
- **License:** mit
## 🏆 Results
> Results obtained through the [**Serbian LLM Evaluation Benchmark**](https://huggingface.co/datasets/datatab/serbian-llm-benchmark)
<table>
<tr>
<th><strong>MODEL<strong></th>
<th><strong>ARC-E<strong></th>
<th><strong>ARC-C<strong></th>
<th><strong>Hellaswag<strong></th>
<th><strong>PiQA<strong></th>
<th><strong>Winogrande<strong></th>
<th><strong>BoolQ<strong></th>
<th><strong>OpenbookQA<strong></th>
<th><strong>OZ_EVAL<strong></th>
<th>SCORE</th>
</tr>
<tr>
<td><a href="https://huggingface.co/datatab/YugoGPT-Florida/">YugoGPT-Florida</a></td>
<td><strong>0.6918<strong></td>
<td><strong>0.5766<strong></td>
<td><strong>0.4037<strong></td>
<td><strong>0.7374<strong></td>
<td><strong>0.5782<strong></td>
<td><strong>0.8685<strong></td>
<td><strong>0.5918<strong></td>
<td><strong>0.7407<strong></td>
<td><strong>64,85875<strong></td>
</tr>
<tr>
<td><a href="https://huggingface.co/datatab/Yugo55A-GPT/">Yugo55A-GPT</a></td>
<td>0.5846</td>
<td>0.5185</td>
<td>0.3686</td>
<td>0.7076</td>
<td>0.5277</td>
<td>0.8584</td>
<td>0.5485</td>
<td>0.6883</td>
<td>60,0275</td>
</tr>
<tr>
<td><a href="https://huggingface.co/datatab/Yugo60-GPT">Yugo60-GPT</a></td>
<td>0.4948</td>
<td>0.4542</td>
<td>0.3342</td>
<td>0.6897</td>
<td>0.5138</td>
<td>0.8212</td>
<td>0.5155</td>
<td>0.6379</td>
<td>55,76625</td>
</tr>
<tr>
<td><a href="https://huggingface.co/datatab/Yugo45-GPT">Yugo45-GPT</a></td>
<td>0.4049</td>
<td>0.3900</td>
<td>0.2812</td>
<td>0.6055</td>
<td>0.4992</td>
<td>0.5793</td>
<td>0.4433</td>
<td>0.6111</td>
<td>47,68125</td>
</tr>
</table>



# 🏋️ Training Stats




## 💻 Usage
```terminal
!pip -q install git+https://github.com/huggingface/transformers
```
```python
from IPython.display import HTML, display
def set_css():
display(HTML('''
<style>
pre {
white-space: pre-wrap;
}
</style>
'''))
get_ipython().events.register('pre_run_cell', set_css)
```
```python
import torch
import transformers
from transformers import AutoTokenizer, MistralForCausalLM
device = "cuda" if torch.cuda.is_available() else "cpu"
model = MistralForCausalLM.from_pretrained(
"datatab/YugoGPT-Florida",
torch_dtype="auto"
).to(device)
tokenizer = AutoTokenizer.from_pretrained("datatab/YugoGPT-Florida")
```
```python
from typing import Optional
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
def generate(
user_content: str, system_content: Optional[str] = ""
) -> str:
system_content = """Ispod se nalazi uputstvo koje definiše zadatak, zajedno sa unosom koji pruža dodatni kontekst.
Na osnovu ovih informacija, napišite odgovor koji precizno i tačno ispunjava zahtev.
"""
messages = [
{
"role": "system",
"content": system_content,
},
{"role": "user", "content": user_content},
]
tokenized_chat = tokenizer.apply_chat_template(
messages, tokenize=True, add_generation_prompt=True, return_tensors="pt"
).to("cuda")
text_streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
output = model.generate(
tokenized_chat,
streamer=text_streamer,
max_new_tokens=2048,
temperature=0.1,
repetition_penalty=1.11,
top_p=0.92,
top_k=1000,
pad_token_id=tokenizer.pad_token_id,
eos_token_id=tokenizer.eos_token_id,
do_sample=True,
)
generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
```
```python
generate("Nabroj mi sve planete suncevog sistemai reci mi koja je najveca planeta?")
```
```terminal
Sunčev sistem sadrži osam planeta: Merkur, Venera, Zemlja, Mars, Jupiter, Saturn, Uran i Neptun. Najveća planeta u Sunčevom sistemu je Jupiter.
```
## 💡 Contributions Welcome!
Have ideas, bug fixes, or want to add a custom model? We'd love for you to be part of the journey! Contributions help grow and enhance the capabilities of the **YugoGPT-Florida**.
## 📜 Citation
Thanks for using **YugoGPT-Florida** — where language learning models meet Serbian precision and creativity! Let's build smarter models together. 🚀�
If you find this model useful in your research, please cite it as follows:
```bibtex
@article{YugoGPT-Florida},
title={YugoGPT-Florida},
author={datatab},
year={2024},
url={https://huggingface.co/datatab/YugoGPT-Florida}
}
```
<div id="zastava">
<div class="grb">
<img src="https://www.ai.gov.rs/img/logo_60x120-2.png" style="position:relative; left:30px; z-index:10; height:85px">
</div>
<table width=100% style="border:0px">
<<tr style="background-color:#C6363C;width:100%;border:0px;height:30px"><td style="width:100vw"></td></tr>
<tr style="background-color:#0C4076;width:100%;border:0px;height:30px"><td></td></tr>
<tr style="background-color:#ffffff;width:100%;border:0px;height:30px"><td></td></tr>
</table>
</div>
<style>
.ffeat: {
color:red
}
.cover {
width: 100%;
margin-bottom: 5pt
}
.highlight-container, .highlight {
position: relative;
text-decoration:none
}
.highlight-container {
display: inline-block;
}
.highlight{
color:white;
text-transform:uppercase;
font-size: 16pt;
}
.highlight-container{
padding:5px 10px
}
.highlight-container:before {
content: " ";
display: block;
height: 100%;
width: 100%;
margin-left: 0px;
margin-right: 0px;
position: absolute;
background: #e80909;
transform: rotate(2deg);
top: -1px;
left: -1px;
border-radius: 20% 25% 20% 24%;
padding: 10px 18px 18px 10px;
}
div.grb, #zastava>table {
position:absolute;
top:0px;
left: 0px;
margin:0px
}
div.grb>img, #zastava>table{
margin:0px
}
#zastava {
position: relative;
margin-bottom:120px
}
p {
font-size:14pt
}
</style> |