mirror of
https://github.com/SakanaAI/doc-to-lora.git
synced 2026-07-23 17:01:04 +02:00
fix for vision llama
This commit is contained in:
parent
273b35378f
commit
7c5fe3bc5b
1 changed files with 1 additions and 0 deletions
|
|
@ -138,6 +138,7 @@ def get_model(
|
|||
model = AutoModelForCausalLM.from_pretrained(**model_init_kwargs)
|
||||
else:
|
||||
model = MllamaForConditionalGeneration.from_pretrained(**model_init_kwargs)
|
||||
model = model.language_model
|
||||
if peft_config is not None:
|
||||
model = PeftModel(model, peft_config)
|
||||
model.train(train)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue