Instructions to use ogulcanakca/qwen2.5-3b-instruct-dpo-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 ogulcanakca/qwen2.5-3b-instruct-dpo-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 ogulcanakca/qwen2.5-3b-instruct-dpo-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf ogulcanakca/qwen2.5-3b-instruct-dpo-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 ogulcanakca/qwen2.5-3b-instruct-dpo-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf ogulcanakca/qwen2.5-3b-instruct-dpo-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 ogulcanakca/qwen2.5-3b-instruct-dpo-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf ogulcanakca/qwen2.5-3b-instruct-dpo-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 ogulcanakca/qwen2.5-3b-instruct-dpo-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf ogulcanakca/qwen2.5-3b-instruct-dpo-gguf:Q4_K_M
Use Docker
docker model run hf.co/ogulcanakca/qwen2.5-3b-instruct-dpo-gguf:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use ogulcanakca/qwen2.5-3b-instruct-dpo-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ogulcanakca/qwen2.5-3b-instruct-dpo-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": "ogulcanakca/qwen2.5-3b-instruct-dpo-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ogulcanakca/qwen2.5-3b-instruct-dpo-gguf:Q4_K_M
- Ollama
How to use ogulcanakca/qwen2.5-3b-instruct-dpo-gguf with Ollama:
ollama run hf.co/ogulcanakca/qwen2.5-3b-instruct-dpo-gguf:Q4_K_M
- Unsloth Desktop
- Pi
How to use ogulcanakca/qwen2.5-3b-instruct-dpo-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ogulcanakca/qwen2.5-3b-instruct-dpo-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": "ogulcanakca/qwen2.5-3b-instruct-dpo-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use ogulcanakca/qwen2.5-3b-instruct-dpo-gguf with Docker Model Runner:
docker model run hf.co/ogulcanakca/qwen2.5-3b-instruct-dpo-gguf:Q4_K_M
- Lemonade
How to use ogulcanakca/qwen2.5-3b-instruct-dpo-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ogulcanakca/qwen2.5-3b-instruct-dpo-gguf:Q4_K_M
Run and chat with the model
lemonade run user.qwen2.5-3b-instruct-dpo-gguf-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use ogulcanakca/qwen2.5-3b-instruct-dpo-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 ogulcanakca/qwen2.5-3b-instruct-dpo-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 ogulcanakca/qwen2.5-3b-instruct-dpo-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ogulcanakca/qwen2.5-3b-instruct-dpo-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ogulcanakca/qwen2.5-3b-instruct-dpo-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 "ogulcanakca/qwen2.5-3b-instruct-dpo-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"
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 "ogulcanakca/qwen2.5-3b-instruct-dpo-gguf:" \
--custom-provider-id llama-cpp \
--custom-compatibility openai \
--custom-text-input \
--accept-risk \
--skip-healthRun OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"Model Card for qwen2.5-3b-instruct-dpo-gguf
Available Quantizations
This repository provides the model in the following GGUF quantization formats generated using llama.cpp (quantize):
| Quantization Type | File Name | Size | llama-bench Prompt Processing (pp 128 tokens, t/s) |
llama-bench Token Generation (tg 256 tokens, t/s) |
Notes |
|---|---|---|---|---|---|
| F16 | qwen2.5-3b-instruct-dpo-f16.gguf |
5.75 GiB | 3.76 ± 1.63 | 17.25 ± 10.40 | Full-precision baseline. Highest quality but slowest inference; best for validation or re-quantization reference. |
| Q4_K_M | qwen2.5-3b-instruct-dpo-Q4_K_M.gguf |
1.79 GiB | 15.47 ± 0.74 | 10.34 ± 2.44 | Recommended balance of size, speed, and quality. |
| Q5_K_S | qwen2.5-3b-instruct-dpo-Q5_K_S.gguf |
2.02 GiB | 26.52 ± 1.14 | 14.30 ± 8.52 | Slightly higher quality than Q4_K_M. |
| Q8_0 | qwen2.5-3b-instruct-dpo-Q8_0.gguf |
3.05 GiB | 34.77 ± 1.74 | 8.83 ± 0.17 | High-fidelity quantization; larger size, moderate generation speed. |
| IQ3_S | qwen2.5-3b-instruct-dpo-IQ3_S.gguf |
1.35 GiB | 14.14 ± 16.83 | 6.05 ± 0.82 | Smallest footprint, but noticeable quality loss. |
Benchmark performed on CPU (details omitted) using 4 threads (-t 4), processing 128 prompt tokens (-p 128), and generating 256 tokens (-n 256). Your results may vary depending on hardware.
Model Creation
These GGUF files were created through the following steps:
- Base Model: Started with
Qwen/Qwen2.5-3B-Instruct. - Adapter Application: Loaded the DPO fine-tuned LoRA adapter ogulcanakca/qwen2.5-3b-instruct-dpo-orca.
- Merging: Merged the adapter weights into the base model using
peft'smerge_and_unload()function to create a full fine-tuned model intransformersformat. - Conversion to GGUF (f16): Converted the merged model to a 16-bit float GGUF file using
llama.cpp'sconvert_hf_to_gguf.pyscript. - Quantization: Quantized the f16 GGUF file into the various formats (Q4_K_M, Q5_K_S, Q8_0, IQ3_S) using
llama.cpp'sllama-quantizetool.
The llama.cpp build used was dd62dcfa (6828).
Evaluation
The quality of the underlying fine-tuned model (ogulcanakca/qwen2.5-3b-instruct-dpo-orca) was evaluated using an LLM-as-a-Judge (Gemini 2.0 Flash Lite) approach on a filtered subset of the databricks/databricks-dolly-15k dataset.
Key Findings:
- The DPO model was preferred over the base model in approximately 93% of head-to-head comparisons.
- The DPO model showed slightly improved Usefulness scores compared to the base model.
For detailed evaluation results, please refer to the Adapter Model Card.
Note: Quantization can potentially lead to a slight degradation in model performance compared to the original f16 or adapter versions, especially for lower-bit quantizations like IQ3_S.
Bias, Risks, and Limitations
This model inherits the biases, risks, and limitations of the base Qwen2.5-3B model and the DPO fine-tuning process. Quantization might introduce additional minor performance differences. Please refer to the Adapter Model Card for a detailed discussion. Users should be aware of potential hallucinations, biases, and the model's limitations, especially when used in sensitive applications.
- Downloads last month
- 240
3-bit
4-bit
5-bit
8-bit
16-bit
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp# Start a local OpenAI-compatible server: llama serve -hf ogulcanakca/qwen2.5-3b-instruct-dpo-gguf: