Skip to content

Commit 34a3a27

Browse files
authored
Try to fix big endian test (#654)
1 parent 0816a1a commit 34a3a27

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile.s390x.test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ COPY . .
1212
SHELL ["/bin/bash", "-c"]
1313
WORKDIR /safetensors/bindings/python/
1414
RUN source /root/.cargo/env && /root/miniconda3/bin/pip install -e .
15+
# Work around error probably caused by https://sourceware.org/bugzilla/show_bug.cgi?id=32653
16+
# E ImportError: libopenblas.so.0: cannot enable executable stack as shared object requires: Invalid argument
17+
ENV GLIBC_TUNABLES=glibc.rtld.execstack=2
1518
RUN /root/miniconda3/bin/pytest -sv tests/test_pt_* tests/test_simple.py
1619
# RUN /root/miniconda3/bin/python -c 'from huggingface_hub import hf_hub_download; filename = hf_hub_download("roberta-base", "model.safetensors"); from safetensors.torch import load_file; weights = load_file(filename); assert weights["roberta.embeddings.position_embeddings.weight"][0][0].abs().item() > 1e-10'
1720
ENTRYPOINT /bin/bash

0 commit comments

Comments
 (0)