Unable to run with default instructions on Colab
#3
by
rahulmanuwas
- opened
Hi, anyone able to run the models yet? I'm facing issues -
@zechunliu
@reach-vb
will appreciate any help!
You missed
!pip install --upgrade transformers
even though the configuration states:
"transformers_version": "4.41.2"
https://huggingface.co/facebook/MobileLLM-125M/blob/main/config.json
and colab has 4.42.2
import transformers
transformers.__version__
you have update it to the newest one.
I went down this same path, however running with the newest transformers the tokenizer gets returned as a bool object:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[2], line 1
----> 1 tokenizer.add_special_tokens(
2 {
3 "eos_token": "</s>",
4 "bos_token": "<s>",
5 "unk_token": "<unk>",
6 }
7 )
AttributeError: 'bool' object has no attribute 'add_special_tokens'
There's a typo on model card. Please use this command instead:
AutoTokenizer.from_pretrained("facebook/MobileLLM-125M", use_fast=False)
zechunliu
changed discussion status to
closed