facebookresearch / facebookresearch/SpinQuant

Compatability With GGUF format

Open
#41 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
428
Forks
93
PR merge metrics
No merged PRs in 30d

Description

I've tried to apply SpinQuant to llama.cpp by following steps

1. Fuse R1, R2 Rotation Matrix **(UnQuantized)**
2. Convert to gguf file **(UnQuantized)**
4. Quantize to data_types supported in llama.cpp (ex) Q8_0,Q4_0 **(Quantized)**
However, Models fused by R1,R2 Matrix show worse perplexity than models quantized by Round-to-Nearest supported in llama.cpp.

In order to implement this, I've skipped fusing R4 Inverse Matrix,since it would require additional implementation to llama.cpp file.

Have you found these issues. If so, could you reveal the reason behind this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.