Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't convert BERT model #158

Closed
redthing1 opened this issue May 25, 2023 · 4 comments
Closed

Can't convert BERT model #158

redthing1 opened this issue May 25, 2023 · 4 comments
Assignees
Labels
feat new feature for the user

Comments

@redthing1
Copy link

Using the sample code in the README:

Trying to convert this model: https://huggingface.co/1-800-BAD-CODE/sentence_boundary_detection_multilang/blob/main/sbd_49lang_bert_small.onnx

This is a BERT based model.

>>> onnx_model_path = '/home/user/Downloads/sentence_boundary_detection_multilang/sbd_49lang_bert_small.onnx'
>>> torch_model_1 = convert(onnx_model_path)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/user/.local/lib/python3.11/site-packages/onnx2torch/converter.py", line 104, in convert
    converter = get_converter(
                ^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/onnx2torch/node_converters/registry.py", line 69, in get_converter
    raise NotImplementedError(f'Converter is not implemented ({description})')
NotImplementedError: Converter is not implemented (OperationDescription(domain='', operation_type='LayerNormalization', version=17))
>>> 

I get the above error.

@github-actions github-actions bot added the Stale label Jun 25, 2023
@ENOT-AutoDL ENOT-AutoDL deleted a comment from github-actions bot Jul 5, 2023
@senysenyseny16
Copy link
Collaborator

related PR: #143

@senysenyseny16 senysenyseny16 added the feat new feature for the user label Jul 5, 2023
@senysenyseny16
Copy link
Collaborator

#165

@senysenyseny16 senysenyseny16 self-assigned this Jul 5, 2023
@senysenyseny16
Copy link
Collaborator

@senysenyseny16
Copy link
Collaborator

Feel free to reopen if there are any problems or questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat new feature for the user
Projects
None yet
Development

No branches or pull requests

2 participants