Runtime Environment Variables
Runtime Environment Variables¶
The following table describes runtime flags that are set in the environment to change the behavior as well as enable or disable some features.
Flag |
Default |
Description |
Consumer |
---|---|---|---|
|
1 |
Controls execution mode:
|
Intel Gaudi PyTorch bridge |
|
False |
Creates of graph visualization files. The output dump graphs are in ./.graph_dumps folder |
Intel Gaudi software |
|
Unset |
Holds the configuration of recipe cache.
Configuration is encoded as a comma separated list in the following format:
Note: If a recipe cache is shared among a few processes (scale-up), it must be stored on a local physical disk. Avoid using remote drives (such as NFS) where file locks are not supported, as it it may lead to instability and unpredictable behavior. |
Intel Gaudi PyTorch bridge |
|
INT64_MAX |
Limits internal graph size to specified number of ops. Reduces the Lazy mode memory overhead. This will be improved in future releases. Note: This may affect performance. |
Intel Gaudi PyTorch bridge |
|
False |
The dynamic shapes feature is disabled by default. If a model experiences excessive recompilations due to dynamic data or ops,
this variable can be set to enable the Intel Gaudi PyTorch bridge and graph compiler to automatically manage dynamic shapes in model scripts. The graphs will be automatically bucketed and padded into
ranges to achieve a common size, reducing recompilations and and improving performance when working with dynamic workloads. To run with dynamic shapes handling enabled,
set |
Intel Gaudi PyTorch bridge |
|
30000 |
If cache evictions cause performance degradation, increasing the cache size will increase performance. The default value is 30000. Note: Boost in performance may cause an increase in host memory consumption. |
Intel Gaudi PyTorch bridge |
|
1 |
This flag turns on host time optimization of lazy ops accumulation. It offloads ops accumulation to a separate thread, thus reducing computation time of the main thread. |
Intel Gaudi PyTorch bridge |
|
Unset |
Path (file), where the collected metrics are stored.
Metrics are stored in a file only when |
Intel Gaudi PyTorch bridge |
|
process_exit |
Once Supported values:
Multiple triggers can be enabled together by separating them with
a comma, for example:
|
Intel Gaudi PyTorch bridge |
|
json |
Metrics file format. Both JSON and TEXT formats are supported:
|
Intel Gaudi PyTorch bridge |
|
True |
Enables generic stream[1] which allows a user to submit different types operations in same user stream[2]. For a usage example of this flag, see Wav2Vec2 inference script.
[1] Generic stream: A user stream where all operations can be pushed to a stream irrespective of the type of operation (copy, compute, or collective operations).
[2] User stream: A queue of device work. The host (user) places the work in this queue and continues immediately. The device schedules the work in this queue when the resources are free.
|
Intel Gaudi PyTorch bridge |
|
True |
Accelerate Eager mode by enabling multithreaded pipeline in operations processing:
|
Intel Gaudi PyTorch bridge |
|
False |
Option to disable launching any computations on the hardware. It can be useful in a warmup phase of a given workload, when user wants to compile all the graphs and have a well-defined separation before starting actual execution on the hardware. |
Intel Gaudi PyTorch bridge |
The following table describes runtime flags that are set in the environment to obtain Intel Gaudi software and Intel Gaudi PyTorch bridge level logs.
Note
For the full list of logging levels, refer to Using Log Levels.
For the full list of Intel Gaudi software component-level logs, refer to Using Component-level Logs.
Flag |
Default |
Description |
Consumer |
---|---|---|---|
|
|
Sets log files location. |
Intel Gaudi software and Intel Gaudi PyTorch bridge |
|
False |
If set to True, enables printing Intel Gaudi software
and Intel Gaudi PyTorch bridge logs to the console. If unset, logs are output in the directory specified by |
Intel Gaudi software and Intel Gaudi PyTorch bridge |
|
5 |
Logging level for Intel Gaudi software components and Intel Gaudi PyTorch bridge. |
Intel Gaudi software and Intel Gaudi PyTorch bridge |
|
5 |
Logging level for Intel Gaudi PyTorch bridge. If unset, |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
0 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
5 |
Logging level for |
Intel Gaudi PyTorch bridge |
|
0 |
A Bitmask specifying components inside the Intel Gaudi PyTorch bridge module that are allowed to use profilers. Note that certain profilers may require additional environment variables to be set.
|
Intel Gaudi PyTorch bridge |