facebook / drama-large

huggingface.co
Total runs: 672
24-hour runs: -21
7-day runs: -115
30-day runs: -4.6K
Model's Last Updated: March 05 2025
sentence-similarity

Introduction of drama-large

Model Details of drama-large

DRAMA-large (0.3B): Diverse Augmentation from Large Language Models to Smaller Dense Retrievers

DRAMA-large (0.3B) is a dense retrieval model built upon a pruned large language model backbone. It is derived by pruning a large language model and fine-tuned for efficient and generalizable multilingual text retrieval. By leveraging large language models for high-quality data augmentation, DRAMA-large achieves strong performance across both English and multilingual retrieval tasks, despite its compact size of 0.3B non-embedding parameters.

The default embedding size of drama-large is 1024, as we adopt Matryoshka Representation Learning, the dimionality can be flexiblely truncated to dimensionalities such as 512 or 256.

Please check our paper for the detials.

Usage

Below is an example using drama-large to encode query and document examples from the MIRACL dataset:

import torch
from transformers import AutoTokenizer, AutoModel


queries = [
    'What percentage of the Earth\'s atmosphere is oxygen?',
    '意大利首都是哪里?',
]
documents = [
    "The amount of oxygen in the atmosphere has fluctuated over the last 600 million years, reaching a peak of 35% during the Carboniferous period, significantly higher than today's 21%.",
    "羅馬是欧洲国家意大利首都和罗马首都广域市的首府及意大利全国的政治、经济、文化和交通中心,位于意大利半島中部的台伯河下游平原地,建城初期在七座小山丘上,故又名“七丘之城”。按城市范围内的人口计算,罗马是意大利人口最多的城市,也是欧盟人口第三多的城市。",
]

model_name = "facebook/drama-large"
device = "cuda" if torch.cuda.is_available() else "cpu"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModel.from_pretrained(model_name, trust_remote_code=True).to(device)

query_embs = model.encode_queries(tokenizer, queries)
doc_embs = model.encode_documents(tokenizer, documents)

scores = query_embs @ doc_embs.T
print(scores.tolist())
# Expected output: [[0.5429, 0.1109], [0.1317, 0.6074]]

The trust_remote_code will use our customized drama_modeling.py with two details:

  • We use bi-directional attention instead of uni-directional attention
  • We add "Query: " as prefix for query text. (No prefix added to document)

DRAMA models are trained using Matryoshka Representation Learning ( MRL ) to support flexible dimensionality. Both queries and documents can be encoded into smaller dimensions, such as 256, using the following:

query_embs = model.encode_queries(tokenizer, queries, dim=256)
doc_embs = model.encode_documents(tokenizer, documents, dim=256)

scores = query_embs @ doc_embs.T
print(scores.tolist())
# Expected output: [[0.6239, 0.2294], [0.2604, 0.6942]]
Evaluation

The model has been evaluated on multiple retrieval benchmarks, including BEIR , MIRACL , MLDR , and several multilingual retrieval tasks in MTEB . It demonstrates strong performance in both English and multilingual retrieval tasks.

drama-large released in this page is corresponidng to the line DRAMA-0.3B with 265M non-embedding parrameters.

Supported Languages

DRAMA-large was initialized from Llama3.2-1B (which was originally pruned from Llama3.1-8B ). During pruning and retriever training, training data covered the following 20 languages (sorted alphabetically):

Arabic, Bengali, Chinese, English, Finnish, French, German, Hindi, Indonesian, Italian, Japanese, Korean, Persian, Portuguese, Russian, Spanish, Swahili, Telugu, Thai, Yoruba

Other languages may have downgraded peformance.

Citation

If you find our paper or models helpful, please consider cite as follows:

@article{drama,
  title={{Drama}: Diverse Augmentation from Large Language Models To Smaller Dense Retrievers},
  author={Ma, Xueguang and Lin, Victoria Xi and Oguz, Barlas and Lin, Jimmy and Yih, Wen-tau and Chen, Xilun},
  journal={arXiv:2502.18460},
  year={2025}
}

Runs of facebook drama-large on huggingface.co

672
Total runs
-21
24-hour runs
-80
3-day runs
-115
7-day runs
-4.6K
30-day runs

More Information About drama-large huggingface.co Model

More drama-large license Visit here:

https://choosealicense.com/licenses/cc-by-nc-4.0

drama-large huggingface.co

drama-large huggingface.co is an AI model on huggingface.co that provides drama-large's model effect (), which can be used instantly with this facebook drama-large model. huggingface.co supports a free trial of the drama-large model, and also provides paid use of the drama-large. Support call drama-large model through api, including Node.js, Python, http.

drama-large huggingface.co Url

https://huggingface.co/facebook/drama-large

facebook drama-large online free

drama-large huggingface.co is an online trial and call api platform, which integrates drama-large's modeling effects, including api services, and provides a free online trial of drama-large, you can try drama-large online for free by clicking the link below.

facebook drama-large online free url in huggingface.co:

https://huggingface.co/facebook/drama-large

drama-large install

drama-large is an open source model from GitHub that offers a free installation service, and any user can find drama-large on GitHub to install. At the same time, huggingface.co provides the effect of drama-large install, users can directly use drama-large installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

drama-large install url in huggingface.co:

https://huggingface.co/facebook/drama-large

Url of drama-large

drama-large huggingface.co Url

Provider of drama-large huggingface.co

facebook
ORGANIZATIONS

Other API from facebook

huggingface.co

Total runs: 8.1M
Run Growth: -12.0K
Growth Rate: -0.15%
Updated:January 20 2022
huggingface.co

Total runs: 5.1M
Run Growth: -1.7M
Growth Rate: -34.04%
Updated:September 15 2023
huggingface.co

Total runs: 3.2M
Run Growth: 299.4K
Growth Rate: 9.52%
Updated:January 17 2024
huggingface.co

Total runs: 2.7M
Run Growth: -262.5K
Growth Rate: -9.78%
Updated:September 06 2023
huggingface.co

Total runs: 1.8M
Run Growth: -256.9K
Growth Rate: -13.89%
Updated:November 21 2025
huggingface.co

Total runs: 1.6M
Run Growth: -199.0K
Growth Rate: -12.63%
Updated:March 23 2023
huggingface.co

Total runs: 1.1M
Run Growth: -1.0M
Growth Rate: -95.74%
Updated:January 25 2024
huggingface.co

Total runs: 836.0K
Run Growth: -20.8K
Growth Rate: -2.48%
Updated:September 06 2023
huggingface.co

Total runs: 528.0K
Run Growth: 63.4K
Growth Rate: 12.09%
Updated:May 22 2023
huggingface.co

Total runs: 517.6K
Run Growth: 75.8K
Growth Rate: 14.52%
Updated:March 17 2025
huggingface.co

Total runs: 348.9K
Run Growth: 162.1K
Growth Rate: 46.10%
Updated:June 13 2023
huggingface.co

Total runs: 338.6K
Run Growth: 66.4K
Growth Rate: 21.37%
Updated:January 12 2024
huggingface.co

Total runs: 337.4K
Run Growth: 18.9K
Growth Rate: 5.53%
Updated:January 12 2024
huggingface.co

Total runs: 305.9K
Run Growth: 18.1K
Growth Rate: 6.00%
Updated:June 15 2023
huggingface.co

Total runs: 305.0K
Run Growth: -141.1K
Growth Rate: -45.58%
Updated:February 29 2024
huggingface.co

Total runs: 261.4K
Run Growth: 84.5K
Growth Rate: 33.06%
Updated:February 12 2023
huggingface.co

Total runs: 227.2K
Run Growth: -52.3K
Growth Rate: -22.82%
Updated:November 17 2022
huggingface.co

Total runs: 193.0K
Run Growth: -118.9K
Growth Rate: -62.69%
Updated:September 06 2023
huggingface.co

Total runs: 192.1K
Run Growth: -96.6K
Growth Rate: -51.28%
Updated:September 15 2023
huggingface.co

Total runs: 145.2K
Run Growth: 36.7K
Growth Rate: 25.94%
Updated:November 16 2023
huggingface.co

Total runs: 139.8K
Run Growth: 12.0K
Growth Rate: 8.66%
Updated:June 03 2022
huggingface.co

Total runs: 136.6K
Run Growth: 84.4K
Growth Rate: 64.45%
Updated:December 09 2025
huggingface.co

Total runs: 136.4K
Run Growth: 87.4K
Growth Rate: 64.07%
Updated:March 28 2026
huggingface.co

Total runs: 107.3K
Run Growth: -44.4K
Growth Rate: -41.17%
Updated:May 22 2023
huggingface.co

Total runs: 72.0K
Run Growth: -21.3K
Growth Rate: -30.58%
Updated:September 15 2023
huggingface.co

Total runs: 55.6K
Run Growth: 48.1K
Growth Rate: 86.62%
Updated:March 27 2026
huggingface.co

Total runs: 55.5K
Run Growth: -1.5K
Growth Rate: -2.80%
Updated:January 25 2023
huggingface.co

Total runs: 53.3K
Run Growth: -70.7K
Growth Rate: -132.90%
Updated:September 06 2023
huggingface.co

Total runs: 46.2K
Run Growth: -52.5K
Growth Rate: -117.05%
Updated:February 12 2023
huggingface.co

Total runs: 45.8K
Run Growth: 27.2K
Growth Rate: 60.74%
Updated:October 16 2024
huggingface.co

Total runs: 42.4K
Run Growth: 10.6K
Growth Rate: 25.16%
Updated:June 13 2023
huggingface.co

Total runs: 40.5K
Run Growth: -2.1K
Growth Rate: -5.27%
Updated:September 05 2023
huggingface.co

Total runs: 35.9K
Run Growth: -11.7K
Growth Rate: -32.53%
Updated:January 21 2026