You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue where I was unable to import the model while running Lora fine-tuning again,this is the printed log:
Traceback (most recent call last):
File "/root/LLaVA/llava/train/train_mem.py", line 1, in
from llava.train.train import train
File "/root/LLaVA/llava/init.py", line 1, in
from .model import LlavaLlamaForCausalLM
ImportError: cannot import name 'LlavaLlamaForCausalLM' from 'llava.model' (/root/LLaVA/llava/model/init.py)
The script I am running is: sh ./scripts/v1_5/finetune_task_lora.sh
The text was updated successfully, but these errors were encountered:
oh, I see the init file,
AVAILABLE_MODELS = {
"llava_llama": "LlavaLlamaForCausalLM, LlavaConfig",
"llava_qwen": "LlavaQwenForCausalLM, LlavaQwenConfig",
"llava_mistral": "LlavaMistralForCausalLM, LlavaMistralConfig",
"llava_mixtral": "LlavaMixtralForCausalLM, LlavaMixtralConfig",
# "llava_qwen_moe": "LlavaQwenMoeForCausalLM, LlavaQwenMoeConfig",
# Add other models as needed
}
we could try to initial the corresponding model.
e.g. the llava_llama is in llava.model.language_model
when you solve this problem, there will get another one
There was a version conflict with the package, but I resolved it after reinstalling the package version.This is the version of the package I reinstalled:
Question
I encountered an issue where I was unable to import the model while running Lora fine-tuning again,this is the printed log:
Traceback (most recent call last):
File "/root/LLaVA/llava/train/train_mem.py", line 1, in
from llava.train.train import train
File "/root/LLaVA/llava/init.py", line 1, in
from .model import LlavaLlamaForCausalLM
ImportError: cannot import name 'LlavaLlamaForCausalLM' from 'llava.model' (/root/LLaVA/llava/model/init.py)
The script I am running is: sh ./scripts/v1_5/finetune_task_lora.sh
The text was updated successfully, but these errors were encountered: