Skip to main content

ProcessFork plugin for SGLang ≥0.5 — RadixAttention prefix-share preserved across snapshot/restore.

Project description

processfork-sglang

ProcessFork plugin for SGLang ≥0.5. Snapshot / fork / checkout endpoints that preserve RadixAttention prefix-sharing across restores.

Install

pip install "processfork-sglang[sglang]"

Use

python -m sglang.launch_server \
  --model meta-llama/Llama-3-8B \
  --plugin processfork \
  --deterministic-mode

Endpoints (matching the vLLM plugin's surface):

POST /processfork/snapshot
POST /processfork/fork
POST /processfork/checkout
POST /processfork/merge

The plugin maps SGLang's mem_pool.req_to_token_pool onto the paged-batchinvariant-v1 LogicalSeq array, so prefix-sharing survives across snapshot/restore.

Bit-exact restore requires --deterministic-mode.

Status

The trait surface and wire format are stable. The live FFI shim into sglang.srt.mem_cache.RadixCache lands in v1.0.1 alongside the vLLM adapter. Until then, the plugin's HTTP surface returns 501 with a clear pointer to this README.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

processfork_sglang-1.0.2.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

processfork_sglang-1.0.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file processfork_sglang-1.0.2.tar.gz.

File metadata

  • Download URL: processfork_sglang-1.0.2.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for processfork_sglang-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c27468fdbaf9e08d11f40e2f63908538cdf9ad945919844d1b4148b66196d08e
MD5 05881581a27d6e006114592e38cdfc95
BLAKE2b-256 3d60f09302f40601a0708dcd84e689dcb32b921c55296aecaf8963cd6c6eae05

See more details on using hashes here.

Provenance

The following attestation bundles were made for processfork_sglang-1.0.2.tar.gz:

Publisher: release.yml on manav8498/processfork

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file processfork_sglang-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for processfork_sglang-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b8cd5c90c3be96dd9822c4fcca05b43ed368e7f3254ce2e3dfd30f8c075cf421
MD5 d413f221127fe5de5998868b165189d1
BLAKE2b-256 569bec3586e2fe503642b5566ff65630975bf86e2b64de8a73662d847f0c74bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for processfork_sglang-1.0.2-py3-none-any.whl:

Publisher: release.yml on manav8498/processfork

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page