unsup_bert_L3

作者 kevinng77 · 下载 1 · 点赞 0 · 更新 2023-11-02

# 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?")

模型信息

该模型卡暂无预览图和文字说明。以下信息来自 Hugging Face。

作者 kevinng77
类型text-classification
基础模型—
标签—
下载1
点赞0
更新时间2023-11-02
Hugging Face https://huggingface.co/kevinng77/unsup_bert_L3