karpathy/llm.c

init from scratch

Open

#243 opened on Apr 24, 2024

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Cuda (3,626 forks)github user discovery
good first issue

Repository metrics

Stars
 (30,145 stars)
PR merge metrics
 (PR metrics pending)

Description

Follow the GPT-2 reference .py file and initialize the weights in C from scratch in the exact same way. Allow init from scratch instead of init from checkpoint when building the GPT-2. Add argparse flag to configure which way to go. Ok to only change the mainline development file train_gpt2.cu.

Contributor guide