license: other
license_name: tencent-hy-license
license_link: LICENSE
base_model:
- tencent/Hy4-flash
base_model_relation: quantized
library_name: gguf
pipeline_tag: text-generation
tags: - gguf
- llama-cpp
- quantized
- uncensored
Hy4 flash Uncensored GGUF
GGUF quants of Tencent Hy4 flash with a refusal direction removed, without the vision projector or DFly2 drafter.
HarmBench-200, thinking off: 10.5% of prompts refused at Q4_K_M; the original Q4_K_M refuses 85.0%.
Files
| Quant | Parts | Size |
|---|---|---|
| Q4_K_M | 2 | 161.2 GB |
| Q4_K_S | 2 | 155.5 GB |
| IQ4_XS-E4 | 2 | 122.6 GB |
| Q3_K_M-E4 | 2 | 114.2 GB |
| IQ3_M-E4 | 2 | 108.1 GB |
| IQ3_XXS-E4 | 2 | 100.5 GB |
| IQ2_M-E4 | 2 | 91.9 GB |
| IQ2_XXS-E4 | 2 | 83.1 GB |
Hy4-flash-Uncensored.imatrix |
1 | 809.74 MB |
How to run
Hy4-flash requires llama.cpp pull request #32517; keep both parts in one folder and pass part 1.
git clone https://github.com/ggml-org/llama.cpp && cd llama.cpp
git fetch origin pull/32517/head:hy4-flash && git checkout hy4-flash
cmake -B build -DCMAKE_BUILD_TYPE=Release # add -DGGML_CUDA=ON for NVIDIA GPUs
cmake --build build -j --target llama-cli llama-server
hf download hletrd/Hy4-flash-Uncensored-GGUF --include 'Hy4-flash-Uncensored-Q4_K_M-*.gguf' --local-dir .
./build/bin/llama-cli -m Hy4-flash-Uncensored-Q4_K_M-00001-of-00002.gguf \
--override-tensor '^per_layer_token_embd\.weight$=CPU' --load-mode mmap --lazy-mode on \
-ngl 99 --jinja -c 8192
Accuracy
Mean KL and top-1 agreement against the BF16 model on WikiText-2, chat and held-out text, and the share of HarmBench-200 and Alpaca-100 prompts refused with thinking off; original rows are from Xylolabs/Hy4-flash-GGUF.
| Quant | Size | WikiText-2 KL | top-1 | Chat KL | top-1 | Held-out KL | top-1 | HarmBench-200 refused | Alpaca-100 refused | Answers (of 5) |
|---|---|---|---|---|---|---|---|---|---|---|
| Q4_K_M | 161.2 GB | 0.2834 | 83.0% | 0.4763 | 81.9% | 0.2126 | 85.9% | 10.5% | 3.0% | 5 |
| Q4_K_S | 155.5 GB | 0.2950 | 82.7% | 0.4805 | 82.1% | 0.2174 | 85.6% | 8.5% | 1.0% | 5 |
| IQ4_XS-E4 | 122.6 GB | 0.3018 | 82.3% | 0.5077 | 81.2% | 0.2380 | 85.4% | 13.0% | 1.0% | 5 |
| Q3_K_M-E4 | 114.2 GB | 0.3797 | 80.2% | 0.6391 | 79.3% | 0.2803 | 83.4% | 11.5% | 2.0% | 5 |
| IQ3_M-E4 | 108.1 GB | 0.4525 | 77.9% | 0.6735 | 78.2% | 0.3590 | 81.2% | 8.0% | 1.0% | 5 |
| IQ3_XXS-E4 | 100.5 GB | 0.5064 | 76.9% | 0.7115 | 77.8% | 0.3869 | 80.5% | 7.5% | 1.0% | 5 |
| IQ2_M-E4 | 91.9 GB | 0.6895 | 72.6% | 0.9467 | 74.4% | 0.5155 | 77.2% | 6.5% | 1.0% | 5 |
| IQ2_XXS-E4 | 83.1 GB | 0.8588 | 69.0% | 1.1889 | 71.5% | 0.6570 | 74.1% | 5.0% | 1.0% | 5 |
| Original Q4_K_M / E4M3 | 161.2 GB | 0.2123 | 85.1% | 0.3205 | 85.3% | 0.1444 | 88.5% | 85.0% | 1.0% | 5 |
| Original Q4_K_S / E4M3 | 155.5 GB | 0.2202 | 84.9% | 0.3498 | 85.1% | 0.1489 | 88.2% | 5 | ||
| Original IQ4_XS / IQ4_NL | 122.6 GB | 0.2362 | 84.4% | 0.3671 | 84.3% | 0.1706 | 87.7% | 5 | ||
| Original Q3_K_M / IQ4_NL | 114.2 GB | 0.3393 | 81.0% | 0.5192 | 81.2% | 0.2446 | 84.8% | 5 | ||
| Original IQ3_M / IQ4_NL | 108.1 GB | 0.4028 | 79.4% | 0.5664 | 79.8% | 0.3105 | 82.8% | 5 | ||
| Original IQ3_XXS / IQ4_NL | 100.5 GB | 0.4698 | 77.3% | 0.6502 | 78.6% | 0.3389 | 81.4% | 5 | ||
| Original IQ2_M / IQ4_NL | 91.9 GB | 0.6412 | 73.3% | 0.8604 | 74.9% | 0.4699 | 78.2% | 5 | ||
| Original IQ2_XXS + IQ2_S / MXFP4 | 83.1 GB | 0.8349 | 69.3% | 1.1280 | 72.1% | 0.6276 | 75.1% | 5 | ||
| BF16, flash attention off | 375.4 GB | 0.1152 | 89.8% | 0.1987 | 89.0% | 0.0818 | 91.7% |


License and notices
These files are under the Tencent Hy License, Version 1.0, copied in LICENSE; changes are listed in NOTICE.
Updates
- 2026-11-29: Added the importance matrix
Hy4-flash-Uncensored.imatrixused for the quantized levels. - 2026-11-29: Added IQ2_XXS-E4.
- 2026-11-29: Added IQ3_M-E4.
About Hy4-flash
Model Introduction
Hy4 flash is our most cost-effective Hy model to date, featuring 220B total parameters (including 64B Engram parameters) with just 12B active parameters per token. It natively accepts text and image inputs, generates text, and supports a context window of up to 1M tokens.
Its 42-layer language backbone consists of one dense feed-forward layer and 41 MoE layers, with identity Hyper-Connections (iHC) supporting inter-layer information flow. A vision encoder (adapted from SigLIP2-So400m-Patch16-Res512) is connected to the backbone through an MLP projector. In addition to the backbone, a built-in 5-layer drafter, DFly2 (0.85B parameters), reuses the target model's KV cache and sparse indices to support long-context speculative decoding at a low, constant cost.
Compared with Hy4, Hy4 Flash introduces three notable architectural changes:
- Hybrid attention. Sparse attention (IndexPool) and sliding-window attention (SWA) are interleaved at a 1:3 ratio.
- LatentMoE. Routed experts operate in a lower-dimensional latent space. Each token activates 16 of 512 routed experts, alongside one shared expert.
- N-gram embedding (Engram). The backbone is augmented with learned bigram and trigram representations, retrieved via multi-head hash lookups.
| Property | Value |
|---|---|
| Overview | |
| Architecture | Mixture-of-Experts (MoE) |
| Total Parameters (excluding Engram, ViT, and DFly2) | 155.5B |
| Engram Parameters | 63.5B |
| ViT Parameters | 0.43B |
| DFly2 Parameters | 0.85B |
| Activated Parameters per Token | Text 11.3B + Vision 0.43B |
| Context Length | 1M (1,048,576 tokens) |
| Language Backbone | |
| Backbone Layers | 42 — 1 dense layer and 41 MoE layers |
| Hidden Size | 3,072 |
| Vocabulary Size | 120,832 |
| Residual Connections | iHC (identity Hyper-Connections) with 4 residual streams |
| Attention — Hybrid Layout | |
| Attention Architecture | Sparse attention + sliding-window attention (SWA) |
| Backbone Layer Pattern | 2 × Sparse → 10 × (3 × SWA → Sparse) |
| Attention Formulation | Multi-head Latent Attention (MLA) |
| Multimodal Position Encoding | Interleaved MRoPE |
| Attention — Layers | Sparse / SWA |
| Backbone Layers | 12 / 30 |
| Attention Heads | 32 / 64 |
| MLA q_lora_rank | 1,024 / 1,024 |
| MLA kv_lora_rank | 512 / 512 |
| QK Head Dimension (non-RoPE + RoPE) | 192 + 64 / 192 + 64 |
| Value Head Dimension | 256 / 256 |
| RoPE Base | 10,000,000 / 10,000 |
| Sparse Context Selection | Up to 2,048 tokens via group-level selection |
| SWA Context Window | 512-token causal window (511 preceding + current) |
| Feed-Forward Networks | |
| Dense FFN Intermediate Size | 13,824 |
| Routed Experts per MoE Layer | 512 |
| Shared Experts per MoE Layer | 1 |
| Activated Routed Experts per Token | 16 |
| MoE Latent Dimension | 1,536 |
| Expert Intermediate Size | 1,536 |
| N-gram Embedding | |
| N-gram Orders | Bigrams and trigrams |
| Backbone Layer Indices (starting from 0) | 1, 11, 21, 31 |
| Hash Heads per N-gram Order | 8 |
| Hash Vocabulary Size per Head | 10.3M |
| Embedding Dimension per N-gram Order | 768 (8 heads × 96 dimensions) |
| Embedding Table Parameters | 63.4B |
| Vision Encoder | |
| Vision Encoder Layers | 27 |
| Vision Encoder Hidden Size | 1,152 |
| Vision Encoder Intermediate Size | 4,304 |
| Vision Encoder Attention Heads | 16 |
| Vision Patch Size | 16 × 16 |
| Vision Position Embedding Size | 128 × 128 |
| Visual Feature Merging | 2 x 2 |