LLMDataDist Constructor
Applicability
Product |
Supported (Yes/No) |
|---|---|
Atlas 350 Accelerator Card |
No |
Yes |
|
Yes |
|
No |
|
No |
|
No |
Note: For the
Function Description
Constructs LLMDataDist.
Prototype
1 | __init__(role: LLMRole, cluster_id: int) |
Parameters
Parameter |
Data Type |
Description |
|---|---|---|
role |
Cluster role. 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, an LLM-DataDist instance is returned.
If a parameter is incorrect, a TypeError or ValueError may be thrown.
Constraints
None