Text Generation
Transformers
Safetensors
Serbian
qwen3_5
image-text-to-text
srpski
generativni
model
qa
summarization
translation
reasoning
conversational
Instructions to use procesaur/Orao2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use procesaur/Orao2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="procesaur/Orao2") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("procesaur/Orao2") model = AutoModelForMultimodalLM.from_pretrained("procesaur/Orao2", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use procesaur/Orao2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "procesaur/Orao2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "procesaur/Orao2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/procesaur/Orao2
- SGLang
How to use procesaur/Orao2 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "procesaur/Orao2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "procesaur/Orao2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "procesaur/Orao2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "procesaur/Orao2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use procesaur/Orao2 with Docker Model Runner:
docker model run hf.co/procesaur/Orao2
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,306 @@
|
|
| 1 |
---
|
| 2 |
-
license: cc-by-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: cc-by-sa-4.0
|
| 3 |
+
datasets:
|
| 4 |
+
- procesaur/znanje
|
| 5 |
+
- procesaur/Wiki.korpus
|
| 6 |
+
- procesaur/kisobran
|
| 7 |
+
- HuggingFaceFW/fineweb
|
| 8 |
+
- jerteh/SrpELTeC
|
| 9 |
+
- AMead10/lvl_5_vital_wikipedia_articles
|
| 10 |
+
- vikp/textbook_quality_programming
|
| 11 |
+
- nampdn-ai/tiny-lessons
|
| 12 |
+
language:
|
| 13 |
+
- sr
|
| 14 |
+
pipeline_tag: text-generation
|
| 15 |
+
library_name: transformers
|
| 16 |
+
tags:
|
| 17 |
+
- srpski
|
| 18 |
+
- generativni
|
| 19 |
+
- model
|
| 20 |
+
- qa
|
| 21 |
+
- summarization
|
| 22 |
+
- translation
|
| 23 |
+
- reasoning
|
| 24 |
+
base_model:
|
| 25 |
+
- procesaur/Orao2-GPT
|
| 26 |
---
|
| 27 |
+
|
| 28 |
+
<img src="orao-cover.svg" class="cover">
|
| 29 |
+
|
| 30 |
+
# Orao2
|
| 31 |
+
|
| 32 |
+
- Virtualni AI asistent, **9 milijardi parametara**.
|
| 33 |
+
- Prošireni vokabular tokenizatora za sprski jezik (novih 50.000 tokena) omogućava **30% brže** obučavanje i inferenciju, kao i bolje poravnanje modela sa našim jezikom.
|
| 34 |
+
- **[SRNA tokenizator]**(https://huggingface.co/procesaur/Srna_tokenizer), sa podrškom za automatsko preslovljavanje, omogućava modelu **ujednačeniju upotrebu** dva pisma, koja se sada obrađuju u istom vektorskom prostoru.
|
| 35 |
+
- Razmišlja, čita, piše, sažima, analizira zadati tekst i odgovara na pitanja.
|
| 36 |
+
- Zasnovan na **Orao2-GPT** modelu i **Qwen3.5** arhitekturi.
|
| 37 |
+
- Obučavan na eksperimentalnom SFT skupu.
|
| 38 |
+
|
| 39 |
+
## Usage / Upotreba
|
| 40 |
+
|
| 41 |
+
```python
|
| 42 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 43 |
+
model_id = "procesaur/Orao2-GPT"
|
| 44 |
+
model_id = "D:/QWEN TRENING/mihailo/train/outputs"
|
| 45 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
| 46 |
+
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
|
| 47 |
+
messages = [
|
| 48 |
+
{"role": "user", "content": "Ког датума славимо Светог Николу?"},
|
| 49 |
+
]
|
| 50 |
+
inputs = tokenizer.apply_chat_template(
|
| 51 |
+
messages,
|
| 52 |
+
add_generation_prompt=True,
|
| 53 |
+
enable_thinking=True,
|
| 54 |
+
tokenize=True,
|
| 55 |
+
return_dict=True,
|
| 56 |
+
return_tensors="pt",
|
| 57 |
+
).to(model.device)
|
| 58 |
+
|
| 59 |
+
outputs = model.generate(**inputs, max_new_tokens=128)
|
| 60 |
+
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
```python
|
| 64 |
+
Свети Никола слави се 19. децембра.
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
<div class="inline-flex flex-col avatar-cont">
|
| 69 |
+
<div class="avatar-title">Autor</div>
|
| 70 |
+
<a href="https://huggingface.co/procesaur">
|
| 71 |
+
<div class="flex">
|
| 72 |
+
<div class="avatar-cover"
|
| 73 |
+
style="background-image: url('https://cdn-uploads.huggingface.co/production/uploads/1673534533167-63bc254fb8c61b8aa496a39b.jpeg?w=200&h=200&f=face')">
|
| 74 |
+
</div>
|
| 75 |
+
</div>
|
| 76 |
+
<div class="avatar-name">Mihailo Škorić</div>
|
| 77 |
+
<div class="avatar-handle">@procesaur</div>
|
| 78 |
+
</a>
|
| 79 |
+
</div>
|
| 80 |
+
|
| 81 |
+
<div class="inline-flex flex-col avatar-cont">
|
| 82 |
+
<div class="avatar-title">Računarski resursi</div>
|
| 83 |
+
<a href="https://tesla.rgf.bg.ac.rs">
|
| 84 |
+
<div class="flex">
|
| 85 |
+
<div class="avatar-cover"
|
| 86 |
+
style="background-image: url(https://www.ai.gov.rs/img/logo_60x120-2.png)">
|
| 87 |
+
</div>
|
| 88 |
+
</div>
|
| 89 |
+
<div class="avatar-name">Nacionalna AI platforma</div>
|
| 90 |
+
<div class="avatar-handle">ai.gov.rs</div>
|
| 91 |
+
</a>
|
| 92 |
+
</div>
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
<div class="inline-flex flex-col avatar-cont">
|
| 96 |
+
<div class="avatar-title">Finansiranje</div>
|
| 97 |
+
<a href="https://fondzanauku.gov.rs/">
|
| 98 |
+
<div class="flex">
|
| 99 |
+
<div class="avatar-cover"
|
| 100 |
+
style="background-image: url(https://fondzanauku.gov.rs/wp-content/uploads/2019/04/FZN-logo-primary-light-1170x396.png)">
|
| 101 |
+
</div>
|
| 102 |
+
</div>
|
| 103 |
+
<div class="avatar-name">Fond za Nauku</div>
|
| 104 |
+
<div class="avatar-handle">@fondzanauku_rs</div>
|
| 105 |
+
</a>
|
| 106 |
+
</div>
|
| 107 |
+
|
| 108 |
+
<div class="inline-flex flex-col avatar-cont">
|
| 109 |
+
<div class="avatar-title">Projekat</div>
|
| 110 |
+
<a href="https://tesla.rgf.bg.ac.rs/">
|
| 111 |
+
<div class="flex">
|
| 112 |
+
<div class="avatar-cover"
|
| 113 |
+
style="background-image: url(https://cdn-avatars.huggingface.co/v1/production/uploads/63bc254fb8c61b8aa496a39b/TfM_-sc8-b34ddfhHBGTA.png)">
|
| 114 |
+
</div>
|
| 115 |
+
</div>
|
| 116 |
+
<div class="avatar-name">TESLA</div>
|
| 117 |
+
<div class="avatar-handle">@te-sla</div>
|
| 118 |
+
</a>
|
| 119 |
+
</div>
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
## Data
|
| 123 |
+
|
| 124 |
+
<div style="zoom: 0.75;">
|
| 125 |
+
|
| 126 |
+
<div class="inline-flex flex-col avatar-cont">
|
| 127 |
+
<a href="https://huggingface.co/rankas">
|
| 128 |
+
<div class="flex">
|
| 129 |
+
<div class="avatar-cover"
|
| 130 |
+
style="background-image: url(https://cdn-avatars.huggingface.co/v1/production/uploads/63f8fa204ef4aacb65a00043/IlrBetI15qnGsc798R6tO.jpeg)">
|
| 131 |
+
</div>
|
| 132 |
+
</div>
|
| 133 |
+
</a>
|
| 134 |
+
</div>
|
| 135 |
+
|
| 136 |
+
<div class="inline-flex flex-col avatar-cont">
|
| 137 |
+
<a href="https://huggingface.co/procesaur">
|
| 138 |
+
<div class="flex">
|
| 139 |
+
<div class="avatar-cover"
|
| 140 |
+
style="background-image: url('https://cdn-uploads.huggingface.co/production/uploads/1673534533167-63bc254fb8c61b8aa496a39b.jpeg?w=200&h=200&f=face')">
|
| 141 |
+
</div>
|
| 142 |
+
</div>
|
| 143 |
+
</a>
|
| 144 |
+
</div>
|
| 145 |
+
|
| 146 |
+
<div class="inline-flex flex-col avatar-cont">
|
| 147 |
+
<a href="https://huggingface.co/te-sla">
|
| 148 |
+
<div class="flex">
|
| 149 |
+
<div class="avatar-cover"
|
| 150 |
+
style="background-image: url(https://cdn-avatars.huggingface.co/v1/production/uploads/63bc254fb8c61b8aa496a39b/TfM_-sc8-b34ddfhHBGTA.png)">
|
| 151 |
+
</div>
|
| 152 |
+
</div>
|
| 153 |
+
</a>
|
| 154 |
+
</div>
|
| 155 |
+
|
| 156 |
+
<div class="inline-flex flex-col avatar-cont">
|
| 157 |
+
<a href="https://huggingface.co/HuggingFaceH4">
|
| 158 |
+
<div class="flex">
|
| 159 |
+
<div class="avatar-cover"
|
| 160 |
+
style="background-image: url(https://cdn-avatars.huggingface.co/v1/production/uploads/5f0c746619cb630495b814fd/j26aNEdiOgptZxJ6akGCC.png)">
|
| 161 |
+
</div>
|
| 162 |
+
</div>
|
| 163 |
+
</a>
|
| 164 |
+
</div>
|
| 165 |
+
|
| 166 |
+
<div class="inline-flex flex-col avatar-cont">
|
| 167 |
+
<a href="https://huggingface.co/OpenDataArena">
|
| 168 |
+
<div class="flex">
|
| 169 |
+
<div class="avatar-cover"
|
| 170 |
+
style="background-image: url(https://cdn-avatars.huggingface.co/v1/production/uploads/643e60d96db6ba8c5ee177ad/y-K9JVRETLV0zr_jJYdu3.png)">
|
| 171 |
+
</div>
|
| 172 |
+
</div>
|
| 173 |
+
</a>
|
| 174 |
+
</div>
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
## Cit.
|
| 179 |
+
|
| 180 |
+
```bibtex
|
| 181 |
+
|
| 182 |
+
```
|
| 183 |
+
|
| 184 |
+
<br/>
|
| 185 |
+
<div id="zastava">
|
| 186 |
+
<div class="grb">
|
| 187 |
+
<img src="https://www.ai.gov.rs/img/logo_60x120-2.png" style="position:relative; left:30px; z-index:10; height:85px">
|
| 188 |
+
</div>
|
| 189 |
+
<table width=100% style="border:0px">
|
| 190 |
+
<tr style="background-color:#C6363C;width:100%;border:0px;height:30px"><td style="width:100vw"></td></tr>
|
| 191 |
+
<tr style="background-color:#0C4076;width:100%;border:0px;height:30px"><td></td></tr>
|
| 192 |
+
<tr style="background-color:#ffffff;width:100%;border:0px;height:30px"><td></td></tr>
|
| 193 |
+
</table>
|
| 194 |
+
</div>
|
| 195 |
+
|
| 196 |
+
<table style="width:100%;height:100%">
|
| 197 |
+
<tr style="width:100%;height:100%">
|
| 198 |
+
<td width=50%>
|
| 199 |
+
<p>Истраживање jе спроведено уз подршку Фонда за науку Републике Србиjе, #7276, Text Embeddings – Serbian Language Applications – TESLA</p>
|
| 200 |
+
</td>
|
| 201 |
+
<td>
|
| 202 |
+
<p>This research was supported by the Science Fund of the Republic of Serbia, #7276, Text Embeddings - Serbian Language Applications - TESLA</p>
|
| 203 |
+
</td>
|
| 204 |
+
</tr>
|
| 205 |
+
</table>
|
| 206 |
+
|
| 207 |
+
<style>
|
| 208 |
+
.ffeat: {
|
| 209 |
+
color:red
|
| 210 |
+
}
|
| 211 |
+
|
| 212 |
+
.cover {
|
| 213 |
+
width: 100%;
|
| 214 |
+
margin-bottom: 5pt
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
.highlight-container, .highlight {
|
| 218 |
+
position: relative;
|
| 219 |
+
text-decoration:none
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
.highlight-container {
|
| 223 |
+
display: inline-block;
|
| 224 |
+
}
|
| 225 |
+
|
| 226 |
+
.avatar-cont {
|
| 227 |
+
line-height: 1.5;
|
| 228 |
+
padding-right:50px;
|
| 229 |
+
}
|
| 230 |
+
|
| 231 |
+
.avatar-title{
|
| 232 |
+
text-align: center;
|
| 233 |
+
margin-top: 3px;
|
| 234 |
+
font-size: 16px;
|
| 235 |
+
font-weight: 800;
|
| 236 |
+
}
|
| 237 |
+
|
| 238 |
+
.avatar-name{
|
| 239 |
+
text-align: center;
|
| 240 |
+
font-size: 16px;
|
| 241 |
+
font-weight: 800;
|
| 242 |
+
}
|
| 243 |
+
|
| 244 |
+
.avatar-handle{
|
| 245 |
+
text-align: center;
|
| 246 |
+
font-size: 14px;
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
.avatar-cover{
|
| 250 |
+
display:DISPLAY_1;
|
| 251 |
+
margin-left: auto;
|
| 252 |
+
margin-right: auto;
|
| 253 |
+
width: 92px;
|
| 254 |
+
height:92px;
|
| 255 |
+
border-radius: 50%;
|
| 256 |
+
background-position: center;
|
| 257 |
+
background-size: contain;
|
| 258 |
+
background-repeat: no-repeat;
|
| 259 |
+
}
|
| 260 |
+
|
| 261 |
+
.highlight{
|
| 262 |
+
color:white;
|
| 263 |
+
text-transform:uppercase;
|
| 264 |
+
font-size: 16pt;
|
| 265 |
+
}
|
| 266 |
+
|
| 267 |
+
.highlight-container{
|
| 268 |
+
padding:5px 10px
|
| 269 |
+
}
|
| 270 |
+
|
| 271 |
+
.highlight-container:before {
|
| 272 |
+
content: " ";
|
| 273 |
+
display: block;
|
| 274 |
+
height: 100%;
|
| 275 |
+
width: 100%;
|
| 276 |
+
margin-left: 0px;
|
| 277 |
+
margin-right: 0px;
|
| 278 |
+
position: absolute;
|
| 279 |
+
background: #e80909;
|
| 280 |
+
transform: rotate(2deg);
|
| 281 |
+
top: -1px;
|
| 282 |
+
left: -1px;
|
| 283 |
+
border-radius: 20% 25% 20% 24%;
|
| 284 |
+
padding: 10px 18px 18px 10px;
|
| 285 |
+
}
|
| 286 |
+
|
| 287 |
+
div.grb, #zastava>table {
|
| 288 |
+
position:absolute;
|
| 289 |
+
top:0px;
|
| 290 |
+
left: 0px;
|
| 291 |
+
margin:0px
|
| 292 |
+
}
|
| 293 |
+
|
| 294 |
+
div.grb>img, #zastava>table{
|
| 295 |
+
margin:0px
|
| 296 |
+
}
|
| 297 |
+
|
| 298 |
+
#zastava {
|
| 299 |
+
position: relative;
|
| 300 |
+
margin-bottom:120px
|
| 301 |
+
}
|
| 302 |
+
|
| 303 |
+
p {
|
| 304 |
+
font-size:14pt
|
| 305 |
+
}
|
| 306 |
+
</style>
|