feat(benchmarks): add Dockerized comparison benchmark suite (vLLM, llama.cpp, gpt-oss-20b)#88
Merged
drunkcoding merged 14 commits intodevfrom Apr 6, 2026
Merged
Conversation
added 14 commits
April 3, 2026 09:52
…onal not | union)
…ution in run_vllm.py
…n and gpt-oss-20b
…nstallation section
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a complete, reproducible benchmark comparison suite for measuring MoE-Infinity's per-token-latency against vLLM v0.18.1 and llama.cpp b8640 across 4 MoE models on a single 24GB GPU.
What's new
Benchmark scripts (
benchmarks/comparison/):common.py— Shared types (BenchmarkConfig,BenchmarkResult), 4-model registry includingopenai/gpt-oss-20b, 20-prompt fixed dataset,save_result/load_resultsutilitiesrun_moe_infinity.py— MoE-Infinity benchmark (FP16, expert offloading, StopWatch timing)run_vllm.py— vLLM v0.18.1 benchmark (FP8 quantization for large models, graceful exit codes)run_llamacpp.py— llama.cpp b8640 benchmark (Q4_K_M GGUF, GPU offloading via-ngl)aggregate_results.py— Combines JSON results into a Markdown comparison tablerun_all.sh— Orchestrator: builds Docker images, runs frameworks sequentially with 60s thermal cooldown, aggregates resultsDocker isolation (
benchmarks/comparison/):Dockerfile.vllm— wrapsvllm/vllm-openai:v0.18.1Dockerfile.llamacpp— wrapsghcr.io/ggml-org/llama.cpp:server-cudadocker/DockerfileDocumentation:
docs/benchmark_reproduction.md— Step-by-step reproduction guide (prerequisites, quick start, per-framework setup, troubleshooting, extending)README.md— Updated performance table with new structure: 4 models (incl. gpt-oss-20b), 3 frameworks with precision labels (FP16/FP8/Q4_K_M), em-dash placeholders, legacy table in collapsible sectionModels benchmarked
Running benchmarks
# A5000 GPU detected — infrastructure is ready bash benchmarks/comparison/run_all.sh \ --offload-dir /path/to/ssd/offload \ --results-dir benchmarks/comparison/results/Takes ~2-3 hours. Results saved as JSON + Markdown table.
Key design decisions
Verification