Download examples/export/quantize/gptq.sh from BBBBCHAN/StreamDelta: direct link, hf CLI and curl.
- Browser
- Download file 478 Bytes
-
https://huggingface.co/datasets/BBBBCHAN/StreamDelta/resolve/main/examples/export/quantize/gptq.sh
- Command line
-
hf download hf://datasets/BBBBCHAN/StreamDelta/examples/export/quantize/gptq.sh
-
curl -L -o gptq.sh https://huggingface.co/datasets/BBBBCHAN/StreamDelta/resolve/main/examples/export/quantize/gptq.sh
478 Bytes
| # OMP_NUM_THREADS=14 please Check issue: https://github.com/AutoGPTQ/AutoGPTQ/issues/439 | |
| OMP_NUM_THREADS=14 \ | |
| CUDA_VISIBLE_DEVICES=0 \ | |
| swift export \ | |
| --model Qwen/Qwen2.5-1.5B-Instruct \ | |
| --dataset 'AI-ModelScope/alpaca-gpt4-data-zh#500' \ | |
| 'AI-ModelScope/alpaca-gpt4-data-en#500' \ | |
| --quant_n_samples 256 \ | |
| --quant_batch_size 1 \ | |
| --max_length 2048 \ | |
| --quant_method gptq \ | |
| --quant_bits 4 \ | |
| --output_dir Qwen2.5-1.5B-Instruct-GPTQ-Int4 | |