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

  • Log In
  • Sign Up

t12e
/
instructor-base

Sentence Similarity
sentence-transformers
PyTorch
Transformers
English
t5
text-embedding
embeddings
information-retrieval
beir
text-classification
language-model
text-clustering
text-semantic-similarity
text-evaluation
prompt-retrieval
text-reranking
feature-extraction
English
Sentence Similarity
natural_questions
ms_marco
fever
hotpot_qa
mteb
Eval Results (legacy)
Model card Files Files and versions
xet
Community
1

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

  • Libraries
  • sentence-transformers

    How to use t12e/instructor-base with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("t12e/instructor-base")
    
    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 t12e/instructor-base with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("t12e/instructor-base")
    model = AutoModel.from_pretrained("t12e/instructor-base")
  • Notebooks
  • Google Colab
  • Kaggle
instructor-base
444 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
t12e's picture
t12e
updated handler.py
41c2439 almost 3 years ago
  • 1_Pooling
    add custom handler almost 3 years ago
  • 2_Dense
    add custom handler almost 3 years ago
  • __pycache__
    updated handler.py almost 3 years ago
  • .gitattributes
    1.48 kB
    initial commit almost 3 years ago
  • README.md
    66.2 kB
    add custom handler almost 3 years ago
  • config.json
    1.55 kB
    add custom handler almost 3 years ago
  • config_sentence_transformers.json
    122 Bytes
    add custom handler almost 3 years ago
  • handler.py
    591 Bytes
    updated handler.py almost 3 years ago
  • modules.json
    461 Bytes
    add custom handler almost 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    439 MB
    xet
    add custom handler almost 3 years ago
  • requirements.txt
    41 Bytes
    add requirements.txt almost 3 years ago
  • sentence_bert_config.json
    53 Bytes
    add custom handler almost 3 years ago
  • special_tokens_map.json
    2.2 kB
    add custom handler almost 3 years ago
  • spiece.model
    792 kB
    xet
    add custom handler almost 3 years ago
  • tokenizer.json
    2.42 MB
    add custom handler almost 3 years ago
  • tokenizer_config.json
    2.43 kB
    add custom handler almost 3 years ago