loupe

Install

One package, one extra per capability.

The package is loupelab; the import and the command are loupe. Python 3.12 or newer.

pip install 'loupelab[server]'          # the app over your runs
pip install 'loupelab[server,interp]'   # plus steering, ablation, analyses and the Playground
pip install 'loupelab[train]'           # plus loupe data and loupe train
pip install 'loupelab[rag]'             # plus retrieval and the classifier recipe
ExtraBrings
serverloupe serve: the API and the app
evalsInspect and inspect_evals
interpnnsight, transformers, torch, scikit-learn
trainTRL, PEFT, datasets; unsloth is used when installed on a CUDA GPU
rlreasoning-gym and math-verify for GRPO tasks
ragbm25s and sentence-transformers
saeSAELens, heavy, only for pretrained sparse autoencoders

From source

Needs just, uv and Node 22 with pnpm.

git clone https://github.com/ashworks1706/loupe && cd loupe
just bootstrap   # dependencies and git hooks
just check       # lint, types, layers, tests, app build

On this page