Skip to content

Commit 90df7f2

Browse files
authored
[Doc] Add guidance for using ccache with pip install -e . in doc (#14901)
1 parent b9b5bdf commit 90df7f2

File tree

1 file changed

+2
-0
lines changed
  • docs/source/getting_started/installation/gpu

1 file changed

+2
-0
lines changed

docs/source/getting_started/installation/gpu/cuda.inc.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ Building from source requires a lot of compilation. If you are building from sou
131131
For example, you can install [ccache](https://github.com/ccache/ccache) using `conda install ccache` or `apt install ccache` .
132132
As long as `which ccache` command can find the `ccache` binary, it will be used automatically by the build system. After the first build, subsequent builds will be much faster.
133133

134+
When using `ccache` with `pip install -e .`, you should run `CCACHE_NOHASHDIR="true" pip install --no-build-isolation -e .`. This is because `pip` creates a new folder with a random name for each build, preventing `ccache` from recognizing that the same files are being built.
135+
134136
[sccache](https://github.com/mozilla/sccache) works similarly to `ccache`, but has the capability to utilize caching in remote storage environments.
135137
The following environment variables can be set to configure the vLLM `sccache` remote: `SCCACHE_BUCKET=vllm-build-sccache SCCACHE_REGION=us-west-2 SCCACHE_S3_NO_CREDENTIALS=1`. We also recommend setting `SCCACHE_IDLE_TIMEOUT=0`.
136138
:::

0 commit comments

Comments
 (0)