Closed Eslsamu closed 3 years ago
Same issue happens with RNN model (others I have not tested)
Possible Fix: model = TCNModel(...) model.fit(...) model.model = model.model.to("cpu") model.predict(...)
Still I have not found out how to save and load a model, and then use it with CUDA.
Similar error when attempting to run the following code.
pred_series = model_nbeats.historical_forecasts( series, start=pd.Timestamp('20191010'), forecast_horizon=7, stride=5, retrain=False, verbose=True ) display_forecast(pred_series, series['0'], '7 day', start_date=pd.Timestamp('20191010'))
RuntimeError Traceback (most recent call last)
A possible solution from TTS https://github.com/lexkoro/TTS/commit/47d74ced1c0cc462590a51817bbc31617ce97a30
Could you try to pip install -U darts
(updating to 0.9.1) and let us know if the problem persists?
No more errors, thanks!
I installed the latest darts with all packages from conda and got the same error.
I tried to reinstall darts via pip install -U darts
but it didn't solve the issue.
Do you have any recommendations or ready-to-use conda environments where this bug is solved?
Describe the bug
When calling "historical_forecast" or "predict" on a fittel TCN model trained using GPUs. Happens right after calling the method.
To Reproduce Steps to reproduce the behavior, preferably code snippet.
Error occurs for me both on Ubuntu 18 for the Deep Learning AMI AWS instance with a Tesla T4 GPU and Cuda Version 11.0 and with a similar setup for Google Colab. We are using in both cases python 3.7.10.
Dart has been installed using "pip install 'u8darts[torch]'". torch.cuda.is_available() == True
This bug occurs with my own dataset as well as with the tutorial: https://unit8co.github.io/darts/examples/06-TCN-examples.html
Full Error message: 0% 0/39 [00:00<?, ?it/s]
RuntimeError Traceback (most recent call last)