googlecolab / colabtools

Python libraries for Google Colaboratory
Apache License 2.0
2.17k stars 706 forks source link

Running NeuralProphet crashes colab #3752

Open Soffia-t opened 1 year ago

Soffia-t commented 1 year ago

Describe the current behavior I have tried to run multiple notebooks that use NeuralProphet. Including the notebooks from Meta's tutorials. They all crash when training the model (by the way, I am running it on Colab Pro). These notebooks were working fine before. There has been no updates to the package by Meta. AND, the exact same notebooks run fine on a local machine AND they run fine on Planetary Computer Hub.

Describe the expected behavior I would expect to be able to run NeuralProphet as I was doing before.

What web browser you are using Chrome

Additional context https://colab.research.google.com/github/ourownstory/neural_prophet/blob/main/docs/source/how-to-guides/application-examples/energy_hospital_load.ipynb

olivierNyp commented 1 year ago

I ran into the same issue, I solved it by installing a different version of Numpy. This is what works for me. !pip install git+https://github.com/ourownstory/neural_prophet.git numpy==1.23.5 And if any errors come up when installing NeuralProphet remove these packages. For me that included uninstalling the following

!pip uninstall prophet torchaudio torchtext torchvision torchdata