Skip to main content

OpenAI-compatible LLM inference simulator for xPyD

Project description

xPyD-sim

OpenAI-compatible LLM inference simulator for xPyD.

Simulates prefill and decode nodes with realistic behavior for testing xPyD-bench and xPyD-proxy without real GPU hardware.

Features

  • Separate prefill and decode node simulators
  • Full OpenAI API compatibility (/v1/completions, /v1/chat/completions, /v1/models)
  • Configurable latency (prefill delay, decode delay per token)
  • Streaming support with realistic token-by-token delivery
  • EOS simulation with configurable output length distribution
  • All OpenAI API parameters accepted
  • Spec-compliant response formats

Install

pip install xpyd-sim

Quick Start

# Start prefill node
xpyd-sim prefill --port 8001

# Start decode node
xpyd-sim decode --port 8002

License

TBD

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

xpyd_sim-0.4.0.tar.gz (59.5 kB view details)

Uploaded Source

Built Distribution

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

xpyd_sim-0.4.0-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

Details for the file xpyd_sim-0.4.0.tar.gz.

File metadata

  • Download URL: xpyd_sim-0.4.0.tar.gz
  • Upload date:
  • Size: 59.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for xpyd_sim-0.4.0.tar.gz
Algorithm Hash digest
SHA256 c211081cab5aff189565e7867c98b4070df38c32f768389a57782fb34beaa5fb
MD5 ed4ba1f73255be95ce47a2feaf8b3bcd
BLAKE2b-256 b41b7e9d4bef2ebbad37bdc1ca8c48e537053ad6ca2a1a4e71430a7dcc446c8d

See more details on using hashes here.

File details

Details for the file xpyd_sim-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: xpyd_sim-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for xpyd_sim-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f2507394bf497a569b2aaeacef9fc37b58ed09bd42e3705be09cdeb9f7e2472
MD5 20260ec16c3cf25e424e4486b9fbd356
BLAKE2b-256 7588e91fb1a048c70ad459ca96db2ad8f480ce93fe4830701f4479209a8af374

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