Skip to content

Conversation

n1ck-guo
Copy link
Contributor

@n1ck-guo n1ck-guo commented Sep 9, 2025

No description provided.

Signed-off-by: n1ck-guo <heng.guo@intel.com>
Signed-off-by: n1ck-guo <heng.guo@intel.com>
Signed-off-by: n1ck-guo <heng.guo@intel.com>
@n1ck-guo n1ck-guo requested a review from wenhuach21 September 9, 2025 07:46
n1ck-guo and others added 4 commits September 9, 2025 04:09
Signed-off-by: n1ck-guo <heng.guo@intel.com>
Signed-off-by: n1ck-guo <heng.guo@intel.com>
logger.warning(f"unrecognized keys {list(kwargs.keys())} were passed. Please check them.")

if not disable_deterministic_algorithms:
# deprecated, default not to use torch.use_deterministic_algorithms
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upper case

)
if "CUBLAS_WORKSPACE_CONFIG" not in os.environ:
os.environ["CUBLAS_WORKSPACE_CONFIG"] = ":4096:8"
torch.use_deterministic_algorithms(True, warn_only=False)
Copy link
Contributor

@wenhuach21 wenhuach21 Sep 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if enable_deterministic_algorithms is not set, we use warn_only=Ture, which is the default behavior in our previous version, though I admit it's a quite confusing.

@wenhuach21 wenhuach21 self-requested a review September 10, 2025 00:57
@wenhuach21 wenhuach21 merged commit 886d657 into main Sep 10, 2025
8 checks passed
@wenhuach21 wenhuach21 deleted the hengguo/fix_ut_0909 branch September 10, 2025 00:57
chensuyue pushed a commit that referenced this pull request Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants