How to use from the
Use from the
Transformers library
# Load model directly
from transformers import AutoTokenizer, AutoModel

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

Based on the derivative model of https://huggingface.co/shibing624/text2vec-base-chinese, replace MacBERT with LERT, and keep other training conditions unchanged。

News

2024-06-25 text2vec-base-chinese onnxruntime version.

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

Spaces using GanymedeNil/text2vec-base-chinese 11