Skip to content

teachable-ainize/gpt2-train-MUvoXtFxwLrQx_IHAFL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

gpt2-train-MUvoXtFxwLrQx_IHAFL

Run on Ainize

Auto-generated github repository by Ainize Teachable NLP

Health Check

Using curl in the terminal:

$ curl --request GET 'https://main-gpt2-train-m-uvo-xt-fxw-lr-qx-ihafl-teachable-ainize.endpoint.ainize.ai/ping'
{
  "status": "Healthy"
}

Prediction Test

Using curl in the terminal:

$ curl --request POST 'https://main-gpt2-train-m-uvo-xt-fxw-lr-qx-ihafl-teachable-ainize.endpoint.ainize.ai/predictions/gpt-2-en-small-finetune.mar' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "text": [3666, 1438, 318, 14200, 11, 314, 16486, 1850, 287, 13851, 3783],
    "num_samples": 5,
    "length": 8
  }'
[
  [
    3666, 1438, 318, 14200, 11, 314, 16486, 1850, 287, 13851, 3783, 11, 314, 1101, 422, 262, 1294, 11, 523
  ],
  ...,
  [
    3666, 1438, 318, 14200, 11, 314, 16486, 1850, 287, 13851, 3783, 379, 262, 2059, 286, 520, 26414, 11, 543
  ]
]

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published