-
Notifications
You must be signed in to change notification settings - Fork 30
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
fix bug of evaluate user model #444
Conversation
Signed-off-by: n1ck-guo <heng.guo@intel.com>
auto_round/utils.py
Outdated
device_str = None | ||
device_str = None | ||
else: | ||
device_str = detect_device(devices[0]) |
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.
it is quite confusing if device is set to 0,1 and detect_device return 0?
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.
if multi card or auto set, will return None. If only one card set, will return like cuda:1.
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.
then why using devices[0] not devices
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.
if the device is set to "cpu" or "hpu", is devices[0] still correct?
auto_round/utils.py
Outdated
device_str = None | ||
device_str = None | ||
else: | ||
device_str = detect_device(devices[0]) | ||
elif device == "auto": | ||
device_str = None |
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.
why set_cuda_visible_devices also set parallelism, it's not a good coding style. Set cuda visible device first, then set parallelism.
Similar coding style issue in detect_devices
No description provided.