Instructions to use IEITYuan/Yuan-embedding-2.0-zh with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use IEITYuan/Yuan-embedding-2.0-zh with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("IEITYuan/Yuan-embedding-2.0-zh") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Download 2_Dense/pytorch_model.bin from IEITYuan/Yuan-embedding-2.0-zh: direct link, hf CLI and curl.
- Browser
- Download file 7.35 MB
-
https://huggingface.co/IEITYuan/Yuan-embedding-2.0-zh/resolve/main/2_Dense/pytorch_model.bin
- Command line
-
hf download hf://IEITYuan/Yuan-embedding-2.0-zh/2_Dense/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/IEITYuan/Yuan-embedding-2.0-zh/resolve/main/2_Dense/pytorch_model.bin
7.35 MB
- Xet hash:
- f691aeac695d8da29706765c108d50e2b282151592a59e47697dc0f9a424cafb
- Size of remote file:
- 7.35 MB
- SHA256:
- 1820b6f84bfe5d4c2b8382b3e59245ac02d3c0dd058f158d432d4f3c46d8dabf
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.