Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
summerstay authored May 14, 2020
1 parent 9ec3982 commit c3ea24b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ use pip or conda to install: torch, transformers

Just run true_poetry.py and type or paste in some text as a prompt and it will generate a sonnet, limerick, couplets or a ballad. You should switch to

model = GPT2LMHeadModel.from_pretrained("gpt2-xl")
params.model_name = "gpt2-xl"

if you want it to automatically download the 6GB neural network. Gwern's finetumed poetry model does a somewhat better job, if you have a copy. It's a bit tricky to get working, though. In the same directory where true_poetry.py is, I have a folder called "poetry." In that folder sits Gwern's pytorch_model.bin and associated small files.
if you want it to automatically download the 6GB neural network. Gwern's finetumed poetry model does a somewhat better job at traditional poetic style, if you have a copy. It's a bit tricky to get working, though. In the same directory where true_poetry.py is, I have a folder called "poetry." In that folder sits Gwern's pytorch_model.bin and associated small files.

I downloaded all the files in a zipped tar file using this command:

Expand Down

0 comments on commit c3ea24b

Please sign in to comment.