Instructions to use windowsxp811203/Qwen3.8-Flash-Next-Abliterated-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use windowsxp811203/Qwen3.8-Flash-Next-Abliterated-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="windowsxp811203/Qwen3.8-Flash-Next-Abliterated-NVFP4") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("windowsxp811203/Qwen3.8-Flash-Next-Abliterated-NVFP4") model = AutoModelForMultimodalLM.from_pretrained("windowsxp811203/Qwen3.8-Flash-Next-Abliterated-NVFP4", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use windowsxp811203/Qwen3.8-Flash-Next-Abliterated-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "windowsxp811203/Qwen3.8-Flash-Next-Abliterated-NVFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "windowsxp811203/Qwen3.8-Flash-Next-Abliterated-NVFP4", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/windowsxp811203/Qwen3.8-Flash-Next-Abliterated-NVFP4
- SGLang
How to use windowsxp811203/Qwen3.8-Flash-Next-Abliterated-NVFP4 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "windowsxp811203/Qwen3.8-Flash-Next-Abliterated-NVFP4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "windowsxp811203/Qwen3.8-Flash-Next-Abliterated-NVFP4", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "windowsxp811203/Qwen3.8-Flash-Next-Abliterated-NVFP4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "windowsxp811203/Qwen3.8-Flash-Next-Abliterated-NVFP4", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use windowsxp811203/Qwen3.8-Flash-Next-Abliterated-NVFP4 with Docker Model Runner:
docker model run hf.co/windowsxp811203/Qwen3.8-Flash-Next-Abliterated-NVFP4
PLE-FP8 Version
First, thank you for doing the uncensoring, great job and super fast too.
I stored the n-gram embeddings as FP8 instead of BF16 with this version, reducing the size to 125GB with very minimal KL divergence.
https://huggingface.co/gorbatjovy/qwen3.8-flash-next-abliterated-NVFP4-plefp8
This is a great optimization — and I checked it rather than just nodding, so for anyone reading: it's exactly what it says. The n-gram PLE embeddings are repacked BF16→FP8 (F8_E4M3, all 128 shards, ~51.2 B params), the NVFP4 W4A16 experts are untouched, and the MTP head (all 31 tensors) and vision tower (333 tensors) are still bf16 and intact. The size drop checks out to the byte: 186.4 GB → 135.2 GB, and that 51.2 GB is exactly the 51.2 B n-gram params going 2 bytes → 1. Clean, surgical work.
The PLE table was the obvious place to cut — it's the single biggest chunk of the model and it's a lookup, not a matmul, so FP8 there costs far less than FP8 on the compute path would. Nice call.
One honest note on "fits my Spark," since people will ask: measured weights are 125.95 GiB (135.2 GB decimal). On a 128 GB GB10 that's still too tight for real use — even on a 128 GiB part you're left with ~2 GiB before the OS, KV cache and activations, and this is a 512-expert MoE. So it's a big step in the right direction (−51 GB) but not yet a comfortable single-box real-context deployment; the next lever would be the experts or a smaller context target. I haven't verified the KL-divergence claim myself (that needs inference, not metadata) — if you have before/after KL or perplexity numbers I'd love to see them.
Mind if I add a pointer to this from the model card as a community size-optimized variant? Full credit to you — it's a genuinely useful contribution.
Yeah should probably says sparks plural 😀
Sure point to my version as a community effort
And i do have KL diffs, these are measured against your model, so the only thing that differs is the n-gram quanting.
top-1 token agreement 100.0%
mean KL 0.0018
median KL 0.0006
p90 KL 0.0060
Perfect — those numbers settle it. top-1 agreement 100%, median KL 0.0006, p90 0.0060 against the unmodified model with only the n-gram dtype changed is effectively lossless, and exactly what you'd hope for from FP8 on a pure lookup table — no compute path for error to accumulate through. I haven't re-run it myself (that means loading the full 135 GB, which I can't casually do here), so I'm citing it as measured-by-you rather than verified-by-me — but your setup is the right one, same weights everywhere except the PLE, so I'm glad to take it at face value.
Card's updated: I added your version to the "n-gram table stays bf16" section as a community variant, with the size (173.6 → 125.95 GiB) and your KL stats, and full credit — since it's real evidence that the loader-path concern I raised there didn't actually bite in your runtime. Thanks again for the clean work. And yeah — Sparks, plural. 🙂