Facing using while doing token classification using BLOOM LLM Model

by SourabhSahu - opened

trying to import Bloom Tokenizer

from transformers import BloomTokenizer, BloomModel

PS: Transformer version 4.2


ImportError Traceback (most recent call last) in () ----> 1 from transformers import BloomTokenizer, BloomForTokenClassification 2 import torch

ImportError: cannot import name 'BloomTokenizer' from 'transformers' (/usr/local/lib/python3.7/dist-packages/transformers/init.py)

Please update to the latest version of transformers
BloomTokenizer is only available from 4.20.1

cakiki changed discussion status to closed

Sign up or log in to comment