Skip to main content

This is a text generation method which returns a generator, streaming out each token in real-time during inference, based on Huggingface/Transformers.

Project description

transformers-stream-generator

It is a text generation based on huggingface/transformers, modified to return a generator, real-time streaming out each token.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

transformers-stream-generator-0.0.2.tar.gz (12.1 kB view details)

Uploaded Source

File details

Details for the file transformers-stream-generator-0.0.2.tar.gz.

File metadata

File hashes

Hashes for transformers-stream-generator-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0111306454b2fc3cf843e7c9971b7eb1dee5e655a6529669d712bef0d8d3c3d4
MD5 bb5363eea8544b4ebdac3c9cd6b0644e
BLAKE2b-256 d6a6146fd5cbdcf4ed9611abbfdb78ca948dfd1fdbd0668ec7af20d7c0583034

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page