Skip to content

Add chat input detection for text generation, and refactor streamer API.#21

Merged
CodeWithKyrian merged 2 commits intomainfrom
add-chat-mode-detection
Apr 20, 2024
Merged

Add chat input detection for text generation, and refactor streamer API.#21
CodeWithKyrian merged 2 commits intomainfrom
add-chat-mode-detection

Conversation

@CodeWithKyrian
Copy link
Copy Markdown
Owner

What:

  • Bug Fix
  • New Feature

Description:

This PR refines the existing detection for chat input in Text Generation Pipeline. Now the pipeline can correctly detect if the input is a chat input, and apply chat templates to it. It also modifies the pipeline to optionally accept a parameter that controls if it returns the full text as input or not.

It also includes a refactor to the Streamer class, making it more streamlined, and responsive to the output of text generation models.

@CodeWithKyrian CodeWithKyrian merged commit efed42e into main Apr 20, 2024
@CodeWithKyrian CodeWithKyrian deleted the add-chat-mode-detection branch April 20, 2024 18:47
@martindewawd martindewawd mentioned this pull request Mar 25, 2025
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant