Update
Browse files- Dockerfile +2 -2
- demo/config.yaml +4 -4
- 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 /
|
28 |
|
29 |
# Download ProTrek faiss index
|
30 |
-
RUN huggingface-cli download westlake-repl/ProTrek-faiss-index --repo-type dataset --local-dir /
|
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: /
|
2 |
faiss_config:
|
3 |
IO_FLAG_MMAP: True
|
4 |
sequence_index_dir:
|
5 |
- name: Swiss-Prot
|
6 |
-
index_dir: /
|
7 |
|
8 |
structure_index_dir:
|
9 |
- name: Swiss-Prot
|
10 |
-
index_dir: /
|
11 |
|
12 |
text_index_dir:
|
13 |
- name: Swiss-Prot
|
14 |
-
index_dir: /
|
|
|
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 /
|
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 |
|