mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00

* [Feat] Support visualglm inference on MMBench. * [Feat] Support llava inference on MMBench. * [Fix] Fix pre-commit format. * [Fix] Add docstring for llava * [Fix] Fix multi-process inference error of LlaVA and add comments. 1. Set `low_cpu_mem_usage` to False to address device issue. 2. Add docstring and type hints. 3. Rename class and remove registry. * [Fix] Pre-commit fix. * [Fix] add forward entry, add dynamic import to seedbench * [Fix] Fix pre-commit. * [Fix] Fix missing context. * [Fix] Fix docstring.
9 lines
279 B
Python
9 lines
279 B
Python
from opencompass.utils import satisfy_requirement
|
|
|
|
if satisfy_requirement('salesforce-lavis'):
|
|
from .instructblip import * # noqa: F401, F403
|
|
|
|
from .llava import * # noqa: F401, F403
|
|
from .minigpt_4 import * # noqa: F401, F403
|
|
from .visualglm import * # noqa: F401, F403
|