char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
7b6c5a2ae
char/aliceai-t5-moe
export-lora
Apply LORA adapters to base model and export the resulting model.
usage: llama-export-lora [options]
options:
-m, --model FNAME model path from which to load base model
--lora FNAME path to LoRA adapter (use comma-separated values to load multiple adapters)
--lora-scaled FNAME:SCALE,... path to LoRA adapter with user defined scaling (format: FNAME:SCALE,...)
-o, --output, --output-file FNAME output file (default: 'ggml-lora-merged-f16.gguf')
For example:
./bin/llama-export-lora \-m open-llama-3b-v2.gguf \-o open-llama-3b-v2-english2tokipona-chat.gguf \--lora lora-open-llama-3b-v2-english2tokipona-chat-LATEST.gguf
Multiple LORA adapters can be applied by passing comma-separated values to --lora FNAME or --lora-scaled FNAME:SCALE,...:
./bin/llama-export-lora \-m your_base_model.gguf \-o your_merged_model.gguf \--lora-scaled lora_task_A.gguf:0.5,lora_task_B.gguf:0.5
1# export-lora 2 3Apply LORA adapters to base model and export the resulting model. 4 5``` 6usage: llama-export-lora [options] 7 8options: 9-m, --model FNAME model path from which to load base model 10--lora FNAME path to LoRA adapter (use comma-separated values to load multiple adapters) 11--lora-scaled FNAME:SCALE,... path to LoRA adapter with user defined scaling (format: FNAME:SCALE,...) 12-o, --output, --output-file FNAME output file (default: 'ggml-lora-merged-f16.gguf') 13``` 14 15For example: 16 17``` bash 18./bin/llama-export-lora \ 19-m open-llama-3b-v2.gguf \ 20-o open-llama-3b-v2-english2tokipona-chat.gguf \ 21--lora lora-open-llama-3b-v2-english2tokipona-chat-LATEST.gguf 22``` 23 24Multiple LORA adapters can be applied by passing comma-separated values to `--lora FNAME` or `--lora-scaled FNAME:SCALE,...`: 25 26``` bash 27./bin/llama-export-lora \ 28-m your_base_model.gguf \ 29-o your_merged_model.gguf \ 30--lora-scaled lora_task_A.gguf:0.5,lora_task_B.gguf:0.5 31```