Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

hs_connectors

hs_connectors is a lightweight package that enables the transfer of hidden states between vLLM and Speculators training processes during both online and offline training. It provides a pluggable backend system where each backend registers itself via @HiddenStatesBackend.register(name) and exposes hooks for CLI argument injection and configuration, so that training and serving scripts can discover and configure backends without hardcoding.

The package should be installed alongside Speculators as well as within the same environment as vLLM.

Backends

Filesystem

The filesystem backend enables the transfer of hidden states between vLLM and Speculators on a single node with a shared filesystem. Hidden states are serialized as safetensors files with file-lock synchronization to prevent partial reads. Cached samples are stored by index and can be reused across training runs.

Mooncake

The Mooncake backend enables multi-node training by transferring hidden states between vLLM and Speculators across nodes over TCP or RDMA, without requiring a shared filesystem. It uses a Mooncake distributed key-value store where each sample is written as a single object under a sanitized request ID; the put is atomic, so the object becoming visible means the sample is complete and ready for consumption. This follows a similar pattern to disaggregated prefill and decode.

When using this backend, install the Mooncake transfer engine separately (pip install "mooncake-transfer-engine>=0.3.12").

Metadata

Release files for hs-connectors 0.9.1a58

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

Source distribution (sdist)

Source distribution for hs-connectors 0.9.1a58
File Size Uploaded Provenance Actions
hs_connectors-0.9.1a58.tar.gz 23.3 kB With provenance Details for hs_connectors-0.9.1a58.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hs-connectors 0.9.1a58
File Interpreter ABI Platform Actions
hs_connectors-0.9.1a58-py3-none-any.whl Python 3 none any Details for hs_connectors-0.9.1a58-py3-none-any.whl

Total release size: 48.0 kB

Release files / hs_connectors-0.9.1a58.tar.gz

Download URL hs_connectors-0.9.1a58.tar.gz
Size 23.3 kB
Tags Source
SHA-256 checksum
How to use checksums
22e7674d3815d9aa07186590814977d20a290b54b295cd58abf09d94330ba28b
BLAKE2b-256 checksum
How to use checksums
1bb1d4fdd2c8a55dc481ceabf90984b5c7c035344c5d89de12f3be2cd318145c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Release files / hs_connectors-0.9.1a58-py3-none-any.whl

Download URL hs_connectors-0.9.1a58-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec0a4a697770385ed325c73765c951633a11a5ff13f0854c7069dd320116fa72
BLAKE2b-256 checksum
How to use checksums
28fae03f1298b4c9e4a225c26cdc835438dbc1b37624c0a6b23b523acdd8d7b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Security for hs-connectors 0.9.1a58

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hs_connectors-0.9.1a58.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

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
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