LTEnjoy commited on
Commit
8fdbefd
·
1 Parent(s): 1c4a4a8
Files changed (3) hide show
  1. Dockerfile +2 -2
  2. demo/config.yaml +4 -4
  3. run.py +1 -1
Dockerfile CHANGED
@@ -24,10 +24,10 @@ RUN wget 'https://drive.google.com/file/d/1waxLyL2MLCxyHyIlQe7zkeHy8lzuDThu/view
24
  RUN chmod +x /tmp/TMalign
25
 
26
  # Download ProTrek model
27
- RUN huggingface-cli download westlake-repl/ProTrek_650M_UniRef50 --repo-type model --local-dir /tmp/ProTrek_650M_UniRef50
28
 
29
  # Download ProTrek faiss index
30
- RUN huggingface-cli download westlake-repl/ProTrek-faiss-index --repo-type dataset --local-dir /tmp/ProTrek-faiss-index --include "ProTrek_650M_UniRef50/Swiss-Prot/*"
31
 
32
  # Set up a new user named "user" with user ID 1000
33
  RUN useradd -m -u 1000 user
 
24
  RUN chmod +x /tmp/TMalign
25
 
26
  # Download ProTrek model
27
+ RUN huggingface-cli download westlake-repl/ProTrek_650M_UniRef50 --repo-type model --local-dir /data/ProTrek_650M_UniRef50
28
 
29
  # Download ProTrek faiss index
30
+ RUN huggingface-cli download westlake-repl/ProTrek-faiss-index --repo-type dataset --local-dir /data/ProTrek-faiss-index --include "ProTrek_650M_UniRef50/Swiss-Prot/*"
31
 
32
  # Set up a new user named "user" with user ID 1000
33
  RUN useradd -m -u 1000 user
demo/config.yaml CHANGED
@@ -1,14 +1,14 @@
1
- model_dir: /tmp/ProTrek_650M_UniRef50
2
  faiss_config:
3
  IO_FLAG_MMAP: True
4
  sequence_index_dir:
5
  - name: Swiss-Prot
6
- index_dir: /tmp/ProTrek-faiss-index/ProTrek_650M_UniRef50/Swiss-Prot/sequence
7
 
8
  structure_index_dir:
9
  - name: Swiss-Prot
10
- index_dir: /tmp/ProTrek-faiss-index/ProTrek_650M_UniRef50/Swiss-Prot/structure
11
 
12
  text_index_dir:
13
  - name: Swiss-Prot
14
- index_dir: /tmp/ProTrek-faiss-index/ProTrek_650M_UniRef50/Swiss-Prot/text
 
1
+ model_dir: /data/ProTrek_650M_UniRef50
2
  faiss_config:
3
  IO_FLAG_MMAP: True
4
  sequence_index_dir:
5
  - name: Swiss-Prot
6
+ index_dir: /data/ProTrek-faiss-index/ProTrek_650M_UniRef50/Swiss-Prot/sequence
7
 
8
  structure_index_dir:
9
  - name: Swiss-Prot
10
+ index_dir: /data/ProTrek-faiss-index/ProTrek_650M_UniRef50/Swiss-Prot/structure
11
 
12
  text_index_dir:
13
  - name: Swiss-Prot
14
+ index_dir: /data/ProTrek-faiss-index/ProTrek_650M_UniRef50/Swiss-Prot/text
run.py CHANGED
@@ -37,7 +37,7 @@ async def run_cmd(cmd):
37
  async def download_faiss_index():
38
  await asyncio.gather(
39
  run_cmd("echo Hello World!"),
40
- run_cmd('huggingface-cli download westlake-repl/ProTrek-faiss-index --repo-type dataset --local-dir /tmp/ProTrek-faiss-index_UniRef50 --include "ProTrek_650M_UniRef50/UniRef50/*"'),
41
  )
42
 
43
 
 
37
  async def download_faiss_index():
38
  await asyncio.gather(
39
  run_cmd("echo Hello World!"),
40
+ run_cmd('huggingface-cli download westlake-repl/ProTrek-faiss-index --repo-type dataset --local-dir /data/ProTrek-faiss-index --include "ProTrek_650M_UniRef50/UniRef50/*"'),
41
  )
42
 
43