GitHunt
LT

ltouati/Lighter

A Keras like abstraction layer on top of the Rust ML framework candle

Rust Lighter

This project was started as my RUST exercise to abstract the Rust minimalist ML framework Candle (https://github.com/huggingface/candle) and introduce a more convenient way of programming neural network machine learning models.

The behaviour is inspired by Python KERAS (https://keras.io) and the initial step based on the Rust-Keras-like code (https://github.com/AhmedBoin/Rust-Keras-Like).

So let's call the project Candle Lighter ๐Ÿ•ฏ, because it helps to turn on the candle light and is even easier to implement.

Examples can be found below the lib/examples/ directory.

To use it as library just call 'cargo add candlelighter'

MAINTAINERS AND CONTRIBUTORS ARE HIGHLY WELCOME

Note: It is by far not production ready and is only used for own training purposes. No warranty and liability is given. I am a private person and not targeting any commercial benefits.

Supported Layer types

Meta Layer Type State Example
Sequential model - โœ…
- Feature scaling ๐Ÿƒ DNN and TNN
- Dense โœ… DNN
- Convolution โœ… CNN
- Pooling โœ… -
- Normalization โœ… -
- Flatten โœ… -
- Recurrent โœ… RNN 1st throw
- Regulation โœ… -
- Recurrent โœ… RNN 1st throw
- Autoencoder ๐Ÿƒ -
- Feature embedding โœ… S2S 1st throw
- Attention ๐Ÿƒ TNN 1st throw
- Mixture of Experts ๐Ÿƒ ENN 1st throw
- Feature masking and -quantization ๐Ÿƒ -
- KAN-Dense ๐Ÿƒ -
Model fine tuning (PEFT) - ๐Ÿƒ In development: DNN2 & DNN3
Parallel model (in sense of split) - ๐Ÿƒ PNN 1st throw
Parallel model Merging ๐Ÿƒ PNN 1st throw
Transformer models see ๐Ÿƒ
* BERT Text similarity โœ… LLM
* LLAMA Completion (Chat) โœ… LLM2
Reinforcement models see ๐Ÿƒ

License

Tripple-licensed to be compatible with the Rust project and the source roots.

Licensed under the MPL 2.0, MIT license or the Apache license, Version 2.0 at your option.

Contributors

Mozilla Public License 2.0
Created February 15, 2025
Updated February 15, 2025
ltouati/Lighter | GitHunt