Fine-Tune Small Language Models with LoRA from R
Overview
Fine-tune small (100M to 3B parameter) causal language models with LoRA (Low-Rank Adaptation) from R. Datasets are mapped to chat-format prompts and responses, training runs in a background 'Python' process built on Hugging Face 'transformers' and 'peft', and a 'shiny' app offers drag-and-drop dataset upload and column mapping. 'Python' dependencies are declared through 'reticulate' and resolved automatically on first use.
- Fixed a test that failed on macOS (CRAN's M1mac additional check) though it passed everywhere else. It compared
dragon_runs_dir()'s default, a directory that does not exist yet, againsttempdir()afternormalizePath(); on macOS that resolves/varto/private/varfor the existingtempdir()but leaves the nonexistent path unresolved, so the prefix check failed. The test now compares the existing parent directory. No change to package code or behaviour.
From NEWS.md in the release
Install
Health
- OK13 OKNow
- OK2 OK2026-10-07
Documentation
- Help pages
- 54
- Examples that run
- 100%35 run in a plain check (21 of them under a condition)
- Exported functions with examples
- 65%
- Documented parameters
- 95%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
Moved from tejas4patel/dragon-farm.
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Releases over time
Issues over time
Commits over time
7 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/tejas4patel/dragon-farm on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-27 · The repository has a site deploy workflow
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-09-14Seen in the repository: .claudeCommits: at least 38 crediting it in the message
- Claude Fable 5.133 commits · Sep 2026
- Claude Sonnet 55 commits · Sep 2026
Dependencies
Installing dragonfarm adds 85 packages (46 with compiled code, 76 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.3.4Latest
- 0.3.32026-10-07 ·
3 days in CRAN's queue
Listed in CRAN's incoming queue from 2026-10-03 21:57 to 2026-10-07 06:45 UTC, in 16 readings. - RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-10-07
- Total releases
- 2 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1
- Download size
- 238 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("dragonfarm")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.