Package: dragonfarm Title: Fine-Tune Language Models with LoRA on Your Documents and Data Version: 0.4.0 Authors@R: person("Tejas", "Patel", role = c("aut", "cre"), email = "algocrat@gmail.com") Description: Fine-tune causal language models with LoRA (Low-Rank Adaptation) from R, and answer questions from your own documents. Documents (PDF, Word, HTML, Markdown, spreadsheets, web pages) are read into chunks, retrieved for each question by combined keyword and embedding search, and answered with cited sources; a model can then write training questions from them for review. Tables of prompts and responses work too. Training runs in a background 'Python' process built on Hugging Face 'transformers' and 'peft', with 4-bit loading (QLoRA) so a 7-billion-parameter model trains on an 8 GB GPU, and a 'shiny' app covers the whole workflow. 'Python' dependencies are declared through 'reticulate' and resolved automatically on first use. License: MIT + file LICENSE Encoding: UTF-8 Roxygen: list(markdown = TRUE) Depends: R (>= 4.1) Imports: bslib (>= 0.6.0), cli, commonmark, DBI, glue, jsonlite, plotly, processx, ps, reticulate (>= 1.41.0), rlang, RSQLite, shiny (>= 1.8.0), sortable, stats, tools, utils, withr, zip Suggests: arrow, ellmer, httr2, knitr, mcptools, pkgload, rmarkdown, S7, testthat (>= 3.0.0) VignetteBuilder: knitr Config/testthat/edition: 3 Language: en-GB SystemRequirements: 'Python' (>= 3.10). The 'uv' tool is installed automatically by 'reticulate' to build the 'Python' environment. X-schema.org-keywords: fine-tuning, LoRA, QLoRA, large-language-models, llm, retrieval-augmented-generation, rag, documents, transformers, peft, shiny, local-llm, huggingface URL: https://dragonfarm.dev, https://github.com/tejas4patel/dragonfarm BugReports: https://github.com/tejas4patel/dragonfarm/issues Config/roxygen2/version: 8.1.0 Config/pak/sysreqs: cmake make libicu-dev libpng-dev libuv1-dev libssl-dev python3 zlib1g-dev Repository: https://tejas4patel.r-universe.dev Date/Publication: 2026-10-18 01:13:45 UTC RemoteUrl: https://github.com/tejas4patel/dragonfarm RemoteRef: HEAD RemoteSha: be026c6d9cb42a8b7f14cb25db45fd5c97a5660a NeedsCompilation: no Packaged: 2026-10-18 01:17:21 UTC; root Author: Tejas Patel [aut, cre] Maintainer: Tejas Patel