Skip to content

Conversation

yhna940
Copy link

@yhna940 yhna940 commented May 5, 2025

This PR introduces a new model configuration parameter, ENABLE_DETERMINISTIC_ALGORITHMS, to control whether PyTorch runs with deterministic algorithms enabled.

  • Adds enable_deterministic_algorithms_ flag in ModelState
  • Parses the flag from model configuration
  • Calls at::globalContext().setDeterministicAlgorithms(...) during model execution
  • Updates README.md to document the new parameter

When enabled, operations without deterministic implementations will raise errors. Default behavior remains unchanged (disabled).

@yhna940 yhna940 changed the title Enable configurable deterministic algorithm flag in PyTorch backend Enable configurable deterministic algorithm flag May 5, 2025
@yhna940 yhna940 force-pushed the feature/torch-deterministic branch 2 times, most recently from c44ed3f to 57e6fa3 Compare May 6, 2025 11:53
@yhna940 yhna940 force-pushed the feature/torch-deterministic branch from 57e6fa3 to bb9ffa6 Compare August 5, 2025 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant