GithubHelp home page GithubHelp logo

tinygrad-experiments's Introduction

Tinygrad Experiments

Tinygrad is cool... or so I've heard. Going to mess around with it here. Will update.

Goal is to get a basic understanding of how it works, and then try to contribute somehow to the project.

Update submodules: git submodule update --remote

COMPLETED

  • follow the basic MLP example from the tinygrad README, get it training
  • train a model on MNIST or something
  • work through all the docs
    • quickstart.md
    • abstractions.py
  • annotate mlops.py
  • I think I should go and annotate the tensor class
    • line 470 -> end still TODO
  • Build simple dataloader
  • build a conv on MNIST

TODO

"Higher"

"Lower"

  • try some different backends, compare

  • reverse engineer the symbolic shape library

  • reverse engineer the AST linearizer (codegen)

  • check out some of the issues on GitHub

Hopes and Dreams

Helpful stuff from discord

Flow: graph -> ast -> linearizer -> renderer -> compiler -> runtime

  • graph -- the full graph of the computation. note that this is both the forward and backward pass, they aren't treated different
  • ast -- a single GPU kernel, marked by a single reduce. a schedule runs a graph as a list of ASTs
  • linearizer -- turns an AST graph into a list of UOps (a linear representation of the program)
  • renderer -- uops -> the source code of the language (like C code)
  • compiler -- source code -> binary (ex: .c -> .so)
  • runtime -- run binary on the hardware

tinygrad-experiments's People

Contributors

beverm2391 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.