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

onelevelstudio
/
MPNET-0.3B

Sentence Similarity
sentence-transformers
PyTorch
google-tensorflow TensorFlow
ONNX
Safetensors
OpenVINO
Transformers
xlm-roberta
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use onelevelstudio/MPNET-0.3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use onelevelstudio/MPNET-0.3B with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("onelevelstudio/MPNET-0.3B")
    
    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]
  • Transformers

    How to use onelevelstudio/MPNET-0.3B with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMultimodalLM
    
    tokenizer = AutoTokenizer.from_pretrained("onelevelstudio/MPNET-0.3B")
    model = AutoModelForMultimodalLM.from_pretrained("onelevelstudio/MPNET-0.3B")
  • Notebooks
  • Google Colab
  • Kaggle
MPNET-0.3B
10.9 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
baobuiquang's picture
baobuiquang
init
49f0060 verified about 1 year ago
  • 1_Pooling
    init about 1 year ago
  • onnx
    init about 1 year ago
  • openvino
    init about 1 year ago
  • .gitattributes
    761 Bytes
    init about 1 year ago
  • README.md
    4.05 kB
    init about 1 year ago
  • config.json
    750 Bytes
    init about 1 year ago
  • config_sentence_transformers.json
    128 Bytes
    init about 1 year ago
  • model.safetensors
    1.11 GB
    xet
    init about 1 year ago
  • modules.json
    242 Bytes
    init about 1 year ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    1.11 GB
    xet
    init about 1 year ago
  • sentence_bert_config.json
    56 Bytes
    init about 1 year ago
  • sentencepiece.bpe.model
    5.07 MB
    xet
    init about 1 year ago
  • special_tokens_map.json
    239 Bytes
    init about 1 year ago
  • tf_model.h5
    1.11 GB
    xet
    init about 1 year ago
  • tokenizer.json
    9.08 MB
    init about 1 year ago
  • tokenizer_config.json
    402 Bytes
    init about 1 year ago