Repository navigation
Releases
Releases · umangaggarwal2/llm-simulator
llm-simulator 0.2.2
What's changed
- README: PyPI installation is now the primary method (
pip install llm-simulator);
poetry installmoved to a "From source / contributing" section - README: PyPI version and Python version badges added at the top
- PyPI metadata: added
License :: OSI Approved :: MIT Licenseand
Topic :: Internet :: WWW/HTTP :: HTTP Serversclassifiers - 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
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
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 itsLLM_SIM_*variable. - Built-in configs: a bare
llmsimulatorserves the demo models and responses, from any directory. Any file option acceptsbuiltin:<name>(models, responses, bench-responses), and--print-config <name>prints a built-in file to copy and edit. llmsim-benchis 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
benchextra 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 | headno 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
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.