Skip to content

🔥 I accidently made GPT from Scratch. It runs well on PyTorch version 2.1.5 or higher. Believe me. I've digged the hell out with PyTorch 2.0.0.

Notifications You must be signed in to change notification settings

DutchVandaline/GPT_from_Scratch

Repository files navigation

GPT_from_Scratch

Contributors Forks Stargazers Issues


Table of Contents
  1. About The Project
  2. Getting Started
  3. Contributing
  4. Contact

About The Project

hiabGPT, which stands for "Help, I Accidentally Built GPT" was my personal project to make GPT2 from Scratch. I've used Pytorch and really accidentally built GPT. Please chech the github tech blog I've uploaded on the bottom.
Full data is about 40,000. It's too much so I just added about 30 datum for example
I was able to make GPT much more faster if my PyTorch was not 2.0.0. PyTorch 2.0.0 sucks. It explodes with nan.

(back to top)

Development Blog

✒️ I am writing blog, 'Tech Blog, I guess?'. It's updating and progressing.

Key Features

📍 This is based on Attention is all you need and OpenAI GPT2 papers.
🪴 MaskedMultiheadSelfAttention was built with torch.MultiheadAttention.

Built With

  • PyTorch
  • Jupyter-NoteBook
  • Google-Colab
  • PyCharm

(back to top)

Prerequisites

You need Android Studio and dart, flutter plugin installed. If you are using mac, you need to set up XCode and Simulator.

Installation

  1. Clone the repo
    git clone https://github.com/DutchVandaline/GPT_from_Scratch.git
  2. Excecute on PyCharm

(back to top)

Contributing

If you liked this app, please buy me a coffee! It helps me do creative stuffs.

Buy Me A Coffee

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

Contact

Dutch Vanaline - [email protected]

Project Link: https://github.com/DutchVandaline?tab=repositories

(back to top)

About

🔥 I accidently made GPT from Scratch. It runs well on PyTorch version 2.1.5 or higher. Believe me. I've digged the hell out with PyTorch 2.0.0.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published