Installation
Install the CLI
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)