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