Instructions to use icecubetr/Kumru-2B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use icecubetr/Kumru-2B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="icecubetr/Kumru-2B-GGUF", filename="kumru-2b-F16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use icecubetr/Kumru-2B-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf icecubetr/Kumru-2B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf icecubetr/Kumru-2B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf icecubetr/Kumru-2B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf icecubetr/Kumru-2B-GGUF:Q4_K_M
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 icecubetr/Kumru-2B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf icecubetr/Kumru-2B-GGUF:Q4_K_M
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 icecubetr/Kumru-2B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf icecubetr/Kumru-2B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/icecubetr/Kumru-2B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use icecubetr/Kumru-2B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "icecubetr/Kumru-2B-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": "icecubetr/Kumru-2B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/icecubetr/Kumru-2B-GGUF:Q4_K_M
- Ollama
How to use icecubetr/Kumru-2B-GGUF with Ollama:
ollama run hf.co/icecubetr/Kumru-2B-GGUF:Q4_K_M
- Unsloth Studio new
How to use icecubetr/Kumru-2B-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 icecubetr/Kumru-2B-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 icecubetr/Kumru-2B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for icecubetr/Kumru-2B-GGUF to start chatting
- Docker Model Runner
How to use icecubetr/Kumru-2B-GGUF with Docker Model Runner:
docker model run hf.co/icecubetr/Kumru-2B-GGUF:Q4_K_M
- Lemonade
How to use icecubetr/Kumru-2B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull icecubetr/Kumru-2B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Kumru-2B-GGUF-Q4_K_M
List all available models
lemonade list
Kumru-2B Details
Model Information
Kumru-2B is the lightweight, open-source version of Kumru LLM, developed for Turkish from scratch by VNGRS.
- It is pre-trained on a cleaned, deduplicated corpora of 500 GB for 300B tokens, and supervised fine-tuned on 1M examples.
- It comes with a modern tokenizer developed for Turkish, supporting code, math and chat template.
- Kumru has a native context length of 8,192 tokens by default.
- This is the instruct fine-tuned version.
- Pre-trained Base version is here
Try the demo of 7B version here.
Use
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "vngrs-ai/Kumru-2B"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype="auto", device_map="auto")
def generate_response(query):
messages = [
{'role': 'system', 'content': 'Adın Kumru. VNGRS tarafından Türkçe için sıfırdan eğitilmiş bir dil modelisin.'},
{'role': 'user', 'content': query}
]
model_inputs = tokenizer.apply_chat_template(messages, return_tensors='pt', add_generation_prompt=True).to(model.device)
model_outputs = model.generate(model_inputs, max_new_tokens=512, do_sample=True, top_p=0.9, temperature=0.7, repetition_penalty=1.1)
output_tokens = model_outputs[0].cpu().detach().numpy().tolist()
generated_tokens = output_tokens[model_inputs[0].shape[0]:]
response = tokenizer.decode(generated_tokens, skip_special_tokens=True)
return response
query = "Efes antik kentinin önemi nedir?"
response = generate_response(query)
print(response)
Evaluation Results
Both Kumru-7B and Kumru-2B are evaluated on Cetvel benchmark.
We observe that Kumru overall surpasses significantly larger models such as LLaMA-3.3–70B, Gemma-3–27B, Qwen-2–72B and Aya-32B. It excels at tasks related to the nuances of the Turkish language, such as grammatical error correction and text summarization.
Tokenizer Efficiency
Kumru tokenizer is a modern BPE tokenizer with a vocabulary size of 50,176, pre-tokenization regex and a chat template.
Other open-source models spend between 38% to 98% more tokens than Kumru while still having larger vocabulary sizes. This means Kumru can represent more texts in its context length and process faster and cheaper. Although the native context length of Kumru is 8,192, its effective context length can be considered between 1128 and 1618, compared to other multilingual models out there. This shows the efficiency of having a native Turkish tokenizer in terms of representation power, speed and cost.
Citation
@misc{turker2025kumru,
title={Kumru},
author={Turker, Meliksah and Ari, Erdi and Han, Aydin},
year={2025},
url={https://huggingface.co/vngrs-ai/Kumru-2B}
}
- Downloads last month
- 148
2-bit
3-bit
4-bit
6-bit
8-bit
16-bit
Model tree for icecubetr/Kumru-2B-GGUF
Base model
vngrs-ai/Kumru-2B