Hacker GitHub

← All repos

karpathy/llm.c

View on GitHub ↗ ★ 31,368 Cuda

LLM training in simple, raw C/CUDA

28 mentions on Hacker News by 23 people: 9 stories, 19 comments · first 2024-04-08 · latest 2026-08-15

Mentions per year 28 mentions · busiest year 2024 (22)
20082026
  1. https://github.com/karpathy/llm.c However, I wonder about the use of this. Typically, you'd want to use a GPU for inference, and programming those in C is quite a challenge. The educational value of learning LLMs in C/C++ seems a lot lower…
    comment by smokel · 2026-08-15 · in AI by Hand
  2. https://github.com/karpathy/nanochat https://github.com/karpathy/llm.c The proof is in the pudding. Let's see your code
  3. …to start from scratch and spend my time watching/reading? Is it along the same lines as https://github.com/karpathy/llm.c/discussions/677 ? He (karpathy) has a video series that also does something similar. I found it very informative and…
  4. …[0] I mean the first Mamba paper, not the first SSM paper btw: https://arxiv.org/abs/2312.00752 [1] https://github.com/karpathy/llm.c/discussions/677 [2] https://arxiv.org/abs/2106.12423 [3] https://www.ft.com/content/d5f91c27-3be8-454a-bea…
  5. Hello, I've worked on re-writing Karpathy's amazing work, llm.c ( https://github.com/karpathy/llm.c ), in Rust ( https://github.com/Steboss/llm.rust ). The overall initial performance, on a small dataset (the tiny Shakespeare) is very…
  6. Using web wrappers around AI is being an AI end user If you want to be an AI engineer study this: https://github.com/karpathy/llm.c And build around llama.cpp Ollama is like cpanel for models. It’s not going to familiarize you with lower…
  7. …You can podcastify anything . I give it train_gpt2.c (C code that trains GPT-2): https://github.com/karpathy/llm.c/blob/master/train_gpt2.c and made a podcast about that: https://notebooklm.google.com/notebook/2585c187-b059-475a-b4... I do
  8. …to create a minimal example of quadrotor control and planning in Rust. I was inspired by [llm.c]( https://github.com/karpathy/llm.c ), which teaches complex topics with minimal code. My goal was to provide a similar experience, introducing…
  9. …this seems to be about the same order of magnitude compute as Karpathy's recent GPT-2 work: https://github.com/karpathy/llm.c/discussions/677 You could take the final checkpoint from that page and run it for some additional steps and see…
  10. See also (from the same author) https://github.com/karpathy/llm.c — "LLMs in simple, pure C/CUDA with no need for 245MB of PyTorch or 107MB of cPython."
  11. …quite compute constrained. Training a GPT-2 sized model costs ~$20 nowadays in respect to compute: https://github.com/karpathy/llm.c/discussions/481
  12. …is a magician! But being the coolest kid on the block with pure C/CUDA implementation is not enough https://github.com/karpathy/llm.c Studying a baby Llama 2 model source code in pure Mojo is the next level…
    comment by adeptima · 2024-05-29 · in Reproducing GPT-2 in llm.c
  13. Well here is a comment on 4090 https://github.com/karpathy/llm.c/discussions/481#discussion...
    comment by sabareesh · 2024-05-28 · in Reproducing GPT-2 in llm.c
  14. …that can host the 135GB of tokens for FineWeb100B. Will probably use S3 or something. Related see: https://github.com/karpathy/llm.c/issues/482
    comment by karpathy · 2024-05-28 · in Reproducing GPT-2 in llm.c
  15. Hi HN the main (more detailed) article is here https://github.com/karpathy/llm.c/discussions/481 Happy to answer questions!
    comment by karpathy · 2024-05-28 · in Reproducing GPT-2 in llm.c
  16. Have him check out: LLM training in simple, raw C/CUDA ---------------------------------- https://github.com/karpathy/llm.c It is only 1,000 lines of easy to read C code. There is also Python reference code.
  17. I'm not grasping the significance of this. I see a repo called llm.c, https://github.com/karpathy/llm.c , is the main selling point that PyTorch is a large download and this isn't... or are there other problems with PyTorch? I thought the…
  18. …- Highly recommend this one https://www.youtube.com/watch?v=PaCmpygFfXo - https://github.com/karpathy/llm.c - https://ig.ft.com/generative-ai 1: ex: https://news.ycombinator.com/reply?id=40007096&goto=item%3Fi...
    comment by georgehill · 2024-04-12 · in Show HN: Next-token prediction in JavaScript
  19. I wrote this, which might be a bit helpful: https://github.com/karpathy/llm.c/blob/master/doc/layernorm/... But if you don't have the background, I'd recommend my YouTube videos, see the Zero To Hero playlist:…