Skip to content

Instantly share code, notes, and snippets.

View ejmejm's full-sized avatar
🎯
Focusing

Edan Meyer ejmejm

🎯
Focusing
View GitHub Profile
from typing import Tuple
import equinox as eqx
import jax
from jax import Array
import jax.numpy as jnp
from cl_agent.utils import tree_replace
@ejmejm
ejmejm / defaults.yaml
Last active January 27, 2025 22:44
Example quick experiment format
device: cuda
wandb:
enabled: false
project: minigrid_gvfs
optimizer:
type: sgd
meta_lr: 0.01
#...
@ejmejm
ejmejm / autostep.py
Created January 22, 2025 04:24
Autostep
import math
import torch
from torch.optim.optimizer import Optimizer
from typing import Iterator, Optional
class IDBD(Optimizer):
"""Incremental Delta-Bar-Delta optimizer.
@ejmejm
ejmejm / vmap_test.py
Created July 23, 2024 17:42
Test of vmapped matrix multiplication vs. batched matrix multiplication
from equinox import nn
import jax
import jax.numpy as jnp
#########################################
# Test 1 #
#########################################
@ejmejm
ejmejm / visr.ipynb
Created December 28, 2021 05:21
VISR.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ejmejm
ejmejm / pytorch_tips_yt_follow.ipynb
Created May 9, 2021 09:14
pytorch_tips_yt_follow.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.