forked from SNU-ARC/any-precision-llm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 762 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM nvidia/cuda:12.1.1-devel-ubuntu22.04
MAINTAINER SangLyul Cho <chosanglyul@gmail.com>
RUN apt update && apt upgrade -y && apt install -y pip ninja-build vim
WORKDIR /home/any-precision-llm
COPY ./requirements.txt ./requirements.txt
RUN pip install -r requirements.txt
WORKDIR any_precision/modules/kernels
COPY any_precision/modules/kernels .
# TODO support sm60 and sm61 (Pascal)
RUN TORCH_CUDA_ARCH_LIST="7.0 7.5 8.0 8.6 8.9 9.0" python3 setup.py sdist bdist_wheel
RUN pip install dist/any_precision_ext-0.0.0-cp310-cp310-linux_x86_64.whl
WORKDIR ../../..
COPY . .
RUN python3 setup.py sdist bdist_wheel
RUN pip install dist/any_precision_llm-0.0.0-py3-none-any.whl
RUN mv demo.py quantize.py ..
WORKDIR ..
RUN rm -rf any-precision-llm
CMD /bin/bash