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

lsanochkin
/
setfit-rubert-intent

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

Instructions to use lsanochkin/setfit-rubert-intent with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use lsanochkin/setfit-rubert-intent with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("lsanochkin/setfit-rubert-intent")
    
    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 lsanochkin/setfit-rubert-intent with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("lsanochkin/setfit-rubert-intent")
    model = AutoModel.from_pretrained("lsanochkin/setfit-rubert-intent")
  • Notebooks
  • Google Colab
  • Kaggle
setfit-rubert-intent
719 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 2 commits
lsanochkin
Add SetFit model
5345c9a 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.66 kB
    Add SetFit model over 3 years ago
  • config.json
    873 Bytes
    Add SetFit model over 3 years ago
  • config_sentence_transformers.json
    136 Bytes
    Add SetFit model over 3 years ago
  • model_head.pkl
    186 kB
    xet
    Add SetFit model over 3 years ago
  • modules.json
    229 Bytes
    Add SetFit model over 3 years ago
  • pytorch_model.bin
    713 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
    125 Bytes
    Add SetFit model over 3 years ago
  • tokenizer.json
    3.71 MB
    Add SetFit model over 3 years ago
  • tokenizer_config.json
    486 Bytes
    Add SetFit model over 3 years ago
  • vocab.txt
    1.78 MB
    Add SetFit model over 3 years ago