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.1.0.tar.gz (35.4 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.1.0-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xpyd_sim-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6bcebf73f501c2d1d56e21e8228f20ca980d9b35aeeaaf1839768b1529400159
MD5 03227958b2c5590004da9405164e25db
BLAKE2b-256 45177ff7235cfca89b49b860953086a7cafb4ac5a0b1a59aa0dd2639061c730c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xpyd_sim-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ab21959250ec25f7cec5321b3913c0c84b9537adac65cce43efcc37f31cf340
MD5 199854b4bb19e1110fc8aabb93dd5537
BLAKE2b-256 19c83bff711c43fdcf1bc622fb3d4b0b9b41f628664441c82bf89fb35a7528d6

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