Instructions to use Geometric-AI/DeepSeek-V4-Flash-0731-ROCmFP3-MIX 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 Geometric-AI/DeepSeek-V4-Flash-0731-ROCmFP3-MIX 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 Geometric-AI/DeepSeek-V4-Flash-0731-ROCmFP3-MIX # Run inference directly in the terminal: llama cli -hf Geometric-AI/DeepSeek-V4-Flash-0731-ROCmFP3-MIX
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Geometric-AI/DeepSeek-V4-Flash-0731-ROCmFP3-MIX # Run inference directly in the terminal: llama cli -hf Geometric-AI/DeepSeek-V4-Flash-0731-ROCmFP3-MIX
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Geometric-AI/DeepSeek-V4-Flash-0731-ROCmFP3-MIX # Run inference directly in the terminal: ./build/bin/llama cli -hf Geometric-AI/DeepSeek-V4-Flash-0731-ROCmFP3-MIX
Use Docker
docker model run hf.co/Geometric-AI/DeepSeek-V4-Flash-0731-ROCmFP3-MIX
- Llama new
- LM Studio
- Jan
- Ollama
How to use Geometric-AI/DeepSeek-V4-Flash-0731-ROCmFP3-MIX with Ollama:
ollama run hf.co/Geometric-AI/DeepSeek-V4-Flash-0731-ROCmFP3-MIX
- Unsloth Desktop
- Docker Model Runner
How to use Geometric-AI/DeepSeek-V4-Flash-0731-ROCmFP3-MIX with Docker Model Runner:
docker model run hf.co/Geometric-AI/DeepSeek-V4-Flash-0731-ROCmFP3-MIX
- Lemonade
How to use Geometric-AI/DeepSeek-V4-Flash-0731-ROCmFP3-MIX with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Geometric-AI/DeepSeek-V4-Flash-0731-ROCmFP3-MIX
Run and chat with the model
lemonade run user.DeepSeek-V4-Flash-0731-ROCmFP3-MIX-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Upload README.md with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126---license: mitbase_model: deepseek-ai/DeepSeek-V4-Flash-0731tags:- gguf- deepseek- rocm- strix-halo- quantized---# DeepSeek-V4-Flash-0731 — Option 1: adaptive down-experts (ROCmFP3-MIX)The same bytes as the uniform ROCmFPX baseline, holding a measurably better model.The 43 down-projection expert tensors move from **qtype 104** (`Q3_0_ROCMFPX`, uniform) to**qtype 105** (`Q3_1_ROCMFP3_MIX`, adaptive). Both are **14 bytes per 32 weights**, so thefile is byte-for-byte the same size, reads the same bytes per token, and costs the kernelsthe same work. Nothing else in the model changes: attention, dense, gate/up, norms andembeddings are identical to the baseline.## What "adaptive" means hereA uniform format compiles one interpretation into the format itself — the same codebook forevery block in the model. An adaptive format moves that interpretation into the artifact:each expert carries its own small learned table, chosen by a per-expert search againstHessian-weighted sensitivity rather than by a rule applied to the whole tensor.Those tables are ~375 KB against ~102 GB. That asymmetry is the whole trick — a per-expertchoice costs almost nothing to record and buys a much better fit, because expert weightdistributions genuinely differ.## Measured qualityFrom the quality-transfer ledger that selected this assignment (fake-quant, against theunquantized model, 2 seeds x 2 corpora x 5 policies):| | uniform (P0) | adaptive ||---|---|---|| wikitext2 PPL | 3.8573 | **3.6760** || wikitext2 KL | 0.2157 | **0.0953** || c4 PPL | 12.5342 | **11.5245** || c4 KL | 0.2064 | **0.0677** |**Aggregate: KL -57.0%, perplexity -5.6%, at identical footprint.**KL is the number that matters most: it measures divergence from the *unquantized* model, soit says this artifact reproduces the original's output distribution roughly twice asfaithfully as the uniform recipe does — using the same bytes.Two honest caveats:- **96.4% weighted expert coverage.** The calibration corpus never routed to some experts;those fall back to the conservative uniform rung rather than being guessed at. The gainsabove are earned on the covered majority.- These are **fake-quant research measurements** against the native model, not end-to-endserving benchmarks. Throughput and speculative-decode figures are reported separately,under one protocol with the prompt mix stated.## Single file — no sidecarEarlier adaptive artifacts shipped as a model **plus a required `.p4mix.bin` companion**:separate the two and the tensors are undecodable. The learned tables are now carried insidethe GGUF, as a verbatim byte blob in the KV block:```deepseek4.p4mix.sidecar 375,320 bytes```Loaders prefer the embedded copy and fall back to a loose file, so existing two-fileartifacts keep working unchanged.## RequirementsNeeds a server build with the qtype-105 decode kernels — upstream `lucebox` plus theadaptive series, on branch[`feat/ds4-adaptive-on-upstream`](https://github.com/GeometricAGI/lucebox-hub/tree/feat/ds4-adaptive-on-upstream)(upstream main + 20 reviewable commits, full suite green). A stock build without thosekernels will not decode qtype 105.Pair with[DeepSeek-V4-Flash-0731-DSpark-Drafter-GGUF](https://huggingface.co/Geometric-AI/DeepSeek-V4-Flash-0731-DSpark-Drafter-GGUF)for speculative decode, and compare against[DeepSeek-V4-Flash-0731-ROCMFPX](https://huggingface.co/Geometric-AI/DeepSeek-V4-Flash-0731-ROCMFPX),the uniform baseline this is measured against.## Integrity```sha256 a431f955c639107d3f34ab4cc65edc806038588a0c258abd0bc3e9074b908096file ds4-0731-opt1.gguf (102,321,006,592 bytes)```That is **+375,392 bytes** over the uniform baseline — the embedded codebooks and their KVoverhead, and the entire size cost of the adaptive encoding.## LicenseMIT, inherited from the base model.> **Checksum correction (2026-08-05).** An earlier revision of this card listed> `accabb4c…`, which was the hash of a pre-release build, not of the published file.> A correct download failed that check. The value above (`a431f955…`) is the real one> and matches the git-LFS oid and `x-linked-etag`. Thanks to @hycris for catching it.## Serving: keep the model's six routed experts**Do not pass `--ds4-expert-top-k 4` with this artifact.** That flag keeps only four of thesix routed experts and renormalizes. On the uniform ROCMFPX artifact it is harmless; on thisadaptive one it produces degenerate output.Measured 2026-08-05, exact-copy fidelity over 20 identifiers x 3 repeats at temperature 0(the model is asked to echo a line of Python already present in its prompt, so anything but averbatim copy is a defect):| | top-k 6 (model default) | top-k 4 ||---|---|---|| this artifact (adaptive) | 95.0% | **60.0%** || uniform ROCMFPX | 100% | 100% |The failures are not degraded paraphrases -- they are `" 0 0 0 0 0 ..."`, repeated markdownfragments and empty strings, on prompts as trivial as "repeat this line". Deterministic, andreproducible at two context sizes and with fused decode on or off.Some published example commands (including in this project's own `server/docs/DS4.md` untiltoday) included `--ds4-expert-top-k 4`. Omit it, or pass `0`, to use the model default.12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849---license: mitbase_model: deepseek-ai/DeepSeek-V4-Flash-0731tags: [gguf, rocmfpx, strix-halo, mixed-precision, quantization]---# DeepSeek-V4-Flash-0731 — ROCmFPX mixed-precision (gu106 repair)Mixed-precision GGUF of DeepSeek-V4-Flash-0731 for AMD Strix Halo (gfx1151) at the**exact 102.32 GB deployment budget** (128 GB LPDDR5X − 11.3 GB DSpark draft − headroom).**`ds4-0731-gu106-v1.gguf` (102,321,006,592 B) + `ds4-0731-gu106-v1.gguf.gumix.bin` —BOTH files are required.** The `.gumix.bin` sidecar carries the gate/up codebooks; theloader registers 86 qtype-106 tensors from it (down codebooks are embedded in-GGUF).## Allocation| family | format | bpw ||---|---|---|| routed gate/up experts (57.7 GB) | **Q2_1_ROCMFP2_MIX (106)** — learned per-expert codebooks, importance-weighted, gain-corrected | 2.50 || routed down experts | Q3_1_ROCMFP3_MIX (105) — adaptive, ds4chat-calibrated | 3.50 || attention / dense / shared | Q4_0_ROCMFP4_FAST (101) | 4.25 || scaffolding etc. | 101 / F32 passthrough | — |Every family is allocated from measured layer-output damage under a whole-file byteceiling (geo-quant `auto`). An earlier revision of this repo shipped gate/up as**uniform absmax (107)** — a family-level GGUF bisection identified that as the cause ofa 9/17→17/17 quality gap, and this artifact is the repair: **same bytes, +8 questions**.Q8_0 attention was also built and measured (+2.4 GB): lossless on perplexity, worthlessat task level (78 vs 79/92) — this smaller artifact wins.## Evaluation (dflash serving, fused decode off, serial HC; all items held out)| suite | score ||---|---|| COMPSEC 17 (think budget 15488) | **17/17** || COMPSEC 17 (forced-close, think 2000) | 16/17 answered-17 || **full ds4-eval 92** (COMPSEC+AIME2025+GPQA-D+SuperGPQA, think 15488) | **79/92** (88/92 answered) |Calibration (c4:train importance for gate/up, ds4chat-v2 for down) **excludes all 92 evalitems**. For comparison, the published 86.7 GB IQ2_XXS reference scores 82/92 — with 75 ofthe 92 items present in its own imatrix calibration set; on the genuinely held-outCOMPSEC slice both score 17/17.## ServingRequires a dflash build with qtype-105/106 decode (2026-07-28+). Set`DFLASH_DS4_HC_SERIAL=1` (large-footprint stability). Keep the sidecar next to the GGUF.`--ds4-fused-decode` only on gfx1151 single-device; never for evals on CUDA builds.
README.md+39-116