-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from EvolvingLMMs-Lab/pufanyi/pip
- Loading branch information
Showing
13 changed files
with
35 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
import os | ||
|
||
try: | ||
# enabling faster model download | ||
from .llava import Llava | ||
from .qwen_vl import Qwen_VL | ||
from .fuyu import Fuyu | ||
from .gpt4v import GPT4V | ||
from .instructblip import InstructBLIP | ||
from .minicpm_v import MiniCPM_V | ||
import hf_transfer | ||
|
||
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1" | ||
except ImportError: | ||
pass | ||
AVAILABLE_MODELS = { | ||
"llava": "Llava", | ||
"qwen_vl": "Qwen_VL", | ||
"fuyu": "Fuyu", | ||
"gpt4v": "GPT4V", | ||
"instructblip": "InstructBLIP", | ||
"minicpm_v": "MiniCPM_V", | ||
} | ||
|
||
for model_name, model_class in AVAILABLE_MODELS.items(): | ||
try: | ||
exec(f"from .{model_name} import {model_class}") | ||
except ImportError: | ||
pass | ||
|
||
|
||
import hf_transfer | ||
|
||
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters