unify the two optimizer implementations into one and prevent bugs like the one that just happened where i updated one and didnt update the other
Andrej Karpathy
a9d0a86
harden and shorten the execution sandbox
Andrej Karpathy
f4f69f9
fix deprecated commit on torchao
Andrej Karpathy
f527f76
delete datasets dependency bye
Andrej Karpathy
a5a3a33
nuke huggingface and its giant dependency footprint from orbit. datasets still todo
Andrej Karpathy
4186540
delete spurious 'cute' bloat that doesn't matter to a serious research stack
Andrej Karpathy
950a1dc
remove a ton of UI bloat, we need to make nanochat small and sexy and minimal and forkable. code is ~free now, if you want UI get your favorite LLM to add it. nukes ~1000 LOC from orbit nice
Andrej Karpathy
da32e1d
Validate checkpoint file format in find_last_step
Andrej
Unverified signature
21a7774
Improve error handling for batch size alignment
Andrej
Unverified signature
6facdee
Remove inherited parameters from scripts
Andrej
Unverified signature
79aaf1d
Merge pull request #540 from svlandeg/fix/kernel
Andrej
Unverified signature
2fc63c9
Use HF's community kernel for FA3 for Ada and Ampere
Small doc fixes for consistency
Andrej
Unverified signature
dbe6e2a
add a comment clarifying that RoPE here rotates by -theta (transpose of the textbook convention), which is functionally equivalent. Prompted by #489, thank you @qdrk
Andrej Karpathy+1: Claude Fable 5
3616a02
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
fix token_bytes calculation to use raw token bytes instead of round-tripping through str, which corrupts tokens that are not valid standalone UTF-8 (e.g. bytes >= 0x80 became 3-byte U+FFFD). 193/32768 tokens were affected, so bpb of new runs will read ~0.05% higher than old runs. Thank you @ellenjxu #693
Andrej Karpathy+1: Claude Fable 5
2ce972a
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
docs: note that MPS handles bf16 fine on recent macOS (opt in via NANOCHAT_DTYPE=bfloat16, ~25% memory savings). Thank you @eaglstun #793 and @ifsheldon #685
Andrej Karpathy+1: Claude Fable 5
5e43f1e
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
allocate the inference KV cache in COMPUTE_DTYPE instead of hardcoding cuda->bf16, fixing bf16 inference (e.g. NANOCHAT_DTYPE=bfloat16 on MPS) and deleting an old hack. Thank you @mparrett #795
Andrej Karpathy+1: Claude Fable 5
ca366eb
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
fix mixed-dtype ops in the optimizer so that bf16 params (wte, value_embeds) work on MPS, which unlike CUDA refuses to promote dtypes. AdamW math now runs explicitly in fp32; verified bit-identical on CUDA, where inductor was already upcasting in registers. Thank you @mparrett for the report and investigation in #741
Andrej Karpathy+1: Claude Fable 5
e02b339
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
adding MuonEq and Muon+, both seem to be very slight improvements at both d12 and d24. contributed by @jn2clark
Andrej Karpathy
4e014d3
fix link
svlandeg
9ec05d9
rename fwe to climbmix
svlandeg
fbb50ad
Merge branch 'master' into feat/small_fixes
svlandeg
07e2103
delete the whole report thing i think it was a bad idea it just bloats the code. doing this subtracts 540 LOC
Andrej Karpathy
f10bd75
tried and failed at DyT
Andrej Karpathy
dc54a1a
Merge branch 'master' into fix-batch-size-assertion
create a group for dev dependencies, there is no need to install all this other stuff just for speedrun and it's exposing people to dependency chain attacks. we need to delete more dependencies. dependencies bad bad bad