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.3.tar.gz (6.8 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.3-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: processfork_sglang-1.0.3.tar.gz
  • Upload date:
  • Size: 6.8 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.3.tar.gz
Algorithm Hash digest
SHA256 8178d3bd1a3a5f5e0ef199ea4c1af99cae95095da0830ae2dd0d3f3ecf4e715e
MD5 582923e361e6e92e642baf70e1937d01
BLAKE2b-256 65ecb8d0193db8012f7fcc3418e0a9a58af371c688aef989b871fc2b664d7223

See more details on using hashes here.

Provenance

The following attestation bundles were made for processfork_sglang-1.0.3.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.3-py3-none-any.whl.

File metadata

File hashes

Hashes for processfork_sglang-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0a5e5d25084339cd6736bf791b9acf2f5886fc761722cd076527eba53cc42dd7
MD5 f826cf5410195c3776cc4b06695f9947
BLAKE2b-256 f4236784eda349f1ac00748c129c9341c3777da096d409219684f703f8f0a4f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for processfork_sglang-1.0.3-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