Can I use GPU with neural-prophet? #1014
-
I am searching for a long time on net. But no use. Please help or try to give some ideas how to achieve this. i want to use neuralprophet with GPU, this is my code
but i got the following information and Exception |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
@laoliang95 Yes, we added gpu support in the latest release candidate and it will become available with the final |
Beta Was this translation helpful? Give feedback.
-
Hi @hjmok, @laoliang95, awesome that you are already trying out the accelerator! instead of using trainer_config, you can simply use the accelerator arg of NeuralProphet in the following way: m = NeuralProphet(
weekly_seasonality=6,
daily_seasonality=10,
trend_reg=1,
learning_rate=0.01,
accelerator="gpu" # or "auto", "mps" for the M1 chip
) |
Beta Was this translation helpful? Give feedback.
@laoliang95 Yes, we added gpu support in the latest release candidate and it will become available with the final
0.5.0
release. For now you can test the pre-release version either by installing from source or via pip with any version starting from0.5.0rc1
(link)