Installation
Get hwLedger running on your system.
Requirements
- Rust: 1.70+ (MSRV)
- OS: macOS 12+, Windows 10+, Linux (Ubuntu 20.04+)
- RAM: 8 GB minimum (16 GB recommended)
- GPU (optional): NVIDIA, AMD, or Apple Silicon for inference
Build from Source
1. Clone the repository
bash
git clone https://github.com/KooshaPari/hwLedger.git
cd hwLedger2. Install Rust (if not already installed)
bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env3. Build the CLI
bash
cargo build --releaseThe binary will be at target/release/hwledger-cli.
4. (Optional) Build native GUI
macOS (SwiftUI)
bash
cd apps/macos
xcodebuild -scheme HwLedger -configuration ReleaseWindows (WinUI 3)
bash
cd apps/windows
dotnet publish -c ReleaseLinux (Qt 6)
bash
cd apps/linux-qt
cargo build --releaseQuick Test
Run the planner to verify installation:
bash
./target/release/hwledger-cli plan --model llama-2-70bExpected output (example):
hwLedger Capacity Planner
Model: llama-2-70b
├─ Attention: MHA
├─ Num layers: 80
├─ Hidden size: 4096
└─ Num heads: 64
KV Cache (batch_size=1, seq_length=4096, dtype=float16):
├─ Per layer: 67 MB
├─ Total: 5.3 GB
Model Weights (dtype=float16):
├─ Parameters: 70 B
├─ Size: 140 GB
Total VRAM needed: ~146 GBInstallation via Homebrew (coming soon)
Once released, install via Homebrew:
bash
brew install hwledgerDocker (coming soon)
Run in Docker:
bash
docker run -it --gpus all ghcr.io/kooshapari/hwledger:latestNext Steps
- Plan a model — understand VRAM and throughput
- View architecture — system design overview
- Fleet setup — configure heterogeneous hardware
- Build from source — contribute to hwLedger
Troubleshooting
Rust compilation fails
Ensure you have the latest Rust:
bash
rustup updatemacOS: Xcode not found
Install Xcode command-line tools:
bash
xcode-select --installWindows: .NET 9 not found
Install .NET 9 SDK.
Linux: Qt 6 not found
bash
# Ubuntu/Debian
sudo apt-get install qt6-base-dev qt6-qml-dev
# Fedora
sudo dnf install qt6-qtbase-devel qt6-qtdeclarative-devel