nerdai/llms-from-scratch-rs
A comprehensive Rust translation of the code from Sebastian Raschka's Build an LLM from Scratch book.
This project offers a Rust version of the code from Sebastian Raschka's 'Build an LLM from Scratch' book, providing a clear, step-by-step guide to understanding and constructing large language models (LLMs). It takes in text data and demonstrates how to build a GPT-style LLM for tasks like text generation, classification, and instruction following. This resource is for developers interested in implementing LLMs using Rust, who want to follow along with the book's examples and exercises.
306 stars and 17 monthly downloads.
Use this if you are a Rust developer following Sebastian Raschka's 'Build an LLM from Scratch' book and want to work through its practical code examples and exercises in Rust.
Not ideal if you are looking for a high-level library to apply existing LLMs without delving into their underlying mechanics, or if you prefer to work in Python/PyTorch.
Stars
306
Forks
34
Language
Rust
License
MIT
Category
Last pushed
Mar 12, 2026
Monthly downloads
17
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/transformers/nerdai/llms-from-scratch-rs"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related models
EricLBuehler/mistral.rs
Fast, flexible LLM inference
brontoguana/krasis
Krasis is a Hybrid LLM runtime which focuses on efficient running of larger models on consumer...
ShelbyJenkins/llm_utils
llm_utils: Basic LLM tools, best practices, and minimal abstraction.
Mattbusel/llm-wasm
LLM inference primitives for WebAssembly — cache, retry, routing, guards, cost tracking, templates
GoWtEm/llm-model-selector
A high-performance Rust utility that analyzes your system hardware to recommend the optimal LLM...