12 Tweets 8 reads Feb 22, 2023
🧵TUTORIAL - make a text generator using 🤗Transformers (quick + easy)
1. pip install transformers
want more details?
pypi.org
2. from transformers import pipeline
create a python script. import the pipeline function.
3. pick a model
there are a lot of options huggingface.co
not sure what to pick? gpt2 is the most popular
4. create a generator
use the text-generation pipeline and the model of your choice
5. call your generator
THAT'S IT
BONUS ROUND
what about ChatGPT?
ChatGPT is a human feedback model
There are no open source human feedback models.
YET
So stay tuned
did you enjoy this thread? no? well here's a video instead

Loading suggestions...