Problem
I've been reviewing numpy to torch code including @henrygbell's MAPED #204 and @ehrhardtkm PDF #177 and my recent drift correction #208
At the moment, it appears device selection is a bit scattered:
config.set_device()
validate_device
quantem.yaml where cpu is set
config.get_device() and manually entered within a function/class signature
- ...
What is our best practice? A few constraints for users:
- device selection should be automated in general
- memory usage should be chunked, avoid OOM error as much as we can
- ...
Proposed solution
I don't have one yet. I will write some thoughts as I encounter more. Please feel free to suggest any alternatives.
Problem
I've been reviewing numpy to torch code including @henrygbell's MAPED #204 and @ehrhardtkm PDF #177 and my recent drift correction #208
At the moment, it appears device selection is a bit scattered:
config.set_device()validate_devicequantem.yamlwherecpuis setconfig.get_device()and manually entered within a function/class signatureWhat is our best practice? A few constraints for users:
Proposed solution
I don't have one yet. I will write some thoughts as I encounter more. Please feel free to suggest any alternatives.