hryou1998 commited on
Commit
db4fcd2
·
verified ·
1 Parent(s): 43b606d

Model card: hardware compatibility (requirements, GPU memory by context length)

Browse files
Files changed (1) hide show
  1. README.md +27 -0
README.md CHANGED
@@ -63,6 +63,33 @@ Against Q4_K_M, the 4.4-bit model is 1 win / 3 ties / 1 loss, Q3_K_M 1 / 2 / 2,
63
  including Q3_K_M. Per-category tables, pass^2, protocol and raw numbers:
64
  [docs/results.md](https://github.com/ranery/ShiftAddQwen/blob/main/docs/results.md#agentic-benchmarks-tool-calling).
65
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  ## Run
67
 
68
  ```bash
 
63
  including Q3_K_M. Per-category tables, pass^2, protocol and raw numbers:
64
  [docs/results.md](https://github.com/ranery/ShiftAddQwen/blob/main/docs/results.md#agentic-benchmarks-tool-calling).
65
 
66
+ ## Hardware compatibility
67
+
68
+ **Requirements.** An NVIDIA GPU and the patched llama.cpp from the [repository](https://github.com/ranery/ShiftAddQwen)
69
+ (`scripts/setup_llama.sh`, CUDA toolkit 12.x). The decode kernels use `dp4a`, so any GPU of compute capability 6.1 or
70
+ newer can run them; tested on V100 (`CUDA_ARCH=70`) and A100 (`CUDA_ARCH=80`), set `CUDA_ARCH` to your GPU when building.
71
+ A CPU reference implementation is included (correct, but slow). Not supported: stock llama.cpp and the tools that bundle it
72
+ (Ollama, LM Studio, llama-cpp-python wheels), Metal, Vulkan and ROCm backends.
73
+
74
+ **GPU memory** ≈ file size + KV cache + ~0.3 GB of compute buffers. Qwen3.5-9B has 8 full-attention layers (the other 24
75
+ are Gated-DeltaNet layers with a small fixed-size state), 4 KV heads and 256-dim heads, so the f16 KV cache costs
76
+ 32 KB per token of context: 1 GB at 32K, 4.2 GB at 128K, 8.4 GB at the full 262K. `-ctk q8_0 -ctv q8_0` halves it.
77
+ Estimated GPU memory in GB by context length (measured on a V100: 13.7 GB for the 4.0-bit file at 262K, against 14.6 GB
78
+ for Q4_K_M):
79
+
80
+ | file | GB | 8K | 32K | 128K | 262K |
81
+ |---|---|---|---|---|---|
82
+ | `ShiftAddQwen-3.5-9B-4.4bits.gguf` | 5.10 | 5.7 | 6.5 | 9.7 | 14.0 |
83
+ | `ShiftAddQwen-3.5-9B-4.0bits.gguf` | 4.76 | 5.3 | 6.1 | 9.4 | 13.6 |
84
+ | `ShiftAddQwen-3.5-9B-3.6bits.gguf` | 4.41 | 5.0 | 5.8 | 9.0 | 13.3 |
85
+ | `ShiftAddQwen-3.5-9B-3.2bits.gguf` | 4.07 | 4.6 | 5.4 | 8.7 | 13.0 |
86
+ | `ShiftAddQwen-3.5-9B-3.0bits.gguf` | 3.90 | 4.5 | 5.3 | 8.5 | 12.8 |
87
+
88
+ So every file fits an 8 GB GPU (RTX 3070 / 4060 / 2080) at 32K context, a 12 GB GPU (RTX 3060 12 GB / 4070) at 128K,
89
+ and a 16 GB GPU (RTX 4060 Ti 16 GB / 4080 / V100 16 GB) at the full 262K; the 3.0- and 3.2-bit files fit a 6 GB GPU
90
+ (RTX 2060 / 3050 / GTX 1660) at 32K. Add about 0.2 GB for the MTP draft head with `--spec-type draft-mtp`, and the KV
91
+ cache is per slot: `-np N` multiplies the context term by N.
92
+
93
  ## Run
94
 
95
  ```bash