Data Preparation for ML and AI

An engineer fine-tunes a pretrained language model in Amazon SageMaker AI. A custom tokenizer assigns different token IDs from those used during pretraining. Which preprocessing choice BEST preserves compatibility?

Show the answer

Correct answerD. Use the tokenizer and vocabulary supplied with the model checkpoint

AWhy not this: Alphabetical ordering creates a mapping unrelated to the model's learned token associations.

BWhy not this: Token IDs are discrete lookup indices, not continuous features to standardize.

CWhy not this: Batch-dependent frequency ranks give tokens inconsistent meanings and break the pretrained mapping.

DWhy this is right: The checkpoint tokenizer preserves the token-to-ID mapping expected by the pretrained embedding table.

A pretrained model's embedding table associates specific token IDs with learned representations. Its checkpoint tokenizer preserves those associations; alphabetically reassigning IDs changes which representations the model receives.