delete autocast, an unnecessary thorn in my side, manage dtypes directly
Andrej Karpathy
1076f97
Ensure that inputs and targets are contiguous (#569)
Sofie Van Landeghem
Unverified signature
752abc8
* call reshape instead of view in case the tensors are not contiguous
* fix directly in data loader instead
Restore completion-only loss masking in SFT dataloader (#582)
Anish
Unverified signature
83dccc2
* printing steps count
* adding reply only loss for chat
* using the mask by render_conversation function of tokeniser
* undoing some changes
* putting back the comment which got removed accidently, no functionality change
tune the data mixture a bit, load optimizer by default when SFT. These were confirmed to be best settings from sweeps of sft
Andrej Karpathy
8180e1d
a number of upgrades to SFT script to bring it up to date w.r.t. pretraining and tuning some of its kwargs based on sweeps
Andrej Karpathy
788dade
fix bug in chat_sft, the attention window must be preserved sigh
Andrej Karpathy
8b4849d
fix path which i think was modified during the refactor and this is a bug introduced by claude i believe
Andrej Karpathy
eaf49a3
nuke midtraining from orbit, it's not as needed now that we have a BOS-aligned dataloader. Also change the README a lot. midtrianing is not yet fully properly erased across the board, but good enough for step 1
Andrej Karpathy
1ddaad1
Combine AdamW and Muon into single MuonAdamW optimizer, cleaner, ty @chrisjmccormick for idea/help
Andrej Karpathy
41bb2ea
fix buggy midtrain and update all kwargs to be idiomatic. that is, argparse uses dashes variables use underscores. the underscores are just a remnant of the previous Configurator object. This is the right way
Andrej Karpathy
7312ec9
delete the configurator in favor of argparse and clean up a lot of kwarg details to make them more consistent across all scripts
Andrej Karpathy
eb7bbc1
clean up model_tag handling across scripts a bit more.
Andrej
Unverified signature
088726a
update to new os env var to get rid of deprecation warning
add the SpellingBee task so that nanochat can count r in strawberry etc. along the way we had to add a bunch of new functionality, e.g. extend the calculator to support the count function of python. possibly the current TaskMixture uses way too many synthetic examples of SpellingBee because the eval gives us exactly 100% performance on spelling. We can tune this later to reclaim some wall clock time here I think
Andrej Karpathy
8892470
merge and resolve conflict
Andrej Karpathy
5bdc99a
add personality to nanochat. breaks previous code on git pull and requires download of a new file from s3, but there is a helpful error message so hopefully its ok
Andrej Karpathy
fe5aed9
upgrading all other files to be able to use cpu/mps as well as cuda. various minor other changes ,e.g. changing max_iterations to num_iterations in sft script for consistency in naming
karpathy
2e9669e
dont evaluate the sampling evals during SFT they are too slow. keep the multiple choice evals. delete unused imports