Download LLM-Drop/scripts/quantization/gptq.sh from s1ghhh/nbl_try: direct link, hf CLI and curl.
- Browser
- Download file 497 Bytes
-
https://huggingface.co/s1ghhh/nbl_try/resolve/main/LLM-Drop/scripts/quantization/gptq.sh
- Command line
-
hf download hf://s1ghhh/nbl_try/LLM-Drop/scripts/quantization/gptq.sh
-
curl -L -o gptq.sh https://huggingface.co/s1ghhh/nbl_try/resolve/main/LLM-Drop/scripts/quantization/gptq.sh
497 Bytes
| model_path="########PATH_TO_HUGGING_FACE_CHECKPOINT#########" | |
| quant_path="########PATH_TO_SAVE_THE_QUANTIZED_MODEL########" | |
| bits=4 | |
| seed=0 | |
| num_samples=16 | |
| calibration_template=default | |
| python AutoGPTQ/quantize.py \ | |
| --pretrained_model_dir $model_path \ | |
| --quantized_model_dir $quant_path \ | |
| --bits $bits \ | |
| --save_and_reload \ | |
| --desc_act \ | |
| --seed $seed \ | |
| --num_samples $num_samples \ | |
| --calibration-template $calibration_template \ | |
| --trust_remote_code \ | |
| --use_triton |