Apps

Apps

An Atlas of Loss Surfaces

After taking the Theory of Deep Learning course at Cambridge, I wanted to properly understand the optimisation literature, so I learnt it by building this. It covers results from saddle points and the edge of stability to mode connectivity and the safety basin. Each result is shown on a 3D loss surface that you can spin round while a dozen optimisers roll across it. When you zoom in, the particles become stick men, who scratch their heads at saddle points and sit round a campfire once they converge. I hope the pictures help someone else build the same intuition.

Dusk at a rest point: campers sit by the fire, and one lies back to point at the stars.

vigil-gpu

Open source · Python

To keep track of training runs on rented cloud GPUs, I built vigil-gpu, a terminal monitor that shows every instance’s training logs and metrics on one screen. It sends an alert when a run stalls, hits NaNs or plateaus.

Four rented GPU instances in one terminal, each with a live loss sparkline and training log.

Japanese Grammar Analyzer

I built this app for learning Japanese from real text. When you paste in anything you’re reading, it marks each word’s grammar and level, with furigana over the kanji. Translation runs on a language model inside the browser, so the app costs nothing to serve.

Pasting in the opening of Sōseki’s I Am a Cat, switching highlights and clicking 猫 (cat).

3D Game of Life

I took Conway’s Game of Life into three and four dimensions. Since a 3D cell has 26 neighbours rather than 8, the hard part is finding birth and survival rules that work. You can tune them by hand, or let a rule finder try hundreds and keep the ones that stay alive.

A fractal crystal growing from a single cell, with older cells turning amber, then rust.

Soodokoo

This is Sudoku in up to six dimensions. Every number appears once along each row, column and line through the layers. You play one 2D slice at a time and slide through the rest.

A number entered on the flat board, then the same cell in Cube view, where its four lines run through five cubes, one per world.

Art

Matrix Digital Rain

I turned the falling code from The Matrix into a corridor that you fly through and steer with the mouse or a finger. Pressing the space bar warps the corridor into a tunnel.

Flying down the corridor grown from the seed “matteo”, with a warp into the tunnel.

Matrix Cave

I lit a procedurally generated cave with nothing but the falling code. Each string is water running over the rock, so the walls are visible only where the code traces them. Every sound, down to the muffled drips, is synthesised in the page.

A pulse outlines the tunnel ahead, then a walk down it past rock lit only by the falling code.