Skip to content

rust-ml-learners/ml-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust ML Primitives 🦀🧠

A collection of foundational machine learning primitives implemented from scratch in Rust.

🎯 Philosophy

Each primitive:

  • Does one thing well (UNIX philosophy)
  • Can be used standalone or composed with others
  • Is well-documented with examples
  • Focuses on educational clarity while being performant

📦 Primitives

Foundational (Level 1)

Crate Status Description
tensor-core 🔨 In Progress Basic tensor operations
autodiff-core 📝 Planned Automatic differentiation
text-primitives 📝 Planned Tokenizers, vocabularies
embedding-core 📝 Planned Embedding layers

Neural Components (Level 2)

Crate Status Description
rnn-primitives 📝 Planned RNN cells and layers
lstm-primitives 📝 Planned LSTM with gating
attention-primitives 📝 Planned Attention mechanisms
linear-layers 📝 Planned Dense/linear layers

Training (Level 3)

Crate Status Description
optimizer-core 📝 Planned SGD, Adam, optimizers
nn-framework 📝 Planned Neural network framework

🏗️ Example Frameworks

🚀 Getting Started

Using a Single Primitive

# In your Cargo.toml
[dependencies]
tensor-core = "0.1"

## Build and test

```sh
# Clone the repository
git clone https://github.com/rust-ml-learners/rust-ml-primitives
cd rust-ml-primitives

# Build everything
cargo build --workspace

# Build specific crate
cargo build -p tensor-core

# Run tests
cargo test --workspace

# Run benchmarks
cargo bench --workspace

About

Foundational ML primitives in Rust - tensors, autodiff, embeddings, attention, and others

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors