SetRole
Applicability
Product |
Supported (Yes/No) |
|---|---|
Atlas 350 Accelerator Card |
No |
Yes |
|
Yes |
|
No |
|
No |
|
No |
Note: For the
Function Description
Sets the role of the LLM-DataDist instance. You are advised to use it only when PagedAttention is enabled.
Prototype
1 | Status SetRole(LlmRole role, const std::map<AscendString, AscendString> &options = {}) |
Parameters
Returns
- LLM_SUCCESS: The role is set successfully.
- LLM_PARAM_INVALID: Incorrect parameter.
- LLM_FEATURE_NOT_ENABLED: The feature is disabled.
- LLM_EXIST_LINK: Residual link resources exist.
- Other values: Failure.
Exception Handling
None
Constraints
This API can be used only when OPTION_ENABLE_SET_ROLE is set to 1 during LLM-DataDist initialization.
Parent topic: LlmDataDist APIs