Giter VIP home page Giter VIP logo

Comments (10)

MrKrzYch00 avatar MrKrzYch00 commented on August 28, 2024 8

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:
image

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.

 avatar commented on August 28, 2024 2

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.

aklein13 avatar aklein13 commented on August 28, 2024 1

@nEOtechnican I just removed the termios related lines (import and 1 code line) and it works fine on Windows

from aidungeon.

zaerl avatar zaerl commented on August 28, 2024 1

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.

aengl avatar aengl commented on August 28, 2024

Also, should be tensorflow==1.15 since version 2 won't work.

from aidungeon.

palant avatar palant commented on August 28, 2024

Strange, pip installed tensorflow 1.14.0 for me yesterday. No idea why...

from aidungeon.

SD-Chargers avatar SD-Chargers commented on August 28, 2024

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.

SD-Chargers avatar SD-Chargers commented on August 28, 2024

@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.

palant avatar palant commented on August 28, 2024

Not quite fixed - I listed three points in the issue description, and only the last one was addressed.

from aidungeon.

nickwalton avatar nickwalton commented on August 28, 2024

Would need to be an Nvidia docker image though to take advantage of cuda

from aidungeon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.