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

raul3820
/
bert-hash-nano-embeddings

Sentence Similarity
sentence-transformers
Safetensors
Transformers
English
bert_hash
feature-extraction
custom_code
Model card Files Files and versions
xet
Community

Instructions to use raul3820/bert-hash-nano-embeddings with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use raul3820/bert-hash-nano-embeddings with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("raul3820/bert-hash-nano-embeddings", trust_remote_code=True)
    
    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 raul3820/bert-hash-nano-embeddings with Transformers:

    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("raul3820/bert-hash-nano-embeddings", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
bert-hash-nano-embeddings
4.87 MB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 9 commits
raul3820
Fix head_mask documentation errors in model classes
46fac09 4 months ago
  • 1_Pooling
    Upload model 5 months ago
  • .gitattributes
    1.52 kB
    Switch to XET storage for model.safetensors 4 months ago
  • .gitignore
    403 Bytes
    Add .gitignore 4 months ago
  • README.md
    7.33 kB
    Update model reference to raul3820/bert-hash-nano-embeddings 4 months ago
  • agents.md
    231 Bytes
    Fix token_type_ids handling for transformers 5.x compatibility 4 months ago
  • config.json
    905 Bytes
    Upload model 5 months ago
  • config_sentence_transformers.json
    283 Bytes
    Upload model 5 months ago
  • configuration_bert_hash.py
    340 Bytes
    Upload model 5 months ago
  • model.safetensors
    3.88 MB
    xet
    Add missing model.safetensors from upstream 4 months ago
  • modeling_bert_hash.py
    25.2 kB
    Fix head_mask documentation errors in model classes 4 months ago
  • modules.json
    229 Bytes
    Upload model 5 months ago
  • sentence_bert_config.json
    57 Bytes
    Upload model 5 months ago
  • special_tokens_map.json
    695 Bytes
    Upload model 5 months ago
  • tokenizer.json
    712 kB
    Upload model 5 months ago
  • tokenizer_config.json
    1.41 kB
    Upload model 5 months ago
  • vocab.txt
    232 kB
    Upload model 5 months ago