-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement get_total_memory for windows #184
base: main
Are you sure you want to change the base?
Conversation
I will also add several test comparing against psutil results on windows workflows, with some several scenarios (e.g. multithreaded call to the get_total_memory function) |
It might be a nitpick, to be super clear, but the terminology used in the comments is free_memory, but we were getting is total memory. |
src/tabpfn/utils.py
Outdated
@@ -786,3 +788,37 @@ def _transform_borders_one( | |||
) | |||
|
|||
return logit_cancel_mask, descending_borders, borders_t | |||
|
|||
|
|||
# ref: https://github.com/microsoft/windows-rs/blob/c9177f7a65c764c237a9aebbd3803de683bedaab/crates/tests/bindgen/src/fn_return_void_sys.rs#L12 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please just add another comment explaining what this code is for? The name of the class could also reflect the meaning of it in the wider system. Might it even make sense to move this class inside the function to scope it clearly?
- Moving inside since it is used only for that function
Just looked at the todo inside that function, this seems not resolved (whether to go for free or total, for example gpu code still uses free memory, cpus use total_memory). The naming of the variable is couple with this TODO, should be dealt with another PR. |
The another thing to do is to add windows to os-matrix in workflow. Is that OK with u? |
Sorry I didn't quite get this. "os-matrix in workflow" - where would this be? From my side looks good to merge |
Sorry meant here: see matrix.os in https://github.com/PriorLabs/TabPFN/blob/main/.github/workflows/pull_request.yml |
|
Thanks @mert-kurttutan for the PR! Yes adding windows to the CI tests would be great, thanks :) I think we can run all tests on windows. |
Fails due to heredoc (which is valid only in shells for unix). |
Turns out minimal torch version (the setting |
Thanks a lot @mert-kurttutan for the fixes! I think I would rather skip the onnx compilation tests on Windows, as we don't really need them on all OS. Otherwise it looks great :) |
Addresses #103