70b4de8700
add comment documenting how to reproduce python reference exactly
Andrej Karpathy
2024-04-30 18:51:45 +00:00
050cbfa42c
override train split to val split if we are debugging and trying to overfit a single batch of data, following the python script reference behavior
Andrej Karpathy
2024-04-30 18:48:12 +00:00
44656c3850
allow fp32 precision in the test script as well
Andrej Karpathy
2024-04-30 18:38:38 +00:00
b84571f745
also add argparse to force tf32 to zero
Andrej Karpathy
2024-04-30 17:54:15 +00:00
654d6f55c5
add arg to cap the number of steps, and offset all prints to start steps at 1, which i think looks better to the eye
Andrej Karpathy
2024-04-30 17:46:36 +00:00
52e2ca8378
Merge branch 'master' of github.com:karpathy/llm.c
Andrej Karpathy
2024-04-30 16:36:00 +00:00
179b159a1d
Merge pull request #311 from leloykun/fc--modal-script
Andrej
2024-04-30 09:35:51 -07:00
b239b67ae1
add modal script
Franz Louis Cesista
2024-05-01 00:15:08 +08:00
9d8a6d13f0
add flag overfit_single_batch useful debugging into train_gpt2.cu
Andrej Karpathy
2024-04-30 16:03:33 +00:00
435ac928b4
cuDNN Forward Flash Attention is working in both /dev/cuda/ and train_gpt2.cu! (backwards pass is broken for now as a conquence)
ademeure
2024-04-30 17:00:09 +01:00
51face88d9
fix bug where backward/step must be outside of amp context
Andrej Karpathy
2024-04-30 15:48:40 +00:00
7e8f14d2c0
Merge pull request #310 from ngc92/flush-l2-for-benchmark
Andrej
2024-04-30 07:23:41 -07:00
1c516c732d
re-commit of my old cudnn forward attention changes
ademeure
2024-04-30 14:54:35 +01:00
d7813d281d
clear the L2 cache between consecutive invokations of our microbenchmarks to get reliable results
Erik Schultheis
2024-04-30 12:45:37 +03:00
b3e8abdd54
optimizer update per shard and nccl all gather
chinthysl
2024-04-30 09:09:52 +00:00
2d26ec10b2
setting the zero opt configs
chinthysl
2024-04-30 09:08:25 +00:00
3254a51522
Zero Optimizations configs
chinthysl
2024-04-30 09:07:01 +00:00
568615fef1
Added packing for gelu forwards kernel
Christopher Dryden
2024-04-30 03:21:42 +00:00
9464f4272e
Merge pull request #283 from ChrisDryden/configurationRewrite
Andrej
2024-04-29 18:58:03 -07:00
997864920b
Merge pull request #290 from Ricardicus/ci-dev-cuda
Andrej
2024-04-29 18:53:03 -07:00
2490f7896d
Merge pull request #298 from karpathy/feature/packed128
Andrej
2024-04-29 16:31:02 -07:00
906d22f5b6
fix profile gpt2cu but note it currently needs the NO_MULTI_GPU=1 switch i think when calling it with make, todo fix later how we add the mpi flags
Andrej Karpathy
2024-04-29 23:27:55 +00:00
af2bc47d22
remove forceinline. blame @arund42 if this ever does not get inlined by the compiler
feature/packed128
Andrej Karpathy
2024-04-29 23:10:51 +00:00
f02ba4b436
import updated tokenizer properly
Andrej Karpathy
2024-04-29 23:02:26 +00:00
7634f0863c
add packed128 to the mainline file
Andrej Karpathy
2024-04-29 22:57:59 +00:00
5e12c66f5a
move packed128 to common
Andrej Karpathy
2024-04-29 22:55:28 +00:00
f43592954f
reset back to precious hyperparameters
Andrej Karpathy
2024-04-29 22:44:25 +00:00
ee125cffc4
make it imo clearer that the grid size is one quarter as large as it would otherwise be. because each thread now does 4X work
Andrej Karpathy
2024-04-29 22:40:26 +00:00
083b210dd4
small changes
Andrej Karpathy
2024-04-29 22:38:03 +00:00
d9506a7a0a
minor changes to packed128
Andrej Karpathy
2024-04-29 22:31:19 +00:00
f3b1bb70df
Updating Makefile with latest changes
Ross Wheeler
2024-04-29 02:28:03 -07:00
cf3e6efc79
Changed ordering of type configuration to easily see unchanged values
Christopher Dryden
2024-04-29 02:28:23 +00:00
109c62c6c6
Removed templates from kernels to clarify data types
Christopher Dryden
2024-04-29 02:06:59 +00:00
1e50f3b976
Only enable kernel4 with BF16
ademeure
2024-04-29 01:55:06 +01:00
82fef03acd
Use kernel6 for train_gpt2, and add all other kernels to /dev/cuda (+bugfixes)
ademeure
2024-04-29 01:51:10 +01:00
50acc125f3
Merge branch 'ngc92-split-file' Separates out common error-checking wrapper utils, that are broadly useful across all file
Andrej Karpathy
2024-04-28 23:27:08 +00:00
c20497cfc1
add comments pointing to the definition of the utils functions
Andrej Karpathy
2024-04-28 23:26:58 +00:00
b7972ff928
make padded vocab fixes in the .c code as well, i missed it in the previous PR, should satisfy the CI now
Andrej Karpathy
2024-04-28 19:33:21 +00:00
835060e18d
padded vocab change. touched a lot of code. very stressful and error prone, but i think it is done. had to bump versions on all .bin files, invalidating the previous files. re-run the python training script to re-export the new version files. let's not do too much of things like this in the future lol. actually, fun fact i had a chance to do the padded vocab really really early in the history of llm.c development, and chose not do it, thinking i'll just do it later. i should have done it. such is life, you make mistakes, you accumulate scar tissue, and you learn, and you become better, faster, stronger. this is the mindset one must have to lead a happy and fulfilling life. it's not important that you are perfect at any point in time, it's only important that you keep improving, every day.
Andrej Karpathy
2024-04-28 18:47:03 +00:00