Skip to main content

assoc-scan

A minimal Pytorch implementation of an associative scan, with support for accelerated backends.

Install

$ pip install assoc-scan

Usage

import torch
from assoc_scan import AssocScan

scan = AssocScan()

gates = torch.randn(1, 1024, 512).sigmoid()
inputs = torch.randn(1, 1024, 512)

out = scan(gates, inputs) # (1, 1024, 512)

To use the accelerated version, simply pass use_accelerated = True and ensure accelerated-scan is installed.

scan = AssocScan(use_accelerated = True)

out = scan(gates, inputs)

Citations

@software{Kyrylov_Accelerated_Scan_2024,
    author    = {Kyrylov, Volodymyr},
    doi       = {10.5281/zenodo.10600962},
    month     = {jan},
    title     = {{Accelerated Scan}},
    version   = {0.1.2},
    year      = {2024}
}

Metadata

Release files for assoc-scan 0.1.0

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

Source distribution (sdist)

Source distribution for assoc-scan 0.1.0
File Size Uploaded Provenance Actions
assoc_scan-0.1.0.tar.gz 5.8 kB Without provenance Details for assoc_scan-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for assoc-scan 0.1.0
File Interpreter ABI Platform Actions
assoc_scan-0.1.0-py3-none-any.whl Python 3 none any Details for assoc_scan-0.1.0-py3-none-any.whl

Total release size: 11.8 kB

Release files / assoc_scan-0.1.0.tar.gz

Download URL assoc_scan-0.1.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3a2d08c9f62ada749edcefbf7486b426499ed628823d331b730c58293574b693
BLAKE2b-256 checksum
How to use checksums
e784e06c712d7aba4c827a4dcfe18a336af9344cfff75d952c9e38bf4d58d0fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Release files / assoc_scan-0.1.0-py3-none-any.whl

Download URL assoc_scan-0.1.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e17813f6ec7921ec41a8f8e15f9c214e6540f6d300663a7ba78231c8099f3b19
BLAKE2b-256 checksum
How to use checksums
a17747b72874ce44cbe50f4b8902f82003fa771a04e529f2c132454a0d789f67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Security for assoc-scan 0.1.0

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