Skip to content

Butanium/crosscoder-loss-animation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gradient Descent on Crosscoder Sparsity Loss Ball Animation

This project visualizes gradient descent optimization using animated ball trajectories. The animation shows how different balls follow gradient paths to find local minima, created using React and Remotion.

Features

  • Interactive visualization of gradient descent paths
  • Multiple ball trajectories showing different optimization paths
  • Smooth animation using Remotion
  • Visualization using Recharts for the coordinate system

Demo

Video

Prerequisites

  • Node.js (latest LTS version recommended)
  • npm or yarn

Installation

  1. Clone the repository:
git clone https://github.com/Butanium/crosscoder-loss-animation
cd cc-loss-animation
  1. Install dependencies:
npm install

Exporting to mp4 from CLI

To render the animation, use the following command:

npx remotion render src/Video.tsx BallTrajectories out/output.mp4 --concurrency=1

Note: We currently need to use --concurrency=1 due to crappy cursor-claude code.

Preview and web editor

To start the web editor:

npx remotion preview src/Video.tsx BallTrajectories 

Note that if you want export using the UI, you'll need to go to advanced settings and set the concurrency to 1.

Technologies Used

  • React
  • Remotion
  • Recharts
  • TypeScript

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published