tft_init_processor

Function

Initializes the MindIO TFT Processor module.

Format

mindio_ttp.framework_ttp.tft_init_processor(rank: int, world_size: int, enable_local_copy: bool, enable_tls=True, tls_info='', enable_uce=True, enable_arf=False, enable_zit=False)

Parameters

Parameter

Mandatory/Optional

Description

Value

rank

Mandatory

Rank ID of the NPU on which a training job is being executed.

int, [0, world_size).

world_size

Mandatory

Number of NPUs that participate in training jobs in a cluster.

int, [1, 100000].

enable_local_copy

Mandatory

Whether to enable local copy.

  • False: disabled
  • True: enabled

enable_tls

Optional

Whether to enable TLS encrypted transmission.

  • False: disabled
  • True: enabled

The default value is True.

tls_info

Optional

TLS certificate configuration.

By default, this parameter is left empty. When TLS authentication is enabled, you need to configure the certificate information. The related fields must be organized in key-value pairs. For details, see Importing a TLS Certificate.

enable_uce

Optional

Whether to enable MindIO UCE.

  • False: disabled
  • True: enabled

The default value is True.

enable_arf

Optional

Whether to enable MindIO ARF.

  • False: disabled
  • True: enabled

The default value is False.

enable_zit

Optional

Whether to enable MindIO ZIT.

  • False: disabled
  • True: enabled

The default value is False.

Return Value

No return value. If an error occurs, an error log is recorded and an exception is thrown.