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.1.tar.gz (12.1 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for transformers-stream-generator-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3f5a0016f57f1077be2a7edc7a83a144871af8673c9cfc733866e7131300ded5
MD5 5af18a49c19eedc42947e2908c4f2adb
BLAKE2b-256 d08e11888abea548220162dddef8f64b5b22d77891c9b94fd321331cb0f04938

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