Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

community: CTransformers: Add _astream implementation #15640

Conversation

abhishek9909
Copy link
Contributor

Description:

  • Addition of _astream implementation in ctransformers.py
  • Returns asynchronous iterator

Issue:

  • Invoking astream without any model specific implementation of _astream defaults to 'yielding' ainvoke which does not "stream" data, returns string asynchronously.

Verification:

  • astream verified with running Mistral-7B-Instruct-v0.1-GGUF

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jan 6, 2024
Copy link

vercel bot commented Jan 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Jan 7, 2024 7:57pm

@dosubot dosubot bot added Ɑ: models Related to LLMs or chat model modules 🤖:improvement Medium size change to existing code to handle new use-cases labels Jan 6, 2024
@abhishek9909 abhishek9909 changed the title Community: CTransformers: Add _astream implementation community: CTransformers: Add _astream implementation Jan 6, 2024
@abhishek9909 abhishek9909 reopened this Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:improvement Medium size change to existing code to handle new use-cases Ɑ: models Related to LLMs or chat model modules size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant