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 helper function to parse model path from args #1583

Merged
merged 5 commits into from
Feb 7, 2024

Conversation

dsikka
Copy link
Contributor

@dsikka dsikka commented Feb 5, 2024

Summary

The following now works:

from deepsparse import TextGeneration
model_path = "hf:mgoin/TinyStories-1M-ds"

pipe = TextGeneration(model_path)

This still works:

model_path  = TextGeneration(model_path=model_path)

bfineran
bfineran previously approved these changes Feb 5, 2024
src/deepsparse/pipeline.py Outdated Show resolved Hide resolved
src/deepsparse/pipeline.py Show resolved Hide resolved
@dsikka dsikka requested review from bfineran and rahul-tuli February 6, 2024 04:33
@dsikka dsikka merged commit c54461a into main Feb 7, 2024
13 checks passed
@dsikka dsikka deleted the update_create branch February 7, 2024 18:08
dsikka added a commit that referenced this pull request Feb 7, 2024
…1583)

* add helper function to parse model path from args

* update model path

* revert cli changes

* remove empty args
bfineran pushed a commit that referenced this pull request Feb 7, 2024
…1583)

* add helper function to parse model path from args

* update model path

* revert cli changes

* remove empty args
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