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 under a sanitized request ID, with a metadata marker written last to signal that 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).
Metadata
Release files for hs-connectors 0.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hs_connectors-0.8.1.tar.gz | 18.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hs_connectors-0.8.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.1 kB
Release files / hs_connectors-0.8.1.tar.gz
| Download URL | hs_connectors-0.8.1.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0783676af22c9d2554783350ddfc5ba77b1f31f4043c538521da4af345f728d
|
|
BLAKE2b-256 checksum How to use checksums |
9ed07e71adb5cab88e870cd9e772e2a82b791709861460d73cc5255eabb24107
|
| 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 Oct 10, 2026.
Transparency logRelease files / hs_connectors-0.8.1-py3-none-any.whl
| Download URL | hs_connectors-0.8.1-py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c64dce5cd20faacb281207400d30715a3a9d3061f55e4dd326c7c3fef9d3322c
|
|
BLAKE2b-256 checksum How to use checksums |
8386e32d0e91442a90c029f1d1096f44a07ba207571556b9a1428f08b30bc8a9
|
| 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 Oct 10, 2026.
Transparency log