Skip to content

Richer conversational snippet for AutoModel #1611

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
Jul 17, 2025

Conversation

pcuenca
Copy link
Member

@pcuenca pcuenca commented Jul 11, 2025

I can't remember if we already discussed about this. This is an attempt to make the AutoModel snippet more self-contained, for the particular but frequent case of conversational transformers models. The pipeline version already got this treatment in #1434, but the AutoModel version is currently too barebones in comparison, as shown in the screenshot below.

In my opinion this could reduce the friction for users that want to experiment with the models in Colab or Kaggle.
cc @Vaibhavs10 @ariG23498

Screenshot 2025-07-11 at 14 05 15

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.

will be a quite long snippet, but why not 🤷

@pcuenca
Copy link
Member Author

pcuenca commented Jul 11, 2025

I wanted to start the discussion because longer snippets could perhaps start making sense now that we auto-create notebooks, but happy to defer for now.

@julien-c
Copy link
Member

that's fine we can always try imo! let's see what others think too

Copy link
Member

@Vaibhavs10 Vaibhavs10 left a comment

Choose a reason for hiding this comment

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

LGTM and thanks! my only worry is that it makes the overall snippet dialog a bit too huge, maybe we can collapse the AutoModel snippet by default on UI. WDYT @julien-c @gary149

Makes sense to start conservative with image-text-to-text and text-generation to begin with and the logic looks good to me too.

Otherwise let's merge and see how the users react to it!

@Vaibhavs10 Vaibhavs10 merged commit a4ca182 into main Jul 17, 2025
4 of 5 checks passed
@Vaibhavs10 Vaibhavs10 deleted the conversational-model-snippet branch July 17, 2025 14:27
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.

4 participants