Qwen3.8-Flash-Next UD-Q4_K_XL — GGUF, PLE kept separately
Qwen3.8-Flash-Next (qwen4exp architecture: 125B MoE + a 51.2 B-parameter per-layer n-gram
embedding table) with the PLE table split out into its own GGUF, so that one table serves every quant.
| Model file | Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00002.gguf — 82.534.516.096 B (76.87 GiB) |
| Tensors in this file | 1223 (all of the model, without per_layer_token_embd.weight) |
| PLE table | ➡️ mduca771/Qwen3.8-Flash-Next-PLE-tables-GGUF |
| Source quant | unsloth/Qwen3.8-Flash-Next-GGUF → UD-Q4_K_XL |
Why the split
The PLE (per_layer_token_embd.weight, shape [160, 320001536]) is a 51.2 B-parameter
n-gram / per-layer-embedding table. It is byte-identical inside every quant of the same checkpoint,
so shipping it once per quant wastes a lot of disk:
| PLE format | bytes per row | table size |
|---|---|---|
| IQ4_NL | 90 | 28.8 GB (26.82 GiB) |
| Q8_0 | 170 | 54.4 GB (50.66 GiB) |
| FP8 (E4M3) | 160 | 51.2 GB — Strata only; llama.cpp has no FP8 type |
| BF16 | 320 | 102.4 GB (95.37 GiB) |
Instead of a copy inside each of 5 quants (~144 GB duplicated), you download the table once and point both engines at it. Disk for the FLASH-Next set: 460.6 GB → 342.2 GB (with Q8_0).
Provenance — what was done to make these files
- The quants are Unsloth's (
unsloth/Qwen3.8-Flash-Next-GGUF, revision pinned at extraction time). The RCO variant of the set is ISTA-DASLab's (ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, the same checkpoint family). No weights were re-quantized. - The split is a raw byte copy. The GGUF metadata block is copied verbatim except
split.count(3/4 → 2) and the tensor payloads are copied slot-by-slot with 32-byte alignment, so exotic types (Q2_0,NVFP4,IQ2_S, …) work without knowing their block layout. - Verification: every one of the 1223 non-PLE tensors of the result is SHA-256 identical to the original shard it came from (compared tensor-by-tensor); plus a whole-file round-trip test on an already-split model reproduced it byte-for-byte.
- The PLE file is a re-tagged copy of the table shipped inside the quants (payload identical across
Unsloth's
UD-Q5_K_XL,UD-Q6_K_XLandQ8_0;UD-Q6_K_XL-00003-of-00006.gguf, SHA-25634efd79a80a1ce540a517a5d56171924b66ce1c38b04c904f17ad6d8ef17cf20). - SHA-256 of each file in this repository is the hash shown by the Hub for that file (LFS oid).
How to use
llama.cpp — needs a tiny local patch (--ple-gguf)
Upstream llama.cpp can only load a second GGUF shard if you use the C API
llama_model_load_from_splits(), which the CLI does not expose. This 3-file, ~16-line patch adds
-pg, --ple-gguf FNAME and routes the load through that API. It is included here as
ple-gguf.patch (applies to llama.cpp master at commit c0fd78626, build b11714).
git apply ple-gguf.patch # or: git apply --3way ple-gguf.patch
cmake -B build -DGGML_CUDA=ON ... && cmake --build build -j
The patch is small enough to re-apply by hand after upstream changes — it is exactly these three edits:
common/common.h— instruct common_params_model, addstd::string ple = ""; // extra GGUF split holding the PLE / engram table (qwen4exp)common/arg.cpp— right after the{"-m","--model"}option block, addadd_opt(common_arg( {"-pg", "--ple-gguf"}, "FNAME", "extra GGUF loaded as an additional model split: the PLE / n-gram embedding table (Qwen3.8-Flash-Next)", [](common_params & params, const std::string & value) { params.model.ple = value; } ).set_examples({LLAMA_EXAMPLE_COMMON}).set_env("LLAMA_ARG_PLE_GGUF"));common/common.cpp— replacellama_model * model = llama_model_load_from_file(params.model.path.c_str(), mparams);withllama_model * model = nullptr; if (!params.model.ple.empty()) { const char * paths[2] = { params.model.path.c_str(), params.model.ple.c_str() }; model = llama_model_load_from_splits(paths, 2, mparams); } else { model = llama_model_load_from_file(params.model.path.c_str(), mparams); }
Then:
llama-cli -m Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00002.gguf --ple-gguf PLE_flash_Q8.gguf \
-c 4096 --temp 0 -p "The capital of France is"
llama-server -m Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00002.gguf --ple-gguf PLE_flash_Q8.gguf -ngl 99 ...
- Keep the
--ple-ggufflag: without it, llama.cpp derives the second shard's name from the model's filename (it would look for…-00002-of-00002.ggufnext to it). - Do not use
--lazy-mode off: the table is created as a lazy (mmap-backed, host) tensor. Leave the default (-lzm auto), i.e. the table never goes to VRAM even with-ngl 999. name == …-00001-of-00002.ggufmatters for name-based shard discovery — keep the filename.
Strata
Strata reads the PLE natively through --ple-gguf (it also supports --ple-io direct|mmap|ram,
--ple-row-cache, --ple-inflight):
strata.exe --serve \
--pack <pack of the matching quant> \
--native Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00002.gguf \
--ple-gguf PLE_flash_Q8.gguf \
--expert-profile <profile>.bin ...
Important for Strata: the engine derives a model's shards from the filename pattern
<name>-NNNNN-of-MMMMM.gguf, and it rejects a lone file whose metadata says split.count > 1
("is shard 1 of 2, but it was opened as a whole model"). So the sibling name must exist:
# llama.cpp does not need this; Strata does.
# 0 extra bytes on the same volume:
ln "PLE_flash_Q8.gguf" "Qwen3.8-Flash-Next-UD-Q4_K_XL-00002-of-00002.gguf" # hard link
# or (Windows PowerShell):
# New-Item -ItemType HardLink -Path "Qwen3.8-Flash-Next-UD-Q4_K_XL-00002-of-00002.gguf" -Target "PLE_flash_Q8.gguf"
The PLE table file must be a 1-tensor GGUF with per_layer_token_embd.weight at offset 0 filling
the file exactly, general.architecture = "strata-ple", split.count = 2, split.no = 1,
split.tensors.count = 1224 — that is exactly what PLE_flash_Q8.gguf / PLE_flash_IQ4_NL.gguf are.
Caveats
- Do not mix PLE tables from different checkpoints / fine-tunes just because the shape matches. The tables in this collection all come from the same checkpoint.
--ple-io direct(Strata's default) reads the table from SSD, keeping it out of RAM; the Q8_0 table is ~1.9× more bytes per row than IQ4_NL. On a slow SSD use--ple-io ram(it needs ~50 GiB of RAM), or usePLE_flash_IQ4_NL.ggufinstead.UD-IQ3_XXSnote: itstoken_embd.weightisQ6_K, which the current Strata CUDA build does not accept for the native embedding (embed_type_supported= IQ types or BF16). It loads fine in llama.cpp. On Strata you would need a BF16 embedding via--embd-gguf.- FP8 is not supported by llama.cpp (no FP8 type exists in ggml).
Resumo (pt-BR)
- Estes arquivos são os quants do Qwen3.8-Flash-Next (fonte: Unsloth; a variante RCO é do ISTA-DASLab) com a tabela PLE separada em PLE-tables-GGUF.
- Nada foi re-quantizado: é cópia crua de bytes; os 1223 tensores do modelo foram conferidos com SHA-256 idêntico aos originais.
- Uma única PLE serve todos os quants (economia de ~118 GB no conjunto completo).
- Para o llama.cpp é preciso o pequeno patch
--ple-gguf(incluído:ple-gguf.patch). No Strata já é nativo (--ple-gguf), mas o arquivo precisa do "irmão"-00002-of-00002.ggufao lado do modelo (hard link resolve, 0 byte).