Hi Rogerio
model_fn actually takes the model directory as a parameter, not the model itself (see here: Deploy models to Amazon SageMaker). This means that you can load the tokenizer within model_fn like so:
tokenizer = AutoTokenizer.from_pretrained(model_dir)
Cheers
Heiko