Giter VIP home page Giter VIP logo

rwkv-fsdl's Introduction

This is my unofficial repository for RWKV Explained from Full Stack Deep Learning.

The main purpose is that I want to learn to clean code in python file rather than using notebook for coding stuff. I also want to pair things from this code to the paper and try to explain my tought process of this code.

๐Ÿ’ก P.S I am neither an AI researcher nor an AI engineer,. But I would like to be one (imagine me saying it like this)

The main thing that I learned are about beartype and jaxtyping. jaxtyping is used for documentation, while beartype checks if the typing from jaxtyping is correct in the code. I prefer not to use beartype because it may be troublesome for quick coding. Instead, I would use jaxtyping to clearly define variable types.

I placed all the types in types.py to keep them organized in one file, as I saw in this repo that I liked.

I also use simple config file using class CFG like in this repo. It's easy to implement for toy project like this. But I would probably use hydra for more complex project. I put CFG in config.py to make it cleaner.

To run the code, you can use the readily available code in main.py. It's also the final run code from the article.

๐Ÿ“ TODO

  • Write explanation of each block based on the paper
  • Replace the usage of torch.exp like the article said
  • Add clean requirements.txt
  • (Optional) Try add pytest

rwkv-fsdl's People

Contributors

erland366 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.