Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -36,8 +36,14 @@ from egogpt.constants import (
|
|
36 |
from egogpt.conversation import conv_templates, SeparatorStyle
|
37 |
import subprocess
|
38 |
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
39 |
-
|
40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
# pretrained = "/mnt/sfs-common/jkyang/EgoGPT/checkpoints/EgoGPT-llavaov-7b-EgoIT-109k-release"
|
43 |
# pretrained = "/mnt/sfs-common/jkyang/EgoGPT/checkpoints/EgoGPT-llavaov-7b-EgoIT-EgoLife-Demo"
|
|
|
36 |
from egogpt.conversation import conv_templates, SeparatorStyle
|
37 |
import subprocess
|
38 |
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
39 |
+
from huggingface_hub import hf_hub_download
|
40 |
+
|
41 |
+
# 下载模型 'llava-onevision-qwen2-7b-ov' 到本地目录
|
42 |
+
hf_hub_download(repo_id="lmms-lab/llava-onevision-qwen2-7b-ov", cache_dir="./llava-onevision-qwen2-7b-ov")
|
43 |
+
|
44 |
+
# 下载模型 'large-v3.pt' 到本地目录
|
45 |
+
hf_hub_download(repo_id="EgoLife-v1/EgoGPT/large-v3.pt", cache_dir="./large-v3.pt")
|
46 |
+
|
47 |
|
48 |
# pretrained = "/mnt/sfs-common/jkyang/EgoGPT/checkpoints/EgoGPT-llavaov-7b-EgoIT-109k-release"
|
49 |
# pretrained = "/mnt/sfs-common/jkyang/EgoGPT/checkpoints/EgoGPT-llavaov-7b-EgoIT-EgoLife-Demo"
|