How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("feature-extraction", model="GanymedeNil/text2vec-base-chinese-onnx")
# Load model directly
from transformers import AutoTokenizer, AutoModel

tokenizer = AutoTokenizer.from_pretrained("GanymedeNil/text2vec-base-chinese-onnx")
model = AutoModel.from_pretrained("GanymedeNil/text2vec-base-chinese-onnx")
Quick Links

text2vec-base-chinese-onnx

text2vec-base-chinese onnxruntime version.

It is recommended to use the adapted text2vec-onnx library for model inference.

Downloads last month
14
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support