Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
helloyongyang committed Jun 18, 2024
1 parent 32a1c46 commit c9534f9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion llmc/models/llava.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
from loguru import logger
from .llama import Llama
from llmc.utils.registry_factory import MODEL_REGISTRY
from transformers import LlavaForConditionalGeneration, AutoConfig
from transformers import AutoConfig

try:
from transformers import LlavaForConditionalGeneration
except:
logger.info(
"LlavaForConditionalGeneration is not supported in this version of transfomers. Update transfomers if you need."
)


@MODEL_REGISTRY
Expand Down

0 comments on commit c9534f9

Please sign in to comment.