Small API reserver for interacting with RuGPT-3
3
stars
8
commits
Python
primary language
Feb 13, 2023
updated
Small API project based on Flask for making requests to RuGPT-3 neural network.
First need to build a composition:
docker-compose build
Run application:
docker-compose up -d
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"}'
| Name | Type | Default |
|---|---|---|
| question | string | |
| max_length | int | 100 |
| device | string | cuda (if present) or cpu (if cuda is not available) |
| repetition_penalty | float | 5.0 |
| top_k | int | 5 |
| top_p | float | 0.95 |
| temperature | int | 1 |
| num_beams | int | 10 |
| no_repeat_ngram_size | int | 3 |
8 commits
Python
53.6%
HTML
33.4%
Dockerfile
13.0%
Small API reserver for interacting with RuGPT-3
3
stars
8
commits
Python
primary language
Feb 13, 2023
updated
Small API project based on Flask for making requests to RuGPT-3 neural network.
First need to build a composition:
docker-compose build
Run application:
docker-compose up -d
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"}'
| Name | Type | Default |
|---|---|---|
| question | string | |
| max_length | int | 100 |
| device | string | cuda (if present) or cpu (if cuda is not available) |
| repetition_penalty | float | 5.0 |
| top_k | int | 5 |
| top_p | float | 0.95 |
| temperature | int | 1 |
| num_beams | int | 10 |
| no_repeat_ngram_size | int | 3 |
8 commits
Python
53.6%
HTML
33.4%
Dockerfile
13.0%