Skip to content

Commit

Permalink
feat: convert model to ONNX
Browse files Browse the repository at this point in the history
we have added a new notebook to show you how to convert model to ONNX
  • Loading branch information
Ahwar committed Dec 7, 2022
1 parent a545920 commit 3dad9c4
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ These files are required to run the project

To convert HuggingFace NER model to ONNX Open this [Google Colaboratory Notebook](https://colab.research.google.com/drive/1kZx9XOnExVfPoAGHhHRUrdQnioiLloBW#revisionId=0BwKss6yztf4KS0NKaWRiQjc0RGRvQkd6ZFp3OUFhR1lTclBNPQ) run the code as below shown image and follow all the steps

![run colab code cell](images/run colab.jpeg)
![run colab code cell](images\run-colab.jpeg)



(the code for above purpose is also saved in jupyter notebook in the file `convert Huggingface model to ONNX.ipynb`. you can run the code using [Jupyter notebook](https://jupyter.org/install))

Tokenzer file `tokenizer.json` was taken from this [huggingface repo](https://huggingface.co/xlm-roberta-large-finetuned-conll03-english)
Download the `tokenizer.json` from the [link](https://huggingface.co/xlm-roberta-large-finetuned-conll03-english/raw/main/tokenizer.json) and save in `raw-files` directory
Expand Down
Loading

0 comments on commit 3dad9c4

Please sign in to comment.