GitHub · #247

karpathy/llm.c

LLM training in simple, raw C/CUDA. On Linux: git clone, then cmake -S . -B build && cmake --build build. 31,175 GitHub stars (#247 in this directory).

Repository
https://github.com/karpathy/llm.c
Owner
karpathy (User)
Stars
31,175
Forks
3,775
Open issues
229
Language
Cuda
License
MIT
Created
2024-04-08
Last push
2025-06-26
Snapshot
2026-10-18 · weekly refresh

Try it on Shadowfetch Linux.

Shadowfetch Linux is a Debian testing desktop with KDE Plasma, local AI tools, and ShadowCode. Clone this repository there, follow the steps for its primary language, and ask ShadowCode to finish the build.

Clone and configure a C/C++ build.

git clone https://github.com/karpathy/llm.c.git
cd llm.c
cmake -S . -B build
cmake --build build

If there is no CMakeLists.txt, use the README’s Makefile or meson steps. git clone --recursive when the project uses submodules.

ShadowCode prompt.

Paste this into ShadowCode after you open the project.

Clone https://github.com/karpathy/llm.c into ~/Workspaces/llm.c.
Read the README.
On this Shadowfetch Linux desktop, configure with CMake or the README’s build system, then compile and run a sample.
Ask before installing packages or using the network.

Download Shadowfetch Linux — ISO, checksum and signature.

Back to the GitHub directory · Methodology