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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

razsarusi
/
plottwist-embedder

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

Instructions to use razsarusi/plottwist-embedder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use razsarusi/plottwist-embedder with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("razsarusi/plottwist-embedder")
    
    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 razsarusi/plottwist-embedder with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("razsarusi/plottwist-embedder")
    model = AutoModel.from_pretrained("razsarusi/plottwist-embedder", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
plottwist-embedder
471 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
razsarusi's picture
razsarusi
Upload plottwist_catalog.parquet with huggingface_hub
74e3b65 verified 9 days ago
  • 1_Pooling
    Add new SentenceTransformer model 9 days ago
  • .gitattributes
    1.57 kB
    Upload plottwist.faiss with huggingface_hub 9 days ago
  • README.md
    11.6 kB
    Add new SentenceTransformer model 9 days ago
  • config.json
    576 Bytes
    Add new SentenceTransformer model 9 days ago
  • config_sentence_transformers.json
    284 Bytes
    Add new SentenceTransformer model 9 days ago
  • model.safetensors
    438 MB
    xet
    Add new SentenceTransformer model 9 days ago
  • modules.json
    429 Bytes
    Add new SentenceTransformer model 9 days ago
  • plottwist.faiss
    30.7 MB
    xet
    Upload plottwist.faiss with huggingface_hub 9 days ago
  • plottwist_catalog.parquet
    1.31 MB
    xet
    Upload plottwist_catalog.parquet with huggingface_hub 9 days ago
  • sentence_bert_config.json
    241 Bytes
    Add new SentenceTransformer model 9 days ago
  • tokenizer.json
    712 kB
    Add new SentenceTransformer model 9 days ago
  • tokenizer_config.json
    585 Bytes
    Add new SentenceTransformer model 9 days ago