Nixtla / neuralforecast

Scalable and user friendly neural :brain: forecasting algorithms.
https://nixtlaverse.nixtla.io/neuralforecast
Apache License 2.0
2.98k stars 342 forks source link

remove print from TimeLLM import #941

Closed jmoralez closed 6 months ago

jmoralez commented 6 months ago

If a user doesn't have the transformers library installed and imports any model, the 'The transformers library is required for Time-LLM to work' message is printed, since neuralforecast/models/__init__.py imports TimeLLM. This removes that print since trying to initialize the model without transformers installed raises the following error: ImportError: Please install `transformers` to use the default LLM, which should be enough.

review-notebook-app[bot] commented 6 months ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB