An implementation of the OpenAI 'Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasets' paper in PyTorch.

git clone https://github.com/danielmamay/grokking.git
cd grokking
uv sync
The project uses Weights & Biases to keep track of experiments. Run uv run wandb login to use the online dashboard, or uv run wandb offline to store the data on your local machine.
To run a single experiment using the CLI:
uv run python grokking/cli.py
To run a grid search using W&B Sweeps:
uv run wandb sweep sweep.yaml
uv run wandb agent {entity}/grokking/{sweep_id}
uv run pyright grokking/
uv run ruff check grokking/
Code:
Paper:
2 commits
Python
100.0%
An implementation of the OpenAI 'Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasets' paper in PyTorch.

git clone https://github.com/danielmamay/grokking.git
cd grokking
uv sync
The project uses Weights & Biases to keep track of experiments. Run uv run wandb login to use the online dashboard, or uv run wandb offline to store the data on your local machine.
To run a single experiment using the CLI:
uv run python grokking/cli.py
To run a grid search using W&B Sweeps:
uv run wandb sweep sweep.yaml
uv run wandb agent {entity}/grokking/{sweep_id}
uv run pyright grokking/
uv run ruff check grokking/
Code:
Paper:
2 commits
Python
100.0%