How to use from the
Use from the
llama-cpp-python library
# !pip install llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
	repo_id="batiai/Hy3-GGUF",
	filename="",
)
llm.create_chat_completion(
	messages = [
		{
			"role": "user",
			"content": "What is the capital of France?"
		}
	]
)

Hy3 (Hunyuan 3.0) GGUF — Quantized by BatiAI

BatiFlow tencent Apache 2.0 MoE

A frontier coding & agent model that runs on your desk. Q4_K_M / IQ3_XXS GGUF of tencent/Hy3 (Hunyuan 3.0 — 295B total, 21B active). Quantized directly from official Tencent BF16 weights by BatiAI — code+multilingual‑calibrated imatrix, MTP‑pruned, BatiAI‑signed.


⚡ Why Hy3?

The smallest of the 2026 frontier MoEs — 295B that thinks like a giant but runs at 21B speed.

Hy3 GLM‑5.2 DeepSeek‑V4
Total params 295B 753B ~1.6T
Active / token 21B 40B ~37B
Fits a 128GB Mac? ✅ (IQ3_XXS)

Benchmarks — competitive with models 2–5× its size:

SWE‑Bench Verified SWE‑Bench Pro GPQA Diamond BrowseComp
78.0 57.9 90.4 84.2

Source: Tencent Hunyuan 3.0 official release (295B‑A21B base). These are base‑model (BF16) figures; the IQ3_XXS / Q4_K_M quants in this repo were not separately benchmarked, so expect some low‑bit degradation from these numbers.

  • 🛠️ Production‑grade tool‑calling — dedicated parsers, <4% variance across agent scaffolds. Built for agent pipelines.
  • 🧠 256K context, 192 experts (top‑8) + shared expert, 80 layers, GQA, reasoning‑effort modes.
  • 🔓 Apache 2.0 — and the official 3.0 release dropped the geo‑restriction (Korea / EU / UK now cleared). Commercial use, fine‑tune, redistribute freely.

📦 Quantizations

Quant Size Min RAM Best for Quality
Q4_K_M 166 GB (4 shards) 192 GB 256GB Mac Studio / server Cleanest — recommended when RAM allows
IQ3_XXS 106 GB (3 shards) 128 GB 128GB Mac Studio ✅ Great — fits a 128GB Mac (raise the Metal wired limit; ~106 GiB of weights leaves modest context room)

Both are built directly from the official BF16, quantized with a diverse code + EN + KO + ZH imatrix, and have the MTP (multi‑token‑prediction) head pruned (--prune-layers 80) — the speculative head gives no benefit on Apple Metal and isn't imatrix‑covered, so a clean 80‑layer text model is the right target.

✅ Verified (this build). A captured greedy Q4_K_M run produced this exact, correct binary_search (verify log hy3-q4-verify.log shipped in this repo):

# prompt: def binary_search(arr, target):
    lo, hi = 0, len(arr) - 1
    while lo <= hi:
        mid = (lo + hi) // 2
        if arr[mid] == target:
            return mid
        elif arr[mid] < target: lo = mid + 1
        else: hi = mid - 1
    return -1

The captured run also appended a correct test harness, but with a Chinese code comment (# 测试) — exactly the low‑bit zh mixing flagged below. Logic was correct; use Q4_K_M for the cleanest output.

⚠️ Positioning — read this. Hy3's strength is frontier coding / reasoning / agentic tool‑calling (EN/ZH). It is not a Korean‑specialized model (Tencent origin, no published Korean benchmark); lower‑bit quants can show occasional zh/en token mixing on Korean — use Q4_K_M for the cleanest Korean. For Korean‑first chat/STT on 16GB Macs, use batiai/qwen3.6‑27b. Hy3 is a frontier / high‑RAM tier model (like Kimi K2.6, GLM‑5.1, DeepSeek‑V4) — 128GB+ Apple Silicon or a workstation/server only.


🚀 Usage (llama.cpp)

⚙️ Build: Hy3 (hy_v3 arch) needs hy_v3 support — mainline merge pending (ggml‑org/llama.cpp#25395); build from that PR for now. Ollama support follows the mainline merge.

⚠️ Chat template: the stock Hy3 Jinja template uses .format() calls llama.cpp rejects. This repo ships a fixed template (Hy3-chat_template.jinja) — pass it with --jinja.

# 1) download — sharded GGUF (llama.cpp auto‑loads all shards from the first one)
#    128GB Mac → IQ3_XXS   |   256GB / server → Q4_K_M
hf download batiai/Hy3-GGUF \
  "Hy3-IQ3_XXS-*.gguf" Hy3-chat_template.jinja --local-dir ./hy3

# 2) chat (Apple Silicon Metal)
./llama-cli -m ./hy3/Hy3-IQ3_XXS-00001-of-00003.gguf -ngl 99 -c 8192 \
  --jinja --chat-template-file ./hy3/Hy3-chat_template.jinja \
  -p "Refactor this function and explain the change."

# raw completion (no chat template): add -no-cnv

Hy3-imatrix.dat (the calibration matrix used) is included for transparency / re‑quantization.


✨ What BatiAI did

  • Direct from official Tencent BF16 — never a re‑quant of someone else's GGUF.
  • Diverse imatrix (code + English + Korean + Chinese) for balanced multilingual + coding fidelity.
  • MTP head pruned + chat template fixed so it actually runs in llama.cpp.
  • Verified: load ✅ · coding ✅ · Korean ✅ · MoE routing ✅ — BatiAI metadata‑signed.

📜 License — Apache 2.0

Fully permissive: commercial use, modification, redistribution — no geographic restriction (Korea / EU / UK cleared in the official Hunyuan 3.0 release). Base model © Tencent; quantized weights redistributed under Apache 2.0.

🔗 Source & citation

@misc{batiai-hy3-gguf-2026,
  title  = {Hy3 (Hunyuan 3.0) GGUF — code+multilingual calibrated quantization},
  author = {BatiAI},
  year   = {2026},
  publisher = {Hugging Face},
  url    = {https://huggingface.co/batiai/Hy3-GGUF}
}

BatiAI · on‑device frontier AI · https://flow.bati.ai

Downloads last month
227
GGUF
Model size
295B params
Architecture
hy_v3
Hardware compatibility
Log In to add your hardware

3-bit

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for batiai/Hy3-GGUF

Base model

tencent/Hy3
Quantized
(60)
this model