For example usage or to easily use the model you can check our colab notebook:
Notebook
Model Description
Genji is a transformer model finetuned on EleutherAI's GPT-J 6B model. This particular model is trained on python only code approaching 4GB in size.
Split model has the checkpoints splitted, which makes it use less system RAM while loading and makes it faster to load.
This model needs more effort to set up as you need to install git-lfs and pull the repo.
* each layer consists of one feedforward block and one self attention block
The model consists of 28 layers with a model dimension of 4096, and a feedforward dimension of 16384. The model
dimension is split into 16 heads, each with a dimension of 256. Rotary position encodings (RoPE) was applied to 64
dimensions of each head. The model is trained with a tokenization vocabulary of 50257, using the same set of BPEs as
GPT-2/GPT-3.
Training data
GPT-J 6B was pretrained on the Pile, a large scale curated dataset created by EleutherAI for the purpose of training this model. After the pre-training, it's finetuned on the python code that was taken from the Pile.
Training procedure
Genji-python-6B is trained for 20k steps on around 655 million tokens with learning rate of 2e-06
Intended Use
This model is trained for assistence on writing python code and having fun trying weird stuff with it.
How to use
This model is only usable with our fork because GPT-J is not merged to the main transformers repo yet. When it's merged, we will make this model easily loadable.
For now, you need to use this fork:
Fork
1Prompt:2def print_customer_name
3Generation:4(self, customer):5"""Print the name of a customer."""6ifnot self.is_valid():7return89print("Customer: {}".format(customer))
For example usage, you can see our colab notebook as well:
Notebook
Eval results
TBD
Acknowledgements
This project was possible because of the compute provided by the
TPU Research Cloud and EleutherAI for pretraining of the GPT-J 6B.
Thanks to everyone who contributed to this project: