AIAny
AI Model2026
Icon for item

LFM2.5-Encoder-350M

A 350M-parameter multilingual bidirectional masked-language encoder with an 8,192-token context window, intended for fine-tuning on classification, token-level tasks, retrieval/reranking and semantic-similarity; optimized for long-context CPU inference and on-device use.

Introduction

Most encoder families trade context length or CPU throughput for size; LFM2.5-Encoder-350M deliberately shifts that tradeoff by delivering a compact (≈354.5M params) masked-language encoder with an 8k-token context and competitive downstream scores, making long-document and multilingual fine-tuning feasible on CPU.

What Sets It Apart
  • Long-context encoder with practical size: provides an 8,192-token context at ~354.5M total parameters, which lets you score or classify long documents in one pass instead of chunking and aggregating.
  • Strong benchmark positioning for its class: ranks 4th in a 17-task supervised evaluation (17-task mean ≈81.02) among 14 compared models, outperforming many models of similar or larger size on multilingual classification and sentence-pair tasks.
  • Architecture and loading semantics: built on the LFM2 hybrid backbone (gated short-convolutions + grouped-query attention) and exposed as a bidirectional encoder (Lfm2BidirectionalModel / Lfm2BidirectionalForMaskedLM); loading requires trust_remote_code=True and the model ships with a large (65,536) vocabulary.
  • Production-oriented performance: designed for CPU and on-device inference with throughput advantages at long sequences; supports Flash Attention 2 for faster GPU performance when available.
Who it's for and trade-offs

Great fit if you need a compact multilingual encoder that: routes or reasons over long documents (8k tokens) without heavy chunking, serves retrieval/reranking or semantic-similarity pipelines, or will be fine-tuned for classification/NER/extractive QA in production-constrained environments (CPU or edge). It is also useful as a backbone for late-interaction retrievers or for token-level masked-diffusion style generation.

Look elsewhere if you need an off-the-shelf dense embedding model (this is a masked LM encoder that requires a downstream head for embeddings), if you require causal/decoder-style generation out of the box, or if you depend on a permissive open-source license (this model uses the LFM Open License v1.0). Also note that using the provided code interfaces requires trust_remote_code=True in transformers and some deployment optimizations (Flash Attention) are optional but recommended for best GPU throughput.

Information

Categories

More Items

Hugging Face
AI Model2026

Provides a 750-billion-parameter multilingual Mixture-of-Experts (MoE) foundation language model optimized for long-context understanding, agentic workflows, and instruction following. Key features include a 262,144-token context window, speculative decoding (MTP/DSpark), 37B active parameters, 10-language support, and an Apache-2.0 license.

Hugging Face
AI Model2026

Provides ComfyUI-ready INT8 MiniMax‑H3 checkpoints (conditioning encoder plus optional generation tail) for a Heretic-edited Qwen3‑VL‑32B source; preserves the vision tower in BF16 and uses row-wise ConvRot INT8 quantization to reduce VRAM needs for ~32GB GPUs. Not a full Transformers generation repository.

Hugging Face
AI Model2026

27B multimodal reasoning model built on Qwen3.5-27B that preserves the base model's native multi-token-prediction head, full vision tower, and a 1,048,576-token YaRN context window. Designed for agentic tool use, long-context reasoning, and research deployments; released under Apache-2.0.