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

[TextGeneration] Add Streaming Functionality #1246

Merged
merged 13 commits into from
Sep 21, 2023
Prev Previous commit
Next Next commit
rebase
  • Loading branch information
dsikka committed Sep 21, 2023
commit 7c2ec5d0c34467e624d204c6a09d060a59400a88
1 change: 1 addition & 0 deletions src/deepsparse/transformers/pipelines/text_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class FinishReason(Enum):
STOP = "stop"
LENGTH = "length"
TIME = "time"
CALLBACK = "callback"


class TextGenerationInput(BaseModel):
Expand Down