Skip to main content

gpt2

API client for GPT-2 text generator hosted on the cloud by Open Medical IO

Generate synthetic text from your custom prompt with the latest released 774M model of OpenAI's GPT-2. We take care of the GPU backend. See openmedical.io/gpt2 for product demo and obtaining an API key!

Installation

pip install --upgrade gpt2

Usage

from gpt2 import Client
c = Client('API SECRET')
output_list = c.fast_generate(prompt='On a perfect summer day we went to')

"""
Generate text on the large 774M model using your own prompt and standard parameters.
This only takes a few seconds per query.
We're training additional models for your use in the near future, such as 774M finetuned on Chinese, Spanish, Wikipedia...
We're also releasing finetuning APIs in September 2019.
Stay tuned :)
"""

Metadata

Release files for gpt2 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gpt2 0.0.4
File Size Uploaded Provenance Actions
gpt2-0.0.4.tar.gz 2.7 kB Without provenance Details for gpt2-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gpt2 0.0.4
File Interpreter ABI Platform Actions
gpt2-0.0.4-py3-none-any.whl Python 3 none any Details for gpt2-0.0.4-py3-none-any.whl

Total release size: 6.7 kB

Release files / gpt2-0.0.4.tar.gz

Download URL gpt2-0.0.4.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
faa5c77c2e9dab8dc6acb69618f5032b5c84ffe6f44f64fd3ee6256a48ee0fe3
BLAKE2b-256 checksum
How to use checksums
f6670c8e52c7afea23dafe3d7c7936ab2450a2c1b66d60a230e558ce76e30167
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release files / gpt2-0.0.4-py3-none-any.whl

Download URL gpt2-0.0.4-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b3b4c2911d4cb68195646c5d841357a7c4153fa6c98422204218218088de89f
BLAKE2b-256 checksum
How to use checksums
e9d17d251f8150d0f6b28e90ccdf36637c4c7af7263d9469ae3a959f36c9cf81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Security for gpt2 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page