-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Supporting big endian architecture. (#310)
* Supporting big endian architecture. `byteswap` before saving and `byteswap` on read. * Specify platform ? * Revert "Specify platform ?" This reverts commit 8d82bbd. * GH * With cache ? * Switch driver for cache ? * Push * Using internal registry * Fix build push. * Add platform ? * PlatformS
- Loading branch information
Showing
8 changed files
with
116 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
safetensors/target | ||
bindings/python/target | ||
Dockerfile.s390x.test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM s390x/python | ||
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-py311_23.5.2-0-Linux-s390x.sh \ | ||
&& bash Miniconda3-py311_23.5.2-0-Linux-s390x.sh -b \ | ||
&& rm -f Miniconda3-py311_23.5.2-0-Linux-s390x.sh | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y | ||
RUN /root/miniconda3/bin/conda install pytorch cpuonly -c pytorch -y | ||
WORKDIR /safetensors/ | ||
RUN /root/miniconda3/bin/pip install -U pip pytest | ||
COPY . . | ||
SHELL ["/bin/bash", "-c"] | ||
WORKDIR /safetensors/bindings/python/ | ||
RUN source /root/.cargo/env && /root/miniconda3/bin/pip install -e . | ||
RUN /root/miniconda3/bin/pytest -sv tests/test_pt_* tests/test_simple.py | ||
ENTRYPOINT /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters