Skip to content

Commit dde4768

Browse files
committed
fix model download in workflows
1 parent 29b96a3 commit dde4768

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ jobs:
2323
run: |
2424
rustup update
2525
mkdir all-MiniLM-L6-v2_onnx
26-
cd all-MiniLM-L6-v2_onnx && wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/blob/main/config.json
27-
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/blob/main/onnx/model.onnx
28-
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/blob/main/special_tokens_map.json
29-
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/blob/main/tokenizer_config.json
30-
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/blob/main/tokenizer.json
31-
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/blob/main/vocab.txt
26+
cd all-MiniLM-L6-v2_onnx && wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/config.json
27+
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/onnx/model.onnx
28+
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/special_tokens_map.json
29+
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/tokenizer_config.json
30+
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/tokenizer.json
31+
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/vocab.txt
3232
- name: test
3333
run: RUST_TEST_THREADS=1 cargo test

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ git clone https://github.com/kn0sys/valentinus && cd valentinus
3939

4040
```bash
4141
mkdir all-MiniLM-L6-v2_onnx
42-
cd all-MiniLM-L6-v2_onnx && wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/blob/main/config.json
43-
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/blob/main/onnx/model.onnx
44-
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/blob/main/special_tokens_map.json
45-
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/blob/main/main/tokenizer_config.json
46-
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/blob/main/main/tokenizer.json
47-
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/blob/main/main/vocab.txt
42+
cd all-MiniLM-L6-v2_onnx && wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/config.json
43+
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/onnx/model.onnx
44+
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/special_tokens_map.json
45+
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/main/tokenizer_config.json
46+
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/main/tokenizer.json
47+
wget https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/main/vocab.txt
4848
```
4949

5050
`RUST_TEST_THREADS=1 cargo test`

0 commit comments

Comments
 (0)