neuralmagic / deepsparse

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

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

Closed dsikka closed 9 months ago

dsikka commented 9 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)