Function GenieNode_applyLora¶
Defined in File GenieNode.h
Function Documentation¶
-
Genie_Status_t GenieNode_applyLora(const GenieNode_Handle_t nodeHandle, const char *engine, const char *loraAdapterName)¶
A function to apply a LoRA Adapter.
- Parameters
nodeHandle – [in] A node handle.
engine – [in] Engine to which the LoRA Adapter is being applied.
loraAdapterName – [in] Name of the LoRA adapter.
- Returns
Status code:
GENIE_STATUS_SUCCESS: API call was successful.
GENIE_STATUS_ERROR_INVALID_HANDLE: Node handle is invalid.
GENIE_STATUS_ERROR_INVALID_ARGUMENT: At least one argument is invalid.
GENIE_STATUS_ERROR_GENERAL: The LoRA adapter could not be applied.
Note
When switching LoRA adapters, it is recommended to call GenieNode_reset.