| Crates.io | unsloth-rs-core |
| lib.rs | unsloth-rs-core |
| version | 0.1.0 |
| created_at | 2026-01-17 16:00:43.291336+00 |
| updated_at | 2026-01-17 16:00:43.291336+00 |
| description | Fast, efficient implementation of Unsloth optimization kernels and training loop in Rust. |
| homepage | |
| repository | https://github.com/Moaisus-admin/unsloth-rs |
| max_upload_size | |
| id | 2050715 |
| size | 189,229 |
Unsloth, but faster. Written in Rust.
This library implements high-performance optimization kernels (Flash Attention, RoPE, RMSNorm) and training loops for LLMs using Rust and Candle. It provides a drop-in replacement API for the original Unsloth library.
unsloth_native API that mimics unsloth.pip install unsloth_rs
Add to your Cargo.toml:
[dependencies]
unsloth_rs = "0.1.0"
from unsloth_native import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
"TinyLlama/TinyLlama-1.1B-Chat-v1.0",
load_in_4bit=True
)
# ... training code ...
Apache-2.0