- Download initial pretrained model.
gpt2.download_gpt2(model_name="355M")
- Setup training data (optional).
file_name = "yourdata.txt"
steps = 1000 #change this to your preference
- Run
main.py
. - Generating content based on trained data.
#Visit localhost on the provided port using your finetuned model from ./checkpoints to generate.
/request/<model_name>/<generationCount>
- Rate limitation is not yet present, and as a result can allow multiple requests to saturate machine resources.