"ImportError: Package `num2words` is required to run SmolVLM processor" getting this issue wwhile importing SmolVLM2 from AutoProcessor
#18
by
aryachakraborty
- opened
I have installed the transformer using the following command "pip install git+https://github.com/huggingface/[email protected]".
and using the following code to import the model ,
processor = AutoProcessor.from_pretrained(model_path)
model = AutoModelForImageTextToText.from_pretrained(
model_path,
torch_dtype=torch.bfloat16,
_attn_implementation="flash_attention_2"
).to("cuda")```
it's showing the error mentioned in the title. Explicitly I have installed the 'num2words' package using pip, still same error is showing.
is there a particular version I need to install ? (PS: I have restarted the runtime multiple times, that didn't work.