Instructions to use KikoCis/DeepHat-V1-7B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use KikoCis/DeepHat-V1-7B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="KikoCis/DeepHat-V1-7B-GGUF", filename="deephat-v1-7b-IQ4_XS.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use KikoCis/DeepHat-V1-7B-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 KikoCis/DeepHat-V1-7B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf KikoCis/DeepHat-V1-7B-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 KikoCis/DeepHat-V1-7B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf KikoCis/DeepHat-V1-7B-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 KikoCis/DeepHat-V1-7B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf KikoCis/DeepHat-V1-7B-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 KikoCis/DeepHat-V1-7B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf KikoCis/DeepHat-V1-7B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/KikoCis/DeepHat-V1-7B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use KikoCis/DeepHat-V1-7B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KikoCis/DeepHat-V1-7B-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": "KikoCis/DeepHat-V1-7B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/KikoCis/DeepHat-V1-7B-GGUF:Q4_K_M
- Ollama
How to use KikoCis/DeepHat-V1-7B-GGUF with Ollama:
ollama run hf.co/KikoCis/DeepHat-V1-7B-GGUF:Q4_K_M
- Unsloth Studio
How to use KikoCis/DeepHat-V1-7B-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 KikoCis/DeepHat-V1-7B-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 KikoCis/DeepHat-V1-7B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for KikoCis/DeepHat-V1-7B-GGUF to start chatting
- Pi
How to use KikoCis/DeepHat-V1-7B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf KikoCis/DeepHat-V1-7B-GGUF:Q4_K_M
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": "KikoCis/DeepHat-V1-7B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use KikoCis/DeepHat-V1-7B-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 KikoCis/DeepHat-V1-7B-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 KikoCis/DeepHat-V1-7B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use KikoCis/DeepHat-V1-7B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf KikoCis/DeepHat-V1-7B-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 "KikoCis/DeepHat-V1-7B-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"
- Docker Model Runner
How to use KikoCis/DeepHat-V1-7B-GGUF with Docker Model Runner:
docker model run hf.co/KikoCis/DeepHat-V1-7B-GGUF:Q4_K_M
- Lemonade
How to use KikoCis/DeepHat-V1-7B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull KikoCis/DeepHat-V1-7B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.DeepHat-V1-7B-GGUF-Q4_K_M
List all available models
lemonade list

โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ DeepHat-V1-7B ยท GGUF โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ base DeepHat/DeepHat-V1-7B arch qwen2 (Qwen2.5-Coder-7B ft) โ
โ domain cybersecurity ยท devops ยท code โ
โ ladder Q3_K_M โ Q8_0 + IQ4_XS imatrix โ (code+general) โ
โ fidelity Q8 KLD 0.0019 ยท top-1 99.8% vs BF16 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
DeepHat-V1-7B โ GGUF quant ladder
A full, imatrix-calibrated GGUF ladder of DeepHat/DeepHat-V1-7B โ a Qwen2.5-Coder-7B fine-tune focused on cybersecurity, devops and code. This is a faithful re-quantization (all credit for the model goes to the DeepHat team); what's added here is the imatrix ladder, an objective KLD fidelity table vs the BF16 reference, and an honest evaluation.
First-mover note: at pack time no GGUF of this model existed. Quants Q3_K_M โ Q8_0 + IQ4_XS, each with an importance matrix so the low-bit tiers stay sharp.
โ Recommended files
| Use case | File | Why |
|---|---|---|
| Best all-round (16 GB RAM) | deephat-v1-7b-Q4_K_M.gguf |
safe default, 98.97% top-1 vs BF16 |
| Quality-first (24 GB+) | deephat-v1-7b-Q6_K.gguf |
near-lossless, 99.55% top-1 |
| Smallest usable (8โ12 GB) | deephat-v1-7b-Q3_K_M.gguf |
still 98.0% top-1 |
| Compact + sharp | deephat-v1-7b-IQ4_XS.gguf |
imatrix IQ, 4.2 GB |
| Archival / eval | deephat-v1-7b-Q8_0.gguf |
effectively lossless (KLD 0.0019) |
๐ฆ Files
| Quant | Bits (BPW) | Size |
|---|---|---|
Q3_K_M |
3-bit K | 3.81 GB |
IQ4_XS |
4-bit IQ | 4.22 GB |
Q4_K_M |
4-bit K | 4.68 GB |
Q5_K_M |
5-bit K | 5.44 GB |
Q6_K |
6-bit K | 6.25 GB |
Q8_0 |
8.50 | 8.10 GB |
๐ Metrics โ fidelity vs BF16 reference
Every tier measured against the unquantized BF16 GGUF (KL-divergence + PPL ratio + Top-1 agreement, general-English eval, c=2048).
| Quant | PPL(Q)/PPL(bf16) | Max KLD | KLD p99 | Top-1 match |
|---|---|---|---|---|
| Q8_0 | 1.000004 | 0.0019 | 0.0005 | 99.82% |
| Q6_K | 1.000340 | 0.0340 | 0.0079 | 99.55% |
| Q5_K_M | 1.000881 | 0.0624 | 0.018 | 99.50% |
| Q4_K_M | 0.998457 | 0.2078 | 0.030 | 98.97% |
| IQ4_XS | 0.996500 | 0.4858 | 0.041 | 98.74% |
| Q3_K_M | 1.002918 | 0.9454 | 0.109 | 98.02% |
The quantization is clean top-to-bottom โ Q8 is effectively lossless and even Q3_K_M keeps 98% argmax agreement with BF16.
๐งฎ Will it fit?
| RAM / VRAM | Comfortable pick |
|---|---|
| 8 GB | Q3_K_M (short context) |
| 12 GB | Q4_K_M |
| 16 GB | Q5_K_M / Q6_K |
| 24 GB+ | Q8_0, long context |
7B at Q4โQ6 runs fast on a laptop GPU (Apple Silicon / consumer NVIDIA) or CPU.
๐ How to run it
llama.cpp
llama-cli -m deephat-v1-7b-Q4_K_M.gguf -ngl 99 -c 8192 \
-p "<|im_start|>user\nExplain how a SQL injection works and how to prevent it.<|im_end|>\n<|im_start|>assistant\n"
Ollama (a ready Modelfile with configurable context ships in this repo):
ollama create deephat -f deephat-8192ctx.Modelfile
ollama run deephat "Write a bash script that scans a subnet for open port 22."
Sampling: ChatML template, temperature 0.1โ0.7, top_p 0.9, top_k 20, stop <|im_end|>.
โ ๏ธ Good to know
- Chat template = upstream original (tool-calling preserved). These GGUFs embed DeepHat's original
Qwen tool-calling template (the XLAM/Qwen
toolsformat), so native function-calling works just like the source model. That template uses the Jinjatojsonfilter, which older ollama / llama.cpp builds cannot parse (they error "Unknown (built-in) filter 'tojson'"). If you hit that: update your runtime (recent ollama/llama.cpp handle it), or override the template with the plain-ChatMLscripts/chatml.jinjashipped here (--chat-templatein llama.cpp) โ that variant loads everywhere but drops native tool-calling. - Domain model. DeepHat is tuned for security / devops / code, not general chit-chat or general software engineering. See the eval below.
๐งช Evaluation methodology
- Fidelity gate (passed): the KLD/PPL/Top-1 table above โ every tier is faithful to BF16 (Q8 lossless).
- Agentic probe (reported honestly):
swe-mixโ 30 SWE-bench Verified instances (6 continuity anchors + 24 discriminating, 10 repos; spec inswe_mix.json), run through Claude Code + agent-bridge.js โ Ollama servingQ6_K, tool-call formatopenhands,temperature 0.1, in Docker. Result:resolved = 0 / 30. The model did emit tool calls on 22/30 instances but ran very short episodes (2โ8 messages) โ it doesn't sustain the long multi-step agentic loop a SWE-bench solve needs. Honest caveat: (1) this is a 7B โ small models routinely score 0โ2 on SWE-bench Verified in a local agentic harness; (2) SWE-bench is general-repo software engineering (Django/astropy/sympy), which is not DeepHat's domain (cybersecurity/devops). This number measures general agentic SWE ability, not the model's security/code strengths, and it is not comparable 1:1 to the official leaderboard. Date: 2026-07-12. Small/hard probe, relative signal only.
This repo is fidelity-gated (like a non-general-SWE model release): the quant quality is proven; the SWE number is published transparently rather than hidden.
๐ Provenance & reproducibility
scripts/reproduce.shโ exact convert โ template-fix โ imatrix โ quantize commands.scripts/chatml.jinjaโ the clean chat template that replaced the upstreamtojsonone.- imatrix corpus: ~793 KB, general text + Python/Rust/C code (386 chunks,
c=512). reports/artifact-sha256sums.txtโ SHA-256 of every GGUF.metrics/quant-summary-with-kld.{json,csv}โ the table above, machine-readable.swe_mix.jsonโ the 30-instance probe spec.
๐๏ธ Changelog
- 2026-07-12 โ initial release. Ladder Q3_K_MโQ8_0 + IQ4_XS, imatrix, KLD sweep, cleaned chat template, honest SWE-mix eval.
Credit
Model: DeepHat/DeepHat-V1-7B (Apache-2.0). This repo only provides GGUF conversions + fidelity measurements. All model capability is the DeepHat team's work.
- Downloads last month
- 676
3-bit
4-bit
5-bit
6-bit
8-bit