nerdai/llms-from-scratch-rs

A comprehensive Rust translation of the code from Sebastian Raschka's Build an LLM from Scratch book.

56
/ 100
Established

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.

LLM development Rust programming machine learning engineering natural language processing
No Package No Dependents
Maintenance 10 / 25
Adoption 13 / 25
Maturity 16 / 25
Community 17 / 25

How are scores calculated?

Stars

306

Forks

34

Language

Rust

License

MIT

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.