mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-06 15:13:38 +00:00
Add guard against training with llama.cpp loader
This commit is contained in:
parent
5a91b8462f
commit
f6ffecfff2
2 changed files with 6 additions and 1 deletions
|
|
@ -310,6 +310,11 @@ def do_train(lora_name: str, always_override: bool, all_linear: bool, q_proj_en:
|
|||
|
||||
# == Input validation / processing ==
|
||||
yield "Preparing the input..."
|
||||
|
||||
if shared.args.loader == 'llama.cpp':
|
||||
yield "Error: LoRA training requires a model loaded with the Transformers loader. GGUF models are not supported for training."
|
||||
return
|
||||
|
||||
lora_file_path = clean_path(None, lora_name)
|
||||
if lora_file_path.strip() == '':
|
||||
yield "Missing or invalid LoRA file name input."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue