LangChain & AutoGen KV-Cache Multi-Tenant Capacity Planner
Build a multi-tenant KV-cache memory capacity manager using LangChain and AutoGen multi-agent simulation to analyze memory fragmentation under continuous batching. Implement dynamic cache reallocation algorithms that prevent out-of-memory errors and maintain sequence throughput above 850 tokens per second.
What you are building
Orchestrate dynamic KV-cache allocation under continuous batching using a hybrid LangChain and AutoGen multi-agent simulation framework.
How work is evaluated
Evaluates KV-cache planner accuracy under simulated bursty tenant workloads.
Datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
zero_oom_policy
Ensures no OOM events occurred during peak multi-tenant contention.
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
throughput_tok_per_sec
Measures continuous token generation throughput. • target: 850 • range: 0-2000
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
Learning goals
Build a LangChain-based KV-cache capacity planner for continuous batching runtimes
Simulate multi-tenant memory contention using AutoGen collaborative agent negotiation
Implement dynamic block-paged memory re-allocation algorithms to eliminate internal fragmentation
Achieve zero Out-Of-Memory (OOM) preemptions while sustaining 850+ tok/s output
Resources
Synthetic telemetry trace dataset representing multi-tenant LLM requests with dynamic sequence expansion and variable context lengths.
Challenge setup
Evaluates KV-cache planner accuracy under simulated bursty tenant workloads.
Challenge input
JSON array of incoming requests with start times, context lengths, and priority tiers.
LangChain
Provides structured tool abstractions for VRAM profiling.
Microsoft AutoGen
Simulates multi-tenant bargaining for memory allocation.
Evaluated output
JSON execution trace showing block allocations, swap events, and total throughput achieved.
- Ensures no OOM events occurred during peak multi-tenant contention.
- Measures continuous token generation throughput. • target: 850 • range: 0-2000
- Benchmark: vLLM Multi-Tenant Benchmark
- Throughput Tok Per Sec target: 850
- 1 public reference case
- Python execution harness
- Python sandbox (unavailable on Versalist)
Shows the first task, up to three tools, and up to three evidence items.
View technical recipe
Configured tools
- Langchain · Required
- LangChain · Optional
- AutoGen · Optional
- Langchain · Required
- LangChain · Optional
Evaluation contract
- zero_oom_policy · Weight 1
- throughput_tok_per_sec · Weight 1
Metrics
- throughput_tok_per_sec · Target 850
Benchmarks
- vLLM Multi-Tenant Benchmark
- general
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: JSON array of incoming requests with start times, context lengths, and priority tiers.
Output: JSON execution trace showing block allocations, swap events, and total throughput achieved.
Execution harness: Python
Evaluation tools
- LangChain · Agent Framework
- Microsoft AutoGen · Agent System
Recipe freeze marker
No recipe freeze time is recorded.