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

[Add] sequence length to text gen pipelines #1518

Merged
merged 2 commits into from
Jan 9, 2024

Conversation

rahul-tuli
Copy link
Member

This PR exposes sequence_length as a Pipeline level property

Test Code:

from deepsparse import Pipeline

pipeline = Pipeline.create(
            task="text-generation",
            model_path="zoo:mpt-7b-mpt_pretrain-base_quantized",
        )

assert hasattr(pipeline, "sequence_length")

Was failing before, but passes after this PR

@rahul-tuli rahul-tuli self-assigned this Jan 8, 2024
@rahul-tuli rahul-tuli marked this pull request as ready for review January 8, 2024 19:57
@rahul-tuli rahul-tuli merged commit 5004edd into main Jan 9, 2024
13 checks passed
@rahul-tuli rahul-tuli deleted the add-sequence-length-to-text-gen-pipelines branch January 9, 2024 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants