Skip to main content

Fast, differentiable sorting and ranking without custom C++ or CUDA extensions. This is a lightweight implementation of Fast Differentiable Sorting and Ranking (Blondel et al.) based on fast-soft-sort and inspired by torchsort. Unlike torchsort, this version requires no custom C++ or CUDA extensions, making it easy to install and portable across platforms. While optimized C++/CUDA implementations may have a performance advantage for extremely large sequence lengths, this version is optimized for typical deep learning workflows. Try it here: Open In Colab

Installation

pip install torchpsort

Metadata

Release files for torchpsort 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for torchpsort 0.1.8
File Size Uploaded Provenance Actions
torchpsort-0.1.8.tar.gz 6.7 kB Without provenance Details for torchpsort-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for torchpsort 0.1.8
File Interpreter ABI Platform Actions
torchpsort-0.1.8-py3-none-any.whl Python 3 none any Details for torchpsort-0.1.8-py3-none-any.whl

Total release size: 15.4 kB

Release files / torchpsort-0.1.8.tar.gz

Download URL torchpsort-0.1.8.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
871feee6ed9ae7ddc2b9b1d77bb0ffee7c54b11b1ab024578113db879c4f81e3
BLAKE2b-256 checksum
How to use checksums
fdcaea5c8d594c660db65136d1c9bd0aeff87c7b75c55da648a11a5d7f3f2980
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / torchpsort-0.1.8-py3-none-any.whl

Download URL torchpsort-0.1.8-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
284695aba8d21879f11bf32e2e47c28f872ebe754e783eda24359b8af0f77455
BLAKE2b-256 checksum
How to use checksums
a57a57f2fd06868ed05d69bf0fa590f5792dbb3c972d10a657254fa9725c69e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for torchpsort 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page