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

  • Log In
  • Sign Up

facebook
/
drama-large

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

Instructions to use facebook/drama-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use facebook/drama-large with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("facebook/drama-large", trust_remote_code=True)
    model = AutoModel.from_pretrained("facebook/drama-large", trust_remote_code=True)
  • sentence-transformers

    How to use facebook/drama-large with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("facebook/drama-large", trust_remote_code=True)
    
    sentences = [
        "هذا شخص سعيد",
        "هذا كلب سعيد",
        "هذا شخص سعيد جدا",
        "اليوم هو يوم مشمس"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
drama-large
1.62 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
ccsasuke's picture
ccsasuke
Integrate Sentence Transformers, prevent manual tokenizer EOS (#1)
a4c3f69 verified about 1 year ago
  • 1_Pooling
    Integrate Sentence Transformers, prevent manual tokenizer EOS (#1) about 1 year ago
  • .gitattributes
    1.57 kB
    Initial commit about 1 year ago
  • README.md
    7.47 kB
    Integrate Sentence Transformers, prevent manual tokenizer EOS (#1) about 1 year ago
  • config.json
    933 Bytes
    Initial commit about 1 year ago
  • config_sentence_transformers.json
    231 Bytes
    Integrate Sentence Transformers, prevent manual tokenizer EOS (#1) about 1 year ago
  • evaluation.png
    182 kB
    Initial commit about 1 year ago
  • model.safetensors
    1.6 GB
    xet
    Initial commit about 1 year ago
  • modeling_drama.py
    6.08 kB
    Integrate Sentence Transformers, prevent manual tokenizer EOS (#1) about 1 year ago
  • modules.json
    349 Bytes
    Integrate Sentence Transformers, prevent manual tokenizer EOS (#1) about 1 year ago
  • sentence_bert_config.json
    54 Bytes
    Integrate Sentence Transformers, prevent manual tokenizer EOS (#1) about 1 year ago
  • special_tokens_map.json
    449 Bytes
    Integrate Sentence Transformers, prevent manual tokenizer EOS (#1) about 1 year ago
  • tokenizer.json
    17.2 MB
    xet
    Integrate Sentence Transformers, prevent manual tokenizer EOS (#1) about 1 year ago
  • tokenizer_config.json
    50.6 kB
    Initial commit about 1 year ago