Skip to content

Instantly share code, notes, and snippets.

View murphyk's full-sized avatar

Kevin P Murphy murphyk

View GitHub Profile
@murphyk
murphyk / gist:c1871bfa8c40dc1a93258e52afa2c5d1
Last active May 21, 2021 20:43
JL training pseudocode
model = jaxLightningModule()
def fit(model):
opt = model.configure_optimizers()
opt_state = opt.init(model.params)
for iter
for batch
losses = model.step(batch)
grads = jax.grad(losses, model.params)
grad = model.reduce_gradients(grads)
param_update, opt_state = opt.update(grad, opt_state, model.params)
@murphyk
murphyk / coiled-frozen.gist
Created February 26, 2021 01:39
coiled.io NYC taxi demo is frozen
See attached screenshot