HuggingFace Optimum
Fields
engines/hf-optimumNotes
COMPUTE-BOUND at batch 1 for a BERT-size encoder, same as every other encoder here: a bidirectional single-pass encoder with no KV cache and no autoregressive streaming runs dense GEMM, so it wants FLOPS, not bandwidth - the inverse of an LLM decode part. The reason this matters for Optimum specifically is that Optimum is where the hardware target gets CHOSEN. A retrieval team that exports a 300M encoder to ONNX and lands it on an ONNX Runtime CPU provider gets compute-bound behaviour on cores; the same ONNX graph on a CUDA provider gets compute-bound behaviour on tensor cores. In both cases the arithmetic intensity is high and the weight read is amortized across the batch, so a bandwidth-limited accelerator is a poor fit for the workload regardless of which backend name appears in the install command - and conversely a modest GPU with strong low-precision throughput will beat a bandwidth monster at this task. The second point Optimum makes is about the NPU-class entries in its table (Ryzen AI NPU, Gaudi, Inferentia, Trainium, Furiosa): those are compute-rich, bandwidth-poor devices, which is structurally the RIGHT shape for a compute-bound encoder and the wrong shape for LLM decode. So a NPU that would be a poor decode part can be a good embedding part, and this is the clearest place in the repo to state the inversion as an actionable purchasing rule. Can serve: whatever Transformers or Sentence-Transformers can load, exported to ONNX or OpenVINO - so dense bi-encoders, cross-encoder rerankers, sparse encoders and CLIP-family multimodal encoders all export cleanly, and late-interaction encoders export but the MaxSim index is still the caller's problem. Cannot serve: generative token-by-token decoding on most backends (TensorRT-LLM extra exists but that is a different engine); and nothing here serves late-interaction retrieval end to end. Confidence 0.78: the accelerator-extras table is quoted directly from the README and the repo metadata is verified, but the per-backend quality and speed for encoders is not documented anywhere in the project, so those are characterised rather than claimed. ||| MAINTENANCE (dated fact, GitHub API, 2026-10-04): last commit 2026-09-24 (0.3 months before this record), latest release v2.3.0 published 2026-08-04, 170 contributors (distinct committers including anonymous), open_issues_count 302 (issues PLUS pull requests - see [[ev-github-open-issues-count-includes-pull-requests]]), not archived, 3498 stars. See [[ev-maintenance-status-is-four-dated-facts]] for how to read this fact set.
Cross-references
This record references no other records — it is a leaf. It is cited by 24.