Nicous commited on
Commit
328aed1
·
verified ·
1 Parent(s): 68d5ac4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
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
- subprocess.run('huggingface-cli download lmms-lab/llava-onevision-qwen2-7b-ov --cache-dir ./llava-onevision-qwen2-7b-ov')
40
- subprocess.run('huggingface-cli download EgoLife-v1/EgoGPT/large-v3.pt --cache-dir ./large-v3.pt')
 
 
 
 
 
 
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"