Tokenizer issue when converting MarianMT model to ONNX

#13
by harisnaeem - opened
ONNX Community org

Trying to convert a MarianMT model to ONNX using onnx-community/convert-to-onnx space but conversion fials with this error:

Conversion failed: Traceback (most recent call last): File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/user/app/transformers.js/scripts/convert.py", line 456, in <module> main() File "/home/user/app/transformers.js/scripts/convert.py", line 242, in main raise e File "/home/user/app/transformers.js/scripts/convert.py", line 235, in main tokenizer = AutoTokenizer.from_pretrained(tokenizer_id, **from_pretrained_kwargs) File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 968, in from_pretrained raise ValueError( ValueError: This tokenizer cannot be instantiated. Please make sure you have sentencepiece installed in order to use this tokenizer

Sign up or log in to comment

Free AI Image Generator No sign-up. Instant results. Open Now