TECHNOLOGY

OpenCompass resume: changing workers can change prediction-shard identity

In this article
THE QUICK TAKE

A scheduling change can become a data-layout change when worker configuration determines how prediction shards are created.

Distinguish scheduling from partitioning

Increasing concurrency sounds like an execution-only change, but it can alter the partition layout used by a resumed evaluation. The task-management guide separates Partitioner, Runner and Task. A partitioner constructs work units; a runner schedules them; a task performs inference or evaluation. Identify which layer a parameter affects before changing it in an experiment that intends to reuse prediction files produced by an earlier run.

Preserve the shard contract

Current NumWorkerPartitioner documentation warns against changing the split count while resuming inference. When the split count is derived from worker count, changing workers can change the shard layout as well. Retain the realized partitioning settings with the experiment. A directory containing old prediction files is not sufficient evidence that those files correspond to the new task partitioning. Reuse must preserve the relationship between each shard and the dataset records it was created to represent.

Keep inference and evaluation task layouts distinct

The guide treats inference and evaluation as separately configured stages and qualifies which partitioners suit each. A strategy appropriate for dividing inference work does not automatically fit scoring an existing prediction population. The configuration reference exposes independent inference and evaluation settings. Inspect both before reusing artifacts, especially when switching to evaluation-only execution after a partially completed inference run. Confirm that the expected predictions are complete and correctly associated with their dataset rows.

Preserve model and dataset abbreviations

The dataset guide describes abbreviations used in output organization and summaries. The task guide identifies them, together with working-directory and run identity, as part of artifact reuse. Keep distinct protocols distinguishable and avoid changing aliases casually during recovery. A filename collision can make a stale artifact appear to belong to a new configuration, while an unnecessary rename can prevent discovery of valid completed work that would otherwise be reusable.

Verify reuse on a diagnostic partition

Use a small known dataset, inspect its shard membership, then exercise the intended resume settings without changing the partition contract. Check row counts and identities before comparing final scores. The guides to resolved scanner configuration and measurement completion inventory provide related controls. Accept recovery when reused predictions correspond to the intended records under the current task layout, preserving the distinction between accelerating unfinished work and accidentally combining incompatible artifacts from different partitioning schemes.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles