--deterministic_level
Applicable Products
Ascend 950PR /Ascend 950DT : supportedAtlas A3 training products /Atlas A3 inference products : supportedAtlas A2 training products /Atlas A2 inference products : supportedAtlas 200I/500 A2 inference products : not supportedAtlas inference products : supportedAtlas training products : supported
Description
This option is used for debugging and cannot be used in commercial products. The function specified by this option will be released as a feature in later versions.
Specifies the deterministic computation level.
By default, the deterministic level is 0, that is, deterministic computation is disabled. The value of --deterministic must also be 0. To enable deterministic computation, set the deterministic level to 1 and the deterministic computation option --deterministic to 1. To enable strong consistency computation, set the level to 2 and --deterministic to 1.
If strong consistency computation is enabled (--deterministic_level set to 2), the computation result is deterministic, meaning that multiple executions produce identical outputs. In addition, the computation result is independent of data position. For example, during matrix multiplication computation, the accumulation order of different rows may vary, which may cause slight differences in computation results for identical data across different rows. When strong consistency computation is enabled, however, the computation results remain consistent for identical inputs even across different rows.
By default, strong consistency computation is disabled. In this default mode, inconsistent computation results may occur when identical data appears in different rows.
For performance considerations, you are advised not to enable strong consistency computation, as it reduces the operator computation speed and degrades the overall efficiency. You are advised to enable this feature only in the following scenarios: strict guarantee of result consistency for identical data at different positions, or precision adjustment and debugging performed on the model to optimize the overall performance.
See Also
This option must be used together with --deterministic.
Arguments
- 0 (default): Disables deterministic computation.
- 1: Enables deterministic computation.
- 2: Enables strong consistency computation.
Suggestions and Benefits
None
Example
--deterministic=0 --deterministic_level=0
Dependencies and Restrictions
None