TECHNOLOGY

lm-eval few-shot chats: conversational examples change the evaluated prompt

In this article
THE QUICK TAKE

The same examples presented as conversation turns or plain text can define different evaluations.

Describe the demonstration format

Few-shot evaluation is not specified completely by the number of examples. Demonstrations can appear inside a single text prompt or as alternating conversation turns. The interface documentation describes the chat-template and few-shot conversation options. In the current documented interface, applying chat formatting enables conversational few-shot presentation unless disabled. Record the effective setting rather than inferring it from a command copied from an older installation.

Inspect roles before inspecting scores

The model integration contract includes template application and tokenizer identity. A conversation’s role markers, system instruction and final assistant prefix can affect what the model is being asked to continue. Inspect the rendered input for a representative sample. Check whether examples are complete user–assistant exchanges, whether the test answer is withheld and whether the generation prompt starts at the intended assistant position instead of continuing a demonstration.

Check the answer boundary separately

The chat delimiter note documents a change to target delimiter handling when templates are applied to likelihood and multiple-choice requests. Do not repair apparent spacing by adding an extra separator without examining the produced sequence. A template may already supply the necessary structural boundary. Such edits can alter the continuation’s tokens even when the displayed question and answer choices look unchanged to a human reader.

Keep prompt variants out of weight comparisons

If conversational demonstrations outperform flattened text, the result supports a claim about the tested prompting configuration. It does not isolate a change to model weights. When comparing checkpoints, hold demonstration identities, ordering, system instruction and chat formatting fixed where the model interfaces permit it. Where templates must differ, disclose that boundary. A shared benchmark label does not erase differences in the actual sequence delivered to each model’s tokenizer.

Retain a readable prompt audit

Save representative rendered conversations with the run configuration and protect any nonpublic evaluation examples appropriately. For a format migration, compare both versions on the same diagnostic samples before running the complete task. The guides to task revision control and continuation-token alignment explain related controls. Publish the effective conversation construction alongside scores so later readers can distinguish a prompting change from a capability change without guessing how examples entered the model.

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