Giter Club home page Giter Club logo

tensorflow-mingpt's Introduction

TensorFlow minGPT

It's pretty much the same as Andrej Karpathy's GPT Tutorial but using TensorFlow instead of PyTorch. Setup and training:

conda env create -f conda.yml

conda activate tf-mingpt

python main.py --help

There are two commands:

  1. python main.py train --config-file shakespeare.yml - Train a model
  2. python main.py generate --config-file shakespeare.yml - Generate sequences from the trained model

Filepath to config files will need to be explicityly provided as the default is superhero.yml which creates a really small model. The shakespeare.yml config has the same parameter values as used in the tutorial above.

I'd suggest training with superhero.yml config if you have only a CPU.

If you want to train with the shakespeare.yml config, and don't have a GPU locally, I'd suggest setting up SkyPilot and launching the provided SkyPilot task. E.g. sky launch mingpt.yml

Next

  • Update model to achieve a loss of ~1.4 on validation (currently ~1.7)
  • What is a test anyway? :/

tensorflow-mingpt's People

Contributors

am1tyadav avatar

Watchers

 avatar  avatar

Forkers

avr248

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.