1.1 KiB
1.1 KiB
Running PTQ Experiments
Install Dependencies
Before doing anything, make sure you've installed fouroversix with our test dependencies:
pip install -e .[evals] --no-build-isolation
Also, make sure you've cloned all of our submodules:
git submodule update --init
Then, depending on which PTQ method you would like to test, you may need to run some additional commands.
AWQ
pip install --no-deps third_party/llm-awq
GPTQ
- Install Fast Hadamard Transform
pip install --no-build-isolation third_party/fast-hadamard-transform
- Install QuTLASS
pip install --no-build-isolation third_party/qutlass
- Install FP-Quant
pip install third_party/fp-quant/inference_lib
High Precision
No installation necessary!
Round-to-Nearest (RTN)
No installation necessary!
SmoothQuant
No installation necessary!
SpinQuant
- Install Fast Hadamard Transform
pip install --no-build-isolation third_party/fast-hadamard-transform
- Downgrade Transformers if your installation is up-to-date
pip install "transformers<5.0"