TECHNOLOGY

OpenCompass prompt layers: dataset messages and model protocols must agree

In this article
THE QUICK TAKE

Rendered dataset messages are an intermediate artifact; model-side protocol handling can still change the actual input.

Inspect both input-construction layers

A dataset configuration can look correct while a model-wide template changes the final prompt. The prompt-template guide separates dataset-side construction from model-side conversation handling. Preserve both when comparing results. The final model input depends on their interaction, so a shared question, dataset and evaluator do not establish an equivalent evaluation if one model configuration prepends additional instructions or interprets roles differently.

Keep standard and legacy structures distinct

The model protocol reference describes different structures for standard role/content messages and legacy role-based templates. They are not arbitrary interchangeable dictionaries. Match the model-side form to the dataset-side template. A configuration that mixes fields from the two protocols can misrepresent how messages are inserted, mapped or flattened. Inspect the installed backend’s parsing behavior rather than assuming every model class supports every template form in the same way.

Separate task instructions from model-wide additions

A model-side template can consistently add content across datasets. That is useful when deliberately defining a model interface, but it can also alter the task being compared. Record such additions with the result, especially if they encourage a particular answer format or reasoning style. The dataset configuration guide provides the surrounding input fields and inference setup. Keep dataset-specific requirements in an identifiable place rather than letting copied model configuration silently redefine them.

Avoid applying the conversation format twice

The protocol documentation distinguishes direct string wrappers from backends that use a tokenizer chat template or standard API messages. Manually adding the same special tokens can duplicate structural markers. Likewise, legacy role fallback can convert a system instruction into another role if the mapping omits it. Preview the actual messages or tokenizable string and inspect the generation boundary. A readable prompt preview is useful only when it reflects the representation the chosen backend really consumes.

Verify representative protocol cases

Check a system instruction, a user request, a demonstration and the final assistant-generation position under the intended backend. Preserve the effective model and dataset template revisions. The guides to few-shot chat construction and measurement input migration provide related controls. Accept the setup when every role and added instruction in the final input has a declared source, preserving the distinction between changing a model’s capabilities and changing the conversation protocol through which those capabilities were measured.

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