Skip to content

berkecuhadar/python-gpt2-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-gpt2-server

A basic python server that can listen to client data and send generated data from gpt 2

Requirements

pip install torch
pip install transformers

Usage

  • If nesecarry change ip and port values.
  • in generateGPT2 model you can use your custom gpt2 model for more info
  • Optional If you want to bundle your server you can use server.spec file with PyInstaller package.

About

A basic python server that can listen to client data and send generated data from gpt 2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages