EvilFreelancer/rugpt-api

Small API reserver for interacting with RuGPT-3

3

stars

8

commits

Python

primary language

Feb 13, 2023

updated

developers.sber.ru/portal/products/rugpt-3
docker
flask
flask-api
rest-api
rugpt
rugpt-3

README

ruGPT-3 in Docker

Small API project based on Flask for making requests to RuGPT-3 neural network.

How to install

First need to build a composition:

docker-compose build

Run application:

docker-compose up -d

How to use

Need to create POST request with JSON object.

curl -X POST http://127.0.0.1:5000/predict -H "Content-Type: application/json" -d '{"question":"some text for network"}'

Supported parameters

NameTypeDefault
questionstring
max_lengthint100
devicestringcuda (if present) or cpu (if cuda is not available)
repetition_penaltyfloat5.0
top_kint5
top_pfloat0.95
temperatureint1
num_beamsint10
no_repeat_ngram_sizeint3

Contributors

EvilFreelancer/rugpt-api

Small API reserver for interacting with RuGPT-3

3

stars

8

commits

Python

primary language

Feb 13, 2023

updated

developers.sber.ru/portal/products/rugpt-3
docker
flask
flask-api
rest-api
rugpt
rugpt-3

README

ruGPT-3 in Docker

Small API project based on Flask for making requests to RuGPT-3 neural network.

How to install

First need to build a composition:

docker-compose build

Run application:

docker-compose up -d

How to use

Need to create POST request with JSON object.

curl -X POST http://127.0.0.1:5000/predict -H "Content-Type: application/json" -d '{"question":"some text for network"}'

Supported parameters

NameTypeDefault
questionstring
max_lengthint100
devicestringcuda (if present) or cpu (if cuda is not available)
repetition_penaltyfloat5.0
top_kint5
top_pfloat0.95
temperatureint1
num_beamsint10
no_repeat_ngram_sizeint3

Contributors

Languages

Python

53.6%

HTML

33.4%

Dockerfile

13.0%