Skip to content
Projects

About

Simulate LLM traffic, latency, capacity and cost in your browser or terminal.

AI & Machine Learning

How these counts are measured

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

drylay

drylay is an infrastructure model for agents. Give a coding agent a JSON diagram of your LLM platform and a traffic trace. It can replay the same requests through two routing policies, take a replica offline, or find the smallest pool that meets your latency target. Open the same scenario in the browser to inspect the queues and edit the model.

Open the simulator · Save the offline HTML · npm · Русский

Try a case

How much can the position of a timestamp in a prompt matter? Run this case with Node.js 18 or later.

npx @ser_no/drylay case run timestamp-in-prompt

With a stable prefix, three rented replicas serve 69.9% of prompt tokens from cache. Put a fresh timestamp first and the cache serves less than 0.01%. Across the same five seeds, p95 time to first token rises from 0.22 s to 2.00 s. Both variants cost $15/hour. The case uses assumed node speeds and prices. Scenario and results

Give your agent the skill

Run this once in the project where you use Claude Code, Codex or Cursor. The skills installer requires Node.js 22.20 or later.

npx --yes skills add sernote/drylay --skill drylay --agent claude-code codex cursor -y

Ask your agent “With twice the traffic, how many replicas do we need for p95 time to first token under 1.5 seconds and at least 99.5% success? Show what happens with one fewer replica.”

The agent can run npm exec --yes --package=github:sernote/drylay -- drylay schema --json to discover the current CLI. Read the skill

To reproduce the search from a checkout, run these commands.

node cli.js init gateway -o platform.json
node cli.js capacity platform.json --find nodes --pool "@llm" --traffic 2 --slo "ttft95<=1.5,okShare>=99.5" --node-range 1:8 --format agent-v1

Use your own measurements

Start with a scenario and replace its assumed rates with measurements from your serving stack. Fit node speeds on one benchmark, then check the model against a separate traffic window. To mark a calibrated scenario as validated, every compared metric must fall within 15% of its observation.

In the InferenceX GLM-5 case, drylay predicts median time per output token for a held-out vLLM benchmark at concurrency 16. The model gives 30.67 ms/token against 33.61 measured (8.8% low). At concurrency 48 and 64, its error exceeds 15%.

drylay and Vidur

Vidur uses model and GPU profiles to study scheduling, parallelism and latency inside an inference deployment. Its Python setup supports mamba, venv and conda. drylay models the request path across gateways, caches, tools and model replicas. Run a case with npx or edit a scenario in the standalone browser simulator. Vidur

Self-hosting and private editions · Contributing · MIT license

Explore related projects

Loading…