@@ -130,7 +130,7 @@ Alternative to CLI, you can export a 🤗 Transformers model to ONNX programmati
|
|||||||
>>> from optimum.onnxruntime import ORTModelForSequenceClassification
|
>>> from optimum.onnxruntime import ORTModelForSequenceClassification
|
||||||
>>> from transformers import AutoTokenizer
|
>>> from transformers import AutoTokenizer
|
||||||
|
|
||||||
>>> model_checkpoint = "distilbert_base_uncased_squad"
|
>>> model_checkpoint = "distilbert/distilbert-base-uncased-distilled-squad"
|
||||||
>>> save_directory = "onnx/"
|
>>> save_directory = "onnx/"
|
||||||
|
|
||||||
>>> # Load a model from transformers and export it to ONNX
|
>>> # Load a model from transformers and export it to ONNX
|
||||||
|
|||||||
Reference in New Issue
Block a user