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

shibing624
/
text2vec-base-chinese

Sentence Similarity
sentence-transformers
PyTorch
ONNX
Safetensors
OpenVINO
Chinese
bert
Sentence Transformers
Model card Files Files and versions
xet
Community
35

Instructions to use shibing624/text2vec-base-chinese with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use shibing624/text2vec-base-chinese with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("shibing624/text2vec-base-chinese")
    
    sentences = [
        "那是 個快樂的人",
        "那是 條快樂的狗",
        "那是 個非常幸福的人",
        "今天是晴天"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
text2vec-base-chinese
1.94 GB
Ctrl+K
Ctrl+K
  • 5 contributors
History: 30 commits
shibing624's picture
shibing624
Update README.md
183bb99 verified over 1 year ago
  • 1_Pooling
    utilize sentence_transformers (#4) about 3 years ago
  • onnx
    Add exported onnx model 'model_qint8_avx512_vnni.onnx' (#30) over 1 year ago
  • openvino
    Add exported openvino model 'openvino_model.xml' (#27) over 1 year ago
  • .gitattributes
    1.23 kB
    Adding `safetensors` variant of this model (#23) about 2 years ago
  • README.md
    13.7 kB
    Update README.md over 1 year ago
  • config.json
    856 Bytes
    Upload config.json over 4 years ago
  • logs.txt
    546 Bytes
    Upload logs.txt over 4 years ago
  • model.safetensors
    409 MB
    xet
    Adding `safetensors` variant of this model (#23) about 2 years ago
  • modules.json
    230 Bytes
    utilize sentence_transformers (#4) about 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    409 MB
    xet
    Upload pytorch_model.bin with git-lfs over 4 years ago
  • sentence_bert_config.json
    54 Bytes
    utilize sentence_transformers (#4) about 3 years ago
  • special_tokens_map.json
    112 Bytes
    Upload special_tokens_map.json over 4 years ago
  • tokenizer_config.json
    319 Bytes
    Upload tokenizer_config.json over 4 years ago
  • vocab.txt
    110 kB
    Upload vocab.txt over 4 years ago