Skip to content

Releases

llm-simulator 0.2.2

Choose a tag to compare

@umangaggarwal2 umangaggarwal2 released this 21 Nov 14:50

What's changed

  • README: PyPI installation is now the primary method (pip install llm-simulator);
    poetry install moved to a "From source / contributing" section
  • README: PyPI version and Python version badges added at the top
  • PyPI metadata: added License :: OSI Approved :: MIT License and
    Topic :: Internet :: WWW/HTTP :: HTTP Servers classifiers
  • CI: GitHub Actions workflow for automated PyPI publishing via
    Trusted Publishing (OIDC, no stored API token) with build provenance attestation

Full changelog: v0.2.1...v0.2.2

llm-simulator 0.2.1

Choose a tag to compare

@umangaggarwal2 umangaggarwal2 released this 12 Nov 20:01

llm-simulator 0.2.1

A packaging release, with no code changes since 0.2.0.

  • README links now work on the PyPI project page.
  • Package metadata for PyPI: classifiers, and links to the documentation, issues and releases.

pip install llm-simulator

llm-simulator 0.2.0

Choose a tag to compare

@umangaggarwal2 umangaggarwal2 released this 12 Nov 19:02

llm-simulator 0.2.0

Install with pip and run from anywhere: the package now carries its own configs and both commands. See the README for the full guide.

New

  • Command-line flags: llmsimulator --host --port --models --responses --version. Each overrides its LLM_SIM_* variable.
  • Built-in configs: a bare llmsimulator serves the demo models and responses, from any directory. Any file option accepts builtin:<name> (models, responses, bench-responses), and --print-config <name> prints a built-in file to copy and edit.
  • llmsim-bench is always installed with the package.
  • Clear startup errors: a missing or invalid config prints one line and exits with code 1, instead of a traceback.

Upgrading from 0.1.0

  • The bench extra is gone. Drop [bench] from install commands; with it, pip still installs but warns.
  • The config files moved from config/ into the package (src/llm_simulator/defaults/). Use builtin:, or your own files with --models / --responses.
  • The Docker image no longer contains /app/config. Compose serves the built-ins unless SIM_CONFIG_DIR is set.
  • An empty LLM_SIM_* variable now counts as unset.

Fixed

  • llmsimulator --print-config responses | head no longer ends with a BrokenPipeError.

Install

pip install "llm-simulator @ git+https://github.com/umangaggarwal2/llm-simulator.git@v0.2.0"

llm-simulator 0.1.0

Choose a tag to compare

@umangaggarwal2 umangaggarwal2 released this 09 Nov 19:14

First release. A GPU-free, deterministic stand-in for an OpenAI-compatible LLM server, whose latency responds to load the way a real serving engine's does. Use it to test gateways, autoscalers, retry and timeout logic, and streaming clients without paying for inference.

Included:

  • An OpenAI-compatible chat completions API, streaming and non-streaming. The official SDKs work unchanged.
  • A scheduler engine that simulates vLLM-style continuous batching: paged KV cache, chunked prefill and preemption, with step times from a roofline model.
  • Deterministic, rule-based responses from responses.yml.
  • Metrics: Prometheus and an exact-percentile summary, plus llmsim-bench for load testing.
  • Docker images and compose.
  • Validated: step times match the roofline within 0.3% from 1 to 64 streams; see the test results.

Limits:

  • timing stays faithful up to about 25 concurrent streams per process
  • absolute numbers are uncalibrated
  • no failure injection yet
  • config formats may change before 1.0

Next: failure injection, a faster per-token path, more of the API. See the README's roadmap.