Skip to content

lmariscal/micrograd-webgpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micrograd-webgpu

Adorable teal fluffy creature sitting in a spring forest

WebGPU accelerated micrograd.
Autograd engine, implementing backpropagation and a simple neural-network library on top.
It supports forward and backward passes on both CPU and GPU.

Usage

It uses bun for our js runtime, and bundling.

For managing the build and run commands, it is using just.
So install just if not already installed.

To simply serve the project:

just dev

The default port is set to 3000, but you can change it in the justfile.
So you can access the project at http://localhost:3000.
Chrome has been our main target for development, but it should work on other browsers as well.

It should display its progress in the browser's console.
And a final forward pass showing the results of the training.

Examples

The project includes a couple of examples in the test folder.
Including training some basic neural networks on some logic gates.
You can find those examples in the tests folder.

TODO: Add more examples.
TODO: Do a comparison between the CPU and GPU implementations.

About

WebGPU accelerated Autograd

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages