Search Criteria
Package Details: python-safetensors 0.4.5-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/python-safetensors.git (read-only, click to copy) |
---|---|
Package Base: | python-safetensors |
Description: | Simple, safe way to store and distribute tensors |
Upstream URL: | https://github.com/huggingface/safetensors |
Licenses: | Apache-2.0 |
Submitter: | Henry-ZHR |
Maintainer: | envolution |
Last Packager: | envolution |
Votes: | 6 |
Popularity: | 1.04 |
First Submitted: | 2023-01-08 09:54 (UTC) |
Last Updated: | 2024-12-18 15:54 (UTC) |
Dependencies (28)
- python (python37AUR, python311AUR, python310AUR)
- python-build (make)
- python-installer (python-installer-gitAUR) (make)
- python-maturin (python-maturin-gitAUR) (make)
- python-setuptools-rust (python-setuptools-rust-gitAUR) (make)
- python-wheel (make)
- flake8 (check)
- python-black (python-black-gitAUR) (check)
- python-click (check)
- python-flaxAUR (check)
- python-h5py (python-h5py-gitAUR, python-h5py-openmpi) (check)
- python-huggingface-hubAUR (python-huggingface-hub-gitAUR) (check)
- python-hypothesis (check)
- python-isort (check)
- python-jaxAUR (python-jax-binAUR) (check)
- python-jaxlibAUR (python-jax-rocmAUR, python-jaxlib-cudaAUR, python-jaxlib-binAUR) (check)
- python-numpy (python-numpy-flameAUR, python-numpy-gitAUR, python-numpy1AUR, python-numpy-mkl-binAUR, python-numpy-mkl-tbbAUR, python-numpy-mklAUR) (check)
- python-pytest (check)
- python-pytest-benchmark (check)
- python-pytorch (python-pytorch-mkl-gitAUR, python-pytorch-cuda-gitAUR, python-pytorch-mkl-cuda-gitAUR, python-pytorch-cxx11abiAUR, python-pytorch-cxx11abi-optAUR, python-pytorch-cxx11abi-cudaAUR, python-pytorch-cxx11abi-opt-cudaAUR, python-pytorch-cxx11abi-rocmAUR, python-pytorch-cxx11abi-opt-rocmAUR, python-pytorch-rocm-binAUR, python-pytorch-cuda, python-pytorch-opt, python-pytorch-opt-cuda, python-pytorch-opt-rocm, python-pytorch-rocm) (check)
- python-tensorflow (python-tensorflow-cuda-keplerAUR, python-tensorflow-computecppAUR, python-tensorflow-rocmAUR, python-tensorflow-opt-rocmAUR, python-tensorflow-cuda, python-tensorflow-opt, python-tensorflow-opt-cuda) (check)
- python-flaxAUR (optional)
- python-jaxAUR (python-jax-binAUR) (optional)
- python-jaxlibAUR (python-jax-rocmAUR, python-jaxlib-cudaAUR, python-jaxlib-binAUR) (optional)
- python-numpy (python-numpy-flameAUR, python-numpy-gitAUR, python-numpy1AUR, python-numpy-mkl-binAUR, python-numpy-mkl-tbbAUR, python-numpy-mklAUR) (optional)
- python-paddlepaddleAUR (python-paddlepaddle-gitAUR, python-paddlepaddle-cuda-gitAUR, python-paddlepaddle-cudaAUR) (optional)
- python-pytorch (python-pytorch-mkl-gitAUR, python-pytorch-cuda-gitAUR, python-pytorch-mkl-cuda-gitAUR, python-pytorch-cxx11abiAUR, python-pytorch-cxx11abi-optAUR, python-pytorch-cxx11abi-cudaAUR, python-pytorch-cxx11abi-opt-cudaAUR, python-pytorch-cxx11abi-rocmAUR, python-pytorch-cxx11abi-opt-rocmAUR, python-pytorch-rocm-binAUR, python-pytorch-cuda, python-pytorch-opt, python-pytorch-opt-cuda, python-pytorch-opt-rocm, python-pytorch-rocm) (optional)
- python-tensorflow (python-tensorflow-cuda-keplerAUR, python-tensorflow-computecppAUR, python-tensorflow-rocmAUR, python-tensorflow-opt-rocmAUR, python-tensorflow-cuda, python-tensorflow-opt, python-tensorflow-opt-cuda) (optional)
Latest Comments
« First ‹ Previous 1 2 3 4 Next › Last »
dylondark commented on 2024-07-16 05:47 (UTC) (edited on 2024-07-16 05:47 (UTC) by dylondark)
Package isn't passing the check. Seems to be related to the NumPy 2.0 update.
mane.andrea commented on 2024-04-23 16:07 (UTC)
@hashworks I tried to build it in two different computers and in a clean chroot and I could not reproduce the issue. Is your system up-to-date? Can you try to build it in a clean chroot?
hashworks commented on 2024-04-21 17:08 (UTC)
I'm getting a test failure at
tests/test_pt_comparison.py
sayingRuntimeError: HIP error: shared object initialization failed
. Can you reproduce that?https://fb.hash.works/JThvZA/
mane.andrea commented on 2024-04-17 17:57 (UTC)
@carsme Many thanks, I have patched it as you say
carsme commented on 2024-04-17 17:51 (UTC)
Two issues:
mkdir
invocation.rustup
instead ofrust
fails, due to that no toolchain version is specified.These issues can be fixed by the following patch:
mane.andrea commented on 2023-12-12 18:29 (UTC)
With @daskol patch now builds fine. I tried a chroot build in a machine with cuda and in a machine without cuda
mane.andrea commented on 2023-12-09 03:42 (UTC)
Sorry for the delay. I overlooked the notification. Will work on an updated PKGBUILD asap
daskol commented on 2023-12-09 02:41 (UTC)
In my optinion, the best solution is not put any
.gitignore
with glob pattern in AUR repo since there is no actual need in blacklisting files at all.@h3ss I believe that it'd be better to create an empty directory
.git
at$srcdir/safetensors-$pkgver
rather than patching orsed
'ing (see ignore::WalkBuilder). Anyway, we should create an issue in PyO3/maturin. It is stupid that it traverses out of repo root. What about submodules? Why I should tweak include/ignore filters inpyproject.toml
? Weird.@xiota There is the same issue with
python-tokenziers
.h3ss commented on 2023-12-05 03:34 (UTC)
The problem is that the AUR package includes a
.gitignore
file, and thematurin
build backend will ignore anything specified in any.gitignore
file in the path.See: - Wheels for mixed Python/Rust project does not include Python source code #885
The contents of the AUR
.gitignore
are:That first line is the problem, it basically excludes everything from inclusion (except what the Rust part of the build creates apparently).
I have been able to get around this by editing the
src/safetensors-0.4.0/bindings/python/pyproject.toml
file. Specifically, by adding this under the[tool.maturin]
section:See: - Maturin User Guide - Configuration - Specifically the
include
partWhen this is done, the resulting .whl file reliably contains the needed Python source files.
So, how can we get around this in the PKGBUILD? By using
sed
to add theinclude
line to thepyproject.toml
in thebuild()
function:After adding that
sed
line, the package reliably passes all checks and builds.@mane.andrea Can we get this or something equivalent incorporated into the PKGBUILD? I'm confident this should fix this longstanding issue.
PhotonX commented on 2023-11-26 18:14 (UTC) (edited on 2023-11-26 18:15 (UTC) by PhotonX)
I'm getting the check() errors as well. I don't understand what the underlying problem is, though. One of the errors is, exemlarily:
So it searches for
safe_open
from... itself? I think, I have all the necessary dependencies installed, but none of them provides this...« First ‹ Previous 1 2 3 4 Next › Last »