Based on @scripts/runexpa_single.sh, generate a script to run concurrency benchmark to…
- User
Based on @scripts/run_exp_a_single.sh, generate a script to run concurrency benchmark to find maximum concurrent request that an LLM can process without degradation on single H100 GPU (80GB VRAM). Before implementing the script, let's write a comprehensive concurrency and latency analysis report in docx and put it in
docsdirectory. This report should analyze performance of each category A (15B-30B) models based on its architecture (including FP8 quantized model) and limitation of targeted hardware (single H100) and vLLM schemes (KV cache quantization, GPU utilization). Assistant· claude-opus-4-7
Now let me check a few specific things before writing the final plan.
Assistant· claude-opus-4-7
Let me check a couple more details, then write the plan.
Assistant· claude-opus-4-7
Now I'll write the plan file, then ask clarifying questions before finalizing.
Assistant· claude-opus-4-7
Now I'll ask the user about a few judgment calls before finalizing.
Assistant· claude-opus-4-7
Let me update the plan to reflect the context-length choice.
Assistant
Starting implementation. I'll read the critical source files first, then build the three deliverables in parallel.
Assistant
Now I have all the context needed. I'll implement the four files. Let me work on them in parallel.
Assistant
Now write the benchmark Python module:
Assistant
Now write the shell script:
Assistant
Now write the report builder. This is the largest file:
Assistant
Now let's install python-docx and run the report builder:
Assistant
The uv install is downloading heavy CUDA packages. Let me pip install directly:
Assistant
Report built. Let me verify the docx looks correct and run the dry-run test:
Assistant
Numbers are mathematically consistent. Now test the benchmark script dry-run:
Assistant
Dry-run works correctly. Let me also add the integration re-export and write the unit test:
Assistant
Now write the unit test for the degradation logic:
Assistant
Two test failures to fix — the percentile formula has an off-by-one at small n, and there's a floating-point edge case in the failure-rate test:
Assistant
Still a float precision issue (
1 - 0.98 = 0.020000...018). Fix the test with a clearly-under-limit value:Assistant
All 13 tests pass. Here's a summary of everything delivered:
Report (
docs/concurrency_latency_analysis.docx):- 8 sections + Appendix C, 20 tables, all 12 Cat A models analyzed
- Sections: Executive Summary, H100 hardware envelope, vLLM scheduling primer (PagedAttention, KV dtype multipliers, degradation policy), per-model sections with KV memory formulas and predicted concurrent sessions at 2048/4096/8192 ctx, cross-model comparison matrix, TurboQuant compatibility matrix, risks table, and a TBD empirical results appendix
- Built by
scripts/build_concurrency_report.py;python-docx>=1.1added topyproject.toml
Benchmark script (
scripts/run_concurrency_benchmark.sh):- Same server-launch / health-poll / trap-cleanup pattern as
- User
commit and push change
Assistant
Committed and pushed. Commit
be01885is onmain.What was shipped:
docs/concurrency_latency_analysis.docx— 8-section analytical report for all 12 Cat A models with KV cache memory math, predicted concurrency tables, TurboQuant compatibility matrix, and an empirical results placeholder appendixscripts/run_concurrency_benchmark.sh— runs per-model concurrency sweep (usage:./scripts/run_concurrency_benchmark.sh configs/models/cat_a/qwen3_32b.yaml --kv-cache-dtype fp8)src/llm_workflow_agents/eval/concurrency_benchmark.py— streaming TTFT/TPOT/ITL measurement, nvidia-smi VRAM polling, degradation detection, JSON outputscripts/build_concurrency_report.py— regenerates the docx from configs if architecture data is updated- 13 passing unit tests for the degradation logic