Put Your Preprocessing Inside the Keras Model: Train-Serve Consistency Without Extra Plumbing
Train-serve skew usually comes from duplicated preprocessing, not the model. Keras preprocessing layers move normalization and tokenization inside the model graph so the saved artifact handles raw data itself.