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.2.0.tar.gz (48.0 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.2.0-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xpyd_sim-0.2.0.tar.gz
  • Upload date:
  • Size: 48.0 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.2.0.tar.gz
Algorithm Hash digest
SHA256 afe793316df7d7f5c8d74027030de4914e2a1fcfdf950dbd4d14644f02d0b646
MD5 47ba86f5d70052257d9e226e01738128
BLAKE2b-256 7139aed4d977357e6e340e852bdcbd63252aa15cad2a6994c562c45b2df2ab85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpyd_sim-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 23.8 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae274876cefe8b942c2a9eda18395f414f0abad6e8a18f6b300e5d449720e513
MD5 e996af991f02359a9bedc842cb445169
BLAKE2b-256 b6a30f20ba77b87b1df06442be0cce00f1fa2c1cb5fe1e8e9d5438454bcfbc2e

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