Comments (10)
I will share how I made it work on Ubuntu 18 (minimal installation) running from pendrive on my 12GB notebook:
(after downloading the model)
- apt install python3-pip
- pip3 install -r requirements.txt
- cd generator/gpt2
- pip3 install -r requirements.txt
- pip3 install pyyaml
- pip3 install gsutil
- pip3 install tensorflow==1.13.1
- cd ../..
(note that 1.12 as stated on the original GPT-2 won't work as it will throw an error on play.py. For GPU version please refer to the articles on the internet and replace tensorflow line above with line or lines for GPU version deployment, 8GB or more GPU memory may be required)
Then to run it:
- python3 play.py
Seems to be working just fine in the terminal:
Using it on windows is most likely similar to this (after getting the correct python package, adding it to %PATH% the right way and downloading the model manually), other than that there is always a remote terminal session (like putty client) to get to your linux box console.
EDIT: Added gsutil to pip3 install list.
from aidungeon.
Could we just put this in a docker image? Would simplify a lot and I don't think there's any size limits?
from aidungeon.
@nEOtechnican I just removed the termios related lines (import and 1 code line) and it works fine on Windows
from aidungeon.
Creating a docker image from tensorflow/tensorflow:latest-gpu-py3 with embedded the model_v5
folder is indeed very simple and also there is no limit to images size on docker hub. I can create a Dockerfile
for you if you want.
from aidungeon.
Also, should be tensorflow==1.15
since version 2 won't work.
from aidungeon.
Strange, pip installed tensorflow 1.14.0 for me yesterday. No idea why...
from aidungeon.
Let alone trying to install it on Windows 10, referring to a problem in grpcio ( grpc/grpc#20831 ) you currently cannot install tensorflow after all using python 3.8.
Will try it with older versions and supply a full install for windows10 if needed.
Edit :: Version 3.7.X seems to work, tho ...
https://docs.python.org/3/library/termios.html
Rip my dreams, running this on my windows host.
termios (also a dependency not listed, at least not standard in the windows version) is *NIX only afaics
from aidungeon.
@nEOtechnican I just removed the termios related lines (import and 1 code line) and it works fine on Windows
already did and on to the next, lots of thanks.
from aidungeon.
Not quite fixed - I listed three points in the issue description, and only the last one was addressed.
from aidungeon.
Would need to be an Nvidia docker image though to take advantage of cuda
from aidungeon.
Related Issues (20)
- [FEAT] Add /forget, /update commands HOT 4
- [BUG] Stories disappear too quickly
- [BUG] When switching to another app on Android, game restarts HOT 4
- [BUG] Use balking retries to handle "The AI is a little overloaded"
- [BUG] Using back button on web browser logs me out HOT 1
- [BUG] Buffer overflow when text+remember_text gets too long? HOT 1
- [FEAT] Translation HOT 2
- [FEAT] Add sorting the search results HOT 3
- [BUG] AI never uses double quotes, even when direct dialog is enabled HOT 3
- [BUG] Starting custom prompts with capital letters clears input
- [Q/A]
- [BUG] White screen HOT 1
- [Q/A] Why does the subscriptions websocket returns the entire story text every time? Why not just the diff? HOT 1
- [BUG] Bottom bar on phone overlaps the button
- [DOC] re-training on custom data q HOT 1
- [FEAT] Solve the input and output confusion and other functional requirements of multiplayer mode.
- [FEAT] Add a Pin/Favourite button to Stories
- [BUG] Quests disappear after playing a few turns HOT 1
- [FEAT] nsfw toggle in Explore
- [BUG] Flickering pixel column on mobile app HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aidungeon.