Skip to content

Lightweight BO in botorch #2273

Answered by saitcakmak
ErikOrm asked this question in Q&A
Apr 2, 2024 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

Hi @ErikOrm. This is an interesting setting that we haven't thought much about.

Just importing torch and botorch is 350MB

I briefly looked at this on my laptop. For me, Python process itself seems to register 6-7MB before any imports. import torch brings this up to 142MB. import botorch increases it further to 183MB. The precise numbers are not relevant, there's clearly a significant memory usage from just importing these packages.

I suppose botorch does not require all this functionality?

I do not know what gets loaded to memory on import torch. Presumably, this includes the core tensor functionality and relevant C++ code that enables many of the tensor operations we rely on. BoTorch…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@Balandat
Comment options

@saitcakmak
Comment options

@ErikOrm
Comment options

@ErikOrm
Comment options

@saitcakmak
Comment options

Answer selected by ErikOrm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants