xinfer-ai 0.13.5 → 0.13.6

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 CHANGED
@@ -23,9 +23,7 @@
23
23
 
24
24
  ## 📽️ Demo
25
25
 
26
- <p align="center">
27
- <video src="https://guoqingbao.github.io/xinfer/assets/demo.mp4" width="600" controls></video>
28
- </p>
26
+ <video src="pages/assets/demo.mp4" width="600" controls></video>
29
27
 
30
28
  ---
31
29
 
@@ -137,9 +135,10 @@ Add `--kvcache-dtype` to compress KV cache and extend context length:
137
135
  * ✅ Qwen3.5/3.6 Dense/MoE (27B, 35B, 122B, 397B, Multimodal model)
138
136
  * ✅ Mistral v1, v2
139
137
  * ✅ Mistral-3-VL Reasoning (3B, 8B, 14B, Multimodal model)
140
- * ✅ GLM4 (0414, **Not ChatGLM**)
138
+ * ✅ GLM4 (0414)
141
139
  * ✅ GLM4 MoE (4.6/4.7)
142
140
  * ✅ GLM4.7 Flash
141
+ * ✅ GLM 5.2 (DeepSeek V3.2 DSA architecture)
143
142
  * ✅ DeepSeek V3/R1/V3.2
144
143
  * ✅ Phi3 / Phi4 (Phi-3, Phi-4, Phi-4-mini, etc.)
145
144
  * ✅ Gemma3/**Gemma4** (Multimodal model)
@@ -218,6 +217,9 @@ xinfer --m olka-fi/Qwen3.5-4B-MXFP4
218
217
  # GGUF model (4-bit KvCache)
219
218
  xinfer --m unsloth/Qwen3.5-27B-GGUF --f Qwen3.5-27B-Q4_K_M.gguf --kvcache-dtype turbo4
220
219
 
220
+ # Multi-shard 5.2 GGUF (auto-detected from HF subfolder)
221
+ xinfer --d 0,1,2,3 --m unsloth/Qwen3.5-122B-A10B-GGUF --f Q3_K_M --kvcache-dtype fp8
222
+
221
223
  # FP8 on Metal
222
224
  xinfer --m Qwen/Qwen3.5-4B-FP8
223
225
 
@@ -229,6 +231,15 @@ xinfer --m GadflyII/GLM-4.7-Flash-NVFP4
229
231
 
230
232
  # Interactive CLI chat
231
233
  xinfer --i --m unsloth/Qwen3.5-27B-GGUF --f Qwen3.5-27B-Q4_K_M.gguf
234
+
235
+ # Faster GDN prefill on Hopper with slight precision loss
236
+ SM90_LOWER_PRECISION_GDN_PREFILL=1 xinfer --m Qwen/Qwen3.5-35B-A3B-FP8
237
+
238
+ # MultiNode: GLM 5.2 (DeepSeek V3.2 architecture, FP8)
239
+ # Master node
240
+ xinfer --d 0,1,2,3,4,5,6,7 --m zai-org/GLM-5.2-FP8 --num-nodes 2 --node-rank 0 --master-addr 192.168.xxx.xxx
241
+ # Other node(s)
242
+ xinfer --d 0,1,2,3,4,5,6,7 --m zai-org/GLM-5.2-FP8 --num-nodes 2 --node-rank 1 --master-addr 192.168.xxx.xxx
232
243
  ```
233
244
 
234
245
  <details>
@@ -261,7 +272,7 @@ xinfer --m unsloth/Qwen3.5-27B-GGUF --f Qwen3.5-27B-Q4_K_M.gguf
261
272
  xinfer --d 0,1 --m /path/Qwen3-30B-A3B-Instruct-2507-Q4_K_M.gguf
262
273
 
263
274
  # Local GGUF folder
264
- xinfer --d 0,1,2,3 --m /path/to/model-GGUF/
275
+ xinfer --d 0,1,2,3 --m /path/to/Qwen3.5-122B-A10B-GGUF/Q3_K_M
265
276
  ```
266
277
 
267
278
  </details>
@@ -506,12 +517,19 @@ Constraint-based generation via llguidance — Lark grammars, regex, JSON Schema
506
517
  | Variable | Description |
507
518
  |---|---|
508
519
  | `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. |
520
+ | `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. |
521
+ | `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. |
509
522
 
510
523
  **Example (Blackwell with high-precision NVFP4 decode):**
511
524
  ```bash
512
525
  XINFER_NVFP4_FORCE_LUT=1 xinfer --m nvidia/Qwen3-30B-A3B-FP4 --ui-server
513
526
  ```
514
527
 
528
+ **Example (Hopper with faster GDN prefill):**
529
+ ```bash
530
+ SM90_LOWER_PRECISION_GDN_PREFILL=1 xinfer --m Qwen/Qwen3.5-35B-A3B-FP8 --ui-server
531
+ ```
532
+
515
533
  ---
516
534
 
517
535
  ## 🛠️ Roadmap
@@ -535,7 +553,8 @@ XINFER_NVFP4_FORCE_LUT=1 xinfer --m nvidia/Qwen3-30B-A3B-FP4 --ui-server
535
553
  * [x] FP8 KV Cache (with FlashInfer, SM80+)
536
554
  * [x] TurboQuant KV Cache (2-4 bit compression with WHT rotation)
537
555
  * [x] FP8 Models (CUDA: MoE, Dense; Metal: Dense)
538
- * [ ] Additional model support (Kimi K2, GLM 5.1 etc.)
556
+ * [x] GLM 5.2 (DeepSeek V3.2 + DSA)
557
+ * [ ] Additional model support (Kimi K2, etc.)
539
558
  * [x] CPU KV Cache Offloading
540
559
  * [x] Prefill-decode Disaggregation (CUDA)
541
560
  * [x] Prefill-decode Disaggregation (Metal)
@@ -47,7 +47,7 @@ cargo build --release --features metal
47
47
  ```
48
48
  - **GGUF quantized (folder with auto-detection)**
49
49
  ```bash
50
- target/release/xinfer --m /path/model-GGUF/ --ui-server
50
+ target/release/xinfer --m /path/GLM-5.2-GGUF/ --ui-server
51
51
  ```
52
52
  - **Remote GGUF quantized (multi-shard subfolder)**
53
53
  ```bash
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "xinfer-ai",
3
- "version": "0.13.5",
4
- "assetVersion": "0.13.5",
3
+ "version": "0.13.6",
4
+ "assetVersion": "0.13.6",
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",