Skip to content

Instantly share code, notes, and snippets.

View amoudgl's full-sized avatar

Abhinav Moudgil amoudgl

View GitHub Profile
@amoudgl
amoudgl / hello-gpt-nan.ipynb
Last active May 30, 2025 17:56
NaNs in modula hello GPT tutorial
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@amoudgl
amoudgl / output.log
Created May 30, 2025 17:10
Sweeping over dataloader seed in modula hello GPT tutorial from 0 to 100
Input shape: (12, 64)
Target shape: (12, 64)
First input sequence: [41 53 50 42 1 40 50 53 53 42] ...
First target sequence: [53 50 42 1 40 50 53 53 42 1] ...
Decoded input: cold blood no spark of honour bides.
NORTHUMBERLAND:
Be thou a
@amoudgl
amoudgl / hello-gpt.py
Last active May 30, 2025 18:38
modula GPT tutorial script with seed exposed as a command line argument
"""
Adapted from modula's Hello GPT tutorial:
https://github.com/modula-systems/modula/blob/ede2ba72a1b9de3e1f44156db058b5c32c682941/examples/hello-gpt.ipynb
This script simply exposes dataloader seed as command line argument to test
training sensitivity to seed.
Usage:
python hello-gpt.py --seed 0