Model reference · open weights

meta-encoder

Embeddings facebook Embeddings 2 builds Licence not stated 5 dl/mo

meta-encoder is an open-weight embedding model from Meta. meta-encoder (BF16) weighs 59.6 GB; the smallest configuration that runs it is H100 80 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • meta-encoder is a 28.4B parameter feature extraction model developed by Meta.
  • It supports a context length of 131072 tokens and processes text, images, and video.
  • The model is designed for encoding, retrieval, and decision tasks.

Summary of the facebook/meta-encoder-v1 model card, 2026-11-13. The estimate below is for another build of the family.

What it is

Released byMeta
Released2026-11-12
Parameters28.4B
VRAM59.6 GB for the weights

What it runs on

Memory and cards for meta-encoder (BF16)

59.6 GBweights, file size
1.1 GBruntime overhead
CardRunsMemory
RTX 3060 12 GB … L40S 48 GBdoes not fit
A100 80 GBfits78.2 GB
H100 80 GBfits78.1 GB
RTX PRO 6000 Blackwell 96 GBfits93.8 GB
DGX Spark (GB10) 128 GB unifiedfits107 GB
H200 141 GBfits138 GB
B200 180 GBfits176 GB

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
meta-encoder-v1 ↗ 28.4BBF16 57.0 GBH100 80 GB
meta-encoder (above) ↗ 29.8BBF16 59.6 GBH100 80 GB

From the model card

What Meta says about meta-encoder

Read the model card

Usage

Requires transformers>=5.15 (the first release with muse_glimmer); see requirements.txt. One 80 GB GPU holds the model in bf16.

from modeling_metaencoder import MetaEncoder

model = MetaEncoder.from_pretrained("facebook/meta-encoder-v1")

MetaEncoder has three calls. Callers pass content and task descriptions; the wrapper writes every prompt itself, in the layout the encoder was trained on (see Prompt formatting).

CallUse it toReturns
encode(inputs, instruction=None)embed inputs to store, cluster or compare(n, 6656) float32 tensor, L2-normalised
retrieve(query, corpus, top_k=None, query_instruction=None, corpus_instruction=None)rank a corpus against a querylist[Hit], best first
decide(state, questions, images=None, video=None)answer Jev-style questions about a stateJev answers with probabilities

Inputs

encode and retrieve take items. An item is a string, a PIL image, or a dict with any of text, image, images, video (a list of frames) and instruction. The instruction says what the embedding is for, e.g. "Represent the given image." or "Find a document image that matches the given query."; the same input embeds differently under different instructions, and queries and documents usually take different ones.

1. Encode

from PIL import Image

docs = model.encode([{"image": Image.open("chart.png")}, {"image": Image.open("slide.png")}],
                    instruction="Understand the content of the provided document image.")
MetaEncoder.similarity(docs, docs)   # cosine similarity matrix

inputs is one item or a list of them; instruction applies to the items that carry none of their own.

2. Retrieve

hits = model.retrieve("Which quarter had the highest revenue?", docs, top_k=1,
                      query_instruction="Find a document image that matches the given query.")
hits[0].index, hits[0].score, hits[0].item   # position in the corpus, cosine similarity, the corpus item

corpus is a list of items, or the tensor encode returned for them: encode a large corpus once and search the tensor repeatedly.

3. Decide

decide takes a Jev decision request, a state and named questions, and answers each question:

result = model.decide(
    {"query": "used iphone 15"},
    {
        "shopping": {"type": "noul", "instructions": "Is the user shopping for a product?"},
        "topic": {"type": "choice", "instructions": "Which topic is the query about?",
                  "criteria": {"electronics": "", "food": "", "travel": "", "other": ""}},
        "intent": {"type": "score", "instructions": "How strong is the purchase intent?",
                   "criteria": ["none", "weak", "moderate", "strong"]},
    },
)
result["questions"]["shopping"]   # {"value": True, "probabilities": {"false": 0.016, "true": 0.984},
                                  #  "confidence": 0.881, "scores": {...}}
result["questions"]["topic"]["value"], result["questions"]["intent"]["value"]   # "electronics", 1.89
  • state: what the questions are about. A string, or any JSON value (an object of fields, a list of records).
  • images, video: the state's media: a PIL image or a list of them, and a list of video frames.
  • questions: {name: {"type", "instructions", "criteria"}}, with instructions the question itself:
typecriteriavalueprobabilities keys
nouloptional {"true": ..., "false": ...} descriptionsTrue / False"false", "true"
choice{option: description}, 2 to 26 options; descriptions may be emptythe chosen optionthe options
scorethe ordered list of level labels, e.g. ["none", "weak", "strong"]expected level index (float)"0" .. "n-1"

Each answer also has confidence (1 minus the normalised entropy of probabilities) and scores (the raw cosine similarities). Questions are answered independently; for a question that only applies given another's answer, decide the first and ignore the second as needed.

decide_batch(states, questions, images=None, video=None) answers the same questions for many states (one images / video entry per state).

Probabilities are softmax(score / 0.02), the contrastive training temperature. To fit the temperature to your data, decide a labelled set and call model.calibrate(answers, labels) with the per-question answers (result["questions"][name]) and their correct keys (the option, True/False, or the level index); later decide calls use the fitted temperature.

Prompt formatting

The wrapper formats every input as in training, so callers never write prompts:

  • System turn (chat_template.jinja): the fixed header ending in "Represent the user's input.", then the item's instruction after a blank line when it has one. The date line is fixed, so an input embeds the same on any day.
  • User turn: images and video frames first, then the text. Images keep their native resolution, snapped to a 28-pixel grid, up to 4096 merged tokens. Video is encoded frame by frame; more than 8 frames are subsampled uniformly to 8, as in training.
  • Pooling: the last position, the user turn's ``, with left padding. Inputs are never truncated (that would drop the pooled token); training sequences were at most 16,384 tokens.

decide turns each question into a closed-set decision row of training, scored as retrieval over its options:

PartRendered as
query textthe state, a blank line, Task: {instructions}, then the options: Options: a, b, c, or one - option per line when an option is long or punctuated
statea string as is; a JSON value with json.dumps
query instruction"Read the task definition and select the option it calls for." for a string state; "Answer the question about the scenario by selecting the

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms