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

mathislucka
/
bi-deberta-base-hallucination-v1

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

Instructions to use mathislucka/bi-deberta-base-hallucination-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use mathislucka/bi-deberta-base-hallucination-v1 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("mathislucka/bi-deberta-base-hallucination-v1")
    
    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 mathislucka/bi-deberta-base-hallucination-v1 with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("mathislucka/bi-deberta-base-hallucination-v1")
    model = AutoModel.from_pretrained("mathislucka/bi-deberta-base-hallucination-v1")
  • Notebooks
  • Google Colab
  • Kaggle
bi-deberta-base-hallucination-v1
747 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 2 commits
Ubuntu
add bi encoder
f31abc0 about 3 years ago
  • 1_Pooling
    add bi encoder about 3 years ago
  • .gitattributes
    1.48 kB
    initial commit about 3 years ago
  • README.md
    3.81 kB
    add bi encoder about 3 years ago
  • added_tokens.json
    23 Bytes
    add bi encoder about 3 years ago
  • config.json
    15.7 kB
    add bi encoder about 3 years ago
  • config_sentence_transformers.json
    124 Bytes
    add bi encoder about 3 years ago
  • modules.json
    229 Bytes
    add bi encoder about 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    735 MB
    xet
    add bi encoder about 3 years ago
  • sentence_bert_config.json
    53 Bytes
    add bi encoder about 3 years ago
  • special_tokens_map.json
    173 Bytes
    add bi encoder about 3 years ago
  • spm.model
    2.46 MB
    xet
    add bi encoder about 3 years ago
  • tokenizer.json
    8.65 MB
    add bi encoder about 3 years ago
  • tokenizer_config.json
    514 Bytes
    add bi encoder about 3 years ago