Installation¶
This guide covers the installation of spyre-inference using uv, a fast Python package installer and resolver.
Prerequisites¶
- Python >= 3.11
uvpackage manager- Access to IBM Spyre hardware with the Spyre Runtime Stack (required for torch-spyre compilation)
CI provisions the RPM versions in spyre-rpms.lock before building the Python environment.
On a development pod whose image-baked runtime does not match that lock, install and
activate the pinned RPMs first (requires access to the configured RPM repository):
The --rebuild option rebuilds torch-spyre against those libraries, clearing uv's
revision-keyed wheel cache first. After an RPM-only update, uv sync by itself can
reuse a wheel built against the old libraries. The installer leaves the system
/opt/ibm/spyre tree unchanged and points the unpacked binaries' hardcoded paths at a
/tmp/<tag>/spyre symlink to itself. Source its env.sh in each new shell.
Unlike the Install command below, --rebuild runs
uv sync --group dev --reinstall-package torch-spyre without --frozen and may update
uv.lock.
Install¶
From the repository root, run:
This command will:
- Install all project dependencies
- Build vLLM from source with the empty backend (
VLLM_TARGET_DEVICE=empty, no device-specific C kernels) - Install or reuse the torch-spyre wheel for the pinned source revision (RPMs are provisioned separately)
- Install PyTorch 2.14.1 from the CPU-specific index
Verification¶
After installation, verify the plugin is correctly installed:
Troubleshooting¶
Build Failures¶
If you encounter build failures:
- torch-spyre compilation: Ensure the Spyre Runtime Stack is available on your system. See internal development documentation for environment setup.
- vLLM build: Check that you have sufficient memory and CPU resources for compilation
- Dependency conflicts: Review the
override-dependenciessection inpyproject.toml