Function GenieNode_setLoraStrength¶
Defined in File GenieNode.h
Function Documentation¶
-
Genie_Status_t GenieNode_setLoraStrength(const GenieNode_Handle_t nodeHandle, const char *engine, const char *tensorName, const float alpha)¶
A function to apply the LoRA Strength.
- Parameters
nodeHandle – [in] A node handle.
engine – [in] Engine to which the LoRA Adapter is being applied.
tensorName – [in] LoRA Alpha Tensor name.
alpha – [in] Value of the LoRA alpha strength.
- 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: In case due alpha tensor values could not be applied.
Note
When changing LoRA alpha strengths, it is recommended to call GenieNode_reset.