--- license: other license_name: tencent-hy-license license_link: LICENSE base_model: tencent/Hy4-flash base_model_relation: quantized pipeline_tag: text-generation tags: - gguf - rocmfpx - strix-halo - amd - moe - hy4-flash - agentic - tool-calling --- # Hy4-flash ROCmFPX (AMD Strix Halo first) Hardware-aware GGUF quants of [tencent/Hy4-flash](https://huggingface.co/tencent/Hy4-flash), built with the [ROCmFPX](https://github.com/HarshaVardhan3002/ROCmFPX) formats for AMD GPUs. The 4-bit files are sized so the whole GPU part runs fully resident on one **AMD Ryzen AI Max+ 395 (Strix Halo, 128 GB, 96 GB set as GPU memory)**. Hy4-flash: 220B parameters in total, of which 64B are the Engram lookup table, 12B active per token, 42 layers, 512 experts with top-16 routing. Text only here (the vision encoder and the DFly2 drafter are not included yet). ## Files | File | Weights | GPU part | Engram table (CPU / SSD) | Target | |---|---|---|---|---| | `Q4_0_STRIX/` | experts Q4_0_ROCMFP4, everything else Q8_0_ROCMFPX | 84.7 GiB | Q4_0, 33 GiB | Strix Halo 128 GB (recommended) | | `Q4_0_STRIXFAST/` | experts Q4_0_ROCMFP4_FAST (faster kernel), rest Q8_0_ROCMFPX | 80.4 GiB | Q4_0, 33 GiB | Strix Halo 128 GB, speed pick | Each folder holds a split GGUF (parts of at most 45 GB). Point llama.cpp at the `-00001-of-` file. How it was made: - importance matrix from **agentic text**: coding agent runs, tool calls, function calling, shell and database tasks, rendered with the model's own chat template (tool schemas included). These quants are tuned for agent work, tool calling and coding, not for essays. English first. - ROCmFPX tensor scales on, token embedding kept at Q8_0. - the Engram table is only read by row lookups, one row per token, so it does not need GPU memory. Keep it on the CPU side (`-ot "per_layer_token_embd=CPU"`); with mmap it can stay on the SSD. ## Running Hy4-flash support (architecture `hy_v4_flash`, with ROCmFPX tensor scales) is in the ROCmFPX fork of llama.cpp, branch `hy4-flash`. Build it with Vulkan or ROCm/HIP, then for example: ``` llama-server -m Q4_0_STRIX/Hy4-flash-Q4_0_STRIX-00001-of-00003.gguf \ -ngl 99 -ot "per_layer_token_embd=CPU" -c 65536 --jinja \ --chat-template-kwargs '{"reasoning_effort":"no_think"}' ``` `reasoning_effort` takes `"high"` (thinking, the default) or `"no_think"`. Every file passed a smoke test before upload. Quality numbers on held-out agentic chats (assistant tokens only) will be added here. ## Licence Tencent Hy License, Version 1.0 (see `LICENSE`, copied from the original repo). It is derived from Apache 2.0 with extra commercial terms for large Model-as-a-Service businesses (section 10). All credit for the model goes to Tencent.