Skip to content

arnavg115/agrad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agrad - Auto Grad

A homecooked autogradient implementation using only Numpy. This is an extension of my ml library and I wish to use it to implement more complex networks. It is an amalgamation of Joel Grus' and Andrej Karpathy's implementation of autograd.

Done:

  • loss: mse, softmax cross-entropy
  • optimizer: basic (SGD), adam, RMSprop, momentum
  • activation/functions: tanh, leaky relu, sigmoid, relu, exp, basic tensor ops (add, subtract, matmul etc.)
  • architectures: Linear (MLP) see mnist.py, Transformers (LLaMA.py)
  • RL: DQN, REINFORCE

Todo:

  • GPU SUPPORT (Using cupy or jax)
  • building blocks: conv
  • architectures: imagenet, Mamba
  • other: KV cache for transformers, test backprop stability on transformer

About

A homecooked autograd implementation

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages