Package: relm 0.1.0
relm: Local Large Language Models as Base-R Objects
Load and run local large language models (through a vendored, patched 'llama.cpp') from R and work with them as plain data frames and matrices in base-R idiom. Provides model loading and tokenization ('llm', 'llm_tokens'), text generation ('llm_generate'), next-token distributions ('llm_logits'), text embeddings ('llm_embed'), and mechanistic interpretability tools -- activation tracing ('llm_trace'), activation steering ('llm_steer'), and neuron ablation ('llm_ablate'). A checksum-verified downloader ('llm_download') fetches pinned models.
Authors:
relm_0.1.0.tar.gz
relm_0.1.0.tgz(r-4.6-x86_64)relm_0.1.0.tgz(r-4.6-arm64)relm_0.1.0.tgz(r-4.5-x86_64)relm_0.1.0.tgz(r-4.5-arm64)
relm_0.1.0.tar.gz(r-4.7-arm64)relm_0.1.0.tar.gz(r-4.7-x86_64)relm_0.1.0.tar.gz(r-4.6-arm64)relm_0.1.0.tar.gz(r-4.6-x86_64)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
relm/json (API)
| # Install 'relm' in R: |
| install.packages('relm', repos = c('https://vadale.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/vadale/r-ebirth/issues
Last updated from:a50502b396. Checks:8 NOTE, 1 OK, 4 FAIL. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | NOTE | 361 | ||
| linux-devel-x86_64 | NOTE | 384 | ||
| source / vignettes | OK | 680 | ||
| linux-release-arm64 | NOTE | 348 | ||
| linux-release-x86_64 | NOTE | 379 | ||
| macos-release-arm64 | NOTE | 388 | ||
| macos-release-x86_64 | NOTE | 626 | ||
| macos-oldrel-arm64 | NOTE | 409 | ||
| macos-oldrel-x86_64 | NOTE | 783 | ||
| windows-devel | FAIL | 196 | ||
| windows-release | FAIL | 158 | ||
| windows-oldrel | FAIL | 178 | ||
| wasm-release | FAIL | 188 |
Exports:llmllm_ablatellm_downloadllm_embedllm_generatellm_logitsllm_steerllm_tokensllm_trace
Dependencies:nanoarrow
Last update: 2026-07-08
Started: 2026-07-07
Last update: 2026-07-08
Started: 2026-07-07
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Extract one activation slice as a matrix | as.matrix.relm_trace |
| Free a model handle | close.llm |
| Load a local large language model | llm print.llm |
| Ablate neurons in a model | llm_ablate |
| Download a pinned model, verified by checksum | llm_download |
| Embed text with a model | llm_embed |
| Generate text from a model | llm_generate |
| Inspect the next-token distribution | llm_logits |
| Steer a model along a direction | llm_steer |
| Tokenize text, or decode token ids back to text | llm_tokens |
| Trace a model's activations | llm_trace print.relm_trace print.summary.relm_trace summary.relm_trace |
| Summarize a model handle | print.summary.llm summary.llm |
