neuralmagic / sparseml

Libraries for applying sparsification recipes to neural networks with a few lines of code, enabling faster and smaller models
Apache License 2.0
2.07k stars 148 forks source link

Fix import typo #2311

Closed eldarkurtic closed 5 months ago

eldarkurtic commented 6 months ago

from sparseml import SparseAutoModelForCausalLM errors with:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'SparseAutoModelForCausalLM' from 'sparseml' (/home/eldar/to_delete/sparseml/src/sparseml/__init__.py)

I think it should be from sparseml.transformers import SparseAutoModelForCausalLM