In this article
Use the answer suffix to prepare supervised training labels; inference and evaluation inputs must follow the intended task without the hidden answer.
Identify the checkpoint’s intended task
PaliGemma combines visual and language processing for tasks that can be adapted with supervised examples. The Google documentation describes the model family and its task-oriented use. Do not assume that a pretrained artifact is already a general conversational assistant. Select the actual checkpoint, image processing and task prompt before comparing its generated answers with those of an unrelated chat-oriented model.
Read what the suffix parameter does
The Transformers processor reference distinguishes the input text from an optional suffix. The suffix represents the expected prediction when preparing a fine-tuning example and enables creation of training labels. It is not merely extra natural-language context. Copying a complete training preprocessing call into an evaluation script can therefore change what information the model receives before the requested prediction is measured.
Keep supervised examples and prediction requests separate
For a captioning dataset, preserve the source image, task instruction and target caption as separate fields. The training adapter can combine them according to the processor’s supervised convention. The inference adapter should construct only the inputs available when the application actually runs. A hidden expected answer accidentally included in the model input can make an apparent improvement disappear when the same code is deployed without access to the target caption.
Match the processor to the released artifact
The official pretrained model card records a concrete artifact and its intended usage. A similarly named task-tuned checkpoint may expect a different prompt or image configuration. Record the artifact identity and processor together with the training recipe. Inspect the produced labels and input fields on a small example instead of assuming that every processor argument behaves like an ordinary text concatenation parameter.
Test the evaluation boundary directly
Create a prediction example with its reference answer stored only in the evaluator. Confirm that changing that reference does not alter the model input. Then compare the generated continuation using the actual task metric and data split. The articles on loss masks and document-level leakage explain related training controls. PaliGemma adds a specific boundary worth checking: the processor can prepare supervised labels, but that convenience must not smuggle evaluation targets into prediction inputs.
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.