license: apache-2.0
base_model: Qwen/Qwen3.8-Flash-Next
base_model_relation: quantized
pipeline_tag: image-text-to-text
library_name: transformers
language:
- en
- zh
tags: - abliterated
- uncensored
- qwen
- qwen3.8
- qwen4
- flash-next
- moe
- nvfp4
- fp4
- fp8
- compressed-tensors
- vllm
- sglang
- single-gpu
- vision-language
- function-calling
- reasoning
- ai-red-team
- red-teaming
Qwen3.8-Flash-Next-Uncensored-NVFP4
NVFP4 (4-bit) weight quantization of the abliterated (refusal-removed) Qwen3.8-Flash-Next — for Blackwell + vLLM
|
🛡️ New from Orca — OrcaCyber Zero 1.5 Post-trained for cybersecurity: vulnerability analysis, vulnerability reproduction, red teaming & offensive-security research. 98.01% pass@1 on CyberGym Level 1 · 1M context · function calling · OpenAI-compatible API. |
|
|
🔌 New from Orca — Orca Connect Serving this with vLLM? Orca Connect puts the rig under your desk behind your usual OrcaRouter API key, next to 200+ hosted models, reachable from a laptop, a phone or a cloud agent. Outbound only: no port forwarding, no tunnel, no firewall rule. Requests your own hardware serves cost $0, and |
|
One Gateway. Every Model. — Route Smarter · Ship Safer · Spend Less.
Website · Model Catalog · GitHub · Discord · X
NVFP4 weight quantization of the abliterated (refusal-removed) build of Qwen's
Qwen3.8-Flash-Next— a large
Mixture-of-Experts (512 experts, 10 routed + 1 shared active) preview of the Qwen4 architecture
(qwen4_exp): Gated DeltaNet linear attention + Qwen Sparse Attention (QSA), HyperConnections, PLE
n-gram embeddings, native vision-language, reasoning, and tool-calling. The MoE expert weights are
quantized to NVFP4 (4-bit float, group-16 blocks with FP8 e4m3 scales) and attention/shared-expert
weights to FP8, cutting the model from ~330 GB (bf16) to 183 GB on disk (171 GiB, 18 shards)
while keeping full-precision paths where they matter. Browse all models in the
OrcaRouter Model Catalog.
Disclaimer — read before use
This model has had its safety alignment substantially removed via abliteration (orthogonalizing
the refusal direction out of the residual stream). It will comply with harmful, unethical, or illegal
requests the original Qwen3.8-Flash-Next would refuse. Released strictly for legitimate research —
interpretability, AI-safety / refusal-mechanism study, red-teaming, and robustness evaluation. You
assume full responsibility for how you use it and everything it generates; add your own safety and
moderation layers before any deployment. Use must comply with the
Apache 2.0 License inherited from the base model and all
applicable law. The authors accept no liability for misuse.
Requirements
- A Blackwell GPU (B100 / B200 / GB200 / RTX 50-series / RTX PRO Blackwell) — NVFP4 uses the hardware FP4 tensor
cores. It will not run on Hopper (H100/H200) or older; those lack FP4 compute.
Verified on a single RTX PRO 6000 Blackwell Server Edition (SM120, 96 GB) with SGLang — see the
single-GPU recipe below. - A runtime that supports the
qwen4_exparchitecture + compressed-tensors NVFP4. This is a brand-new
architecture: use a recent vLLM build withqwen4_expsupport (andtransformers>=5.16), or
SGLang ≥ 0.5.23 with thecompressed-tensorsCUTLASS-scheme patch for SM120 (see recipe). Stock
runtimes that predate qwen4exp will not load it. - Multimodal (vision) requires the runtime's Qwen vision stack; text-only works without images.
What's quantized
| Component | Precision |
|---|---|
MoE experts (mlp.experts, the bulk) |
NVFP4 (W4, 4-bit float, group-16 blocks + FP8 e4m3 scales) |
Attention (self_attn.{q,k,v,o}, linear_attn.{in_proj_qkv,in_proj_z,out_proj}), shared expert |
FP8 (W8) |
lm_head, PLE n-gram embedding, token/vision embeddings, HyperConnections, QSA indexer, Gated-DeltaNet conv/dt, router gates, norms, vision tower |
bf16 (kept full precision) |
- Weight-only: activations are quantized dynamically at runtime (no static calibration); the
quantization is data-free (weights derived directly from the bf16 checkpoint). The abliteration is
baked into the weights, so refusal-removal is preserved. - KV cache is not quantized in the checkpoint. Serving with an fp8 KV cache
(--kv-cache-dtype fp8_e4m3in SGLang) is verified working — see the single-GPU recipe below. - The PLE n-gram embedding is kept bf16 by design and dominates the on-disk size: 95.4 GiB of bf16
PLE tensors (measured:ple_bytes = 102,400,491,520, VERIFIED byte sum over 143ple.*/embedding
tensors). On memory-limited hosts it can be served as fp8 via a runtime override — see below —
no re-quantized artifact needed.
Note on the recipe: this is a weight-only NVFP4 build (W4 experts / W8 attention, dynamic
activations). A fully static W4A4 variant requires an activation-calibration forward pass, which
must hold that ~100 GB n-gram embedding on a single GPU — only feasible on very-large-memory
(e.g. Blackwell/H200-class) hardware. Ping us if you need the W4A4 build.
Usage (vLLM, Blackwell)
pip install -U "vllm>=<qwen4exp-supporting release>" "transformers>=5.16"
vllm serve moeshawky/Qwen3.8-Flash-Next-Uncensored-NVFP4 \
--tensor-parallel-size 4 --trust-remote-code \
--enable-expert-parallel --enable-auto-tool-choice --tool-call-parser qwen3_coder
Then call the OpenAI-compatible endpoint (/v1/chat/completions) as usual — tool calling, reasoning
(chat_template_kwargs.enable_thinking), and vision (image_url content parts) all work through the
runtime's Qwen4 stack.
Single-GPU serving on 96 GB — verified SGLang recipe (SM120, 2026-11-22)
The full artifact served end-to-end on one RTX PRO 6000 Blackwell Server Edition (97,887 MiB VRAM,
62 GiB host RAM): 262,144-token context, reasoning + tool calls parsed, real tokens through /v1/*.
Measured: weight load 275 s; weights+runtime 80.9 GiB VRAM; fp8 KV pool ≈3.7 GiB holding
573,376 tokens; 9.1 GiB GPU spare.
The load-bearing move is PLE host offload with a runtime fp8 dtype override (no conversion of the
artifact): the 95.4 GiB bf16 PLE becomes a 47.68 GiB pinned-host tensor
(PLE_BYTES = 51,200,245,760, derived), downcast at load. The pinned allocation fits 62 GiB RAM only if
PyTorch's pinned rounding ceiling is derived from that same byte count
(alloc_threshold_mb = (PLE_BYTES-1)//MiB = 48828); do not hard-code thresholds.
python -m sglang.launch_server \
--model-path moeshawky/Qwen3.8-Flash-Next-Uncensored-NVFP4 \
--served-model-name qwen-3.8-flash-next \
--moe-runner-backend flashinfer_cutlass \
--kv-cache-dtype fp8_e4m3 \
--ple-offload-embedding --ple-offload-backend pinned \
--json-model-override-args '{"text_config":{"ple_embedding_dtype":"float8_e4m3fn"}}' \
--context-length 262144 \
--tool-call-parser qwen3_coder --reasoning-parser qwen3 \
--page-size 64 --mamba-ssm-dtype bfloat16 --tp-size 1 \
--mem-fraction-static 0.90 --disable-cuda-graph --trust-remote-code
Flags note: SGLang accepts --kv-cache-dtype fp8_e4m3 (not fp8_e4m3fn). flashinfer_cutlass is
the MoE runner for this NVFP4 layout on SM120 (Marlin ran the card out of memory; the triton runner
falls back to Marlin).
One-time per-instance fixes (each was paid for once in debugging):
- Linker symlinks in the venv's
nvidia/cu13/lib:libcudart.so→libcudart.so.13,lib64→lib,libcuda.so→/opt/nvidia/userspace/open/lib64/libcuda.so,libnvrtc.so→libnvrtc.so.13. - Delete the CCCL
cuda_toolkit.hCTK compatibility-check block in both header copies
(flashinfer data + venv cu13 include) — nvcc 13.5 vs libcudart 13.0 trip on#error "CUDA compiler and CUDA toolkit headers are incompatible". - Apply the SGLang patches for the compressed-tensors CUTLASS scheme + flashinfer JIT trust-cache
(repo:blackfrost/scripts/patch_sglang.py). - Pre-build the flashinfer fused-MoE CUTLASS kernel offline (
ninjain the flashinfer cache dir,
~8 min, 62 MB.so) before launch — otherwise the first request stalls the scheduler while
96 CUTLASS targets compile inline.
Swapfile and caches on ephemeral instance storage must be recreated after any stop/start.
Evaluation
Abliteration was measured on this build (bf16, served with vLLM) vs the official Qwen/Qwen3.8-Flash-Next:
harmful-prompt refusal collapses from 64–100% to ~0–3.3%, benign over-refusal stays near 0%,
and capability stays within ±2 pts of the base. NVFP4 is a deterministic weight derivation and
inherits these behaviours, with a small additional quality trade-off from 4-bit experts.
License
Apache 2.0, inherited from Qwen/Qwen3.8-Flash-Next.
Abliteration and quantization do not change the underlying license obligations.