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

samchain
/
econo-sentence-v1

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

Instructions to use samchain/econo-sentence-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use samchain/econo-sentence-v1 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("samchain/econo-sentence-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 samchain/econo-sentence-v1 with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("samchain/econo-sentence-v1")
    model = AutoModel.from_pretrained("samchain/econo-sentence-v1")
  • Notebooks
  • Google Colab
  • Kaggle
econo-sentence-v1
877 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 11 commits
samchain's picture
samchain
Update README.md
7a22a46 verified about 1 year ago
  • 1_Pooling
    Update 1_Pooling/config.json almost 3 years ago
  • .gitattributes
    1.57 kB
    Add new SentenceTransformer model. almost 3 years ago
  • README.md
    4.17 kB
    Update README.md about 1 year ago
  • config.json
    655 Bytes
    Add new SentenceTransformer model. almost 3 years ago
  • config_sentence_transformers.json
    123 Bytes
    Add new SentenceTransformer model. almost 3 years ago
  • model.safetensors
    438 MB
    xet
    Adding `safetensors` variant of this model (#1) over 1 year ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model. almost 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    438 MB
    xet
    Add new SentenceTransformer model. almost 3 years ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model. almost 3 years ago
  • special_tokens_map.json
    125 Bytes
    Add new SentenceTransformer model. almost 3 years ago
  • tokenizer.json
    712 kB
    Add new SentenceTransformer model. almost 3 years ago
  • tokenizer_config.json
    314 Bytes
    Add new SentenceTransformer model. almost 3 years ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model. almost 3 years ago