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.