nanochat / scripts /tok_train.py

Commit History

  1. 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

  1. 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

  1. fix: correct minor typos in help text, README, and comments

    2bitbit
    2bb93b2

  1. quick fix to not OOM main speedrun script

    Andrej Karpathy
    8630d32

  1. 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

  1. nudge hyperparameters of the base script with the results of the sweeps and miniseries. vocab size down to 32K. D:N ratio from 20 to 8. add miniseries script

    Andrej Karpathy
    ccf4b7f

  1. small change to doc string at top of tok_train.py (#402)

    helloaidank
    Unverified signature
    389d019

  1. initial commit

    karpathy
    3a5e0bc