Repository navigation
relm 0.3.0 — structured output, probes and repeatable applications
relm 0.3.0 brings structured output, statistical probes and repeatable local applications to the existing base-R model research workflow.
New in 0.3.0
- Constrained JSON:
llm_generate(schema = ...)accepts the supported bounded schema profile and returns validated output or a classed error. - Statistical probes:
llm_probe()andactivations()provide binary ridge probes, explicit source groups, development-only model selection, held-out evaluation and conditional intervals, with S3 summaries, plots and predictions. - Native Spark: Spark-X2.5-4B generation through embedded llama.cpp b10828, including its official non-thinking opener for constrained chat. Spark activation tracing remains unsupported.
- Application templates: offline batch setup/run/resume and a loopback HTTP service with a persistent worker, durable tickets and bounded resources. Prepare fresh 0.3.0 environments; historical development snapshots are not reused.
- Fixes and documentation: spill-file collision protection, strict trace indexing, explicit CPU device selection, classed argument errors, updated READMEs/install guide and probe reference pages.
See NEWS, quickstart and application examples.
Install
install.packages("relm", repos = c(
"https://vadale.r-universe.dev",
CRAN = "https://cloud.r-project.org"
))
packageVersion("relm")r-universe now serves verified 0.3.0 Mac and Linux binaries from the release commit. It follows main, so check the installed version. The source archive and verified Mac arm64/R4.5 binary are attached with SHA256 checksums. Source builds require R >= 4.5, Rust >= 1.85.0, CMake >= 3.28 and a C/C++ toolchain. Windows/CUDA acceptance remains deferred.
Verification and scope
Distribution verified on 2026-09-30: r-universe build serves 0.3.0 from 82fcf1346f35a3bc866f4c4d8da58fd7d4cd7aa9, with all eight listed Mac/Linux arm64/x86_64 binaries successful at that same source. Mac binaries cover R 4.5.3/4.6.1; Linux binaries cover R 4.6.1/4.7.0.
A binary-only installation into a new library and fresh R process on the founder's Mac passed, including exact package version, RemoteSha, dependency paths and one seeded generation with the cached SHA256-pinned Qwen model. The downloaded Mac arm64/R4.5 archive matches SHA256 f206667f8407f2d0a2537094d4e2d486a13582fab4d857e5159f334a9aeb3154. Local R 4.5.1 reported that relm was built under R 4.5.3; this warning is retained. No source compilation was needed. This was a fresh library on the existing Mac, not a clean-machine/VM test or a new model-quality evaluation.
All nine final PR checks passed at 392ca55b5f24228c6eacf1da4f028aec7f621d63: R CI and Rust CI.
The release report retains full provenance: built-package tests/examples/vignettes/manuals, actual RStudio README and pinned-model demos, 466 batch assertions and 11 service environment cases. Earlier service acceptance includes 1,000 same-worker requests on Mac and Linux; parent-source stress and later lifecycle measurements keep their exact identities and prior failures.
Schema validity and operational reliability do not establish extraction accuracy. The frozen small-model D1 pilot remains 10/10 schema-valid, 2/10 task-valid and 0/10 fully grounded; all four quality promotion gates failed. Predictive decodability does not establish causal use, and interventions are research mechanisms rather than safety guarantees.
CRAN preparation remains Phase 9
Under founder-approved D-035, this GitHub/r-universe release retains two documented CRAN-readiness warnings: vendored C++ pragmas and source builds that obtain locked Rust crates online. No failed test or numerical/resource threshold is waived. No clean CRAN check or CRAN acceptance is claimed. Retained notes concern a new CRAN submission, unavailable time verification and old local HTML Tidy. Model-gated pkgdown examples and historical Demo A warnings are itemized in the release report.
The next default roadmap scope is WP9 asynchronous generation followed by WP10 token streaming. No new work package starts as part of this release.