Skip to content

Commit fbba4a7

Browse files
authored
Enable embeddings tests. (#67)
These now work due to upstream changes that were pulled in.
2 parents 9d534a7 + 8ec191f commit fbba4a7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/test-spyre.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ jobs:
2020
- name: Run Spyre tests within docker container
2121
run: |
2222
docker run -i --rm --entrypoint /bin/bash vllm-spyre -c '''
23+
pip install pytest sentence-transformers && \
2324
python3.12 -c "from transformers import pipeline; pipeline(\"text-generation\", model=\"JackFram/llama-160m\")" && \
2425
export VARIANT=$(ls /root/.cache/huggingface/hub/models--JackFram--llama-160m/snapshots/) && \
2526
mkdir -p /models && \
2627
ln -s /root/.cache/huggingface/hub/models--JackFram--llama-160m/snapshots/${VARIANT} /models/llama-194m && \
27-
pip install pytest sentence-transformers && \
28+
python3.12 -c "from sentence_transformers import SentenceTransformer; SentenceTransformer(\"sentence-transformers/all-roberta-large-v1\")" && \
29+
export VARIANT=$(ls /root/.cache/huggingface/hub/models--sentence-transformers--all-roberta-large-v1/snapshots/) && \
30+
ln -s /root/.cache/huggingface/hub/models--sentence-transformers--all-roberta-large-v1/snapshots/${VARIANT} /models/all-roberta-large-v1 && \
2831
python3.12 -m pytest tests/spyre -v
2932
'''

tests/spyre/test_spyre_embeddings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
st_embeddings)
1111

1212

13-
@pytest.mark.skip("Skip until failure is resolved.")
1413
@pytest.mark.parametrize("model", ["/models/all-roberta-large-v1"])
1514
@pytest.mark.parametrize("prompts", [[
1615
"The capital of France is Paris."

0 commit comments

Comments
 (0)