Commit graph

1022 commits

Author SHA1 Message Date
Ross Wheeler
79738d2ca4 fixed mkdir change 2024-05-24 17:05:59 -07:00
Ross Wheeler
e5083be900 Moved windows glob() over to dev/unistd.h
Added header guard and changed long->int64_t in dataloader.h
2024-05-24 16:56:52 -07:00
rosslwheeler
1ec081e64e
Merge branch 'karpathy:master' into dataloader_win_fixes 2024-05-24 16:19:45 -07:00
Andrej Karpathy
e60c4843a3 Merge branch 'ngc92-cpu-matmul' 2024-05-24 23:10:34 +00:00
Andrej Karpathy
3221e4b2d2 small cosmetic changes 2024-05-24 23:10:17 +00:00
Andrej Karpathy
6e4296fb9a Merge branch 'cpu-matmul' of https://github.com/ngc92/llm.c into ngc92-cpu-matmul 2024-05-24 22:59:24 +00:00
rosslwheeler
5e0fa452e0
Merge branch 'karpathy:master' into dataloader_win_fixes 2024-05-24 15:48:45 -07:00
Andrej Karpathy
b8674cedf8 Merge branch 'ademeure-deterministic_encoder_v2' 2024-05-24 22:18:26 +00:00
Andrej Karpathy
8b951056b5 resolve merge conflict 2024-05-24 22:04:02 +00:00
Andrej Karpathy
5ddb06182c Merge branch 'ademeure-deterministic_layernorm' 2024-05-24 21:53:08 +00:00
Andrej Karpathy
25f17e6748 small formatting fix before merge 2024-05-24 21:53:00 +00:00
Andrej Karpathy
dbacaf84cf Merge branch 'deterministic_layernorm' of https://github.com/ademeure/llm.c into ademeure-deterministic_layernorm 2024-05-24 21:46:25 +00:00
Andrej
bf03e7fd4c
Merge pull request #456 from ngc92/large-batch-fix
fix for large batch sizes
2024-05-24 12:00:41 -07:00
Andrej Karpathy
16b364d256 change -o to be not file but directory, and create a main.log inside it for the log. this is to prepare for writing of checkpoints, where we want to re-use this directory for those as well 2024-05-24 17:57:50 +00:00
Erik Schultheis
1b98637960 int -> int64_t 2024-05-24 20:11:34 +03:00
Erik Schultheis
df2e0dadd2 int64_t 2024-05-24 19:59:53 +03:00
Andrej Karpathy
1d10e788af fix bug pretty sure this should just be a void* pointer 2024-05-24 16:51:26 +00:00
Andrej Karpathy
613a125216 add checkpoint function write to file 2024-05-24 16:49:20 +00:00
Erik Schultheis
2a736cb9e2 fix for large batch sizes 2024-05-24 19:45:41 +03:00
Andrej Karpathy
08fe3eef43 change default shard size for fineweb10B 2024-05-24 15:56:05 +00:00
Andrej
b0f065fcf8
Merge pull request #455 from ngc92/fineweb
update fine-web preprocessing: faster, and much less RAM consumption
2024-05-24 08:54:55 -07:00
Erik Schultheis
b66eb66ac7 update fine-web preprocessing: faster, and much less RAM consumption 2024-05-24 17:45:26 +03:00
rosslwheeler
a241a00ad4
Merge branch 'karpathy:master' into dataloader_win_fixes 2024-05-23 23:12:15 -07:00
Andrej Karpathy
dee4e42548 add option to not run hellaswag, interferes with a bunch of testing, e.g. if T is low 2024-05-24 03:47:07 +00:00
Andrej Karpathy
032e76c259 start putting llm.c and pytorch right next to each other, identical training runs with identical results and prints. almost 2024-05-24 01:02:21 +00:00
Andrej
4b88d2a976
Merge pull request #453 from otabuzzman/master
A Swift port of this project
2024-05-23 14:26:28 -07:00
Andrej Karpathy
64b6a14679 add learning rate decay schedule, now we have the full scheduler implemented 2024-05-23 21:19:00 +00:00
Andrej Karpathy
661975cc3c add learning rate warmup option 2024-05-23 20:57:04 +00:00
Andrej Karpathy
645869b6f7 add weight decay -c option and be more careful in our tests of correctness, our weight decay didn't match to pytorch. also modify the betas in AdamW to be consistent with those used in GPT-3 training 2024-05-23 20:45:59 +00:00
Andrej Karpathy
949d71a3d2 only rank 0 logs 2024-05-23 20:32:56 +00:00
Andrej Karpathy
3cb2812774 skip hellaswag eval on step 0 i think... not sure but ok for now 2024-05-23 19:27:04 +00:00
Jürgen Schuck
8af1818cb1
Merge branch 'karpathy:master' into master 2024-05-23 21:18:01 +02:00
otabuzzman
5f87b13f34 Update documentation with Swift port reference 2024-05-23 21:15:01 +02:00
Andrej
518805b7f4
Init from random weights, matching PyTorch
Merge pull request #451 from karpathy/feature/random_init
2024-05-23 12:11:05 -07:00
Andrej Karpathy
1f91bfc442 fix small bug on eval logging 2024-05-23 18:19:25 +00:00
Andrej Karpathy
86682af9a9 llm.c matches pytorch init from scratch exactly now 2024-05-23 17:50:33 +00:00
Andrej Karpathy
70a9c75348 use pytorch rand and fix dumb bug lol 2024-05-23 15:16:49 +00:00
Andrej Karpathy
bc1ebc110a Merge branch 'feature/rand' of https://github.com/azret/llm.c into feature/random_init 2024-05-23 14:59:44 +00:00
Andrej Karpathy
e6a7d1d3e9 allow the python script to also init from random and save those weights, so it's a good reference for our C implementation 2024-05-23 14:59:25 +00:00
Andrej Karpathy
d09631807a first draft of random init, crashes with some cuBLAS error, debugging 2024-05-23 14:35:46 +00:00
Ross Wheeler
d3f26951ef Add glob() for windows
Tested with tinyshakespeare and fineweb
2024-05-23 00:06:18 -07:00
Andrej Karpathy
d3cf9e211c fix bug free only if initted 2024-05-23 00:49:32 +00:00
Andrej
eda0c2f591
Merge pull request #447 from karpathy/feature/hellaswagc
HellaSwag eval in C
2024-05-22 15:50:12 -07:00
Andrej Karpathy
da59861d38 make hellaswag optional eval yay 2024-05-22 22:42:37 +00:00
Andrej Karpathy
67239d9b8f fixed a bunch of small issues and we now utilize the full batch dimension, this is very close to ready to merge, might even be ready 2024-05-22 22:21:53 +00:00
Andrej Karpathy
051f3ca53c first draft, apparently this works. needs cleanups, and also we are not yet utilizing the full batch dimension. we actually have to load in multiple examples and fully utilize batch 2024-05-22 19:24:20 +00:00
Andrej
69f12214bf
Merge pull request #444 from karpathy/feature/sharded_data
extend dataloader to be sharded
2024-05-22 06:21:48 -07:00
Andrej Karpathy
099d30f814 add a super small crappy glob for windows that only matches a single unique file. this will make CI happy but we can't train on sharded data on windows until this is improved 2024-05-22 13:08:18 +00:00
Andrej Karpathy
05be4f6d82 readme changes 2024-05-22 12:32:25 +00:00
Andrej Karpathy
edb0df967a continued changes for sharded dataloader 2024-05-22 11:59:09 +00:00