]> khamidou — GitHub mirrors - safetensors.git/commitdiff
Try to fix big endian test (#654)
authorDaniël de Kok <me@danieldk.eu>
Sat, 27 Sep 2025 06:56:00 +0000 (08:56 +0200)
committerGitHub <noreply@github.com>
Sat, 27 Sep 2025 06:56:00 +0000 (08:56 +0200)
Dockerfile.s390x.test

index d1dc75830bc5931f655b7836bbec7b0482caba01..7627879c70745eb9795e3be8e6d0f5e0cb1ee0ff 100644 (file)
@@ -12,6 +12,9 @@ COPY . .
 SHELL ["/bin/bash", "-c"]
 WORKDIR /safetensors/bindings/python/
 RUN source /root/.cargo/env && /root/miniconda3/bin/pip install -e .
+# Work around error probably caused by https://sourceware.org/bugzilla/show_bug.cgi?id=32653
+# E   ImportError: libopenblas.so.0: cannot enable executable stack as shared object requires: Invalid argument
+ENV GLIBC_TUNABLES=glibc.rtld.execstack=2
 RUN /root/miniconda3/bin/pytest -sv tests/test_pt_* tests/test_simple.py
 # 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'
 ENTRYPOINT /bin/bash