smoothquant
[ICML 2023] SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
파일 탐색기
최종 버전 다운로드 (.zip)- README.md
- SmoothQuant.pdf
- export_int8_model.py
- generate_act_scales.py
- ppl_eval.sh
- smoothquant_llama_demo.ipynb
- smoothquant_opt_demo.ipynb
- smoothquant_opt_real_int8_demo.ipynb
- accuracy.png
- ft_latency_mem.png
- intuition.png
- migrate.jpg
- quantization_flow.png
- torch_latency_mem.png
- __init__.py
- calibration.py
- fake_quant.py
- opt.py
- ppl_eval.py
- smooth.py
- .gitattributes
- .gitignore
- LICENSE
- README.md
- setup.py
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/mit-han-lab/smoothquant
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd smoothquant
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. 공식 설치 스크립트
쉬움 추천사전 준비물
- Python 3 pip 명령어를 쓰려면 Python이 필요합니다.
pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
pip install transformers==4.36.0 accelerate datasets zstandard
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
설치 후 새 터미널을 열고, 프로그램의 버전 확인 명령(예: --version)으로 정상 설치됐는지 확인하세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
3. Python
쉬움사전 준비물
pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
pip install transformers==4.36.0 accelerate datasets zstandard
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
에러 메시지 없이 실행되고 터미널에 안내 문구가 출력되면 정상입니다.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
// repository documentation
Was this content helpful?
(0 ratings)
