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.0.tar.gz (2.9 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.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: processfork_sglang-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 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.0.tar.gz
Algorithm Hash digest
SHA256 ce210746f92355a8320246633189040423dcf9a9071156629a12205756cdc7c7
MD5 0389d72b9c3bbb29590b75874141be14
BLAKE2b-256 e776569aeb7a51dad641951099fad0820babe2ab29aaa9c59fbfcd1256de8d4f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for processfork_sglang-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ae9abb0fa2a357136d5ab01dac73e9723f7046742929309afd3364bb2407466
MD5 90eea1ea2dd6eaf2156c554ae7499f07
BLAKE2b-256 c78dd061222a8b3bd17754de66d71619ab3904fe46c74eb108b0d5f133fbccea

See more details on using hashes here.

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