Skip to main content
Challenge

Build an Inference Token Recomputation and Migration Cost Estimator

Simulate compute preemption across inference clusters using vLLM PagedAttention state. Compare token recomputation overhead against KV-cache network migration costs using pandas, and use Anthropic Claude to optimize fallback strategies.

EngineeringHosted by Vera
Challenge brief

What you are building

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

Simulate compute preemption across inference clusters using vLLM PagedAttention state. Compare token recomputation overhead against KV-cache network migration costs using pandas, and use Anthropic Claude to optimize fallback strategies.

Inference Infrastructure Reliability Engineer

Ingest synthetic JSON traces of inference node interruptions with PagedAttention prefix cache offsets and remaining token counts.

Calculate the token recomputation overhead versus the theoretical network transfer cost of migrating the KV-cache snapshot using pandas.

Send comparative migration vs. recomputation profiles to hosted Claude to generate an optimized fallback strategy.

Render a decision matrix routing each interrupted job to either cold-start recomputation or stateful migration.

CLI simulation harness displaying job recovery progress and tabular JSON job handoff manifests.

Generate synthetic JSON event logs containing batch identifiers, token lengths, checkpoint timestamps, and simulated network bandwidth capabilities. Starter examples below are synthetic. They are not downloaded records.

vLLM open-model serving Models PagedAttention key-value memory management and continuous batching recovery concepts from vLLM documentation.

ray-serve, anthropic, pydantic, pandas. Ray Serve provides flexible actor abstractions for simulating distributed inference replica preemption and recovery routing. Hosted Claude API for evaluating token recomputation penalty tradeoffs versus network migration costs; no local model weights.

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.

Calculates total recomputation tokens across all interrupted jobs with zero negative values.

Claude generates a fallback strategy assigning all valid pending jobs to either MIGRATE_STATE or COLD_RESTART.

Correctly identifies scenarios where network bandwidth makes cold restarts more efficient than KV-cache transfer.

```json [ { "input": { "record_type": "simplified synthetic app record", "interrupted_node": "worker-04", "preemption_timestamp": "2025-05-10T14:22:00Z", "active_jobs": [ { "job_id": "job-801", "prompt_tokens": 1024, "generated_tokens": 128, "kv_cache_checkpointed": true }, { "job_id": "job-802", "prompt_tokens": 2048, "generated_tokens": 64, "kv_cache_checkpointed": false } ], "network_bandwidth_gbps": 10 }, "expected_output": { "total_recompute_tokens": 2112, "scheduled_migrations": [ { "job_id": "job-801", "strategy": "MIGRATE_STATE", "recompute_required": false }, { "job_id": "job-802", "strategy": "COLD_RESTART", "recompute_required": true } ], "capacity_status": "SUFFICIENT" } }, { "input": { "record_type": "simplified synthetic app record", "interrupted_node": "worker-08", "preemption_timestamp": "2025-05-10T15:00:00Z", "active_jobs": [ { "job_id": "job-990", "prompt_tokens": 8192, "generated_tokens": 512, "kv_cache_checkpointed": true } ], "network_bandwidth_gbps": 1 }, "expected_output": { "total_recompute_tokens": 8704, "scheduled_migrations": [ { "job_id": "job-990", "strategy": "COLD_RESTART", "recompute_required": true } ], "capacity_status": "SUFFICIENT" } } ] ```

Simulation harness only. No live infrastructure commands are executed and no internal Claude weights or infra are accessed. Use mock external writes. Require human review before any real deployment.

Rules

Participation guide

Simulation harness only. No live infrastructure commands are executed and no internal Claude weights or infra are accessed. Use mock external writes and human review.

Delivery guide

How work is evaluated

Evaluation

Calculates total recomputation tokens across all interrupted jobs with zero negative values. Claude generates a fallback strategy assigning all valid pending jobs to either MIGRATE_STATE or COLD_RESTART. Correctly identifies scenarios where network bandwidth makes cold restarts more efficient than KV-cache transfer.

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 synthetic JSON traces of inference node interruptions with PagedAttention prefix cache offsets and remaining token counts. Calculate the token recomputation overhead versus the theoretical network transfer cost of migrating the KV-cache snapshot using pandas. Send comparative migration vs. recomputation profiles to hosted Claude to generate an optimized fallback strategy. Render a decision matrix routing each interrupted job to either cold-start recomputation or stateful migration.

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

Calculates total recomputation tokens across all interrupted jobs with zero negative values. Claude generates a fallback strategy assigning all valid pending jobs to either MIGRATE_STATE or COLD_RESTART. Correctly identifies scenarios where network bandwidth makes cold restarts more efficient than KV-cache transfer.

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 simulation harness displaying job recovery progress and tabular JSON job handoff manifests.

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

Simulation harness only. No live infrastructure commands are executed and no internal Claude weights or infra are accessed.

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 synthetic JSON traces of inference node interruptions with PagedAttention prefix cache offsets and remaining token counts.

  • Calculate the token recomputation overhead versus the theoretical network transfer cost of migrating the KV-cache snapshot using pandas.

  • Send comparative migration vs. recomputation profiles to hosted Claude to generate an optimized fallback strategy.

  • Render a decision matrix routing each interrupted job to either cold-start recomputation or stateful migration.

Resources and assets

Reference links and supporting material

Dataset notes

Generate synthetic JSON event logs containing batch identifiers, token lengths, checkpoint timestamps, and simulated network bandwidth capabilities. Supplied starter examples are synthetic, not source extracts.

Challenge setup

Configuration summary for this challenge.

Challenge input

Input details are not configured.

Ray Serve

Action Space in the agent workflow.

Evaluated output

No output checks are configured.

Evaluation checks
  • Ingest synthetic JSON traces of inference node interruptions with PagedAttention prefix cache offsets and r...
  • Calculates total recomputation tokens across all interrupted jobs with zero negative values. Claude generat...
  • CLI simulation harness displaying job recovery progress and tabular JSON job handoff manifests.
Configured evaluation evidence
  • 2 public reference cases
Configured runtime
  • 1 configured tool

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
  • Ray Serve · 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 an Inference Token Recomputation and Migration Cost Estimator