You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is currently taking the cache almost 3 hours to run this lecture set (from scratch).
There are a number of issues reported by tensor flow such as:
/__w/lecture-python.myst/lecture-python.myst/lectures/wealth_dynamics.md: Executing notebook using local CWD [mystnb]
2023-03-22 01:10:05.558920: E external/org_tensorflow/tensorflow/compiler/xla/service/slow_operation_alarm.cc:65]
********************************
[Compiling module jit_wealth_time_series_for_loop_jax] Very slow compile? If you want to file a bug, run with envvar XLA_FLAGS=--=/tmp/foo and attach the results.
********************************
which suggests jax isn't running as it should again.
once quantecon gpu machine is up and running we should test the lectures and jax on the 3080 to benchmark and diagnose what is going on.
I tested this locally and on Colab. it still runs for around 30 mins. It takes around 1 minute for each MCMC and SVI simulation.
I think it is expected as the size of the simulation is quite large and MCMC is quite slow.
See if we can minimise the installs here so that Cuda libraries are not reinstalled.
Both of them (torch and jax) played important roles in this lecture. I think we can put torch and jax into our requirement file to minimize reinstalls.
Activity
mmcky commentedon Dec 13, 2023
@HumphreyYang it looks like the
bayes_nonconjmaybe uninstallingjaxdue to the followingIt looks like torch is reinstalling all the
Cudainfrastructure which may meanjaxisn't running as it should and could explain the long run time.Not urgent but would you be able to:
Cudalibraries are not reinstalled.mmcky commentedon Dec 13, 2023
See output
[-]Lecture Long Run Time -- Cache[/-][+]Fix Long Run Time (bayes_nonconj)[/+]HumphreyYang commentedon Dec 13, 2023
Many thanks @mmcky, I will look into these options.
HumphreyYang commentedon Dec 15, 2023
Hi @mmcky,
I tested this locally and on Colab. it still runs for around 30 mins. It takes around 1 minute for each MCMC and SVI simulation.
I think it is expected as the size of the simulation is quite large and MCMC is quite slow.
Both of them (
torchandjax) played important roles in this lecture. I think we can puttorchandjaxinto our requirement file to minimize reinstalls.