﻿# OpenCompass resume: changing workers can change prediction-shard identity

Preserve OpenCompass partitioning parameters and artifact identities when resuming inference, distinguishing runner concurrency from the layout of reusable prediction shards.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-opencompass-resume-partitioner-shard-worker-identity/
Language: en

## 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](https://opencompass.readthedocs.io/en/latest/execution/tasks_and_runners.html) 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](https://opencompass.readthedocs.io/en/latest/user_guides/config.html) 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](https://opencompass.readthedocs.io/en/latest/user_guides/datasets.html) 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](/journal/fg2-garak-resolved-plugin-configuration-default-provenance/) and [measurement completion inventory](/journal/fg2-garak-jsonl-attempt-status-generation-denominators/) 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.
