alumina

Library Listed Dormant

An Experimental Deep Learning Library

Checked · Sources

Downloads
46
Dependents
0
Stars
103
Forks
9
Contributors
1
Commits
68
Latest release
0.3.0 ·

About

From the project README ·

An experimental deep learning library written in pure rust. Breakage expected on each release in the short term. See mnist.rs in examples or Rusty_SR for usage samples.

Overview

The key types are Node and Ops which are Rc-like references to components of a shared mutable Graph, which is extended gradually with new tensors and operations via construction functions. Facilities for reverse-mode automatic differentiation are included in operations, extending the graph as necessary. Typical graph construction and differentiation shown below:

Read the full README
// 1. Build a MLP neural net graph - 98% @ 10 epochs
let input = Node::new(&[-1, 28, 28, 1]).set_name("input");
let labels = Node::new(&[-1, 10]).set_name("labels");

let layer1 = elu(affine(&input, 256, msra(1.0))).set_name("layer1");
let layer2 = elu(affine(&layer1, 256, msra(1.0))).set_name("layer2");
let logits = linear(&layer2, 10, msra(1.0)).set_name("logits");

let training_loss = add(
  reduce_sum(softmax_cross_entropy(&logits, &labels, -1), &[], false).set_name("loss"),
  scale(l2(logits.graph().nodes_tagged(NodeTag::Parameter)), 1e-3).set_name("regularisation"),
)
.set_name("training_loss");
let accuracy = equal(argmax(&logits, -1), argmax(&labels, -1)).set_name("accuracy");

let parameters = accuracy.graph().nodes_tagged(NodeTag::Parameter);

let grads = Grad::of(training_loss).wrt(parameters).build()?;

Current work is focused on improving the high level graph construction API, and better supporting dynamic/define-by-run graphs.

Contributions

Issues are a great place for discussion, problems, requests.

Documentation

Patchy until the library API experimentation ends, particularly until the graph construction API finalised.

Progress

  • [x] Computation hypergraph
  • [x] NN
    • [x] Dense Connection and Bias operations
    • [x] N-dimensional Convolution
      • [x] Arbitrary padding
      • [ ] Strides
      • [ ] Reflection padding
    • [x] Categorical Cross Entropy
    • [x] Binary Cross Entropy
  • [x] Boolean
    • [x] Equal
    • [x] Greater_Equal
    • [x] Greater_Than
    • [x] Less_Equal
    • [x] Less_Than
    • [x] Not
  • [x] Elementwise
    • [x] Abs
    • [x] Ceil
    • [x] Cos
    • [x] Div
    • [x] Elu
    • [x] Exp
    • [x] Floor
    • [x] Identity
    • [x] Leaky_relu
    • [x] Ln
    • [x] Logistic
    • [x] Max
    • [x] Min
    • [x] Mul
    • [x] Negative
    • [x] Offset
    • [x] Reciprocal
    • [x] Relu
    • [x] Robust
    • [x] Round
    • [x] Scale
    • [x] Sign
    • [x] Sin
    • [x] SoftPlus
    • [x] SoftSign
    • [x] Sqr
    • [x] Sqrt
    • [x] Srgb
    • [x] Subtract
    • [x] Tanh
  • [x] Grad
    • [x] Stop_grad
  • [x] Manip
    • [x] Concat
    • [ ] Slice
    • [x] Permute_axes
    • [x] Expand_dims
    • [x] Remove_dims
  • [x] Math
    • [x] Argmax
    • [x] Broadcast
  • [x] Pooling
    • [x] N-dimensional Avg_Pool
    • [ ] Max pool
    • [x] N-dimensional spaxel shuffling for "Sub-pixel Convolution"
    • [x] N-dimensional Linear-Interpolation
    • [x] Global Pooling
  • [x] Reduce
    • [x] Reduce_Prod
    • [x] Reduce_Sum
  • [x] Regularisation
    • [x] L1
    • [x] L2
    • [x] Hoyer_squared
    • [x] Robust
  • [x] Shapes
    • [x] Shape inference and constraint propagation
  • [x] Data Loading
    • [x] Mnist
    • [x] Cifar
    • [x] Image Folders
    • [x] Imagenet (ILSVRC)
  • [x] SGD
  • [ ] RMSProp
  • [x] ADAM
  • [x] Basic numerical tests
  • [x] Limit Optimiser evaluation batch size to stay within memory limits
  • [x] Selectively disable calculation of forward values, node derivatives and parameter derivatives
  • [x] Builder patterns for operation contruction
  • [x] Split Graph struct into mutable GraphBuilder and immutable Sub-Graphs
    • [x] Replace 'accidentally quadratic' graph algorithms
    • [x] Replace up-front allocation with Sub-Graph optimised allocation/deallocation patterns based on liveness analysis of nodes
  • [ ] Overhaul data ingestion, particularly buffering input processing/reads.
  • [x] Move tensor format to bluss' ndarray
  • [x] Improve naming inter/intra-library consistancy
  • [ ] Operator overloading for simple ops
  • [ ] Complete documentation
  • [ ] Reduce ability to express illegal states in API
  • [x] Move from panics to error-chain
  • [ ] Move from error-chain to thiserror
  • [x] Guard unsafe code rigourously
  • [ ] Comprehensive tests
Distant
  • [ ] Optionally typed tensors
  • [ ] Arrayfire as an option for sgemm on APUs
  • [ ] Graph optimisation passes and inplace operations
  • [ ] Support for both dynamic and static graphs
    • [ ] RNNs

License

MIT

Runs on
GPU support unknown
What shows it
  • no dependency or feature matches a backend row
Native code
None found
  • No native code found
Python bindings
No Python binding crate found
License
MIT

Compare with similar projects

Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days. ML Rust runs this catalogue, so its closest project always gets a row.

alumina beside the projects that share a topic with it
ProjectDownloadsDependentsStarsLatest releaseRuns on (GPU)Native codeLicense
alumina This page Listed Dormant

An Experimental Deep Learning Library

46 downloads over 30 days 0 103 0.3.0 GPU support unknown No native code found MIT
burn Featured

Flexible and Comprehensive Deep Learning Framework in Rust

521,465 downloads over 30 days 391 16,257 0.22.1 CUDA, WebGPU, Metal, ROCm, Vulkan Binds native code: netlink-sys (feature iroh), nvml-wrapper-sys (feature sys-metrics), torch-sys (feature tch) Apache-2.0 OR MIT
mlx-rs Featured

Unofficial rust wrapper for Apple's mlx machine learning library.

33,398 downloads over 30 days 36 389 0.34.0 Metal Binds native code: mach-sys, mlx, mlx-sys. Build uses a native toolchain: bindgen, cc, cmake Apache-2.0 OR MIT
flodl Listed

floDl — a flow-graph deep learning framework built on libtorch

106 downloads over 30 days 3 63 0.8.0 CUDA, ROCm Binds native code: flodl-sys. Build uses a native toolchain: cc MIT
rumus Listed

A native-Rust deep learning framework with explicit memory safety and hardware acceleration

52 downloads over 30 days 0 202 0.4.0 WebGPU No native code found Apache-2.0 OR MIT
oxidizr App Listed

Trains GPT-style language models from a YAML config and a tokenized dataset: dense GQA transformers, Mamba 1, 2 and 3, MLA and MoE layers on CPU or CUDA. Runs the training loop, optimizer, checkpoints, evaluation and metrics on boostr, and builds speech corpora through voxr.

27 downloads over 30 days Not applicable 8 0.1.1 CUDA Binds native code: nvml-wrapper-sys (feature cuda) Apache-2.0
autograph Listed Dormant

A machine learning library for Rust.

25 downloads over 30 days 0 333 0.2.1 GPU support unknown Binds native code: curl-sys (feature mnist), libz-sys (feature mnist) Apache-2.0 OR MIT
Why ListedNo archive, New or Featured rule places it, so it is Listed.

What it lacks for Featured

  • It has 0 active dependents and 0 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days. The repository route reads 103 stars, 9 forks and 1 contributor. It needs 4,539 stars, 434 forks and 79 contributors together.
  • Docs are missing: the primary crate publishes no README.
  • The project is dormant and not finished. Dormancy rule

What else the check found

  • The last activity is on 23 Oct 2022, 1478 days ago. That reaches the 365 days the rules expect, so the project is dormant. Dormancy rule
  • The oldest outside issue waits 2995 days for a reply, past the limit of 270. No maintainer replied in 365 days. Rot signals rule

Not measured: Latest release fails cargo check.

Check notes

  • the repo manifest Cargo.toml declares the crate, and no release commit proves the link

Exact rules: Listed, Featured library. The check on applied thresholds version 9.

Every rule outcome, as the check records it
  • expected-interval: version 0.3.0 base 80, raised to the 365-day floor: E = 365 days
  • dormancy: last activity 2022-10-23, 1478 days ago, E = 365: dormant
  • rot: oldest unanswered issue 2995 days (limit 270), no maintainer reply in 365 days
  • featured: not featured: active_users 0 < 11 and new_adopters 0 < 9 and repository route stars 103 (needs 4539), forks 9 (needs 434), contributors 1 (needs 79); docs missing; dormant and not stable
  • listed: listed: no archive, new or featured rule applies

Measurements and sources

Each signal row shows the raw value, its source and the fetch date. The Sources list gathers every distinct source on this page. Movement needs more history.

Sources6 sources
Adoption0 active dependents, 0 new dependents in 365 days1 not measured
Adoption measurements
SignalValueSourceFetchedCounts
Active dependents0crates.io database dumpYes
New dependents (365 days)0crates.io database dumpYes
Peak active dependents0crates.io database dumpYes
Active dependents as a share of the peak1crates.io database dumpYes
Binary downloads per releaseNot measuredYes
MaintenanceLatest human commit: 4 years ago3 not measured
Maintenance measurements
SignalValueSourceFetchedCounts
Latest human commit2022-10-23GitHub repositoryYes
Latest release2018-08-17crates.io database dumpYes
First release2017-02-08crates.io database dumpYes
Latest version0.3.0crates.io database dumpYes
Days the oldest outside issue waits for a reply2995GitHub repositoryYes
Maintainer replies over 365 days0GitHub repositoryYes
Repository archivedfalseGitHub repositoryYes
Repository gonefalseGitHub repositoryYes
Release commit or manifest in the repotruerepo manifestYes
Published docsfalsecrates.io database dumpYes
Latest release fails cargo checkNot measuredYes
Build check dateNot measuredYes
Build check toolchainNot measuredYes
SecurityUnpatched vulnerabilities: none
Security measurements
SignalValueSourceFetchedCounts
Unpatched vulnerabilities past the grace windownoneRustSec advisory databaseYes
RustSec unmaintained advisorynoneRustSec advisory databaseYes
Deprecation noticenonecrates.io database dumpYes
Deprecated requirementnonecrates.io database dumpYes
Distribution3 releases, 46 downloads over 30 days5 not measured
Distribution measurements
SignalValueSourceFetchedCounts
Releases3crates.io database dumpYes
Downloads over 30 days46crates.io database dumpYes
Binary downloads over the last 3 releasesNot measuredYes
Homebrew installs on request over 365 daysNot measuredYes
Repology repository familiesNot measuredYes
Docker pull growth over 90 daysNot measuredYes
Docker pulls at the growth baselineNot measuredYes
Every version a prereleasefalsecrates.io database dumpYes
Every version 0.0.xfalsecrates.io database dumpYes
Every version yankedfalsecrates.io database dumpYes
Crate deleted from crates.iofalsecrates.io database dumpYes
Repository103 stars, 9 forks, 1 contributors, 68 commits. Stars alone never qualify a project.
Repository measurements
SignalValueSourceFetchedCounts
GitHub stars103GitHub repositoryYes — one part of the repository route
GitHub forks9GitHub repositoryYes — one part of the repository route
Contributors with a GitHub account1GitHub contributorsYes — one part of the repository route
Commits on the default branch68GitHub repositoryNo
Repository's main crate left out of the entrynonecrates.io database dumpYes
Facts that never count
Facts that never count measurements
SignalValueSourceFetchedCounts
LicenseMITcrates.io database dumpNo
Runs on, from listed crates and their direct dependenciesGPU support unknowncrates.io database dumpNo
What shows each backendno dependency or feature matches a backend rowcrates.io database dumpNo
Native code, from listed crates and their dependenciesNo native code foundcrates.io database dumpNo
Python bindings, from direct dependencies of listed cratesNo Python binding crate foundcrates.io database dumpNo
Crates that depend on a listed crate directly0crates.io database dumpNo

Corrections and review history

Report a correction

No correction applies to this entry.

Judgments

A judgment enters only through an approved issue and a merged pull request.

No judgment applies to this entry.