Instructions to use mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use mehmettozlu/Turkish-Llama-3.1-8B-Instruct-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 mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf mehmettozlu/Turkish-Llama-3.1-8B-Instruct-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 mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf mehmettozlu/Turkish-Llama-3.1-8B-Instruct-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 mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF with Ollama:
ollama run hf.co/mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF:Q4_K_M
- Lemonade
How to use mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Turkish-Llama-3.1-8B-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use mehmettozlu/Turkish-Llama-3.1-8B-Instruct-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 mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF:Q4_K_M
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 mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF:Q4_K_M
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 "mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF:Q4_K_M" \ --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"
๐น๐ท Turkish Llama-3.1-8B-Instruct (GGUF)
This repository contains the GGUF formatted version of the Meta-Llama-3.1-8B-Instruct model, which has been fine-tuned on a Turkish instruction dataset using Unsloth.
The model is optimized to act as a highly capable Turkish AI assistant running locally and 100% offline via llama.cpp, Ollama, and LM Studio.
๐พ Available GGUF Files and System Requirements
We provide multiple quantization options. The q4_k_m version is highly recommended for consumer hardware:
| File Name | Size | Recommended RAM | Description |
|---|---|---|---|
*q4_k_m.gguf |
~4.9 GB | 8 GB | ๐ฅ The Golden Standard. Offers the best balance between inference speed and model intelligence. Ideal for running on standard consumer hardware. |
*q5_k_m.gguf |
~5.7 GB | 10 GB | Higher quality with a slight trade-off in generation speed. |
*q8_0.gguf |
~8.5 GB | 12 GB | Near-lossless original quality. Requires more RAM/VRAM. |
๐ Model Performance Benchmarks (LLM-as-a-Judge)
This model has been tested under identical conditions alongside other popular Turkish GGUF models and evaluated via an LLM-as-a-Judge benchmark to measure Turkish language proficiency, instruction-following capabilities, and coding performance.
๐ Comparison Table
| Model | Parameters | Geography (10) | Email Formatting (10) | Coding (10) | Total | Performance Summary |
|---|---|---|---|---|---|---|
| Qwen-2.5-Instruct | 7B | 4.0 | 8.5 | 10.0 | 22.5 / 30 | Most Balanced: Flawless Python code, fluent Turkish, and high instruction adherence. Minor hallucination tendencies on local geographical data. |
| Llama-3.1-Instruct | 8B | 0.5 | 0.0 | 5.0 | 5.5 / 30 | Partial Success: Strong algorithmic background (generates working code), but suffers from severe token repetition and looping on text tasks. |
| Mistral-NeMo-Instruct | 12B | 2.0 | 2.0 | 1.0 | 5.0 / 30 | Weak Instruction Following: While grammar is readable, it lacks task orientation (generates a list instead of code, fails to formalize casual tone). |
| Gemma-2-IT | 9B | 0.0 | 0.0 | 0.0 | 0.0 / 30 | Format Incompatibility: Due to special token structures and quantization sensitivity, it fails to produce meaningful output and enters a repetition loop. |
๐ฌ Prompt Template (Llama 3.1 Format)
Llama 3.1 uses a specific token structure for chat completions (<|start_header_id|> and <|eot_id|>). To prevent hallucinations and get the best performance, you must use the following standard structure:
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
Sen yardฤฑmsever bir Tรผrkรงe asistansฤฑn.<|eot_id|><|start_header_id|>user<|end_header_id|>
[Write your prompt here]<|eot_id|><|start_header_id|>assistant<|end_header_id|>
๐ How to Run the Model
You can run this model locally with complete privacy and zero internet connection required.
Option 1: Using Python (llama-cpp-python)
- Install the library via pip:
pip install llama-cpp-python
- Download model from Hugging Face:
wget -O Turkish-Llama-3.1-8B-Instruct-q4_k_m.gguf [https://huggingface.co/mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF/resolve/main/Turkish-Llama-3.1-8B-Instruct-q4_k_m.gguf](https://huggingface.co/mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF/resolve/main/Turkish-Llama-3.1-8B-Instruct-q4_k_m.gguf)
- Create a Python script (run.py):
from llama_cpp import Llama
llm = Llama(
model_path="./Turkish-Llama-3.1-8B-Instruct-q4_k_m.gguf",
n_ctx=4096, # Context window size
n_gpu_layers=-1 # Offload all layers to GPU
)
response = llm.create_chat_completion(
messages=[
{"role": "system", "content": "Sen yardฤฑmsever bir Tรผrkรงe asistansฤฑn."},
{"role": "user", "content": "Yapay zeka modellerinin nasฤฑl eฤitildiฤini kฤฑsaca aรงฤฑklar mฤฑsฤฑn?"}
]
)
print(response["choices"][0]["message"]["content"])
Option 2: Using LM Studio (Easiest - GUI)
- Download and install LM Studio.
- In the search bar, type mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF.
- Download the q4_k_m.gguf file.
- Navigate to the "Chat" tab, ensure the prompt format is set to "Llama 3", and start chatting in Turkish.
Option 3: Using Ollama (For Developers)
Create a text file named Modelfile (no extension) and paste the following content:
FROM hf.co/mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF/Turkish-Llama-3.1-8B-Instruct-q4_k_m.gguf
TEMPLATE """{{ if .System }}<|start_header_id|>system<|end_header_id|>
{{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|>
{{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|>
"""
SYSTEM """Sen yardฤฑmsever bir Tรผrkรงe asistansฤฑn."""
PARAMETER stop "<|start_header_id|>"
PARAMETER stop "<|end_header_id|>"
PARAMETER stop "<|eot_id|>"
PARAMETER stop "<|eom_id|>"
Build and run the model:
ollama create turkish-llama-8b -f Modelfile
ollama run turkish-llama-8b
- Downloads last month
- 533
4-bit
5-bit
8-bit
16-bit
Model tree for mehmettozlu/Turkish-Llama-3.1-8B-Instruct-GGUF
Base model
meta-llama/Llama-3.1-8B