Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
7bc94a0f
Unverified
Commit
7bc94a0f
authored
Mar 28, 2024
by
Simon Mo
Committed by
GitHub
Mar 28, 2024
Browse files
add ccache to docker build image (#3704)
parent
756b30a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Dockerfile
Dockerfile
+6
-1
No files found.
Dockerfile
View file @
7bc94a0f
...
...
@@ -35,6 +35,9 @@ COPY requirements-build.txt requirements-build.txt
RUN
--mount
=
type
=
cache,target
=
/root/.cache/pip
\
pip
install
-r
requirements-build.txt
# install compiler cache to speed up compilation leveraging local or remote caching
RUN
apt-get update
-y
&&
apt-get
install
-y
ccache
# copy input files
COPY
csrc csrc
COPY
setup.py setup.py
...
...
@@ -56,7 +59,9 @@ ENV NVCC_THREADS=$nvcc_threads
# make sure punica kernels are built (for LoRA)
ENV
VLLM_INSTALL_PUNICA_KERNELS=1
RUN
python3 setup.py build_ext
--inplace
ENV
CCACHE_DIR=/root/.cache/ccache
RUN
--mount
=
type
=
cache,target
=
/root/.cache/ccache
\
python3 setup.py build_ext
--inplace
#################### EXTENSION Build IMAGE ####################
#################### FLASH_ATTENTION Build IMAGE ####################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment