← all repositories

minimaxir/gpt-2-simple

A Python wrapper for fine-tuning OpenAI's GPT-2 124M and 355M text generation models on custom datasets.

3.4k stars Python Language Models
gpt-2-simple
Velocity · 7d
+1.3
★ / day
Trend
steady
star history

The package wraps OpenAI’s GPT-2 model management and Neil Sheppard’s finetuning code with simplified Python APIs. Users can retrain GPT-2 on their own texts using a GPU or generate text from a fine-tuned model, optionally with text prefixes to control output. Checkpoints trained with this package can be loaded using its successor aitextgen.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.