Installation Guide: Ubuntu + Tenstorrent P150A (Wormhole)
This guide details the steps to deploy Zyrabit SLM on a machine with Ubuntu Linux operating system equipped with the Tenstorrent P150A AI accelerator card (Wormhole PCIe RISC-V architecture).
📋 System Prerequisites
1. Hardware Requirements
- Processor: x86_64 or ARM64 (minimum 4 cores)
- Host RAM: 16 GB or higher (24 GB recommended if running 7B models)
- PCIe Accelerator: Tenstorrent P150A card (16 GB TT-DDR6) installed in a PCIe Gen4/Gen5 slot with 8-pin auxiliary power.
- PCIe Slot: Verify access to the
/dev/tenstorrentdevice.
2. Software Requirements (Ubuntu 22.04 LTS or 24.04 LTS)
- Ubuntu Linux 22.04 LTS or higher (64-bit / x86_64).
- Tenstorrent KMD drivers (
tenstorrent-kmd) installed. - Docker Engine & Docker Compose V2.
- Python tool
uv(for hermetic isolation).
[!NOTE] If you are on Windows (PowerShell/CMD):
unameis a Linux command. To verify your processor architecture from Windows before installing Ubuntu:(Get-CimInstance Win32_OperatingSystem).OSArchitecture# or by running:$env:PROCESSOR_ARCHITECTUREIf it returns
64-bitorAMD64, your machine supports 64-bit Ubuntu for the P150A.
🛠️ Step 1: Tenstorrent P150A Card Verification
Ensure that Ubuntu recognizes the PCIe card and that the KMD drivers are loaded:
# 1. Verify presence of the card on the PCIe bus (ID 1e52:f000 or similar)
lspci | grep -i tenstorrent
# 2. Confirm existence of the PCIe device node
ls -l /dev/tenstorrent*
# 3. Verify card status and temperature via tt-smi (if installed)
tt-smi
[!IMPORTANT] If the
/dev/tenstorrentdevice does not exist, install the official Tenstorrent kernel driver by running:sudo apt-get update && sudo apt-get install -y dkms build-essentialgit clone https://github.com/tenstorrent/tt-kmd.gitcd tt-kmd && sudo make installsudo modprobe tenstorrent
🚀 Step 2: Clone the Zyrabit SLM Repository
# Clone the project
git clone https://github.com/Zyrabit-tech/zyrabit-SLM.git
cd zyrabit-SLM
⚡ Step 3: Interactive Installation (Tenstorrent P150A Mode)
Zyrabit includes native support for Tenstorrent accelerators in its unified ./zyra.sh script:
# Start the installer
./zyra.sh install
In the interactive menu, select your preferred settings:
- Hardware / Inference Engine: Select
2) Tenstorrent Hardware (vLLM-TT Metalium)or accept auto-detection. - AI Model: Select the desired model (e.g.,
qwen2.5:3b,deepseek-r1:1.5b, orqwen2.5:7b). - ReAct Agent: Select
1) Yesto enable reasoning + tools. - Deployment Mode:
1) Full Sovereign Platformor2) Standalone Bare Engine.
Direct Installation without Prompts (Via Flags / Variables)
If you prefer to perform the automated installation from the terminal or CI/CD scripts:
# Silent install using existing .env or default flags
./zyra.sh install -y
🐋 Step 4: Tenstorrent Container Architecture
When the tenstorrent profile is selected, Docker Compose brings up the zyrabit-tt-metal service defined in docker-compose.yml:
zyrabit-tt-metal:
image: zyrabit-slm/tt-bridge
container_name: zyrabit-tt-metal
profiles: [ "tenstorrent" ]
devices:
- /dev/tenstorrent:/dev/tenstorrent
ipc: host
environment:
- ZYRABIT_TT_MODE=metal
- ZYRABIT_TT_MODEL_ID=Qwen/Qwen2.5-7B-Instruct
ports:
- "8090:8090"
This service:
- Directly mounts the
/dev/tenstorrenthardware device inside the Linux container. - Uses the TT-MLIR / TT-Metalium compilation to run matrix inference on the P150A's RISC-V Tensix cores.
- Exposes the OpenAI-compatible API on local port
8090.
✅ Step 5: Health Check and Testing
Once the stack is deployed, verify the connectivity and the accelerator status:
# 1. Check containers status
./zyra verify
# 2. Query the activated inference endpoint
curl http://localhost:8082/v1/health
# 3. Perform a test query to the Zyrabit API
curl -X POST http://localhost:8082/v1/chat \
-H "Content-Type: application/json" \
-H "Authorization: Bearer zyrabit-local-token" \
-d '{"text": "Hello Zyrabit, confirm that you are running inference on the Tenstorrent P150A card."}'
📊 Step 6: Performance Benchmarks
To measure tokens per second (t/s) and time to first token (TTFT) on the P150A:
# Run live benchmark
./zyra benchmark
The results will reflect the hardware acceleration on the Tenstorrent card without CPU or host RAM consumption.