examples : Fix llama-export-lora
example (#8607)
* fix export-lora example * add more logging * reject merging subset * better check * typo
This commit is contained in:
parent
b841d07408
commit
de280085e7
5 changed files with 378 additions and 436 deletions
|
@ -128,7 +128,6 @@ struct gpt_params {
|
|||
|
||||
// TODO: avoid tuple, use struct
|
||||
std::vector<std::tuple<std::string, float>> lora_adapter; // lora adapter path with user defined scale
|
||||
std::string lora_base = ""; // base model path for the lora adapter
|
||||
|
||||
std::vector<llama_control_vector_load_info> control_vectors; // control vector with user defined scale
|
||||
|
||||
|
@ -255,6 +254,8 @@ struct gpt_params {
|
|||
std::string cvector_negative_file = "examples/cvector-generator/negative.txt";
|
||||
|
||||
bool spm_infill = false; // suffix/prefix/middle pattern for infill
|
||||
|
||||
std::string lora_outfile = "ggml-lora-merged-f16.gguf";
|
||||
};
|
||||
|
||||
void gpt_params_handle_hf_token(gpt_params & params);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue