TypeError: not a string | parameters in AutoTokenizer.from_pretrained()

Solution 1:

Passing just the model name suffices.

tokenizer = AlbertTokenizer.from_pretrained('albert-base-v2')

List of model_types can be found here.