Method CheckpointToLora
- Namespace
- LMKit.Finetuning
- Assembly
- LM-Kit.NET.dll
CheckpointToLora(LLM, string, string)
Converts a LoRA training checkpoint to a LoRA format and saves it to the specified path.
public static void CheckpointToLora(LLM model, string checkpointPath, string loraPath)
Parameters
model
LLMThe model object to be converted.
checkpointPath
stringThe path to the model checkpoint file.
loraPath
stringThe destination path where the LoRA file will be saved.
Exceptions
- FileNotFoundException
Thrown when the
checkpointPath
does not exist.- ArgumentNullException
Thrown when
loraPath
is null or empty.- FinetuningException
Thrown when the conversion operation fails.