kevinng77/unsup_bert_L3
By kevinng77 · ↓ 2 · ♥ 0 · Updated 2023-06-17
What's in this repo
This page lists the files in kevinng77/unsup_bert_L3, including model.onnx.
- 1 ONNX models (.onnx files)
- 9 files, including 4 .json, 1 .md, 1 .onnx, 1 .bin, 1 .txt
- Last updated 2023-06-17
ONNX files
| File | Size | Download |
|---|---|---|
| model.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
# transformers==4.29.1
from transformers import AutoTokenizer, pipeline
from optimum.onnxruntime import ORTModelForSequenceClassification
onnx_model_path = "kevinng77/unsup_bert_L3"
tokenizer = AutoTokenizer.from_pretrained(onnx_model_path)
onnx_model = ORTModelForSequenceClassification.from_pretrained(onnx_model_path)
onnx_pipe = pipeline(task="text-classification", model=onnx_model, tokenizer=tokenizer)
onnx_pipe("How many rows are there in the table?")
Model info
text-classification
transformers
transformers
pytorch
onnx
bert
text-classification
en
license:apache-2.0
text-embeddings-inference
endpoints_compatible
region:us
↓ 2
♥ 0
Created: 2023-06-17
Updated: 2023-06-17
View on Hugging FaceFiles (9)
.gitattributes
README.md
config.json
model.onnx
ONNX
pytorch_model.bin
special_tokens_map.json
tokenizer.json
tokenizer_config.json
vocab.txt