You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more details on available algorithms, see the [ZenDNN MatMul Algorithm Documentation](https://github.com/amd/ZenDNN/blob/a18adf8c605fb5f5e52cefd7eda08a7b18febbaf/docs/runtime_env.md#algorithm-details).
178
190
191
+
### Q8_0 Performance Notes
192
+
193
+
Q8_0 support is mainly beneficial for prompt processing / prefill workloads where large matrix multiplications dominate execution. Token generation performance may remain close to the standard CPU backend depending on the model, batch size, number of threads, and CPU topology.
194
+
195
+
For best results with Q8_0 models:
196
+
197
+
- Use a supported AMD Zen-based CPU.
198
+
- Use `ZENDNNL_MATMUL_ALGO=1`.
199
+
- Use sufficiently large prompt/batch workloads to expose matrix multiplication acceleration.
200
+
- Enable profiling or logging to verify that ZenDNN MatMul kernels are being used.
201
+
179
202
### Profiling and Debugging
180
203
181
204
For detailed profiling and logging options, refer to the [ZenDNN Logging Documentation](https://github.com/amd/ZenDNN/blob/a18adf8c605fb5f5e52cefd7eda08a7b18febbaf/docs/logging.md).
@@ -184,6 +207,7 @@ For detailed profiling and logging options, refer to the [ZenDNN Logging Documen
184
207
185
208
-**Limited operation support**: Currently matrix multiplication (MUL_MAT) and expert-based matrix multiplication (MUL_MAT_ID) are accelerated via ZenDNN. Other operations fall back to the standard CPU backend. Future updates may expand supported operations.
186
209
-**BF16 support**: BF16 operations require AMD Zen 4 or Zen 5 architecture (EPYC 9004/9005 series). On older CPUs, operations will use FP32.
210
+
-**Q8_0 support scope**: Q8_0 acceleration is available for supported matrix multiplication paths. Other quantization formats may still fall back to the standard CPU backend.
187
211
-**NUMA awareness**: For multi-socket systems, manual NUMA binding may be required for optimal performance.
188
212
189
213
## Q&A
@@ -202,7 +226,7 @@ A: ZenDNN is optimized specifically for AMD processors. While it may work on oth
202
226
203
227
**Q: Does ZenDNN support quantized models?**
204
228
205
-
A: Currently, ZenDNN primarily supports FP32 and BF16 data types. Quantized model support is not available at this time.
229
+
A: Yes. The ZenDNN backend supports Q8_0 quantized models for supported matrix multiplication operations. FP32 and BF16 are also supported. Other quantization formats may fall back to the standard CPU backend unless explicitly supported by the ZenDNN backend.
206
230
207
231
**Q: Why is my inference not faster with ZenDNN?**
0 commit comments