Table of Contents

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 LLM

The model object to be converted.

checkpointPath string

The path to the model checkpoint file.

loraPath string

The 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.