Skip to content

Higher Level 'API' for 'torch'

3packages dependsuggested by 5
36.3Kdownloads / year
0.0%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.5.2
  • 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

CRAN checks
13OK
Slowest check: 2.5 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.5.2
READMEYes · 235 wordsVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 0.5.2Citation fileNoWebsiteYes · pkgdown

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%

Downloads

36.3K
CRAN downloads in the past year
Rank #2,668 · ~99/day · ~3K/mo
Daily download trend is not available in this view yet.
1.7K30 days
5.6K90 days
36.3K1 year
Compare downloads with other packages →
Also on603 r2u6 autocran1.2K conda_forge

Repository

101Stars
14Forks
15Open issues
3Open PRs
8Releases
567Commits
9Commit identities
567 commits · Last activity 2026-04-28 · 0% stars, 30d · Default branch at 0.5.2.9000, ahead of CRAN 0.5.2 (checked 2026-10-11)
Responsiveness
How these are sampled
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

2025-07-30 · 932026-07-07 · 101
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-04-28 · The repository has a site deploy workflow

pkgdown site last built 2026-04-28

Coverage (1)
Coverage reporting (Codecov)
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
25 external dependencies (excludes base and recommended)

Installing luz adds 34 packages (15 with compiled code, 14 MB of source tarballs). Heaviest: torch 1.9 MB, Rcpp 1.8 MB, fs 1.4 MB.

Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
3direct
0indirect
Imports 3
Suggested by 5
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (4)
Contributor, Maintainer since 0.5.2 (2026) · added in 0.5.2
Author, Copyright holder
Contributor · added in 0.5.0
Copyright holder

Previously maintained by Daniel Falbel (0.1.0 to 0.5.1).

Releases (8)

Pick two releases to compare their code metrics.

  • 0.5.2Latest
    record
    2026-04-28 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.5.1
    record
    2025-10-30 · diff ↗
  • 0.5.0
    record
    2025-07-29 · diff ↗ ·
    added 1 export
    luz_callback_mixed_precision
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.4.0
    record
    2023-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 CRAN
    2022-09-06
  • 0.3.1
    record
    2022-09-06 · diff ↗
  • archivedRemoved from CRAN
    2022-09-05
    issues were not corrected in time
  • 0.3.0
    record
    2022-08-19 · diff ↗ ·
    added 5 exports
    luz_callback_gradient_clip, luz_callback_keep_best_model, luz_callback_mixup, nn_mixup_loss, nnf_mixup
  • R
    R 4.2.0 released · 2022-04-22
  • 0.2.0
    record
    2021-10-07 · diff ↗ ·
    added 4 exports
    as_dataloader, evaluate, get_metrics, lr_finder
  • 0.1.0
    record
    2021-06-17
  • R
    R 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")
Kalinowski, T., Falbel, D., RStudio, , & Regouby, C. (2026). luz: Higher Level 'API' for 'torch' (Version 0.5.2) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for luz version 0.5.2 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy