Skip to content

tauseefk/streamformers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

streamformers

Rustformers API is synchronous and doesn't directly support streaming responses. As it's quite hard to build anything usable on top of the callback API, I wrote a little example to get streaming response out of rustformers. The solution leverages std::sync::mpsc channels. This also works with actix however only producers can be cloned so the consumer (inference response sender) still needs to be static.

streamformers@2x

About

Wrap Rustformers' LLM inference in a stream.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages