Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

menbom
/
test-setfit-model

Sentence Similarity
sentence-transformers
PyTorch
Transformers
mpnet
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

Instructions to use menbom/test-setfit-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use menbom/test-setfit-model with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("menbom/test-setfit-model")
    
    sentences = [
        "That is a happy person",
        "That is a happy dog",
        "That is a very happy person",
        "Today is a sunny day"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Transformers

    How to use menbom/test-setfit-model with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("menbom/test-setfit-model")
    model = AutoModel.from_pretrained("menbom/test-setfit-model")
  • Notebooks
  • Google Colab
  • Kaggle
test-setfit-model
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
menbom's picture
menbom
Add SetFit model
cae7427 over 3 years ago
  • 1_Pooling
    Add SetFit model over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • README.md
    3.69 kB
    Add SetFit model over 3 years ago
  • config.json
    669 Bytes
    Add SetFit model over 3 years ago
  • config_sentence_transformers.json
    122 Bytes
    Add SetFit model over 3 years ago
  • model_head.pkl

    Detected Pickle imports (4)

    • "joblib.numpy_pickle.NumpyArrayWrapper",
    • "sklearn.linear_model._logistic.LogisticRegression",
    • "numpy.ndarray",
    • "numpy.dtype"

    How to fix it?

    6.99 kB
    xet
    Add SetFit model over 3 years ago
  • modules.json
    229 Bytes
    Add SetFit model over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    438 MB
    xet
    Add SetFit model over 3 years ago
  • sentence_bert_config.json
    53 Bytes
    Add SetFit model over 3 years ago
  • special_tokens_map.json
    280 Bytes
    Add SetFit model over 3 years ago
  • tokenizer.json
    712 kB
    Add SetFit model over 3 years ago
  • tokenizer_config.json
    1.51 kB
    Add SetFit model over 3 years ago
  • vocab.txt
    232 kB
    Add SetFit model over 3 years ago