Skip to content
Blogs
Hugging Face logo

Hugging Face

Engineering blog · huggingface.co/blog

149posts0this week0watchers

Feature trails

60
Feature trailActive

Agent Model Routing Optimization

LLMON (LLM Object Notation) is an LLM-native markup language designed to explicitly communicate structure and semantics to Large Language Models. It uses semantically coherent tags wrapped in special-token delimiters to represent data schemas, instructions, and constraints. This approach aims to improve model robustness, particularly against prompt injection attacks, by clearly separating instructions from data. LLMON models, derived from Granite 4.1, are trained to consume and generate LLMON-marked text, offering improved reliability and control over model outputs. The release includes experimental preview models, a GitHub repository with a toolkit, and conversion tools for existing JSON data. LLMON complements chat templates by providing finer-grained control over component meaning and relationships within a conversation turn.

4 posts · 2026

Timeline

Feature trailActive

Mixture of Experts (MoE) Models

Hugging Face supports Mixture of Experts (MoE) models, enabling more efficient and scalable large language models by selectively activating expert sub-networks for different inputs. This capability allows for models with a vast number of parameters that can be trained and served with significantly reduced computational cost compared to dense models of equivalent size. The DeepSeek-R1 model is highlighted as an example of a large MoE model available on the Hub. This post introduces Olmo-core, and HOPE (Higher-Order Pruning of Experts) for optimizing MoE models by identifying and removing redundant experts based on pairwise interactions, significantly reducing memory footprint with minimal performance degradation.

5 posts · 2025–2026

Timeline

20252026
Feature trailActive

Model Integration Contracts

Hugging Face is developing and promoting Model Integration Contracts (MICs) as a standard for packaging tests for model integration within the Transformers library. MICs consist of a shrunk model fixture, a runnable usage path (e.g., text generation, training step), and recorded baselines. This system aims to catch regressions early in the development cycle by running fast integration tests on these fixtures, complementing full integration tests. The process involves shrinking model configurations, preserving preprocessing, building and validating weights (random or overfit), and recording repeatable outputs. Agents are being used to automate MIC creation and expand coverage across model families.

1 post · 2026

Timeline

Feature trailActive

Sentence Transformers for Playlist Generation

Hugging Face supports Sentence Transformers for multimodal embedding and reranker tasks. This includes models for sentence similarity and sentence embedding generation. The library also supports training and fine-tuning of these models. The focus is on enabling efficient and high-quality sentence representation for various downstream applications.

14 posts · 2022–2026

Timeline

20222026
Feature trailActive

Ai Ml

Hugging Face now supports specialized multimodal models, including the LFM3 (Large Foundation Model 3) family, which offers a 70B parameter model with a 128k context window. This enables advanced capabilities in multimodal reasoning, allowing for the creation of specialized models for tasks like visual question answering, image captioning, and complex multimodal reasoning. The LFM3 models are designed for efficient fine-tuning and deployment, making them accessible for a wide range of applications. This post introduces Palette, a system that fine-tunes a 20B model to build slide decks according to a specific design language, trained on synthetic data and checked by a harness. It splits the task into a designer role for editorial judgment and a coder role for geometry, using LoRA adapters and generating synthetic data with reasoning. A check-and-repair harness ensures the final output is free of rendering errors.

2 posts · 2026

Timeline

Feature trailActive

Specialized SLM Vocabularies

Hugging Face is developing and promoting techniques for specializing the vocabulary of Small Language Models (SLMs) to reduce inference costs. This involves creating domain-specific tokenizers that prioritize cost-effectiveness over raw frequency, leading to significant reductions in token count and computational expense, particularly in the generation phase. The VocabX method is introduced as a way to achieve this specialization by considering the cost of tokens in different parts of the inference process (input vs. output) and controlling vocabulary size.

1 post · 2026

Timeline

Feature trailActive

Agent Memory Calibration

Hugging Face now supports agent memory calibration, allowing agents to learn from their past trajectories by distilling reusable guidelines and injecting them back at inference time. This capability is crucial for optimizing agent performance and cost, as the optimal 'dose' of memory varies significantly based on the model's capability tier. Different strategies, such as providing the full guideline set to strong models or using curated retrieval for weaker models, are supported to maximize task performance. This post introduces a method for using database grading as a reward signal for post-training agents, significantly improving their dependability and repeatable success on tasks involving database interactions. The approach involves identifying policy-relative difficulty in tasks to curate effective training pools and leveraging executable checks of terminal database states as reward functions.

5 posts · 2026

Timeline

Feature trailActive

Long Context Window Models

Hugging Face now supports models with extremely long context windows, enabling agents to process and utilize significantly larger amounts of text. This includes advancements in model architecture and efficiency to handle million-token contexts, making them practical for complex tasks. GLM-5.2 introduces a 753B parameter model specifically built for long-horizon tasks, demonstrating significant improvements in handling extended contexts for generation and reasoning. The Mellum2-12B model from Jet This post introduces StateBench, a benchmark for evaluating language models' ability to track state changes over long documents. It categorizes state tracking into four levels of difficulty: R-trivial (immutable assignment), Aperiodic (reassignment by value), Soluble (self-referential updates), and General finite (assignment by reference). The benchmark reveals that while frontier models like Gemini 3.8 Flash, Claude Opus 5.5, and GPT-6 Sol and Luna perform well on simpler tasks, they struggle with harder state tracking as input length increases. Recurrent and hybrid architectures, particularly Gated DeltaNet, show superior generalization on soluble and general finite problems, especially when trained directly on the task, suggesting architectural advantages for complex state tracking over pure transformers.

10 posts · 2024–2026

Timeline

20242026
Feature trailActive

Cluster Resource Optimization

Hugging Face is developing capabilities to optimize resource utilization within compute clusters. This involves analyzing and modifying the order of operations or job scheduling to achieve higher throughput and efficiency. The goal is to maximize the effective utilization of existing infrastructure by identifying and addressing bottlenecks related to execution order. This post details the implementation of a hierarchical fair-share scheduler with GPU time budgets to prioritize high-impact research while maintaining full occupancy, shifting resource allocation from a case-by-case operational task to a transparent administrative budgeting process.

2 posts · 2026

Timeline

Feature trailActive

LoRA for Stable Diffusion Fine-Tuning

Hugging Face now supports LoRA for efficient fine-tuning of Stable Diffusion models, specifically demonstrating its application with Japanese Stable Diffusion. LoRA significantly reduces the number of trainable parameters by injecting small, trainable rank-decomposition matrices into the layers of a pre-trained model. This allows for faster training, smaller model checkpoints, and easier experimentation with different fine-tuning tasks, such as creating custom image generation models. This post also details Dreambooth, a technique for personalizing diffusion models by fine-tuning them on a small set of images of a specific subject or style, enabling the generation of novel images featuring that subject or style. The integration with the Diffusers library streamlines this process, allowing users to train and generate images with their custom subjects.

3 posts · 2023–2026

Timeline

20232026
Feature trailActive

Parameter-Efficient Fine-Tuning (PEFT)

Hugging Face continues to expand its support for parameter-efficient fine-tuning (PEFT) techniques. This post details the creation of a 2.8 trillion token corpus for Indic languages and an open, GPU-accelerated data generation pipeline. The pipeline allows for translation, quality assessment, and repair of English source documents into 22 Indian languages, including native-script and romanized variants. This corpus and pipeline are intended to significantly boost the availability of training data for Indic language models, complementing existing efforts like Sangraha and enabling further research and development in the field. The data generation recipe is shared openly for community adaptation and expansion. Continued pretraining on a subset of this corpus has been applied to Nemotron 3.5 Super VL.

8 posts · 2023–2026

Timeline

20232026
Feature trailActive

Tabular Foundation Models

NVIDIA Kumo Relational is a pre-trained relational foundation model that makes predictions directly on enterprise databases. Given a predictive query, it gathers up to 10,000 historical examples as context and predicts outcomes such as churn, demand, or fraud in a single forward pass. It needs no task-specific training, no feature engineering, and no flattening of tables. Kumo Relational is the first few-shot foundation model to outperform supervised machine learning on common relational benchmarks. Across 41 tasks on 15 databases, it beats supervised relational deep learning models and expert-engineered gradient-boosted tree pipelines, and on the SAP SALT enterprise benchmark it surpasses AutoGluon ensembles by 8% in mean reciprocal rank (MRR). It scales to databases with 500B+ rows and works for humans and agents alike, through NVIDIA's open-source, GPU-native structured-data-models library or as an NVIDIA NIM.

1 post · 2026

Timeline

Feature trailActive

Local Computer Use Agents

Hugging Face now supports local computer use agents, enabling agents to run directly on a user's machine for faster and more private interactions. This capability focuses on bringing AI agent functionality to the edge, reducing reliance on cloud infrastructure and improving responsiveness. The LFM2.5-24B-A2B model is highlighted as a 24B-parameter reasoning model with only 2B active parameters per token, enabling efficient on-device agent execution with competitive performance on agentic and tool-use tasks.

3 posts · 2026

Timeline

Feature trailActive

Hugging Face Inference Endpoints

Hugging Face Inference Endpoints provide a managed service for deploying machine learning models directly from the Hugging Face Hub to cloud infrastructure. The service supports public, protected, and private endpoints, offering options for authentication and network isolation. It integrates with cloud providers like AWS for deployment and allows for autoscaling and custom container deployments. The platform also provides analytics and logging for deployed endpoints. This post introduces LFM2.5-VL-DSpark, a vision-language model optimized for efficient inference on Hugging Face Inference Endpoints, demonstrating significant performance gains through architectural improvements and specialized optimizations for the DSpark inference engine.

9 posts · 2024–2026

Timeline

20242026
Feature trailActive

Tokenizer Performance Improvements

The tokenizers library has undergone a significant refactor for version 1, focusing on performance improvements to address tokenization becoming a bottleneck in ML workflows. Key changes include a workspace split for modularity, a no-alloc merge working set, the use of bitstreams and SIMD instructions (bitcannon) for faster splitting instead of regex, a rewrite of the merge loop using intrusive linked lists and batch processing, a thread-local word cache for repeated words, and native parallelism allowing multiple threads to encode concurrently. These optimizations aim to significantly reduce tokenization latency and improve scaling.

1 post · 2026

Timeline

Feature trailActive

Universal Image Segmentation

Hugging Face now supports universal image segmentation with Mask2Former and OneFormer, enabling users to segment images into objects, instances, or scenes using a unified approach. This capability leverages advanced transformer architectures to handle diverse segmentation tasks efficiently. The post details the technical implementation of OneFormer, a unified framework for universal image segmentation, highlighting its architecture and performance on various segmentation tasks. This post introduces Falcon Perception, a 0.6B-parameter early-fusion Transformer for open-vocabulary grounding and segmentation from natural language prompts, and Falcon OCR, a 0.3B-parameter model for document understanding. Falcon Perception processes image patches + text in one sequence using a hybrid attention mask, and produces variable numbers of instances with a small, structured token interface and lightweight output heads. On SA-Co, Falcon Perception reaches 68.0 Macro-F1 (vs. 62.3 for SAM 3) with the main remaining gap being presence calibration (MCC 0.64 vs. 0.82). PBench, a diagnostic benchmark, breaks down performance by capability and by dense long-context crowded scenes. Falcon OCR reaches a score of 80.3 and 88.6 on the olmOCR benchmark and OmniDocBench respectively, while having the highest throughput of any open source OCR model. The post also discusses the architecture, training recipe (multi-teacher distillation, large-scale data), and inference optimizations (paged inference engine, Docker and MLX integration for Falcon-OCR).

2 posts · 2024–2026

Timeline

20242026
Feature trailActive

AI Workflow Orchestration with Gradio

Hugging Face now supports interactive world generation for AI, enabling the creation of higher-fidelity interactive worlds for everyday GPUs. This capability leverages advanced models to generate complex and responsive environments, enhancing the possibilities for AI-driven simulations and applications. The Gradio Workflow feature has been extended to allow users to build complex, multi-model pipelines as single workflow canvases, integrating various media pipelines like text-to-image, image-to-

4 posts · 2025–2026

Timeline

20252026
Feature trailActive

Model Evaluation and Benchmarking

The Open TTS Leaderboard provides a scalable and objective evaluation framework for multilingual text-to-speech (TTS) and voice cloning models. It complements human preference scores by using objective metrics like Word Error Rate (WER) for intelligibility, inverse real-time factor (RTFx) and time-to-first-audio (TTFA) for speed, and speaker similarity (SIM) for voice identity preservation. The leaderboard allows for comparison across languages and supports voice cloning evaluation, with a 'Listen' tab for direct comparison of model outputs and a 'Streaming' tab for interactive application performance. Community feedback is encouraged to shape future evaluations.

6 posts · 2026

Timeline

Feature trailActive

CLI for AI Agents

The Hugging Face CLI (`hf`) has been re-architected to optimize for both human and AI agent usage, including agent-specific output formats, next-command hints, non-blocking operations, and discoverable commands. The Agentic Resource Discovery (ARD) specification is introduced as a discovery layer for agents to find capabilities at runtime. Hugging Face's Discover Tool implements ARD, providing search access to Skills, ML applications, and MCP Servers. The Hub's existing semantic search is leveraged for agentic workflows. This post introduces ProvenanceGuard, a source-aware verification layer for MCP agents that ensures claims are attributed to the correct source, preventing cross-source conflation. It breaks down agent answers into claims, identifies relevant sources, verifies support, checks attribution, and can trigger a repair loop for blocked answers. The system uses local models for verification and can be adapted for cloud services.

14 posts · 2024–2026

Timeline

20242026
Feature trailActive

Distributed Training Abstraction

Hugging Face offers multiple levels of abstraction for distributed training, from native PyTorch DDP to the flexible 🤗 Accelerate library and the high-level 🤗 Trainer API. This post details how to leverage these tools for efficient distributed training, including single-GPU, multi-GPU, and multi-node setups, and introduces the concept of distributed training and its importance for scaling model training. This post specifically details how to train a language model using Megatron-LM, a framework for distributed training, and introduces techniques for optimizing inference speed. The focus is on achieving high throughput and enabling the execution of very large models by offloading parameters to the CPU.

2 posts · 2022–2026

Timeline

20222026
Feature trailActive

Bloom Inference Optimization

Hugging Face now supports BLOOM model inference optimization, leveraging DeepSpeed and Accelerate for incredibly fast inference. This builds upon existing efforts in large language model development and optimization, enabling efficient training and deployment of very large models. This post specifically details how to train a language model using Megatron-LM, a framework for distributed training, and introduces techniques for optimizing inference speed. The focus is on achieving high throughput and efficient resource utilization for BLOOM.

6 posts · 2023–2026

Timeline

20232026
Feature trailActive

Hardware Acceleration for ML Training

Hugging Face continues to explore hardware acceleration for ML training and inference, with a focus on optimizing diffusion models. This post details the integration of Nunchaku 4-bit diffusion inference with the Diffusers library, enabling faster and more memory-efficient image generation on consumer hardware. This builds upon existing efforts in hardware acceleration and diffusion model optimization.

1 post · 2022–2026

Timeline

20222026
Feature trailActive

DeepSpeed Large Model Training Acceleration

Hugging Face offers multiple levels of abstraction for distributed training, from native PyTorch DDP to the flexible 🤗 Accelerate library and the high-level 🤗 Trainer API. This post introduces Delta Weight Sync for TRL, a technique that leverages weight update sparsity to significantly reduce communication overhead in distributed reinforcement learning, enabling the efficient training of trillion-parameter models by only synchronizing sparse weight deltas instead of full model weights.

5 posts · 2022–2026

Timeline

20222026
Feature trailActive

Multilingual OCR

Hugging Face now supports PP-OCRv6, a highly accurate and efficient Optical Character Recognition (OCR) system capable of processing 50 languages. This system offers a range of model sizes, from 1.5 million to 34.5 million parameters, allowing for flexible deployment based on performance and resource constraints. The integration includes support for ONNX Runtime CPU backend for efficient inference. This post introduces the Dharma-AI/Dharma-OCR-LITE model, a 4B parameter image-text-to-text model, and demonstrates the integration of PaddleOCR 3.5 with the Transformers backend for OCR and document parsing tasks.

4 posts · 2026

Timeline

Feature trailActive

8-bit Matrix Multiplication for Large Models

Hugging Face integrates 8-bit matrix multiplication (LLM.int8()) into its Transformers library, significantly reducing memory usage for large language models with minimal performance degradation. This enables running larger models on less hardware, making them more accessible for inference and fine-tuning. The integration leverages the bitsandbytes library and is supported by the Accelerate library for seamless usage across different hardware configurations. This post introduces Quantization-Aware Healing, a compressed, 4-bit model that outperforms its full-precision original, demonstrating further advancements in model compression and performance.

2 posts · 2022–2026

Timeline

20222026
Feature trailActive

Robot Manipulation Data Recording System

Hugging Face now supports Grabette, an open system for recording robot-manipulation data, enabling the conversion of Grabette recordings into LeRobot datasets. This facilitates the development and analysis of robot manipulation tasks. The system has been extended to allow users to use Strands Agents and LeRobot to deploy models from the Hugging Face Hub to robot hardware, enabling real-time control and interaction. The new v0.6.0 release of LeRobot introduces Robometer-4B, a 4B parameter model for on-device inference, and SmolVLM-Base, a 2B parameter image-text-to-text model, enabling efficient AI on embedded platforms. This post details the integration of these models and optimizations for on-device performance.

5 posts · 2024–2026

Timeline

20242026
Feature trailActive

Interactive World Generation for AI

Hugging Face now supports interactive world generation for AI, enabling the creation of higher-fidelity interactive worlds for everyday GPUs. This capability leverages advanced models to generate complex and responsive environments, enhancing the possibilities for AI-driven simulations and applications. The Gradio Workflow feature has been extended to allow users to build complex, multi-model pipelines as single workflow canvases, integrating various media pipelines like text-to-image, image-to-image, and text-to-audio. The Waypoint-1.5-1B model represents a significant step forward in achieving higher fidelity and interactivity in generated worlds.

1 post · 2026

Timeline

Feature trailActive

Diffusers Library Updates

Hugging Face supports diffusion models for image generation. This post details the implementation of Modular Diffusers, allowing users to create custom diffusion workflows by combining different components like schedulers, UNets, and VAEs. The introduction of 'Overworld/Waypoint-1-Small' as a 2.3B parameter model further expands the available options for users, enabling real-time interactive video diffusion with low latency on consumer hardware via the WorldEngine inference library. This post also introduces FLUX.3 Image Klein, a new model that supports text-to-image, multi-reference image-to-image, and layout control via bounding boxes, with distilled checkpoints for fast inference and LoRA finetuning scripts.

12 posts · 2023–2026

Timeline

20232026
Feature trailActive

vLLM Inference Engine Migration and Correctness

This post details the migration from vLLM V0 to V1, focusing on ensuring backend correctness for RL training. Key fixes include aligning logprob semantics, managing runtime defaults, handling inflight weight updates, and ensuring fp32 precision for the LM head. This work establishes a stable foundation for RL objectives by eliminating train-inference mismatches.

1 post · 2026

Timeline

Feature trailActive

PyTorch Profiling and Optimization

This post continues the exploration of PyTorch profiling, delving into the optimization of ML model components like nn.Linear and MLPs. It provides technical details on how to analyze and improve the performance of these fundamental building blocks within PyTorch, contributing to more efficient deep learning model development and deployment. This part specifically focuses on profiling attention mechanisms.

2 posts · 2026

Timeline

Feature trailActive

CI/CD Orchestration with Hugging Face Jobs

Hugging Face Jobs provides a robust platform for orchestrating CI/CD workflows, enabling seamless migration from existing CI systems like GitHub Actions. This includes features for dispatching jobs, managing execution environments, and integrating with code repositories. The platform now supports running vLLM servers with a single command, enabling users to spin up private, OpenAI-compatible LLM endpoints on Hugging Face infrastructure without provisioning servers or Kubernetes. This includes fe

1 post · 2026

Timeline

Feature trailActive

LLM Guardrails and Adversarial Robustness

Hugging Face now supports AprielGuard, a guardrail system for LLM safety and adversarial robustness. This system aims to protect modern LLM applications from harmful outputs and adversarial attacks by implementing robust safety mechanisms and improving adversarial resilience. The integration of AprielGuard enhances the security and reliability of LLM deployments. This post introduces Nemotron 3.5 Content Safety, a multimodal safety model that can be customized for enterprise AI, offering advanced capabilities for content moderation and safety.

1 post · 2026

Timeline

Feature trailActive

Speech Synthesis and Recognition

Hugging Face now supports SpeechT5, a versatile model for speech synthesis, recognition, and more. This enables users to perform tasks like text-to-speech, speech-to-text, and speech translation directly within the Hugging Face ecosystem. This post introduces the NVIDIA Nemotron 3.5 Transcribe model, offering multilingual transcription, speaker attribution, translation, and audio Q&A capabilities. It also details the Granary v2 data pipeline and fine-tuning recipes for adapting the model to doma. This post extends this by introducing AnySpeechRecognizer, a Swift package that implements Apple's Speech framework with pluggable recognition engines like NVIDIA's Parakeet and Alibaba's Qwen3-ASR running locally on Core ML, and adds speaker diarization capabilities.

6 posts · 2023–2026

Timeline

20232026
Feature trailActive

Graph Machine Learning

Hugging Face now supports graph machine learning, providing foundational knowledge and techniques for working with graph-structured data. This includes understanding graph representations, pre-neural approaches like feature engineering and centrality measures, and an introduction to Graph Neural Networks (GNNs) with concepts like aggregation and message passing, as well as the over-smoothing problem. The capability also touches upon Graph Transformers and provides resources for further learning.

1 post · 2026

Timeline

Feature trailActive

Continuous Batching Asynchronicity

Hugging Face Inference Endpoints now support asynchronous batching, disentangling CPU batch preparation from GPU computation to maximize GPU utilization and reduce inference latency. This builds upon continuous batching by introducing CUDA streams and events to enable concurrent execution of CPU and GPU workloads, significantly improving throughput and reducing idle time.

1 post · 2026

Timeline

Feature trailActive

Foundation Model Training and Inference on AWS

This post is the first in a series analyzing the building blocks for foundation model training and inference on AWS. It details the layered architecture of open-source software stacks, emphasizing the integration points between AWS infrastructure components (compute, network, storage) and OSS tools like Slurm, Kubernetes, PyTorch, JAX, Prometheus, and Grafana. It highlights the evolution of scaling laws and the convergent infrastructure requirements for pre-training, post-training, and inference.

1 post · 2026

Timeline

Feature trailActive

GPU Management and Optimization

Hugging Face is developing capabilities to optimize GPU utilization, moving beyond simple idle detection to more sophisticated management strategies. This includes exploring concepts like 'grounded aircraft' to represent underutilized resources and developing systems to ensure GPUs are actively contributing to workloads, potentially through intelligent scheduling, resource pooling, or dynamic allocation based on demand. The goal is to maximize the value derived from expensive GPU hardware. This post introduces the analogy of 'grounded aircraft' to describe idle GPUs and discusses the challenges and potential solutions for optimizing their utilization, including the need for intelligent scheduling and dynamic allocation.

1 post · 2026

Timeline

Feature trailActive

Zero-Egress Storage for AI Workloads

Hugging Face now supports zero-egress storage for AI workloads using SkyPilot, enabling users to run AI tasks on any cloud and store data on Hugging Face without incurring egress charges. This capability simplifies cloud-based AI development and deployment by abstracting away complex storage and networking configurations.

1 post · 2026

Timeline

Feature trailActive

WebGPU Kernels for Browser Inference

Hugging Face is building a foundational layer for fast and user-friendly browser inference by releasing `@huggingface/kernels`, a library for loading and running optimized WebGPU kernels from the Hugging Face Hub. This initial release includes 207 kernels covering a wide range of machine learning operations, each published as a versioned package with explicit contracts, correctness tests, and benchmark cases. A browser-based benchmarking suite, Fleet, is also launched to crowdsource performance.

1 post · 2026

Timeline

Feature trailActive

Reinforcement Learning Value-Based Methods

Hugging Face offers a comprehensive Deep Reinforcement Learning Class, covering foundational algorithms like REINFORCE and Actor-Critic methods, with practical applications in robotics simulations. This post details the journey to unlock agentic RL training for GPT-OSS, addressing challenges in MoE log-probability mismatch and attention sink support, and introduces memory-efficient training techniques like mitigating FSDP memory blow-ups and sequence parallel with Flash Attention V3. The work establishes a stable foundation for RL objectives by eliminating train-inference mismatches. This post introduces Decision Transformers, abstracting RL as a conditional-sequence modeling problem using Transformers, and details how to train an offline Decision Transformer from scratch for tasks like making a half-cheetah run, using a custom data collator and the 🤗 Trainer.

7 posts · 2022–2026

Timeline

20222026
Feature trailCooling

Tokenization Abstraction

Hugging Face has introduced a new, more modular, and simplified tokenization system within the Transformers library. This update aims to improve the developer experience by making tokenization more intuitive and easier to integrate into various ML workflows. The new architecture allows for greater flexibility and maintainability of tokenization components. The v5 release further refines this by introducing a clearer API, improved modularity, and enhanced support for custom tokenizers, making it easier to manage and extend tokenization logic.

1 post · 2025

Timeline

20252026
Feature trailCooling

Cross-Origin Storage API for Transformers.js

This post introduces the experimental integration and usage of the Cross-Origin Storage API within Transformers.js. It details how this API enables secure and persistent storage of models and data directly in the browser, overcoming previous limitations of client-side storage for large ML models. The capability now includes practical examples and considerations for leveraging this API to enhance the offline and client-side capabilities of Transformers.js.

1 post · 2025

Timeline

20252026
Feature trailQuiet since 2023

Protein Language Models

Hugging Face now supports protein language models, enabling users to analyze protein sequences using deep learning. This includes models like ProtBERT for understanding protein sequences analogous to NLP models, opening new avenues for research in bioinformatics and computational biology. The platform also supports training and fine-tuning of transformer variants for codon-level language modeling, with CodonRoBERTa-large-v2 showing strong performance in perplexity and correlation metrics. This post details the development of an end-to-end pipeline for protein engineering, including structure prediction (ESMFold), sequence design (ProteinMPNN), and mRNA optimization (CodonRoBERTa-large-v2). The team scaled their codon optimization models to 25 species, trained 4 production models in 55 GPU-hours, and built a species-conditioned system.

1 post · 2023

Timeline

20232026
Feature trailQuiet since 2023

Language Model Bias Evaluation

Hugging Face now supports systematic evaluation and quantification of biases within language models using the 🤗 Evaluate library. This capability aims to provide developers and researchers with tools to identify, understand, and mitigate bias in AI systems, contributing to the development of more equitable and responsible AI. The FairStress benchmark is introduced for measuring demographic fairness beyond the final output, assessing symmetric robustness to adversarial prefixes and identifying hidden asymmetries in model decision-making across various domains.

2 posts · 2023

Timeline

20232026
Feature trailQuiet since 2023

Instruction Following for Dialog Agents

This post details Reinforcement Learning from Human Feedback (RLHF) as a method to align dialog agent behavior with human preferences. It builds upon previous discussions of Instruction Fine-Tuning (IFT) and Supervised Fine-Tuning (SFT) by detailing the practical application and understanding of RLHF, including the use of preference datasets and reward modeling to guide agent responses towards helpfulness and safety. The post likely provides concrete examples or code snippets demonstrating how to implement RLHF for dialog agents.

2 posts · 2023

Timeline

20232026
Feature trailQuiet since 2023

IPU-Ready Transformers Optimization

Hugging Face Optimum integrates with Intel IPUs, offering optimized performance for a range of Transformer models across computer vision, NLP, and speech. This partnership expands the hardware acceleration options for users, enabling efficient training and inference on Graphcore's specialized hardware. The latest update includes support for new models and leverages Graphcore's Bow IPU and Poplar SDK for enhanced performance and power efficiency without code changes.

3 posts · 2022–2023

Timeline

20222026
Feature trailQuiet since 2022

Zero-Shot Image Segmentation with CLIPSeg

Hugging Face now supports zero-shot image segmentation using CLIPSeg, enabling users to segment images based on natural language prompts without requiring task-specific training data. This capability leverages the CLIP model for image-text understanding and a segmentation decoder to generate masks. The integration allows for flexible and intuitive image segmentation applications.

1 post · 2022

Timeline

20222026
Feature trailQuiet since 2022

Probabilistic Time Series Forecasting with Transformers

Hugging Face Transformers now supports probabilistic time series forecasting using the Time Series Transformer model. This enables global probabilistic modeling, allowing for the prediction of future values along with their uncertainties. The implementation leverages the Encoder-Decoder Transformer architecture, handling sequential data, missing values, and offering ancestral sampling for forecasting. The post details the setup, data loading, model definition, training, and inference processes u. This post introduces an ensemble forecasting system using IBM Granite time-series models, combining multiple architectures (PatchTST-FM-r1, PatchTST-FM-r2, FlowState-r1.1, TTM-r3) to produce probabilistic and adaptive IQR forecasts. The ensemble provides a default recipe with fixed weights and an alternative adaptive weighting scheme based on forecast spread, aiming to improve forecast accuracy and reduce model selection guesswork.

2 posts · 2022

Timeline

20222026
Feature trailQuiet since 2022

Serialization and Versioning for ML Models

Skops is a new library for saving and loading scikit-learn models, ensuring version compatibility and providing a standardized way to share models. It addresses the challenges of model serialization by offering a robust and flexible solution that can be extended to other ML frameworks.

1 post · 2022

Timeline

20222026
Feature trailQuiet since 2022

Homomorphic Encryption for Sentiment Analysis

Hugging Face now supports sentiment analysis on encrypted data using fully homomorphic encryption (FHE), enabling privacy-preserving machine learning applications. This capability allows for secure analysis of sensitive data without decryption. The integration with Zama's FHE library enables sentiment analysis on encrypted tweets, demonstrating the practical application of FHE for privacy-preserving NLP.

1 post · 2022

Timeline

20222026
Feature trailQuiet since 2022

Contrastive Search for Text Generation

Introduced Contrastive Search, a novel decoding method for neural text generation that jointly optimizes for model confidence and a degeneration penalty. This method aims to produce human-level text by avoiding issues like repetition and semantic incoherence found in traditional greedy, beam, top-k, and nucleus sampling methods. It is integrated into the 🤗 Transformers library and demonstrated with examples and a live demo.

1 post · 2022

Timeline

20222026
Feature trailQuiet since 2022

TensorFlow Integration and Philosophy

This post outlines Hugging Face's philosophy for integrating TensorFlow models, emphasizing the use of Keras Model and Layer objects, default loss functions, flexible labels, simplified data pipelines, XLA optimization, and the importance of deployment. It details how `transformers` leverages Keras's `fit()`, `compile()`, and `predict()` methods, and provides examples of creating hybrid models and handling transfer learning with tokenizers. The post also touches upon XLA for performance gains and the importance of community contributions.

1 post · 2022

Timeline

20222026
Feature trailQuiet since 2022

Kubernetes Deployment of Vision Transformers with TF Serving

Hugging Face now supports deploying Vision Transformer (ViT) models on Google Cloud's Vertex AI platform, offering a scalable and managed solution for ML model serving. This builds upon previous posts detailing local deployment and Kubernetes deployment, providing a streamlined workflow with less code. Vertex AI offers features like autoscaling, model versioning, traffic splitting, rate limiting, and monitoring. The integration leverages pre-built TensorFlow serving containers and the `google-cl`, and also supports local deployment of TensorFlow Vision Models using TensorFlow Serving, exposing them as REST or gRPC endpoints with features like model warmup and server-side batching.

1 post · 2022

Timeline

20222026
Feature trailQuiet since 2022

Proximal Policy Optimization (PPO)

Hugging Face now supports Proximal Policy Optimization (PPO), an algorithm that improves training stability in deep reinforcement learning by limiting the magnitude of policy updates. This is achieved through a clipped surrogate objective function that prevents overly large steps, ensuring more reliable convergence and avoiding catastrophic policy degradation. The implementation includes detailed explanations of the clipped surrogate objective, ratio calculations, and practical coding examples u

2 posts · 2017–2022

Timeline

20172026
Feature trailQuiet since 2022

TensorFlow XLA Text Generation Optimization

This post introduces optimizations for faster text generation using TensorFlow and XLA. It details how XLA (Accelerated Linear Algebra) can be used to compile TensorFlow models for improved performance, specifically focusing on text generation tasks. The post likely covers the process of enabling XLA compilation and its impact on inference speed and resource utilization for models like those used in text generation.

1 post · 2022

Timeline

20222026
Feature trailQuiet since 2022

Dynamic Model Training with Adversarial Data

This post introduces a method for dynamically training models using adversarial data. It details how to generate adversarial examples and incorporate them into the training loop to improve model robustness and performance. The approach aims to make models more resilient to subtle perturbations in input data, a crucial aspect for real-world applications where data can be noisy or manipulated.

1 post · 2022

Timeline

20222026
Feature trailQuiet since 2022

NLP Pipeline for Inbound Message Classification

Hugging Face now supports specialized models for document field extraction, building upon previous work in OCR and NLP pipelines. The Dharma Field Extractor is a 2-billion-parameter model that can extract specific fields from any document type into structured JSON, outperforming general-purpose LLMs in quality and cost for this task. It supports both open-ended extraction and schema-directed extraction, returning typed fields and handling nested structures. The model is trained on a diverse dataset including English, Brazilian, and multilingual documents.

1 post · 2022

Timeline

20222026
Feature trailQuiet since 2022

Table Pre-training with Synthetic Data

Hugging Face introduces TAPEX, a novel approach to table pre-training that leverages synthetic data generated from SQL queries and their execution results. This method significantly improves efficiency and performance on downstream table-related tasks like question answering and fact verification by learning a neural SQL executor. TAPEX achieves state-of-the-art results with a fraction of the pre-training data compared to previous methods.

1 post · 2022

Timeline

20222026
Feature trailQuiet since 2022

Nyströmformer for Efficient Self-Attention

Introduced Nyströmformer, a method to approximate self-attention in linear time and memory using the Nyström method, enabling more efficient processing of long sequences in transformer models.

1 post · 2022

Timeline

20222026