Run this model with HF Jobs

Run Intel/Qwen3.8-Flash-Next-W4A16-AutoRound on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/Intel/Qwen3.8-Flash-Next-W4A16-AutoRound. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Intel/Qwen3.8-Flash-Next-W4A16-AutoRound on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Intel/Qwen3.8-Flash-Next-W4A16-AutoRound. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Very impressive W4A16 quant! It's been stable for hours on my 4× Intel Arc B70 rig.

#3
by devan-carlin - opened

Just wanted to share my thanks to the Intel AutoRound team for this W4A16 quant.

I was dealing with non-stop looping from some inferior quants, but with this one I’ve been running for hours on my 4× Intel Arc B70 GPU rig and it's been rock solid. It’s been up for hours with no looping, no collapse into repetition, and the thinking actually feels snappier than I expected from a 4-bit weight quant.

Really impressive quality retention for W4A16.

Just wanted to share my thanks to the Intel AutoRound team for this W4A16 quant.

I was dealing with non-stop looping from some inferior quants, but with this one I’ve been running for hours on my 4× Intel Arc B70 GPU rig and it's been rock solid. It’s been up for hours with no looping, no collapse into repetition, and the thinking actually feels snappier than I expected from a 4-bit weight quant.

Really impressive quality retention for W4A16.

What is your vLLM setup? Using LLM Scaler? Also, what are your engine args? Have my 3rd and 4th b70 coming now and want to be running this as my daily driver. Thanks!

No LLM Scaler. I run upstream vLLM main plus a fork branch. LLM Scaler is Intel's quant and fork tooling, not a runtime dependency here. I have engaged it through issues, the Flash-Next feature request at https://github.com/intel/llm-scaler/issues/649 and the dual-B70 TP2 thread at https://github.com/intel/llm-scaler/issues/594. The serving stack is stock upstream plus two patches.

Hardware. 4x Intel Arc Pro B70, 32 GB each, 128 GB total. Threadripper PRO 3945WX, 256 GB host RAM. Desktop PCIe, no NVLink, no server-grade peer routing. That last part is the whole story for cards 3 and 4.

Throughput on this exact checkpoint (Intel AutoRound W4A16), single-stream decode: 53.8 to 54.2 tok/s with the worker-affinity patch on. Without it, on the ONEAPI_DEVICE_SELECTOR fallback, 45.4 tok/s. So the patch is about +18% and host-RAM, not booting.

Engine args. The live launch:

export VLLM_TARGET_DEVICE=xpu
export ZE_AFFINITY_MASK=0,1,2,3
export B70_WORKER_AFFINITY=1
export UR_L0_SYNC_MODE=BLOCKING
export VLLM_XPU_ENABLE_XPU_GRAPH=1
export PLE_TABLE_PATH=/path/to/ple_table_qwen4exp.pt

python -m vllm.entrypoints.openai.api_server \
  --model Intel/Qwen3.8-Flash-Next-W4A16-AutoRound \
  --tensor-parallel-size 4 \
  --enable-expert-parallel \
  --dtype bfloat16 \
  --max-model-len 262144 \
  --max-num-seqs 4 \
  --gpu-memory-utilization 0.85 \
  --kv-cache-dtype fp8 \
  --reasoning-parser qwen3 \
  --tool-call-parser qwen3_xml

Pins: vLLM main @ c39076fef, torch 2.13.0+xpu, vllm-xpu-kernels 0.1.14.1.

The two patches that matter for 4 discrete cards.

Worker affinity, 30 lines. Stock vLLM spawns each TP worker inheriting the parent ZE_AFFINITY_MASK, so every rank initializes all four devices. On discrete B70 over desktop PCIe that duplicates GB-scale host-RAM state per rank and opens cross-device IPC handles the Arc PCIe path rejects. The patch gives rank N a single-card mask, so each worker sees exactly one device. It is a throughput and host-RAM win, not a hard boot requirement. The 4-card box comes up without it on the selector fallback, just slower. The one thing that does break: setting the process-wide mask and the B70_WORKER_AFFINITY=1 gate together makes this torch build report "No XPU devices". The two are mutually exclusive. Pick one. Grab the patch first for the throughput.
https://github.com/devan-carlin/electric-sheep/blob/main/vllm/patches/b70-worker-affinity.patch

Model port, 17 files. Upstream vLLM has no qwen4_exp architecture. The port adds the registry entry, config class, W4A16 XPU linear kernels, and the linear-attention path.
https://github.com/devan-carlin/electric-sheep/blob/main/vllm/patches/qwen4exp-xpu-port.patch

Optional, throughput-neutral on my box (52.14 vs 52.00 on a matched bench). These keep large collectives on the host-staged path, avoiding peer-memory IPC handles some desktop PCIe topologies reject. Worth a line if your board rejects those handles:

export CCL_SYCL_ALLREDUCE_SIMPLE_THRESHOLD=4294967296
export CCL_SYCL_REDUCE_SCATTER_SIMPLE_THRESHOLD=4294967296
export CCL_SYCL_ALLGATHERV_SIMPLE_THRESHOLD=4294967296
export CCL_SYCL_ALLTOALL_TMP_BUF=1

Prereq most people miss. The PLE n-gram table is a ~95 GiB tensor memory-mapped from host RAM, built by a prep script before first launch. It is not in the checkpoint.

Proof it runs on this checkpoint. The affinity patch is live on the Intel AutoRound W4A16 right now. Gate fires rank=0..3 mask=0..3 visible=1, zero crashes, a 1500-token decode came back coherent.

Where to reproduce it.
Build recipe, patch stack, and launch flags: https://github.com/devan-carlin/intel-arc-pro-b70-inference-cookbook/blob/master/docs/VLLM-XPU-SOURCE-BUILD.md
The two patches and the launcher: https://github.com/devan-carlin/electric-sheep (patches in vllm/patches/, launchers in serve/)
The model port branch: https://github.com/devan-carlin/vllm/tree/xpu-qwen4exp

One INT4 fix is upstreamed as https://github.com/vllm-project/vllm/pull/52428, still open. The model port and affinity fix are not upstream yet.

Honestly, vLLM is the only performant option I've found on my B70 setup, and I've found better results trying to make the most of XPU (let me know if you uncover anything further down the road to increase performance). I've been pretty happy with ~50 tok/s. So far I've used Flash-Next as my go-to for high-quality work and NInfer running Qwen-27B (NVFP4) as my daily driver (I use it on my RTX 5090 that I created a Windows port for, and I get about 150 tok/s). I put some time into getting this working on my b70 setup, let me know if you run into any issues.

No LLM Scaler. I run upstream vLLM main plus a fork branch. LLM Scaler is Intel's quant and fork tooling, not a runtime dependency here. I have engaged it through issues, the Flash-Next feature request at https://github.com/intel/llm-scaler/issues/649 and the dual-B70 TP2 thread at https://github.com/intel/llm-scaler/issues/594. The serving stack is stock upstream plus two patches.

Hardware. 4x Intel Arc Pro B70, 32 GB each, 128 GB total. Threadripper PRO 3945WX, 256 GB host RAM. Desktop PCIe, no NVLink, no server-grade peer routing. That last part is the whole story for cards 3 and 4.

Throughput on this exact checkpoint (Intel AutoRound W4A16), single-stream decode: 53.8 to 54.2 tok/s with the worker-affinity patch on. Without it, on the ONEAPI_DEVICE_SELECTOR fallback, 45.4 tok/s. So the patch is about +18% and host-RAM, not booting.

Engine args. The live launch:

export VLLM_TARGET_DEVICE=xpu
export ZE_AFFINITY_MASK=0,1,2,3
export B70_WORKER_AFFINITY=1
export UR_L0_SYNC_MODE=BLOCKING
export VLLM_XPU_ENABLE_XPU_GRAPH=1
export PLE_TABLE_PATH=/path/to/ple_table_qwen4exp.pt

python -m vllm.entrypoints.openai.api_server \
  --model Intel/Qwen3.8-Flash-Next-W4A16-AutoRound \
  --tensor-parallel-size 4 \
  --enable-expert-parallel \
  --dtype bfloat16 \
  --max-model-len 262144 \
  --max-num-seqs 4 \
  --gpu-memory-utilization 0.85 \
  --kv-cache-dtype fp8 \
  --reasoning-parser qwen3 \
  --tool-call-parser qwen3_xml

Pins: vLLM main @ c39076fef, torch 2.13.0+xpu, vllm-xpu-kernels 0.1.14.1.

The two patches that matter for 4 discrete cards.

Worker affinity, 30 lines. Stock vLLM spawns each TP worker inheriting the parent ZE_AFFINITY_MASK, so every rank initializes all four devices. On discrete B70 over desktop PCIe that duplicates GB-scale host-RAM state per rank and opens cross-device IPC handles the Arc PCIe path rejects. The patch gives rank N a single-card mask, so each worker sees exactly one device. It is a throughput and host-RAM win, not a hard boot requirement. The 4-card box comes up without it on the selector fallback, just slower. The one thing that does break: setting the process-wide mask and the B70_WORKER_AFFINITY=1 gate together makes this torch build report "No XPU devices". The two are mutually exclusive. Pick one. Grab the patch first for the throughput.
https://github.com/devan-carlin/electric-sheep/blob/main/vllm/patches/b70-worker-affinity.patch

Model port, 17 files. Upstream vLLM has no qwen4_exp architecture. The port adds the registry entry, config class, W4A16 XPU linear kernels, and the linear-attention path.
https://github.com/devan-carlin/electric-sheep/blob/main/vllm/patches/qwen4exp-xpu-port.patch

Optional, throughput-neutral on my box (52.14 vs 52.00 on a matched bench). These keep large collectives on the host-staged path, avoiding peer-memory IPC handles some desktop PCIe topologies reject. Worth a line if your board rejects those handles:

export CCL_SYCL_ALLREDUCE_SIMPLE_THRESHOLD=4294967296
export CCL_SYCL_REDUCE_SCATTER_SIMPLE_THRESHOLD=4294967296
export CCL_SYCL_ALLGATHERV_SIMPLE_THRESHOLD=4294967296
export CCL_SYCL_ALLTOALL_TMP_BUF=1

Prereq most people miss. The PLE n-gram table is a ~95 GiB tensor memory-mapped from host RAM, built by a prep script before first launch. It is not in the checkpoint.

Proof it runs on this checkpoint. The affinity patch is live on the Intel AutoRound W4A16 right now. Gate fires rank=0..3 mask=0..3 visible=1, zero crashes, a 1500-token decode came back coherent.

Where to reproduce it.
Build recipe, patch stack, and launch flags: https://github.com/devan-carlin/intel-arc-pro-b70-inference-cookbook/blob/master/docs/VLLM-XPU-SOURCE-BUILD.md
The two patches and the launcher: https://github.com/devan-carlin/electric-sheep (patches in vllm/patches/, launchers in serve/)
The model port branch: https://github.com/devan-carlin/vllm/tree/xpu-qwen4exp

One INT4 fix is upstreamed as https://github.com/vllm-project/vllm/pull/52428, still open. The model port and affinity fix are not upstream yet.

Honestly, vLLM is the only performant option I've found on my B70 setup, and I've found better results trying to make the most of XPU (let me know if you uncover anything further down the road to increase performance). I've been pretty happy with ~50 tok/s. So far I've used Flash-Next as my go-to for high-quality work and NInfer running Qwen-27B (NVFP4) as my daily driver (I use it on my RTX 5090 that I created a Windows port for, and I get about 150 tok/s). I put some time into getting this working on my b70 setup, let me know if you run into any issues.

Thank you so much for the detailed writeup! Wish it wasn't this in-depth just to run a new model on the Intel GPUs but I am sure it will catch up over time! Will post when I get the cards!

Prereq most people miss. The PLE n-gram table is a ~95 GiB tensor memory-mapped from host RAM, built by a prep script before first launch. It is not in the checkpoint.

You mentioned a prep script. Which one are you talking about specifically? Also, I only have 128GB of system RAM. I was hoping to quantize the lookup table and wondering if you have any suggestions on this.

The prep script is phase_b_ple_table_prep.py. It concatenates the 128 BF16 shards the checkpoint ships (...ple.ple_embedding.ngram_embedding.shard_{i}.weight, each [2500012, 160]) into one [320001536, 160] BF16 tensor and saves it as a torch file the loader memory-maps. It is here: https://github.com/devan-carlin/electric-sheep/blob/main/vllm/phase_b_ple_table_prep.py

On the 128 GB concern, the 95.4 GiB is address space, not a RAM reservation. The loader does torch.load(path, mmap=True), and all four TP ranks map the same file, so the OS page cache is shared, not four copies. The proof is arithmetic: 4 x 95.4 GiB is 381 GiB, which cannot be resident on my 256 GB box, yet it runs. Right now the box shows 45 GiB used and 107 GiB in reclaimable page cache. The table lives in that cache, not in process RSS.

So on 128 GB it will run, and it will not OOM, because page cache is reclaimable. The real risk is different. The n-gram gather is host-side and synchronous, table[rows] on CPU, then only a [T, 2560] slice moves to the GPU. If the hot working set exceeds free RAM, the table page-faults from disk on cache misses and decode slows. On my 256 GB box the whole table stays hot. On 128 you are near the edge of keeping it hot, not over it by much. That is inference from the mmap design and my 256 GB numbers, not a 128 GB measurement on my side.

Quantizing the table is the right lever if you do hit it. int8 or fp8 halves it to 47.7 GiB, which fits with room to stay hot. Two catches. First, it is a code change, not a flag. The loader reads the table as BF16 and the forward gathers table[rows].to(device) into a BF16 matmul. To quantize, store int8 plus a scale and dequant at gather time (table[rows].to(bfloat16) * scale), or use fp8_e4m3, which casts to bf16 directly. The gather is only [T, 2560] per step, so the dequant is cheap. Second, the table feeds a signed-sqrt sigmoid gate, so int8 could degrade gate quality. I have not measured int8 table quality, so that is the thing to check if you try it.

My order of operations: run it as-is on 128 first, watch free -g during a long decode, and only quantize if the page cache thrashes and decode drops.

I'm also very hapy with this model

I'm running on 4xB70s with INT8 PLE on NVMe and 128GB RAM for KVache - 4 days zero gliches with the last state of my code. Both the Intel AutoRound Varian and the AWQ one. This Intel AutRound has a bit more refined behavior than the AWQ maybe. The Intel takes some more GBs in the ram than the AWQ when loading.

Complete procedure at:
https://github.com/Lumnus/b70-flash-next

It's on an EPYC RomeD8-2T with 256G DDR4/2666 ram
128G RAM KV cache
PLE on NVMe at INT8
Stable decode for 6-10 concurrent agentic sessions.

it's a powerhouse!

image

I'm also very hapy with this model

I'm running on 4xB70s with INT8 PLE on NVMe and 128GB RAM for KVache - 4 days zero gliches with the last state of my code. Both the Intel AutoRound Varian and the AWQ one. This Intel AutRound has a bit more refined behavior than the AWQ maybe. The Intel takes some more GBs in the ram than the AWQ when loading.

Complete procedure at:
https://github.com/Lumnus/b70-flash-next

It's on an EPYC RomeD8-2T with 256G DDR4/2666 ram
128G RAM KV cache
PLE on NVMe at INT8
Stable decode for 6-10 concurrent agentic sessions.

it's a powerhouse!

image

After much tinkering I landed on this build as well. Been working really good! Using the 8INT PLE table as well as I only had 128GB of system RAM. Got it running in my docker compose setup w/ openwebui and using it in OpenCode as well.

Sign up or log in to comment