Skip to content
Discussion options

You must be logged in to vote

Hey! Thanks for reaching out. A quick fix might be to do:

inference.append_simulations(theta_chunk, x_chunk, data_device="cpu")

By doing this, data gets stored on CPU, and only individual batches are copied to GPU.

If this does not help, sbi also allows you to write your own training loop from scratch, with full flexibility for, e.g., dataloading. See here for a tutorial.

Hope that helps!
Michael

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by janfb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants