Files
Guoqing BaoandGitHub 210061f3f9 Support GLM4 model! (#1437)
* Support GLM4 model

* Mention GLM4 model in ReadMe

* glm4 type hint

* Typo fix

* Fix unsupported chat_template function

* Clippy fix
2025-06-19 05:45:43 -04:00

823 B

mistralrs-quant

An advanced and highly diverse set of quantization techniques. This crate supports both quantization and optimized inference.

It has grown beyon simply quantization and is used by mistral.rs to power:

  • ISQ
  • Imatrix collection
  • General quantization features
  • Specific CUDA and Metal features
  • cuBLASlt integration

Currently supported:

  • GGUF: GgufMatMul(2-8 bit quantization, with imatrix)
  • Gptq/Awq: GptqAwqLayer(with CUDA marlin kernel)
  • Hqq: HqqLayer (4, 8 bit quantization)
  • FP8: FP8Linear(optimized on CUDA)
  • Unquantized (used for ISQ): UnquantLinear
  • Bnb: BnbLinear (int8, fp4, nf4)

Some kernels are copied or based on implementations in: