Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

IEITYuan
/
Yuan-embedding-2.0-zh

sentence-transformers
PyTorch
Safetensors
Chinese
bert
mteb
Model card Files Files and versions
xet
Community
1

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
Yuan-embedding-2.0-zh
2.62 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 6 commits
IEIT-Yuan's picture
IEIT-Yuan
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#1)
fb4ab1e verified 6 months ago
  • 1_Pooling
    Upload 13 files 6 months ago
  • 2_Dense
    Adding `safetensors` variant of this model (#1) 6 months ago
  • .gitattributes
    1.52 kB
    initial commit 6 months ago
  • README.md
    1.39 kB
    Update README.md 6 months ago
  • config.json
    647 Bytes
    Upload 13 files 6 months ago
  • config_sentence_transformers.json
    205 Bytes
    Upload 13 files 6 months ago
  • model.safetensors
    1.3 GB
    xet
    Adding `safetensors` variant of this model (#1) 6 months ago
  • modules.json
    341 Bytes
    Upload 13 files 6 months ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "torch._utils._rebuild_tensor_v2",
    • "torch.FloatStorage",
    • "collections.OrderedDict"

    What is a pickle import?

    1.3 GB
    xet
    Upload 13 files 6 months ago
  • sentence_bert_config.json
    53 Bytes
    Upload 13 files 6 months ago
  • special_tokens_map.json
    695 Bytes
    Upload 13 files 6 months ago
  • tokenizer.json
    439 kB
    Upload 13 files 6 months ago
  • tokenizer_config.json
    1.46 kB
    Upload 13 files 6 months ago
  • vocab.txt
    110 kB
    Upload 13 files 6 months ago