Text Generation
Transformers
Safetensors
Serbian
qwen3_5
image-text-to-text
srpski
generativni
model
serbian
generative
small
mali
conversational
Instructions to use procesaur/Vrabac2-GPT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use procesaur/Vrabac2-GPT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="procesaur/Vrabac2-GPT") 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/Vrabac2-GPT") model = AutoModelForMultimodalLM.from_pretrained("procesaur/Vrabac2-GPT", 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/Vrabac2-GPT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "procesaur/Vrabac2-GPT" # 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/Vrabac2-GPT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/procesaur/Vrabac2-GPT
- SGLang
How to use procesaur/Vrabac2-GPT 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/Vrabac2-GPT" \ --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/Vrabac2-GPT", "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/Vrabac2-GPT" \ --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/Vrabac2-GPT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use procesaur/Vrabac2-GPT with Docker Model Runner:
docker model run hf.co/procesaur/Vrabac2-GPT
|
Download README.md from procesaur/Vrabac2-GPT: direct link, hf CLI and curl.
- Browser
- Download file 9.08 kB
-
https://huggingface.co/procesaur/Vrabac2-GPT/resolve/main/README.md
- Command line
-
hf download hf://procesaur/Vrabac2-GPT/README.md
-
curl -L -o README.md https://huggingface.co/procesaur/Vrabac2-GPT/resolve/main/README.md
9.08 kB
| license: apache-2.0 | |
| datasets: | |
| - procesaur/znanje | |
| - procesaur/Wiki.korpus | |
| - procesaur/kisobran | |
| - HuggingFaceFW/fineweb | |
| - jerteh/SrpELTeC | |
| - AMead10/lvl_5_vital_wikipedia_articles | |
| - vikp/textbook_quality_programming | |
| - nampdn-ai/tiny-lessons | |
| language: | |
| - sr | |
| pipeline_tag: text-generation | |
| library_name: transformers | |
| tags: | |
| - srpski | |
| - generativni | |
| - model | |
| - serbian | |
| - generative | |
| - small | |
| - mali | |
| <img src="vrabac-cover.svg" class="cover"> | |
| # Vrabac-GPT | |
| - Predobučeni generativni (base) model, **900 miliona parametara**. | |
| - 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. | |
| - **[SRNA tokenizator]**(https://huggingface.co/procesaur/Srna_tokenizer), sa podrškom za automatsko preslovljavanje, omogućava modelu **ujednačeniju upotrebu ćirilice i latinice**, koja se sada obrađuju u istom vektorskom prostoru. | |
| - Generiše novi tekst, ili nastavlja započeti tekstualni unos. | |
| - Zasnovan na **Qwen3.5** arhitekturi. | |
| - Obučavan na mešovitom srpsko-engleskom korpusu. | |
| - Iako ograničen svojom veličinom, pruža značajna unapređenja u čitanju i pisanju srpskog jeziku u odnosu na Qwen3.5-0.8 | |
| ## Usage / Upotreba | |
| ```python | |
| from transformers import AutoTokenizer, AutoModelForCausalLM | |
| model_id = "procesaur/Vrabac2-GPT" | |
| tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True) | |
| model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto") | |
| messages = [ | |
| {"role": "user", "content": "Ког датума славимо Никољдан?"}, | |
| ] | |
| inputs = tokenizer.apply_chat_template( | |
| messages, | |
| add_generation_prompt=True, | |
| enable_thinking=False, | |
| tokenize=True, | |
| return_dict=True, | |
| return_tensors="pt", | |
| ).to(model.device) | |
| outputs = model.generate(**inputs, max_new_tokens=128) | |
| print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) | |
| ``` | |
| ```python | |
| Nikoljdan se slavi 25. maja. Ovaj dan je posvećen Svetom Nikoli, koji je bio svetitelj i svetitelj koji je bio u službi Isusa Hrista. U pravoslavnoj crkvi, ovaj dan se slavi i kao praznik Svetog Nikole, koji je bio svetitelj koji je služio u crkvi Svetog Nikole u Carigradu... | |
| ``` | |
| <div class="inline-flex flex-col avatar-cont"> | |
| <div class="avatar-title">Autor</div> | |
| <a href="https://huggingface.co/procesaur"> | |
| <div class="flex"> | |
| <div class="avatar-cover" | |
| style="background-image: url('https://cdn-uploads.huggingface.co/production/uploads/1673534533167-63bc254fb8c61b8aa496a39b.jpeg?w=200&h=200&f=face')"> | |
| </div> | |
| </div> | |
| <div class="avatar-name">Mihailo Škorić</div> | |
| <div class="avatar-handle">@procesaur</div> | |
| </a> | |
| </div> | |
| <div class="inline-flex flex-col avatar-cont"> | |
| <div class="avatar-title">Računarski resursi</div> | |
| <a href="https://tesla.rgf.bg.ac.rs"> | |
| <div class="flex"> | |
| <div class="avatar-cover" | |
| style="background-image: url(https://www.ai.gov.rs/img/logo_60x120-2.png)"> | |
| </div> | |
| </div> | |
| <div class="avatar-name">Nacionalna AI platforma</div> | |
| <div class="avatar-handle">ai.gov.rs</div> | |
| </a> | |
| </div> | |
| <div class="inline-flex flex-col avatar-cont"> | |
| <div class="avatar-title">Finansiranje</div> | |
| <a href="https://fondzanauku.gov.rs/"> | |
| <div class="flex"> | |
| <div class="avatar-cover" | |
| style="background-image: url(https://fondzanauku.gov.rs/wp-content/uploads/2019/04/FZN-logo-primary-light-1170x396.png)"> | |
| </div> | |
| </div> | |
| <div class="avatar-name">Fond za Nauku</div> | |
| <div class="avatar-handle">@fondzanauku_rs</div> | |
| </a> | |
| </div> | |
| <div class="inline-flex flex-col avatar-cont"> | |
| <div class="avatar-title">Projekat</div> | |
| <a href="https://tesla.rgf.bg.ac.rs/"> | |
| <div class="flex"> | |
| <div class="avatar-cover" | |
| style="background-image: url(https://cdn-avatars.huggingface.co/v1/production/uploads/63bc254fb8c61b8aa496a39b/TfM_-sc8-b34ddfhHBGTA.png)"> | |
| </div> | |
| </div> | |
| <div class="avatar-name">TESLA</div> | |
| <div class="avatar-handle">@te-sla</div> | |
| </a> | |
| </div> | |
| ## Data | |
| <div style="zoom: 0.75;"> | |
| <div class="inline-flex flex-col avatar-cont"> | |
| <a href="https://huggingface.co/procesaur"> | |
| <div class="flex"> | |
| <div class="avatar-cover" | |
| style="background-image: url('https://cdn-uploads.huggingface.co/production/uploads/1673534533167-63bc254fb8c61b8aa496a39b.jpeg?w=200&h=200&f=face')"> | |
| </div> | |
| </div> | |
| </a> | |
| </div> | |
| <div class="inline-flex flex-col avatar-cont"> | |
| <a href="https://huggingface.co/te-sla"> | |
| <div class="flex"> | |
| <div class="avatar-cover" | |
| style="background-image: url(https://cdn-avatars.huggingface.co/v1/production/uploads/63bc254fb8c61b8aa496a39b/TfM_-sc8-b34ddfhHBGTA.png)"> | |
| </div> | |
| </div> | |
| </a> | |
| </div> | |
| <div class="inline-flex flex-col avatar-cont"> | |
| <a href="https://huggingface.co/HuggingFaceFW"> | |
| <div class="flex"> | |
| <div class="avatar-cover" | |
| style="background-image: url(https://cdn-avatars.huggingface.co/v1/production/uploads/62596f9e1c0a084224b93e00/1NVyAAh-WfULT4i_LWZNB.png)"> | |
| </div> | |
| </div> | |
| </a> | |
| </div> | |
| <div class="inline-flex flex-col avatar-cont"> | |
| <a href="https://huggingface.co/nampdn-ai"> | |
| <div class="flex"> | |
| <div class="avatar-cover" | |
| style="background-image: url(https://cdn-avatars.huggingface.co/v1/production/uploads/6356516f6d7fcf1bedb78345/GxQ-8Y9XJMC_Ht3WDG_HH.png)"> | |
| </div> | |
| </div> | |
| </a> | |
| </div> | |
| <div class="inline-flex flex-col avatar-cont"> | |
| <a href="https://huggingface.co/AMead10"> | |
| <div class="flex"> | |
| <div class="avatar-cover" | |
| style="background-image: url(https://cdn-avatars.huggingface.co/v1/production/uploads/1661193857017-noauth.png)"> | |
| </div> | |
| </div> | |
| </a> | |
| </div> | |
| <div class="inline-flex flex-col avatar-cont"> | |
| <a href="https://huggingface.co/vikp"> | |
| <div class="flex"> | |
| <div class="avatar-cover" | |
| style="background-image: url(https://huggingface.co/avatars/aa451af6db149ce1826ff40ced7fd395.svg)"> | |
| </div> | |
| </div> | |
| </a> | |
| </div> | |
| <div class="inline-flex flex-col avatar-cont"> | |
| <a href="https://huggingface.co/jerteh"> | |
| <div class="flex"> | |
| <div class="avatar-cover" | |
| style="background-image: url(https://cdn-avatars.huggingface.co/v1/production/uploads/1673601491672-63bc254fb8c61b8aa496a39b.png)"> | |
| </div> | |
| </div> | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| ## Cit. | |
| ```bibtex | |
| ``` | |
| <br/> | |
| <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> | |
| <table style="width:100%;height:100%"> | |
| <tr style="width:100%;height:100%"> | |
| <td width=50%> | |
| <p>Истраживање jе спроведено уз подршку Фонда за науку Републике Србиjе, #7276, Text Embeddings – Serbian Language Applications – TESLA</p> | |
| </td> | |
| <td> | |
| <p>This research was supported by the Science Fund of the Republic of Serbia, #7276, Text Embeddings - Serbian Language Applications - TESLA</p> | |
| </td> | |
| </tr> | |
| </table> | |
| <style> | |
| .ffeat: { | |
| color:red | |
| } | |
| .cover { | |
| width: 100%; | |
| margin-bottom: 5pt | |
| } | |
| .highlight-container, .highlight { | |
| position: relative; | |
| text-decoration:none | |
| } | |
| .highlight-container { | |
| display: inline-block; | |
| } | |
| .avatar-cont { | |
| line-height: 1.5; | |
| padding-right:50px; | |
| } | |
| .avatar-title{ | |
| text-align: center; | |
| margin-top: 3px; | |
| font-size: 16px; | |
| font-weight: 800; | |
| } | |
| .avatar-name{ | |
| text-align: center; | |
| font-size: 16px; | |
| font-weight: 800; | |
| } | |
| .avatar-handle{ | |
| text-align: center; | |
| font-size: 14px; | |
| } | |
| .avatar-cover{ | |
| display:DISPLAY_1; | |
| margin-left: auto; | |
| margin-right: auto; | |
| width: 92px; | |
| height:92px; | |
| border-radius: 50%; | |
| background-position: center; | |
| background-size: contain; | |
| background-repeat: no-repeat; | |
| } | |
| .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> |