Skip to main content

enhancers

Composable acceleration utilities for local language models.

Installation

pip install enhancers

Usage

from enhancers import Benchmark

result = Benchmark(
    baseline_tokens_per_second=20,
    enhanced_tokens_per_second=50,
)

print(result.speedup)

The initial API provides a typed optimization protocol and a consistent way to report inference speedups. It is designed to accommodate speculative decoding and other local-inference enhancements.

Development

pip install -e ".[dev]"
pytest
ruff check --fix --select I
ruff format

License

MIT

Metadata

Release files for enhancers 0.0.1

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

Source distribution (sdist)

Source distribution for enhancers 0.0.1
File Size Uploaded Provenance Actions
enhancers-0.0.1.tar.gz 34.1 kB Without provenance Details for enhancers-0.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 37.3 kB

Release files / enhancers-0.0.1.tar.gz

Download URL enhancers-0.0.1.tar.gz
Size 34.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c846917136d8b09794ddc7a75d73cc82b8eb1a18869c8b2843bcc04c0893c1a9
BLAKE2b-256 checksum
How to use checksums
e172c69ac5f7799957d318f76c509390a37f81f557bb6ee6b89ab3aa6cad247e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / enhancers-0.0.1-py3-none-any.whl

Download URL enhancers-0.0.1-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4c99d399dbbb614d70553716b7a58136fe8841b5ba2231070fe5daf2e130761
BLAKE2b-256 checksum
How to use checksums
15e99bc5857e066e99f48b1d0571e0ed2944df57274970cac2d312ce62f8dd11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Security for enhancers 0.0.1

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

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