Out of Memory Error #1311
Unanswered
ali-akhavan89
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi there! Could you try moving the posterior and all observations onto CPU? Or try to move the entire computation into a with torch.no_grad():
ranks, dap_samples = run_sbc(
thetas, xs, posterior, num_posterior_samples=num_posterior_samples, num_workers=num_workers
) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have successfully implemented the SBC into my inference framework, but I should note that I am dealing with time-series (3 outcome variables with 300 time points; the model has 12 input parameters). Given the tutorial notations, the SBC works fine if num_sbc_samples = 100 and num_posterior_samples = 1_000. But I get the 'Out of Memory Error' (screenshot below) if I set num_sbc_samples = 250 and num_posterior_samples = 2_500. Could you please help me understand what could be the potential causes of seeing this error? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions