Git Product home page Git Product logo

twitch-simulator's Introduction

Introduction

These are scripts for treatment, training, evaluation of a fine tuned version of GPT-Neo from data of Twitch Chat logs and streamer transcribed conversations. Currently, the successfully trained models are being saved on HuggingFace.

Instalation

This project is known to work with Python 3.10+. To install all necessary packages, open a terminal and run the following command in the root directory:

pip install -r requirements.txt

Depending on your PIP installation, you'll need to use pip3 isntead of pip. This usually occurs when you have more than one version of Python installed on your computer (2.7 and 3.10 for example).

Training

The model can be trained with the file model-neo.py, the way it is currently set up requires a GPU with Cuda enabled. In case you don't have a capable GPU or the model ran out of memory, you can also try to run the model directly on your CPU at the cost of a longer training time. For that, comment out lines with .to('cuda') and set no_cuda to True and comment out the parameter fp16 on the TrainingArguments constructor.

Then, execute the trainer as a notebook or do

python model-neo.py

Evaluation

The file evaluator.py is able to generate text based on the input model. Make sure that model_name is set to the correct path and model version that you want to use. This script doesn't require a GPU to function. The input prompt is the text contained prompt, which you can change at will. The response is printed out at the end.

For evaluation, execute the file as a notebook or do

python evaluator.py

twitch-simulator's People

Stargazers

 avatar

Watchers

 avatar

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.