import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
Installation options for Spice.ai OSS
For deployment options, such as to Kubernetes, see Deployment.
```bash curl https://install.spiceai.org | /bin/bash ``` ### Homebrew ```bash brew install spiceai/spiceai/spice ```
```bash
iex ((New-Object System.Net.WebClient).DownloadString("https://install.spiceai.org/Install.ps1"))
```
Binaries for Linux, Windows, and macOS are available for download from GitHub at github.com/spiceai/spiceai/releases.
```shell # Note: Be sure to follow the steps in the Homebrew installation output to add Homebrew to your PATH. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ```
2. Install the Xcode Command Line tools
shell xcode-select --install
shell brew install rust brew install go brew install cmake brew install protobuf
Install Go
shell export GO_VERSION="1.22.4" rm -rf /tmp/spice mkdir -p /tmp/spice cd /tmp/spice wget https://go.dev/dl/go$GO_VERSION.linux-amd64.tar.gz tar xvfz go$GO_VERSION.linux-amd64.tar.gz sudo mv ./go /usr/local/go echo 'export PATH=$PATH:/usr/local/go/bin' >> $HOME/.profile source $HOME/.profile cd $HOME rm -rf /tmp/spice
Install Rust
shell curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y # install unattended source $HOME/.cargo/env
Spice OSS supports running both local language models and embedding models on dedicated hardware. This is for models from either Huggingface or models located locally.
The Spice CLI will automatically detect and download the appropriate runtime binary with hardware acceleration if available.
Steps:
This ensures CUDA devices are selected on model load, and CUDA-specifiy kernels used when possible.
Steps:
Similarily, this ensures Metal devices are selected on model load, and Metal-specific kernels used when possible.