Skip to content

Commit

Permalink
Add .ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGross committed Jan 22, 2024
1 parent 34aa597 commit e489d82
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 6 deletions.
39 changes: 39 additions & 0 deletions notebooks_jason/max_of_2_grokking.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": ".venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
7 changes: 1 addition & 6 deletions notebooks_jason/max_of_2_grokking.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
# %%
from dataclasses import replace
from tqdm import tqdm
import os
import imageio
from gbmi.exp_max_of_n.train import (
FullDatasetCfg,
MaxOfN,
train_or_load_model,
config_of_argv,
)
from gbmi.model import Config, try_load_model_from_wandb_download
from gbmi.model import Config
from transformer_lens import HookedTransformerConfig, HookedTransformer
import plotly.express as px
import plotly.graph_objects as go
from plotly.subplots import make_subplots
import torch
import numpy as np
import wandb
from typing import (
Tuple,
)

from gbmi.utils import set_params

api = wandb.Api()

Expand Down

0 comments on commit e489d82

Please sign in to comment.