Skip to content

In "Use in transformers", use messages if conversational #728

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

Merged
merged 5 commits into from
May 31, 2024

Conversation

osanseviero
Copy link
Contributor

Increase visibility of conversational capabilities of text-generation pipeline

Screenshot from 2024-05-30 18-45-05

Copy link
Member

@pcuenca pcuenca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

pipelineSnippet = pipelineSnippet.concat(["pipe(messages)"]);
}

return [pipelineSnippet.join("\n"), autoSnippet];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In another PR we could use apply_chat_template and call generate in the autoSnippet for conversational models.

Copy link
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with suggestions

@osanseviero osanseviero requested a review from pcuenca May 31, 2024 08:43
Copy link
Member

@pcuenca pcuenca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 🔥

@osanseviero osanseviero merged commit 8df8f6a into main May 31, 2024
4 checks passed
@osanseviero osanseviero deleted the chat_pipeliness branch May 31, 2024 09:41
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.

5 participants