Relm – local LLMs as base-R objects, with interpretability
Summary
Relm is an R package with a Rust native core that embeds a patched llama.cpp, exposing local LLMs as base-R objects with interpretability capabilities. The project provides functions for loading, tokenization, generation, embeddings, activation tracing, steering, and ablation, along with install options, demos, and dual licenses (MIT/Apache-2.0). It positions itself as a tooling stack for mechanistic interpretability research in R with a local model runtime.