Skip to content

Commit 114cea1

Browse files
youkaichaoImss27
authored andcommitted
[doc] improve installation doc (vllm-project#8550)
Co-authored-by: Andy Dai <[email protected]> Signed-off-by: Alvant <[email protected]>
1 parent 128425b commit 114cea1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/source/getting_started/installation.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ You can also build and install vLLM from source:
9595
$ export MAX_JOBS=6
9696
$ pip install -e .
9797
98+
This is especially useful when you are building on less powerful machines. For example, when you use WSL, it only `gives you half of the memory by default <https://learn.microsoft.com/en-us/windows/wsl/wsl-config>`_, and you'd better use ``export MAX_JOBS=1`` to avoid compiling multiple files simultaneously and running out of memory. The side effect is that the build process will be much slower. If you only touch the Python code, slow compilation is okay, as you are building in an editable mode: you can just change the code and run the Python script without any re-compilation or re-installation.
99+
98100
.. tip::
99101
If you have trouble building vLLM, we recommend using the NVIDIA PyTorch Docker image.
100102

tests/compile/test_full_graph.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ def test_full_graph(model, tp_size):
2828
"The future of AI is",
2929
]
3030
sampling_params = SamplingParams(temperature=0)
31-
llm = LLM(model=model, enforce_eager=True, tensor_parallel_size=tp_size)
31+
llm = LLM(model=model,
32+
enforce_eager=True,
33+
tensor_parallel_size=tp_size,
34+
disable_custom_all_reduce=True)
3235

3336
outputs = llm.generate(prompts, sampling_params)
3437

0 commit comments

Comments
 (0)