My code which works well for unsloth/gemma-3-1b-it fails with the following error when I switch to unsloth/gemma-3-4b-it.
----> 2 doc_tokens = tokenizer.tokenize(doc)
AttributeError: 'Gemma3Processor' object has no attribute 'tokenize'
I load the model and tokenizer as prescribed in the Gemma 3 notebook for 4bit finetuning.