Installation
Install the CLI
Pre-built and ready to use (Linux x86_64/aarch64 only today — other platforms fall
through to cargo install below):
curl -LsSf https://paiml.com/apr/install.sh | sh
To read the script before it runs, download it with curl -LsSf https://paiml.com/apr/install.sh -o install.sh, review it, then run sh install.sh. The installer is POSIX sh and checks the downloaded release archive against its published .sha256 before installing.
Compile and build:
cargo install aprender
This installs the apr binary — a single command for inference, training, serving,
model operations, and profiling.
apr --version
# apr 0.4.17
Verify
# List available commands
apr --help
# Download a model
apr pull qwen2.5-coder-1.5b
# Run inference
apr run qwen2.5-coder-1.5b "What is 2+2?"
Library Usage
For the ML library (algorithms, data structures, format I/O):
[dependencies]
aprender-core = "0.29"
use aprender::linear_regression::LinearRegression;
use aprender::traits::Estimator;
From Source
git clone https://github.com/paiml/aprender
cd aprender
cargo install --path .
Requirements
- Rust 1.89+ (stable)
- Linux, macOS, or Windows
- GPU optional (CUDA for NVIDIA, wgpu for AMD/Intel/Apple)