Giter Site home page Giter Site logo

gpt-2's Introduction

Text Generation GPT-2

Project Description

The goal of this project is to fine-tune the GPT-2 model on the works of Shakespeare and deploy this fine tuned model on Linux using Fast API.

Steps

  • Pre-trained GPT-2 model was fine tuned with input from Shakespeare works. You can access this input from the data folder in the repo.
  • Then this trained model was saved in Google Drive for later use.
  • In the next step, a python application was created for this model using the FastAPI framework. You can access it from the FastAPI.py file.
  • Then a bash script was created to run this application on the Linux. This script is the file named start.sh in the repo.
  • After installing the required dependencies specified in the requirement.txt file, the trained model in the drive is accessed using wget, after downloading the model, there are the required commands to run the FastAPI web server in start.sh script.
  • After all steps you can generate text according to the prompt you want using the curl tool.(these commands are also in start.sh )

Note:

After running the bash start.sh command, the application will run on localhost. Maybe you need to run the curl command(in the start.sh) separately.

gpt-2's People

Contributors

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