nanochat / tests

Commit History

  1. add a few tests

    Andrej Karpathy
    f8a85a5

  1. Merge branch 'master' into fix/kernel

    svlandeg
    a14c399

  1. delete autocast, an unnecessary thorn in my side, manage dtypes directly

    Andrej Karpathy
    1076f97

  1. Merge branch 'master' into fix/kernel

    svlandeg
    a54691b

  1. Fix MockModel's device definition (#535)⁠

    Sofie Van Landeghem
    Unverified signature
    4800c62

  1. also update comments

    svlandeg
    535f664

  1. Fix SDPA KV-cache decode to respect sliding window (#456)⁠

    Andrej Karpathy +2: KartikVashishta, Claude Opus 4.5
    3ba42e8

  1. update the CPU/MPS script to give reasonable results. The model can at least answer that Paris is the capital of France and knows that the sky is blue, for about 40 minutes of training on my macbook. Also fixed a bug that existed due to KVCache bfloat16 dtype assumption

    karpathy
    f9a7e0f
  2. Add high value engine tests for core invariants (33 LoC) (#396)⁠

    barisozmen +2: Claude Opus 4.5, Sofie Van Landeghem
    Unverified signature
    bbc4413

  1. implement flash attention 3 fallback to pytorch sdpa by touching as few lines of code as possible in main files and keeping all implementation to a single file. add tests. add helpful warning messages for the user.

    Andrej Karpathy
    8203efa

  1. integrate Flash Attention 3. +9% tok_per_sec for d12 with ctx even as low as 2048 out of the box nice. also, ready to tune windows huge

    Andrej Karpathy
    2ff7d51

  1. also delete the rustbpe test code, this now lives in rustbpe repo that is separate

    Andrej Karpathy
    da8b7ea

  1. fix: sample first token independently for each row in multi-sample generation⁠

    Andrej Karpathy +1: Claude Opus 4.5
    8f979a8
  2. Replace speedup assertion with warning in batch_encode test⁠

    Andrej Karpathy +1: Claude Opus 4.5
    91d76cc

  1. add rust batch encode as a faster option over encode

    790f3be

  1. ensure consistency of quotes within each statement

    svlandeg
    2ce62ec
  2. add explicit UTF-8 encoding

    svlandeg
    c72b8b2

  1. also add a test that failed before the fix and passes now with the fix for kv cache resize

    Andrej Karpathy
    baf0b3f

  1. initial commit

    karpathy
    3a5e0bc