LLMDataDist Constructor
Applicability
Product |
Supported (√/x) |
|---|---|
Atlas 350 Accelerator Card |
x |
√ |
|
√ |
|
x |
|
x |
|
x |
Note: For
Function Description
Constructs LLMDataDist.
Prototype
1 | __init__(role: LLMRole, cluster_id: int) |
Parameters
Parameter |
Data Type |
Description |
|---|---|---|
role |
Cluster role. This parameter is used only to identify the current role and does not affect the transmission process. The options are as follows:
|
|
cluster_id |
int |
Cluster ID that identifies the LLM-DataDist instance. It must be unique among all participants in the link establishment. |
Example
1 2 | from llm_datadist import LLMDataDist, LLMRole llm_datadist = LLMDataDist(LLMRole.DECODER, 0) |
Returns
In normal cases, the LLMDataDist instance is returned.
If a parameter is incorrect, a TypeError or ValueError may be thrown.
Restrictions
None