tbilisi-ai-lab/kona-dpo-mix-387k
Viewer • Updated • 387k • 36
How to use tbilisi-ai-lab/kona2-12B with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="tbilisi-ai-lab/kona2-12B")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("tbilisi-ai-lab/kona2-12B")
model = AutoModelForCausalLM.from_pretrained("tbilisi-ai-lab/kona2-12B")
messages = [
{"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.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=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))How to use tbilisi-ai-lab/kona2-12B with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "tbilisi-ai-lab/kona2-12B"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "tbilisi-ai-lab/kona2-12B",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/tbilisi-ai-lab/kona2-12B
How to use tbilisi-ai-lab/kona2-12B with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "tbilisi-ai-lab/kona2-12B" \
--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": "tbilisi-ai-lab/kona2-12B",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'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 "tbilisi-ai-lab/kona2-12B" \
--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": "tbilisi-ai-lab/kona2-12B",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use tbilisi-ai-lab/kona2-12B with Docker Model Runner:
docker model run hf.co/tbilisi-ai-lab/kona2-12B
Kona2-12B is the flagship 12-billion parameter Georgian language model from Tbilisi AI Lab. Built on Kona2-12B-Instruct and aligned using Direct Preference Optimization (DPO), it delivers higher quality, more helpful, and better-aligned responses.
This is the recommended model for production use.
| Property | Value |
|---|---|
| Parameters | 12B |
| Architecture | Mistral (Transformer) |
| Context Length | 32K tokens |
| Languages | Georgian (ka), English (en), other (limited) |
| Training | Direct Preference Optimization (DPO) |
| Preference Pairs | 387,319 |
| Function Calling | Yes (Hermes format) |
| Base Model | kona2-12B-Instruct |
mistralai/Mistral-Nemo-Base-2407
│
├── Expand Vocabulary (+20K Georgian tokens)
│
└── kona2-12B-Base (continue pre-training, ~30B tokens)
│
└── kona2-12B-Instruct (SFT on ~2.8M instructions)
│
└── kona2-12B (DPO on 387K preference pairs) ← YOU ARE HERE
| Dataset | Pairs | Description |
|---|---|---|
| kona-dpo-mix-387k | 387,319 | Mixed preference pairs |
DPO Pair Sources:
| Source | Pairs | Strategy |
|---|---|---|
| Instruction Augmentation (Sonnet 3.5) | ~29K | Claude 3.5 Sonnet as "chosen", base model as "rejected" |
| Function Calling (tools+call) | ~5K | Correct tool calls vs text responses |
| Function Calling (tools, no call) | ~5K | Correct text vs incorrect tool calls |
| Function Calling (no tools) | ~5K | Appropriate responses without tools |
| Hermes Chats | ~17K | High-quality conversation pairs |
| General Instructions | ~320K | Mixed instruction following |
The model was trained on 4 distinct function-calling scenarios:
| Scenario | Tools Available | Should Call | Chosen | Rejected |
|---|---|---|---|---|
system_tools_yes_call_yes |
Yes | Yes | Tool call | Text response |
system_tools_yes_call_no |
Yes | No | Text response | Tool call |
tools_yes_call_yes |
Yes | Yes | Tool call | Text response |
tools_yes_call_no |
Yes | No | Text response | Tool call |
pip install transformers torch accelerate
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"tbilisi-ai-lab/kona2-12B",
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("tbilisi-ai-lab/kona2-12B")
messages = [
{"role": "system", "content": "You are a helpful, harmless, and honest assistant."},
{"role": "user", "content": "დამეხმარე პითონზე ფუნქციის დაწერაში, რომელიც ითვლის ფაქტორიალს."}
]
inputs = tokenizer.apply_chat_template(
messages,
return_tensors="pt",
add_generation_prompt=True
).to(model.device)
outputs = model.generate(
inputs,
max_new_tokens=512,
temperature=0.7,
do_sample=True
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
| Model | Stage | Use Case |
|---|---|---|
| kona2-12B-Base | Pre-training | Further fine-tuning |
| kona2-12B-Instruct | SFT | If DPO behavior is not desired |
| kona2-small-3.8B | All | Resource-constrained environments |
@misc{tbilisi2025kona2,
title = {Kona2-12B: A DPO-Aligned Georgian Language Model},
author = {Tbilisi AI Lab Team},
year = {2025},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/tbilisi-ai-lab/kona2-12B}}
}
This model is released under the Apache 2.0 License.
Base model
mistralai/Mistral-Nemo-Base-2407