Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

nanoGPT

AI overview

Sign in and the AI will write an overview from our coverage.

Headlines · 4

  1. Hands-On Tutorial Trains a 7.5M-Parameter GPT From Scratch

    A tutorial demonstrates how to train a small GPT from scratch in several hundred lines of code. It covers training a BPE tokenizer, pretraining a 4-layer model with about 7.5 million parameters, monitoring memory use and gradient accumulation, generating text, and supervised fine-tuning. In the author’s demonstration, loss fell from 6.23 to near zero, and the model learned to reproduce the toy corpus. After 300 SFT steps using 12 instruction examples, it responded in a dialogue format and stopped at an end token. The report notes that the model only answered content covered by its training data and produced incoherent responses to out-of-scope questions.

    掘金 · 人工智能 · 🔥 0
  2. Karpathy's nanochat offers a low-cost LLM training harness

    Andrej Karpathy's MIT-licensed nanochat repository provides a minimal, hackable experimental harness for training language models across tokenization, pretraining, fine-tuning, evaluation, and inference. It is designed to run on a single GPU node, with model size selected through a depth setting while other hyperparameters are calculated automatically. Karpathy says a GPT-2-capability model can be trained for about $48 in roughly two hours on an 8xH100 node, or for closer to $15 on a spot instance; the report does not independently verify these figures.

    GitHub Trending · Python · 🔥 0
  3. KS3 benchmark reports faster convergence than MLP at similar GPU latency

    Independent researcher u/1ncehost compared the third version of K-Splanifolds, KS3, with multilayer perceptrons and earlier KS versions while fitting a 4D Mandelbulb through gradient descent on random samples. The author reports that KS3 converged faster and had nearly identical GPU latency to an MLP. The author also says KS3 ranged from considerably faster convergence than an MLP in areas including noise removal, geometric fitting and financial prediction to roughly equal performance for large language models. These are self-reported results that have not been independently verified.

    r/MachineLearning · 🔥 0
  4. Rust framework DenseCore claims bit-exact PyTorch match on nanoGPT

    A computer science student posted on r/MachineLearning about DenseCore, a small Rust deep learning framework with a PyTorch-like Python API that is roughly 2 MB versus about 580 MB for PyTorch. The author says that running Karpathy's nanoGPT unchanged against it produces identical initial weights from manual_seed, loss, gradients and updated weights bit for bit across all 50 tested steps, including with dropout enabled. Getting there required matching undocumented PyTorch behaviour such as the CPU flash attention kernel and its dropout path, rounding differences in Adam's tail loop, and clip_grad_norm_ using a reciprocal multiply; the match currently holds only on Apple Silicon Macs.

    r/MachineLearning · 🔥 0

Experience and discussion from the community

Share my nanoGPT experienceAsk about nanoGPT

Nobody has shared their experience with nanoGPT yet.