You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "0m0/gguf_test.py", line 7, in <module>
tokenizer = AutoTokenizer.from_pretrained(model_id, gguf_file=filename, legacy=False)
File "/app/src/transformers/models/auto/tokenization_auto.py", line 899, in from_pretrained
return tokenizer_class_fast.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs)
File "/app/src/transformers/tokenization_utils_base.py", line 2163, in from_pretrained
return cls._from_pretrained(
File "/app/src/transformers/tokenization_utils_base.py", line 2397, in _from_pretrained
tokenizer = cls(*init_inputs, **init_kwargs)
File "/app/src/transformers/models/llama/tokenization_llama_fast.py", line 157, in __init__
super().__init__(
File "/app/src/transformers/tokenization_utils_fast.py", line 124, in __init__
fast_tokenizer, additional_kwargs = convert_gguf_tokenizer(architecture, tokenizer_dict)
File "/app/src/transformers/integrations/ggml.py", line 692, in convert_gguf_tokenizer
fast_tokenizer = converter.converted()
File "/app/src/transformers/integrations/ggml.py", line 635, in converted
tokenizer = super().converted()
File "/app/src/transformers/convert_slow_tokenizer.py", line 628, in converted
for token in [p.piece for p in self.proto.pieces if p.type == 4]
AttributeError: 'GGUFTokenizerSkeleton' object has no attribute 'pieces'
Expected behavior
It should load the tokenizer.
The text was updated successfully, but these errors were encountered:
System Info
transformers
version: 4.42.0.dev0Who can help?
@ArthurZucker
@younesbelkada
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Dockerfile:
Code:
Error:
Expected behavior
It should load the tokenizer.
The text was updated successfully, but these errors were encountered: