|
| 1 | +# Installation |
| 2 | + |
| 3 | +vLLM has experimental support for s390x architecture on IBM Z platform. For now, users shall build from the vLLM source to natively run on IBM Z platform. |
| 4 | + |
| 5 | +Currently the CPU implementation for s390x architecture supports FP32 datatype only. |
| 6 | + |
| 7 | +:::{attention} |
| 8 | +There are no pre-built wheels or images for this device, so you must build vLLM from source. |
| 9 | +::: |
| 10 | + |
| 11 | +## Requirements |
| 12 | + |
| 13 | +- OS: `Linux` |
| 14 | +- SDK: `gcc/g++ >= 12.3.0` or later with Command Line Tools |
| 15 | +- Instruction Set Architecture (ISA): VXE support is required. Works with Z14 and above. |
| 16 | +- Build install python packages: `pyarrow`, `torch` and `torchvision` |
| 17 | + |
| 18 | +## Set up using Python |
| 19 | + |
| 20 | +### Pre-built wheels |
| 21 | + |
| 22 | +### Build wheel from source |
| 23 | + |
| 24 | +Install the following packages from the package manager before building the vLLM. For example on RHEL 9.4: |
| 25 | + |
| 26 | +```console |
| 27 | +dnf install -y \ |
| 28 | + which procps findutils tar vim git gcc g++ make patch make cython zlib-devel \ |
| 29 | + libjpeg-turbo-devel libtiff-devel libpng-devel libwebp-devel freetype-devel harfbuzz-devel \ |
| 30 | + openssl-devel openblas openblas-devel wget autoconf automake libtool cmake numactl-devel |
| 31 | +``` |
| 32 | + |
| 33 | +Install rust>=1.80 which is needed for `outlines-core` and `uvloop` python packages installation. |
| 34 | + |
| 35 | +```console |
| 36 | +curl https://sh.rustup.rs -sSf | sh -s -- -y && \ |
| 37 | + . "$HOME/.cargo/env" |
| 38 | +``` |
| 39 | + |
| 40 | +Execute the following commands to build and install vLLM from the source. |
| 41 | + |
| 42 | +::::{tip} |
| 43 | +Please build the following dependencies, `torchvision`, `pyarrow` from the source before building vLLM. |
| 44 | +:::: |
| 45 | + |
| 46 | +```console |
| 47 | + sed -i '/^torch/d' requirements-build.txt # remove torch from requirements-build.txt since we use nightly builds |
| 48 | + pip install -v \ |
| 49 | + --extra-index-url https://download.pytorch.org/whl/nightly/cpu \ |
| 50 | + -r requirements-build.txt \ |
| 51 | + -r requirements-cpu.txt \ |
| 52 | + VLLM_TARGET_DEVICE=cpu python setup.py bdist_wheel && \ |
| 53 | + pip install dist/*.whl |
| 54 | +``` |
| 55 | + |
| 56 | +## Set up using Docker |
| 57 | + |
| 58 | +### Pre-built images |
| 59 | + |
| 60 | +### Build image from source |
| 61 | + |
| 62 | +## Extra information |
0 commit comments