Instructions to use jolovicdev/princip-v0.2-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jolovicdev/princip-v0.2-gguf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="jolovicdev/princip-v0.2-gguf") 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)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("jolovicdev/princip-v0.2-gguf", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use jolovicdev/princip-v0.2-gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf jolovicdev/princip-v0.2-gguf:F16 # Run inference directly in the terminal: llama cli -hf jolovicdev/princip-v0.2-gguf:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf jolovicdev/princip-v0.2-gguf:F16 # Run inference directly in the terminal: llama cli -hf jolovicdev/princip-v0.2-gguf:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf jolovicdev/princip-v0.2-gguf:F16 # Run inference directly in the terminal: ./llama-cli -hf jolovicdev/princip-v0.2-gguf:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf jolovicdev/princip-v0.2-gguf:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf jolovicdev/princip-v0.2-gguf:F16
Use Docker
docker model run hf.co/jolovicdev/princip-v0.2-gguf:F16
- LM Studio
- Jan
- vLLM
How to use jolovicdev/princip-v0.2-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jolovicdev/princip-v0.2-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jolovicdev/princip-v0.2-gguf", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/jolovicdev/princip-v0.2-gguf:F16
- SGLang
How to use jolovicdev/princip-v0.2-gguf 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 "jolovicdev/princip-v0.2-gguf" \ --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": "jolovicdev/princip-v0.2-gguf", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "jolovicdev/princip-v0.2-gguf" \ --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": "jolovicdev/princip-v0.2-gguf", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Ollama
How to use jolovicdev/princip-v0.2-gguf with Ollama:
ollama run hf.co/jolovicdev/princip-v0.2-gguf:F16
- Unsloth Studio
How to use jolovicdev/princip-v0.2-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for jolovicdev/princip-v0.2-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for jolovicdev/princip-v0.2-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for jolovicdev/princip-v0.2-gguf to start chatting
- Pi
How to use jolovicdev/princip-v0.2-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jolovicdev/princip-v0.2-gguf:F16
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "jolovicdev/princip-v0.2-gguf:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use jolovicdev/princip-v0.2-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jolovicdev/princip-v0.2-gguf:F16
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "jolovicdev/princip-v0.2-gguf:F16" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use jolovicdev/princip-v0.2-gguf with Docker Model Runner:
docker model run hf.co/jolovicdev/princip-v0.2-gguf:F16
- Lemonade
How to use jolovicdev/princip-v0.2-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull jolovicdev/princip-v0.2-gguf:F16
Run and chat with the model
lemonade run user.princip-v0.2-gguf-F16
List all available models
lemonade list
- Hermes Agent
How to use jolovicdev/princip-v0.2-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jolovicdev/princip-v0.2-gguf:F16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default jolovicdev/princip-v0.2-gguf:F16
Run Hermes
hermes
- Atomic Chat
Princip V0.2
Reads lines of Church Slavonic manuscript and translates them into Serbian. Three tasks: transcription from an image, translation from an image, and translation from text.
Languages
Source is Church Slavonic of the Russian recension, the language of the service books in current liturgical use in the Serbian Orthodox Church, together with Old Church Slavonic from the 10th-11th century canon. Target is Serbian in the register of the 1868 Daničić translation.
Serbian-recension Church Slavonic (srpskoslovenski) is not represented. See Limitations.
Tasks
| task | input | output |
|---|---|---|
i2t |
image of a single text line | transcription |
i2s |
image of a single text line | Serbian translation |
t2s |
Church Slavonic text | Serbian translation |
Trained on single-line crops, not whole pages. Segment a folio into lines first.
Usage
import torch
from transformers import AutoProcessor, AutoModelForImageTextToText
model = AutoModelForImageTextToText.from_pretrained(
"jolovicdev/princip-v0.2", dtype=torch.bfloat16, device_map="cuda"
)
processor = AutoProcessor.from_pretrained("jolovicdev/princip-v0.2")
Prompts, used verbatim:
Prevedi sledeci tekst sa staroslovenskog na srpski:\n{text}- image +
Transkribuj staroslovenski tekst sa ove slike. - image +
Prevedi tekst sa ove slike na srpski.
Close the thinking block before generating. The chat template opens one and leaves it open; if you do not close it the model writes reasoning instead of the answer.
text = processor.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True)
if text.rstrip().endswith("<think>"):
text += "\n</think>\n\n"
This applies to llama.cpp and any OpenAI-compatible server too.
Results
Held-out data, greedy decoding.
| task | metric | score |
|---|---|---|
| translation from text | chrF | 46.9 |
| translation from image | chrF | 44.8 |
| transcription, real manuscript folios | CER | 0.117 |
| transcription, rendered lines | CER | 0.023 |
On manuscripts absent from training (Codex Assemanianus, Savvina kniga) translation scores chrF 52.6, so the model generalises beyond the hands it was trained on.
Roughly 36% of rare words, mostly proper nouns, survive into the translation. The model can produce fluent Serbian that misstates the source; verify anything that matters.
Training
LoRA fine-tune of Qwen/Qwen3.5-9B, r=32, 1 epoch, bf16, on 4x RTX 5090. 96.9M trainable
parameters covering the attention and MLP projections, the vision merger, and both
embedding matrices. Data: 81k samples across the three tasks, drawn from a parallel corpus
of biblical, psalter and liturgical Church Slavonic aligned to Serbian, plus 49.7k line
images combining real folio crops with rendered lines. Images are split by folio, so no
page appears in both training and evaluation.
Sources and licensing
| source | licence |
|---|---|
| Daničić-Karadžić Serbian Bible 1868 | public domain |
| Elizabeth Bible 1757 | public domain |
| PROIEL Codex Marianus | CC BY-NC-SA 4.0 |
| TOROT (Zographensis, Psalterium Sinaiticum, Suprasliensis, Euchologium, Kiev Missal) | CC BY-NC-SA 4.0 |
| cu-books liturgical texts | MIT |
| Serbian Mineja, SPC edition (svetosavlje.org) | no explicit licence, research use |
| Codex Suprasliensis folio images (suprasliensis.obdurodon.org) | CC BY-NC-SA 3.0 |
| Menaion, Monomakh, Fedorovsk, Pomorsky fonts | SIL OFL |
The PROIEL and TOROT treebanks are non-commercial, so this model is released under CC BY-NC-SA 4.0.
Limitations
- Serbian recension is absent. Medieval Serbian manuscripts such as Miroslavljevo jevanđelje use orthographic conventions the model has not seen. Expect degraded results.
- Line crops only. Whole pages are out of distribution.
- Parchment and print only. Carved stone, epigraphy and heavily degraded surfaces are outside the training distribution.
- Glagolitic is not supported. The Old Church Slavonic sources are Glagolitic manuscripts in Cyrillic transcription; the model has not seen Glagolitic script.
- It does not reliably refuse out-of-domain input. Shown Cyrillic that is not Church Slavonic, it will usually attempt a transcription rather than decline.
- Serbian register follows the 1868 Daničić translation, not contemporary Serbian.
- Non-commercial use only.
- Downloads last month
- 3
4-bit
docker model run hf.co/jolovicdev/princip-v0.2-gguf:F16