xinfer-ai 0.14.2 → 0.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -99,8 +99,8 @@ Add `--kvcache-dtype` to compress KV cache and extend context length:
|
|
|
99
99
|
| **Qwen3-30B-A3B** | NVFP4 | **30B (MoE)** | **197.29** tokens/s (**RTX 5090**) |
|
|
100
100
|
| **Qwen3-30B-A3B** | NVFP4 | **30B (MoE)** | **72.86** tokens/s (**V100, Software FP4**) |
|
|
101
101
|
| **Qwen3-Next-80B** | AWQ | **80B (MoE)** | **90** tokens/s (**Hopper**) |
|
|
102
|
-
| **Qwen3.5
|
|
103
|
-
| **Qwen3.5
|
|
102
|
+
| **Qwen3.5/3.6/3.8 27B** (**Multimodal**) | Q4_K_M/IQ4 | **27B (Dense)** | **58** tokens/s |
|
|
103
|
+
| **Qwen3.5/3.6/3.8 27B** | FP8 | **27B (Dense)** | **45** tokens/s (**Hopper**) |
|
|
104
104
|
| **Qwen3.6-35B-A3B** (**Multimodal**) | FP8 | **35B (MoE)** | **120** tokens/s (**Hopper**) |
|
|
105
105
|
| **GLM4.7 Flash** | NVFP4 | **30B (MoE)** | **79** tokens/s (**Hopper, Software FP4**) |
|
|
106
106
|
| **Gemma4-31B** | ISQ (BF16→Q4K) | **31B (Dense)** | **47** tokens/s (**Hopper**) |
|
|
@@ -133,7 +133,7 @@ Add `--kvcache-dtype` to compress KV cache and extend context length:
|
|
|
133
133
|
* ✅ Qwen (Qwen2, Qwen3)
|
|
134
134
|
* ✅ Qwen2/Qwen3 MoE
|
|
135
135
|
* ✅ Qwen3 Next
|
|
136
|
-
* ✅ Qwen3.5/3.6 Dense/MoE (27B, 35B, 122B, 397B, Multimodal model)
|
|
136
|
+
* ✅ Qwen3.5/3.6/3.8 Dense/MoE (27B, 35B, 122B, 397B, Multimodal model)
|
|
137
137
|
* ✅ Mistral v1, v2
|
|
138
138
|
* ✅ Mistral-3-VL Reasoning (3B, 8B, 14B, Multimodal model)
|
|
139
139
|
* ✅ GLM4 (0414)
|
|
@@ -141,12 +141,15 @@ Add `--kvcache-dtype` to compress KV cache and extend context length:
|
|
|
141
141
|
* ✅ GLM4.7 Flash
|
|
142
142
|
* ✅ GLM 5.2 (DeepSeek V3.2 DSA architecture)
|
|
143
143
|
* ✅ DeepSeek V3/R1/V3.2
|
|
144
|
+
* ✅ **DeepSeek V4** (support 2-bit ISQ via `--isq w2`)
|
|
144
145
|
* ✅ Phi3 / Phi4 (Phi-3, Phi-4, Phi-4-mini, etc.)
|
|
145
146
|
* ✅ Gemma3/**Gemma4** (Multimodal model)
|
|
146
147
|
* ✅ Qwen3-VL (Dense, Multimodal model)
|
|
147
148
|
* ✅ MiroThinker-v1.5 (30B, 235B)
|
|
148
149
|
|
|
149
|
-
**Formats:** Safetensors (BF16, `FP8-blockwise`, GPTQ, AWQ, MXFP4, `NVFP4`) | GGUF (all quant types) | `ISQ` (on-the-fly quantization)
|
|
150
|
+
**Formats:** Safetensors (BF16, `FP8-blockwise`, GPTQ, AWQ, MXFP4, `NVFP4`) | GGUF (all quant types) | `ISQ` (on-the-fly quantization, including **2-bit W2** for DeepSeek V4 MoE)
|
|
151
|
+
|
|
152
|
+
> **DeepSeek V4 Flash + 2-bit ISQ:** `--isq w2` re-packs MXFP4 routed experts to 2-bit on load. With 2× GPU tensor parallel (`--d 0,1`), model weights use about **46 GB per GPU** (**46 × 2 GB** total).
|
|
150
153
|
|
|
151
154
|
---
|
|
152
155
|
|
|
@@ -209,6 +212,9 @@ xinfer --d 0,1 --m Qwen/Qwen3-30B-A3B-Instruct-2507 --kvcache-dtype fp8
|
|
|
209
212
|
# ISQ on-the-fly quantization
|
|
210
213
|
xinfer --m Qwen/Qwen3.6-35B-A3B --isq q4k
|
|
211
214
|
|
|
215
|
+
# DeepSeek V4 Flash (2-bit ISQ MoE, ~46 GB weights/GPU on 2× TP)
|
|
216
|
+
xinfer --d 0,1 --m /path/DeepSeek-V4-Flash --isq w2 --kv-fraction 0.7 --ui-server
|
|
217
|
+
|
|
212
218
|
# NVFP4 model
|
|
213
219
|
xinfer --m unsloth/Qwen3.6-27B-NVFP4
|
|
214
220
|
|
|
@@ -258,6 +264,9 @@ xinfer --m Qwen/Qwen3.6-35B-A3B --isq q4k --kvcache-dtype turbo4
|
|
|
258
264
|
|
|
259
265
|
# Metal ISQ
|
|
260
266
|
xinfer --m /path/Qwen3-4B --isq q6k
|
|
267
|
+
|
|
268
|
+
# DeepSeek V4 Flash: 2-bit W2 ISQ for routed MoE experts (~46 GB weights/GPU, 2× TP)
|
|
269
|
+
xinfer --d 0,1 --m /path/DeepSeek-V4-Flash --isq w2 --kv-fraction 0.7
|
|
261
270
|
```
|
|
262
271
|
|
|
263
272
|
</details>
|
|
@@ -500,7 +509,7 @@ xinfer --m Qwen/Qwen3.6-27B-FP8 --ui-server --enable-tool-grammar
|
|
|
500
509
|
| `--ui-server` | API server + built-in ChatGPT-style web UI |
|
|
501
510
|
| `--server` | API server. Bare: `0.0.0.0:8000`; or `host[:port]`, `file:///path`, `socket:///path`, `unix:///path` |
|
|
502
511
|
| `--i` | Interactive CLI chat |
|
|
503
|
-
| `--isq` | On-the-fly quantization: `q2k`, `q3k`, `q4k`, `q5k`, `q6k`, `q8_0` |
|
|
512
|
+
| `--isq` | On-the-fly quantization: `q2k`, `q3k`, `q4k`, `q5k`, `q6k`, `q8_0`, `w2` / `moe_w2` |
|
|
504
513
|
| `--kvcache-dtype` | KV cache quantization: `fp8`, `turbo8`, `turbo4`, `turbo3` |
|
|
505
514
|
| `--max-num-seqs` | Max concurrent requests (default: 32, macOS: 8) |
|
|
506
515
|
| `--max-tokens` | Max tokens per response (default: 16384) |
|
|
@@ -527,6 +536,7 @@ xinfer --m Qwen/Qwen3.6-27B-FP8 --ui-server --enable-tool-grammar
|
|
|
527
536
|
| Variable | Description |
|
|
528
537
|
|---|---|
|
|
529
538
|
| `XINFER_NVFP4_FORCE_LUT=1` | Force software NVFP4 decode to use the LUT-based dequantization path (higher precision) instead of hardware FP4 intrinsics on Blackwell (SM100+). Useful when decode precision matters more than peak throughput. |
|
|
539
|
+
| `XINFER_ENABLE_FLASHMLA` | Enables DeepSeek V4 sparse MLA acceleration when set to `1` or `true`. It is disabled by default (unset), so the precision-preserving custom BF16 sparse-attention kernel is used. |
|
|
530
540
|
| `XINFER_SSE_BUFFER_SIZE=256` | Size of the bounded SSE streaming buffer per client connection (default: 256). Increase for slow network proxies or high-throughput models. |
|
|
531
541
|
| `SM90_LOWER_PRECISION_GDN_PREFILL=1` | Enable the FlashInfer SM90 persistent kernel for GatedDeltaNet (GDN) prefill on Hopper GPUs (SM90). Delivers faster prefill speedup for Qwen3.5/3.6, with a slight precision trade-off. |
|
|
532
542
|
|
|
@@ -564,6 +574,7 @@ SM90_LOWER_PRECISION_GDN_PREFILL=1 xinfer --m Qwen/Qwen3.5-35B-A3B-FP8 --ui-serv
|
|
|
564
574
|
* [x] TurboQuant KV Cache (2-4 bit compression with WHT rotation)
|
|
565
575
|
* [x] FP8 Models (CUDA: MoE, Dense; Metal: Dense)
|
|
566
576
|
* [x] GLM 5.2 (DeepSeek V3.2 + DSA)
|
|
577
|
+
* [x] DeepSeek V4 (Flash) + 2-bit W2 ISQ MoE (~46 GB weights/GPU × 2)
|
|
567
578
|
* [ ] Additional model support (Kimi K2, etc.)
|
|
568
579
|
* [x] CPU KV Cache Offloading
|
|
569
580
|
* [x] Prefill-decode Disaggregation (CUDA)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xinfer-ai",
|
|
3
|
-
"version": "0.14.
|
|
4
|
-
"assetVersion": "0.14.
|
|
3
|
+
"version": "0.14.4",
|
|
4
|
+
"assetVersion": "0.14.4",
|
|
5
5
|
"description": "xInfer — a high-performance LLM inference engine in Rust with CUDA/Metal acceleration",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/guoqingbao/xinfer#readme",
|