Skip to content

My port of GPT-2 to JAX/haiku. You probably want the HuggingFace FLAX one instead.

Notifications You must be signed in to change notification settings

davisyoshida/gpt-2-haiku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPT-2-Haiku

My minimal-ish port of GPT-2 to JAX/haiku. I'd recommend the HuggingFace FLAX one instead, as that was released after I initially ported this from the OpenAI implementation.

Running

  • Install JAX, and the requirements:
pip install -r requirements.txt
  • Download the weights here

  • Choose a text file, and run the training script:

python train.py my_text_file.py --init_path=models/1558M --out_path=my_saved_model

About

My port of GPT-2 to JAX/haiku. You probably want the HuggingFace FLAX one instead.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages