PGX Inference Lab
I set up model routing and built a Python benchmark to compare Ollama and vLLM across three Lenovo PGX systems under concurrent load.
Shared inference and repeatable benchmarks
I configured Open WebUI to route requests to model-serving providers across three Lenovo PGX systems. I built a separate Python harness to run repeatable streaming workloads, capture per-request timings and telemetry, and generate comparison reports.
The workloads vary prompt and output budgets and the number of simultaneous requests. This lets the report distinguish a responsive single chat from a configuration that can serve several users at once. Comparisons are scoped to the same model, workload, and concurrency.
How the comparison works
- Preflight. Record the relevant model and system configuration, and capture which services are running.
- Measure. Send batches of streaming requests at each selected concurrency, capture the first streamed content and completion, and record successes, errors, and timeouts.
- Restore. Return the original services after the maintenance window and verify service health and Open WebUI provider routes.
What a visitor experiences
Time to first token measures the wait for the first streamed content. End-to-end latency measures the full request. The median and tail percentiles show how slow the experience can become under load.
What the lab can serve
Requests per second and generated tokens per second describe throughput. Success and timeout rates show whether the system continues to complete requests as concurrency increases.
Reproducible report
The laptop edition generates an HTML report with CSV and JSON records from synthetic workloads. The release checks covered mocked streams from both runtimes, timeouts, and error handling. The report demonstrates how to interpret a workload comparison.