Skip to main content
Challenge

Build a Local Open-Weight Continuous Batching Sizing Calculator

Evaluate memory headroom and PagedAttention KV-cache capacity across open-weight models on local servers. Synthesize safe concurrency limits and deployment guidance using hosted Claude.

EngineeringHosted by Vera
Challenge brief

What you are building

The core problem, expected build, and operating context for this challenge.

Evaluate memory headroom and PagedAttention KV-cache capacity across open-weight models on local servers. Synthesize safe concurrency limits and deployment guidance using hosted Claude.

Inference Operations Engineer

Ingest open-weight model parameter counts, context lengths, and physical GPU memory specifications.

Calculate baseline model weight footprints and PagedAttention KV-cache block allocations using standard formulas.

Query hosted Claude via the Anthropic Python SDK to explain memory exhaustion risks and suggest concurrency thresholds.

Generate a structured capacity sizing report detailing maximum concurrent requests before out-of-memory preemption.

CLI tool that accepts model memory parameters and emits an interactive console sizing report with simulated allocations.

Local synthetic JSON configurations defining open-weight model architectures (e.g., 7B and 70B parameters) and mock GPU hardware memory limits. Starter examples below are synthetic. They are not downloaded records.

vLLM open-model serving Applies vLLM PagedAttention KV-cache memory management concepts to compute per-token memory allocation limits for open weights.

dspy, anthropic. DSPy structures prompt signatures to ensure hosted Claude returns strictly typed capacity sizing rationales without schema drift. Hosted a currently available hosted Claude model accessed via API key; local execution handles open-weight parameter calculations only.

Submit runnable source, pinned dependencies, setup commands, a working interface, example outputs, and a recorded end-to-end demo. Include tests and an action log.

Computes exact static parameter footprint and remaining memory for KV-cache blocks.

Invokes hosted Claude using Anthropic SDK to explain continuous batching trade-offs.

Emits structured capacity recommendations without simulating execution of proprietary weights.

```json [ { "input": { "model_name": "OpenLLaMA-7B", "parameter_count_billions": 7, "precision_bytes": 2, "gpu_vram_gb": 24, "context_len": 4096 }, "expected_output": { "model_weights_gb": 14, "available_kv_cache_gb": 10, "max_concurrent_sequences": 8, "concurrency_guidance": "Recommended maximum batch size is 8 to prevent KV-cache paging evictions under peak context lengths." } }, { "input": { "model_name": "OpenLLaMA-70B", "parameter_count_billions": 70, "precision_bytes": 2, "gpu_vram_gb": 24, "context_len": 2048 }, "expected_output": { "model_weights_gb": 140, "available_kv_cache_gb": 0, "max_concurrent_sequences": 0, "concurrency_guidance": "Model weights exceed single-device capacity. Tensor parallelism or weight quantization is strictly required before sizing." } } ] ```

Ensures purely simulated memory sizing without issuing live OS or cluster process controls. Use mock external writes. Require human review before any real deployment.

Rules

Participation guide

Ensures purely simulated memory sizing without issuing live OS or cluster process controls. Use mock external writes and human review.

Delivery guide

How work is evaluated

Evaluation

Computes exact static parameter footprint and remaining memory for KV-cache blocks. Invokes hosted Claude using Anthropic SDK to explain continuous batching trade-offs. Emits structured capacity recommendations without simulating execution of proprietary weights.

Submission format

Runnable source, pinned dependencies, setup commands, working interface, example outputs, recorded demo, tests, and action logs.

Datasets

Challenge datasets

Public datasets, plus the private datasets you have access to.

Evaluation rubric

How submissions are scored

These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.

Dimensions
4 scoring checks
Binary
1 pass or fail dimensions
Ordinal
3 scaled dimensions
Dimension 1

Complete workflow

Ingest open-weight model parameter counts, context lengths, and physical GPU memory specifications. Calculate baseline model weight footprints and PagedAttention KV-cache block allocations using standard formulas. Query hosted Claude via the Anthropic Python SDK to explain memory exhaustion risks and suggest concurrency thresholds. Generate a structured capacity sizing report detailing maximum concurrent requests before out-of-memory preemption.

Score scale
012
Score 0

Missing or incorrect.

Score 1

Partly complete, with documented gaps.

Score 2

Complete, with reproducible evidence.

Dimension 2

Correctness and evidence

Computes exact static parameter footprint and remaining memory for KV-cache blocks. Invokes hosted Claude using Anthropic SDK to explain continuous batching trade-offs. Emits structured capacity recommendations without simulating execution of proprietary weights.

Score scale
012
Score 0

Missing or incorrect.

Score 1

Partly complete, with documented gaps.

Score 2

Complete, with reproducible evidence.

Dimension 3

Review interface

CLI tool that accepts model memory parameters and emits an interactive console sizing report with simulated allocations.

Score scale
012
Score 0

Missing or incorrect.

Score 1

Partly complete, with documented gaps.

Score 2

Complete, with reproducible evidence.

Dimension 4

Safe execution

Ensures purely simulated memory sizing without issuing live OS or cluster process controls.

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

What you should walk away with

  • Ingest open-weight model parameter counts, context lengths, and physical GPU memory specifications.

  • Calculate baseline model weight footprints and PagedAttention KV-cache block allocations using standard formulas.

  • Query hosted Claude via the Anthropic Python SDK to explain memory exhaustion risks and suggest concurrency thresholds.

  • Generate a structured capacity sizing report detailing maximum concurrent requests before out-of-memory preemption.

Resources and assets

Reference links and supporting material

Dataset notes

Local synthetic JSON configurations defining open-weight model architectures (e.g., 7B and 70B parameters) and mock GPU hardware memory limits. Supplied starter examples are synthetic, not source extracts.

Challenge setup

Configuration summary for this challenge.

Challenge input

Input details are not configured.

DSPy

Prompt and LM program optimization framework.

Evaluated output

No output checks are configured.

Evaluation checks
  • Ingest open-weight model parameter counts, context lengths, and physical GPU memory specifications. Calcula...
  • Computes exact static parameter footprint and remaining memory for KV-cache blocks. Invokes hosted Claude u...
  • CLI tool that accepts model memory parameters and emits an interactive console sizing report with simulated...
Configured evaluation evidence
  • 2 public reference cases
Configured runtime
  • 3 configured tools

Summary shows the first task, up to three tools, and up to three evidence items. Open the technical recipe to view all configured items.

View technical recipe

Configured tools

Action Space
  • DSPy · Optional
Training Infra
  • DSPy · Optional
Orchestration
  • DSPy · Optional

Evaluation contract

  • Complete workflow · Weight 40
  • Correctness and evidence · Weight 30
  • Review interface · Weight 20
  • Safe execution · Weight 10

Reference cases

  • 2 public reference cases

Workflow tasks

No workflow tasks are configured.

Recipe freeze marker

No recipe freeze time is recorded.

Frequently Asked Questions about Build a Local Open-Weight Continuous Batching Sizing Calculator