Higher Level 'API' for 'torch'
Overview
A high level interface for 'torch' providing utilities to reduce the the amount of code needed for common tasks, abstract away torch details and make the same code work on both the 'CPU' and 'GPU'. It's flexible enough to support expressing a large range of models. It's heavily inspired by 'fastai' by Howard et al. (2020) doi:10.48550/arXiv.2002.04688, 'Keras' by Chollet et al. (2015) and 'PyTorch Lightning' by Falcon et al. (2019) doi:10.5281/zenodo.3828935.
- New maintainer: Tomasz Kalinowski.
- Switched CI GPU runners to ephemeral runs-on instances.
- Bumped CI CUDA container to 12.8.1.
- Fixed bugs in example vignettes (
mnist-vae,text-generation).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 47 (2 internal)
- Examples that run
- 100%19 run in a plain check
- Exported functions with examples
- 44%
- Documented parameters
- 97%
- Return-value docs
- 57%
- Help pages citing references
- 2%
- Accelerator API HTML
- Custom loops with luz HTML
- Get started with luz HTML
Downloads
Repository
- PRs merged (all time)
- 96%
- Median days to close, 50 most recently updated closed issues
- 7
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
8 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/mlverse/luz 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-04-28 · The repository has a site deploy workflow
pkgdown site last built 2026-04-28
Show all practicesHide 1 practice
Dependencies
Code & Tests
People & History
Previously maintained by Daniel Falbel (0.1.0 to 0.5.1).
Pick two releases to compare their code metrics.
- 0.5.2Latest
- RR 4.6.0 released · 2026-04-24
- 0.5.12025-10-30 · diff ↗
- 0.5.0
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.4.02023-04-17 · diff ↗ ·
added 5 exports
luz_callback_auto_resume, luz_callback_resume_from_checkpoint, luz_callback_tfevents, luz_load_checkpoint, luz_metric_set - unarchivedReturned to CRAN2022-09-06
- 0.3.12022-09-06 · diff ↗
- archivedRemoved from CRAN2022-09-05issues were not corrected in time
- 0.3.02022-08-19 · diff ↗ ·
added 5 exports
luz_callback_gradient_clip, luz_callback_keep_best_model, luz_callback_mixup, nn_mixup_loss, nnf_mixup - RR 4.2.0 released · 2022-04-22
- 0.2.0
- 0.1.02021-06-17
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2021-06-17
- Total releases
- 8 / 5 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 118 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("luz")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-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.