DL8 AI

Projects

Machine learning work by Duncan Larzelere. Each project has a live demo, its source code and a technical write-up.

  1. Open demo →
    A melody generated from 64 gestures, playing back. Gestures run along the bottom.

    01Generative model

    Melody Diffuser

    A 32M-parameter discrete diffusion transformer that generates monophonic melodies, conditioned through cross-attention on gestures tracked from a webcam. Trained on more than 10 million four-measure excerpts.

    parameters, 6-layer transformer
    32M
    parameters, 6-layer transformer
    training excerpts, 16th-note grid
    10M+
    training excerpts, 16th-note grid
    diffusion steps, gesture-conditioned
    64
    diffusion steps, gesture-conditioned
    • PyTorch
    • Discrete diffusion
    • Cross-attention
    • MediaPipe
    • Next.js
  2. Otto after a hand: the poker table and each of the player's decisions rated from Best to Blunder
    Play →
    A hand against Otto, with each of the player's decisions rated against the solver.

    02Game AI

    Otto

    Heads-up no-limit hold'em against an AI that starts from an equilibrium strategy learned by self-play, models its opponent's habits as it plays, and uses a reinforcement-learned policy to exploit them. Runs entirely in the browser.

    bb/100 gained over the equilibrium strategy
    +95
    bb/100 gained over the equilibrium strategy
    unseen opponents where adapting won more
    39/40
    unseen opponents where adapting won more
    self-play iterations (Monte Carlo CFR)
    66M
    self-play iterations (Monte Carlo CFR)
    • TypeScript
    • Monte Carlo CFR
    • Bayesian modelling
    • PPO
    • Web Workers

More projects to come.