csuhan commited on
Commit
5c71922
·
1 Parent(s): cb059ae
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -168,12 +168,12 @@ def download_llama_adapter(instruct_adapter_path, caption_adapter_path):
168
  os.system(f"wget -q -O {caption_adapter_path} https://github.com/ZrrSkywalker/LLaMA-Adapter/releases/download/v.1.0.0/llama_adapter_len10_layer30_caption_vit_l.pth")
169
 
170
 
171
- ckpt_path = "/data1/llma/7B/consolidated.00.pth"
172
- param_path = "/data1/llma/7B/params.json"
173
- tokenizer_path = "/data1/llma/tokenizer.model"
174
- # ckpt_path = hf_hub_download(repo_id="nyanko7/LLaMA-7B", filename="consolidated.00.pth")
175
- # param_path = hf_hub_download(repo_id="nyanko7/LLaMA-7B", filename="params.json")
176
- # tokenizer_path = hf_hub_download(repo_id="nyanko7/LLaMA-7B", filename="tokenizer.model")
177
  instruct_adapter_path = "llama_adapter_len10_layer30_release.pth"
178
  caption_adapter_path = "llama_adapter_len10_layer30_caption_vit_l.pth"
179
  max_seq_len = 512
 
168
  os.system(f"wget -q -O {caption_adapter_path} https://github.com/ZrrSkywalker/LLaMA-Adapter/releases/download/v.1.0.0/llama_adapter_len10_layer30_caption_vit_l.pth")
169
 
170
 
171
+ # ckpt_path = "/data1/llma/7B/consolidated.00.pth"
172
+ # param_path = "/data1/llma/7B/params.json"
173
+ # tokenizer_path = "/data1/llma/tokenizer.model"
174
+ ckpt_path = hf_hub_download(repo_id="nyanko7/LLaMA-7B", filename="consolidated.00.pth")
175
+ param_path = hf_hub_download(repo_id="nyanko7/LLaMA-7B", filename="params.json")
176
+ tokenizer_path = hf_hub_download(repo_id="nyanko7/LLaMA-7B", filename="tokenizer.model")
177
  instruct_adapter_path = "llama_adapter_len10_layer30_release.pth"
178
  caption_adapter_path = "llama_adapter_len10_layer30_caption_vit_l.pth"
179
  max_seq_len = 512