Skip to content
Repo

convert_native_lora_checkpoint_to_peft

from modal_dojo import convert_native_lora_checkpoint_to_peft

Convert a Miles native-LoRA iter_*/adapter directory to a PEFT adapter at <adapter_path>_hf.

convert_native_lora_checkpoint_to_peft(adapter_path: str, model: ModelConfig, checkpoints_volume_name: str, checkpoints_mount_path: str = '/checkpoints') -> str