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

Uploaded Python 3

File details

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

File metadata

  • Download URL: xpyd_sim-0.3.0.tar.gz
  • Upload date:
  • Size: 51.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.3.0.tar.gz
Algorithm Hash digest
SHA256 39cb52bb4e8ed43d7cef79ea5114315943f83fdffead9a23f0101be228b80a79
MD5 af74f8a84bce9537f67d4f2ef220232c
BLAKE2b-256 2ae6173ad4c7d78514ea2fa3db3c43bc19a10817aa196685da354db7f185a14d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xpyd_sim-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 23.9 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d360a360e0a24abdd62ffdee798d892c5b7c66b2de484aedd38301b09ab507a8
MD5 0474f03a1e4af73ee5003774e760ae57
BLAKE2b-256 fa92c47320ef1ed90bebec0904c9c87e69aaa6623c85a69fac346838d31f48ca

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