Advertisement
ArgieAnon

How to set up your own fork

Dec 11th, 2019
874
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. 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?
  2. Just follow this steps:
  3.  
  4. 1) Go here: >https://github.com/AIDungeon/AIDungeon/blob/master/AIDungeon_2.ipynb
  5.  
  6. 2) Fork it.
  7.  
  8. 3) Then you just have to add this to the second cell:
  9.  
  10. from IPython.display import Javascript
  11. display(Javascript('''google.colab.output.setIframeHeight(0, true, {maxHeight: 5000})'''))
  12. #make sure you change it again
  13. !sed -i "s/temperature=0.4/temperature=0.15/" /content/AIDungeon/generator/gpt2/gpt2_generator.py
  14. !sed -i "s/top_k=40/top_k=20/" /content/AIDungeon/generator/gpt2/gpt2_generator.py
  15. !python play.py
  16.  
  17. 4) Play.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement