Downloads · 30 days
694
29% of all-time downloads
lychee888/Qwen3.8-Flash-Next-Uncensored-NVFP4-FP8PLE
Qwen3.8-Flash-Next-Uncensored-NVFP4-FP8PLE is a image-text-to-text model from lychee888. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for vllm. The card lists the license as apache-2.0.
NVFP4 abliterated build of Qwen/Qwen3.8-Flash-Next in which the PLE n-gram embedding table is quantized to FP8 e4m3 (single global scale) instead of bf16. The result is byte-for-byte the same model as orcarouter/Qwen3…
Downloads · 30 days
694
29% of all-time downloads
All-time downloads
2.4K
Public
Parameters
180B
132 GB on disk
Likes
10
Public
Click a slice to open those files.
.safetensors132 GB · 100%
How the weights are stored.
U8121B · 67%
From the Hugging Face model README
NVFP4 abliterated build of Qwen/Qwen3.8-Flash-Next in which the PLE n-gram embedding table is quantized to FP8 e4m3 (single global scale) instead of bf16. The result is byte-for-byte the same model as orcarouter/Qwen3.8-Flash-Next-Uncensored-NVFP4 with one structural change: the 102.4 GB bf16 PLE shard is replaced by 10 FP8 shards, shrinking the checkpoint from 170.93 GiB to 123.25 GiB on disk. The PLE layout is deliberately matched to RadixArk/Qwen3.8-Flash-Next-NVFP4 so the checkpoint slots into the MiaAI-Lab Dual-DGX-Sparks recipe unchanged.
Provenance chain:
Qwen/Qwen3.8-Flash-Next (BF16)
└─ orcarouter/Qwen3.8-Flash-Next-Uncensored-NVFP4 (abliteration + NVFP4 experts / FP8 attention; PLE kept bf16; 170.93 GiB)
└─ this repo (PLE n-gram table → FP8 e4m3, global scale; 123.25 GiB)
| Item | orcarouter upstream | This repo |
|---|---|---|
PLE n-gram table (128 ngram_embedding.shard_N.weight tensors, [2500012, 160] each) | bf16, in model-00002-of-00017.safetensors (102.4 GB) | FP8 e4m3, in model-plefp8-00000…00009.safetensors (51.2 GB) |
model-00002-of-00017.safetensors | shipped | removed |
model-plefp8-00000…00009.safetensors (10 files, 13 tensors each, last has 12) | n/a | added |
model.safetensors.index.json | 130 n-gram keys, 223,046 total | 131 n-gram keys (128 shards + ngram_heads_offsets + ngram_heads_vocab_sizes + 1 global weight_scale BF16 [1] in model-plefp8-00009; the two small metadata tensors stay bf16 in model-00003), 223,047 total; total_size updated to 132,279,699,754 bytes |
config.json → text_config | no ple_embedding_dtype field | ple_embedding_dtype: "float8_e4m3fn" added |
| Checkpoint size on disk | 170.93 GiB | 123.25 GiB (−47.7 GiB) |
| All other 37 files | — | byte-identical (same hash-verified content as the serving copy) |
Note: the two small PLE metadata tensors (ngram_heads_offsets, ngram_heads_vocab_sizes) stay bf16/int in model-00003-of-00017.safetensors, exactly as upstream.
Quantization details: single global scale per table, scale = amax/448 rounded to bf16 (global amax = 0.0893555, scale = 0.0001993179321) — the same law RadixArk published for its FP8 PLE, and this value matches their shipped scale to the displayed digit. Worst-case measured single-value dequantization error: 0.00317 in bf16 units. The table was quantized from orca's own abliterated bf16 PLE table (streamed 1:1, no resampling), not transplanted from any other checkpoint; see Similarity to RadixArk.
This checkpoint reproduces RadixArk's FP8-PLE serialization so the two are drop-in interchangeable at the layout level:
| Aspect | RadixArk | This repo |
|---|---|---|
| PLE file naming | model-plefp8-00000…00009.safetensors | identical |
| Tensors per PLE file | 13 (last: 12) | identical |
| Shard key naming | …ple.ple_embedding.ngram_embedding.shard_N.weight (single-level) | identical |
| Global scale | 1× BF16 weight_scale in model-plefp8-00009 | identical |
ple_embedding_dtype | float8_e4m3fn | identical |
| Global-scale law | amax/448, rounded to bf16 | identical |
| PLE data on disk | 47.68 GiB (128 shards + scale) | 47.63 GiB (51.2 GB) — same 13/13/…/12-tensor shard split, file sizes identical to within ~5 MB |
What is NOT the same: the PLE weights. RadixArk quantized from the PLE tables shipped in the official Qwen/Qwen3.8-Flash-Next-FP8 revision; this repo quantizes from orca's abliterated bf16 table, and independent byte-comparison shows the PLE value_proj matrices differ (~44% of bytes) between the two sources. Do not mix PLE files across these two checkpoints: the loader layout is compatible, the data is not. Architecture-level config (48 layers, 36 Gated-DeltaNet + 12 full-attention at full_attention_interval: 4, 512 experts, MTP) is the same family in both.
config.json layer_types uses full_attention ×12 / linear_attention ×36 (no qwen_sparse_attention entries), matching RadixArk and required by the ModelConfig allowlist of the pinned vLLM image.
Primary recipe: a fork of the MiaAI-Lab recipe with recipe-switching support, delivered as PR #32 ("Uncensored mode with custom-quant PLE from orcarouter"). MODEL_ID points at this repo by default in the fork's .env.sample; one config line switches the served build:
Modified recipe available here: Forked Recipe
cp .env.sample .env # MODEL_ID is already set to this repo
# switch to RadixArk or orca's bf16-PLE build by changing the single MODEL_ID line
./start.sh
The fork's start.sh auto-derives PLE_QUANT_OVERRIDE from the model's config.json (ple_embedding_dtype: float8_e4m3fn → fp8), so no other line needs to change. This repo is public, so no HF_TOKEN is needed to pull it (only the orca bf16-PLE build is gated).
Running the original MiaAI-Lab recipe instead works the same: point its MODEL_ID at this repo and keep PLE_QUANT_OVERRIDE=fp8 (the recipe hardcodes it, which is what this checkpoint needs).
Details (both recipes):
vllm/vllm-openai:qwen38-flash-next (vLLM v0.1.dev20073+g8e685d198) — the recipe's pinned day-0 image.files/ple_layer_patched.py → vllm/models/qwen3_8_flash_next/nvidia/ple_layer.py). With PLE_QUANT_OVERRIDE=fp8 (the fork's auto-derived value for this checkpoint; the original recipe hardcodes it) the PLE embedding routes to the image's Qwen3_8FlashNextPLEFp8EmbeddingMethod, which handles "FP8 shards + one global weight_scale" — this layout. Without it, the engine tries to build a ~102 GB BF16 PLE and OOMs on boot.--tensor-parallel-size 2 --nnodes 2 --enable-expert-parallel --all2all-backend allgather_reducescatter --speculative-config '{"method":"mtp","num_speculative_tokens":3}' --gpu-memory-utilization 0.835 --max-num-seqs 8 --max-num-batched-tokens 8192 --kv-cache-dtype auto --load-format safetensors --safetensors-load-strategy lazy --reasoning-parser qwen3 --enable-auto-tool-choice --tool-call-parser qwen3_coder --compilation-config '{"mode":0,"cudagraph_mode":"FULL_DECODE_ONLY"}' plus the YaRN --hf-overrides for 1M context and VLLM_ALLOW_LONG_MAX_MODEL_LEN=1).MODEL_ID for a flat repo dir staged on both nodes (skips download + rsync, bind-mounts read-only).KV_CACHE_DTYPE=auto (bf16). Do not set FP8 KV: on sm_121 it crashes QSA prefill in this image (documented by the recipe and confirmed by multiple deployments).GPU_MEMORY_UTILIZATION=0.835, 1M YaRN, MTP3, as measured in the recipe repo). The recipe's own measured ladder for that configuration: 0.835 → 2.48M tokens; 0.85 → 2.57M; --kv-cache-memory=45502283776 (42.38 GiB) → ≈3.0M. No 2.7M pool figure is documented in the recipe or in either upstream repo; treat any such number as unverified. Measure on your own boot and treat that log as ground truth:
docker logs vllm-fn 2>&1 | grep -E "Available KV cache memory|GPU KV cache size"
PLE_QUANT_OVERRIDE=fp8 is mandatory on the pinned image (see above). The config.json ple_embedding_dtype field is informational for this image's loader and runtime-neutral.layer_types contains only full_attention/linear_attention, which the pinned image's ModelConfig allowlist accepts; (b) n-gram shard keys are single-level ngram_embedding.shard_N.weight, which is what the image's Qwen3_8FlashNextNGramEmbedding loader expects. If you regenerate the FP8 PLE yourself, keep both invariants.qwen4_exp runtime required (the pinned image above).SHA256SUMS.txt (39 entries); verify with sha256sum -c SHA256SUMS.txt.vllm/vllm-openai:qwen38-flash-next (or any build with qwen4_exp + the PLE FP8 resolver shim).transformers>=5.16 for config/tokenizer handling if loading outside vLLM.Derived from orcarouter/Qwen3.8-Flash-Next-Uncensored-NVFP4 (Apache 2.0), itself an abliteration + NVFP4 quantization of Qwen/Qwen3.8-Flash-Next. License: Apache 2.0 (inherited; see upstream for full text and terms). This model has had its safety alignment substantially removed; it is released strictly for legitimate research, interpretability, AI-safety and red-teaming work. You assume full responsibility for its use; add your own safety and moderation layers before any deployment. The recipe.yaml included here is the upstream ModelOpt quantization recipe, carried over for provenance.