Hello !
This issue is vaguely similar to this one, but I’m getting a different error message, and I think I’m overlooking something very simple, so sorry in advance.
I’ve fine-tuned Small100 for a specific translation task, updated transformers and CTranslate to their latest versions, and still, when running :
ct2-transformers-converter --model "\Small100" --output_dir "\CT-Small100"
I’m getting the following exception :
Traceback (most recent call last):
File "C:\Users\Cadenza\AppData\Local\Programs\Python\Python310\Lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Cadenza\AppData\Local\Programs\Python\Python310\Lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\Cadenza\AppData\Local\Programs\Python\Python310\Scripts\ct2-transformers-converter.exe\__main__.py", line 7, in <module>
File "C:\Users\Cadenza\AppData\Local\Programs\Python\Python310\lib\site-packages\ctranslate2\converters\transformers.py", line 1610, in main
converter.convert_from_args(args)
File "C:\Users\Cadenza\AppData\Local\Programs\Python\Python310\lib\site-packages\ctranslate2\converters\converter.py", line 57, in convert_from_args
return self.convert(
File "C:\Users\Cadenza\AppData\Local\Programs\Python\Python310\lib\site-packages\ctranslate2\converters\converter.py", line 96, in convert
model_spec = self._load()
File "C:\Users\Cadenza\AppData\Local\Programs\Python\Python310\lib\site-packages\ctranslate2\converters\transformers.py", line 121, in _load
tokenizer = self.load_tokenizer(
File "C:\Users\Cadenza\AppData\Local\Programs\Python\Python310\lib\site-packages\ctranslate2\converters\transformers.py", line 143, in load_tokenizer
return tokenizer_class.from_pretrained(model_name_or_path, **kwargs)
File "C:\Users\Cadenza\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\models\auto\tokenization_auto.py", line 699, in from_pretrained
raise ValueError(
ValueError: Tokenizer class SMALL100Tokenizer does not exist or is not currently imported.
Sorry again if it’s very simple, but any help would be appreciated !
Thanks in advance,