checkpoint tokenizer code