runtime error
oading (…)cial_tokens_map.json: 100%|██████████| 411/411 [00:00<00:00, 3.24MB/s] Traceback (most recent call last): File "/home/user/app/app.py", line 4, in <module> tokenizer = AutoTokenizer.from_pretrained("baichuan-inc/baichuan-7B", trust_remote_code=True) File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 738, in from_pretrained return tokenizer_class.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs) File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 2045, in from_pretrained return cls._from_pretrained( File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 2256, in _from_pretrained tokenizer = cls(*init_inputs, **init_kwargs) File "/home/user/.cache/huggingface/modules/transformers_modules/baichuan-inc/baichuan-7B/c1a5c7d5b7f50ecc51bb0e08150a9f12e5656756/tokenization_baichuan.py", line 74, in __init__ super().__init__( File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/transformers/tokenization_utils.py", line 366, in __init__ self._add_tokens(self.all_special_tokens_extended, special_tokens=True) File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/transformers/tokenization_utils.py", line 462, in _add_tokens current_vocab = self.get_vocab().copy() File "/home/user/.cache/huggingface/modules/transformers_modules/baichuan-inc/baichuan-7B/c1a5c7d5b7f50ecc51bb0e08150a9f12e5656756/tokenization_baichuan.py", line 108, in get_vocab vocab = {self.convert_ids_to_tokens(i): i for i in range(self.vocab_size)} File "/home/user/.cache/huggingface/modules/transformers_modules/baichuan-inc/baichuan-7B/c1a5c7d5b7f50ecc51bb0e08150a9f12e5656756/tokenization_baichuan.py", line 104, in vocab_size return self.sp_model.get_piece_size() AttributeError: 'BaiChuanTokenizer' object has no attribute 'sp_model'
Container logs:
Fetching error logs...