neuralmagic / deepsparse

Sparsity-aware deep learning inference runtime for CPUs
https://neuralmagic.com/deepsparse/
Other
2.94k stars 169 forks source link

[TextGeneration] Add helper function to parse model path from args #1583

Closed dsikka closed 5 months ago

dsikka commented 5 months ago

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)