mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-16 20:00:36 +08:00
@@ -47,7 +47,8 @@ def apply_lora(base_model_path, model_path, lora_path):
|
||||
model.save_pretrained(model_path)
|
||||
tokenizer.save_pretrained(model_path)
|
||||
processor.image_processor.save_pretrained(model_path)
|
||||
|
||||
if 'instructblip' in model_path:
|
||||
processor.qformer_tokenizer.save_pretrained(model_path)
|
||||
|
||||
def main(
|
||||
model_path: str,
|
||||
|
||||
Reference in New Issue
Block a user