Function GenieDialog_setLoraStrength¶
Defined in File GenieDialog.h
Function Documentation¶
-
Genie_Status_t GenieDialog_setLoraStrength(const GenieDialog_Handle_t dialogHandle, const char *engine, const char *tensorName, const float alpha)¶
A function to apply the LoRA Strength.
- Parameters
dialogHandle – [in] A dialog 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: Dialog 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 GenieDialog_reset.