How to set up your own fork (not tested, but should work) - VBPXKSMI/Wiki-Test GitHub Wiki
Do you want to play on the most up to date (official) version of the game, change the temp and top_k values, and play on your own fork? Just follow this steps:
-
Go here.
-
Fork it.
-
Then you just have to add this to the second cell:
from IPython.display import Javascript
display(Javascript('''google.colab.output.setIframeHeight(0, true, {maxHeight: 5000})'''))
#make sure you change it again
!sed -i "s/temperature=0.4/temperature=0.15/" /content/AIDungeon/generator/gpt2/gpt2_generator.py
!sed -i "s/top_k=40/top_k=20/" /content/AIDungeon/generator/gpt2/gpt2_generator.py
!python play.py
- Play.