Content not available.
Katalog Berita & Artikel Interaktif - Halaman 3 (Arsip Berita)
Halaman 3 dari 63 • Total 12586 artikel tersedia dalam direktori berita harian.
Halaman 3 dari 63 • Total 12586 artikel tersedia dalam direktori berita harian.
📅 18 Jun 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 19 Jun 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 20 Jun 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 24 Jun 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 24 Jun 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 25 Jun 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 27 Jun 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 01 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 03 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 08 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 09 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 09 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 10 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 10 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 10 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 11 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 16 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 16 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 18 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 18 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 22 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 23 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 25 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 29 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 30 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 31 Jul 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 06 Aug 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 06 Aug 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 08 Aug 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 12 Aug 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 12 Aug 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 13 Aug 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 14 Aug 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 19 Aug 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 21 Aug 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 22 Aug 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 27 Aug 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 04 Sep 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 13 Sep 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 16 Sep 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 17 Sep 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 18 Sep 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 20 Sep 2024 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 23 Sep 2024 | ⏱️ 4 min read (772 words, 📚 Deep Dive) | Source: Hugging Face
Industry observers note that however, many people may not have fully explored all of the features Daily Papers offers. This article will guide you through some hidden functionalities to help you make the most of this platform.
Recent findings suggest that on the Daily Papers page, you’ll notice author names listed under the title of each paper. If you're one of the authors and have a Hugging Face account, you can claim your paper with a single click! After claiming, the paper will be automatically linked to your account, adding visibility to your research and helping build your personal brand in the community.
This feature makes it easy for the community to connect with you and your work, creating more opportunities for collaboration and interaction.
Sources indicate that the paper submission feature is open to all consumers who’ve claimed a paper. Users don’t have to limit submissions to their own work, they can also share interesting research papers that would benefit the community.
This allows Hugging Face Papers to maintain an up-to-date and ever-expanding collection of research in the AI field, curated by the community!
Sources indicate that under each paper, there is a discussion section where consumers can leave comments and engage in direct conversations with the authors. Tagging the authors (@username) can lead to real-time feedback, questions or discussion of the research.
Industry observers note that this feature fosters interaction, bringing together researchers from the whole community. Everyone, from beginners to experts, can contribute their ideas, making the global AI community even more connected and inclusive.
Whether to ask clarification questions or share constructive feedback, it opens the door to meaningful dialogue and can even spark fresh ideas or collaborations.
On each paper’s page, you’ll find related resources, such as models, datasets, demos and other useful collections, all linked on the right side.
Authors can easily associate their models or datasets with their paper by simply adding the paper's arXiv URL to the README.md file of their resources. This feature allows authors to highlight their work and helps consumers access everything they need in one convenient place.
Industry observers note that you can support the paper by clicking the upvote button in the top-right corner. This allows the community to recommend the paper and support the author's work. The upvote feature highlights influential and innovative research, helping more people discover and focus on excellent papers.
For authors, each upvote acts as a recognition of their efforts and can be a source of motivation to continue producing high-quality research.
Industry observers note that if you type @librarian-bot in the comment section, the system will automatically suggest related papers. This feature is great for those looking to dive deeper into a topic or explore similar ideas. It’s like having a personal AI-powered research assistant!
Industry observers note that at Hugging Face, we value diversity, and that extends to language as well. On the Daily Papers page, consumers can leave comments in any language, and our built-in translation feature will ensure everyone can understand and contribute.
Whether you’re providing feedback, discussing a question, or exchanging ideas, this feature helps break down language barriers, making global collaboration even easier.
This feature makes it easy to browse the latest titles at a glance and jump into any research that catches your eye.
There’s also some cool integration between Paper Pages and arXiv. For example, you can easily check if a paper on arXiv has already been featured on Hugging Face's Daily Papers page. If you spot the familiar emoji 🤗 on the page, you can click it to jump straight to the paper page on Daily Papers and explore all the features mentioned above.
To use the arXiv to HF Paper Pages feature, you'll need to install an extention, which you can find here: https://chromewebstore.google.com/detail/arxiv-to-hf/icfbnjkijgggnhmlikeppnoehoalpcpp.
Sources indicate that on arXiv, you can also check if a paper has a demo hosted on Hugging Face Spaces. If the author has added a link, you can click it to jump directly to the Space and try out the demo yourself!
It has been revealed that we hope this guide helps you make the most of Daily Papers on Hugging Face. By utilizing all these features, you can stay up-to-date with the latest research, engage with authors, and contribute to the growing AI community. Whether you're a researcher, developer or curious beginner, Daily Papers is here to help you connect with the top AI research!
Maybe I'm missing something, but has the "Submit a paper" button disappeared?
It's still there. On the top left of the Daily Papers page, right next to "Daily Papers.".
📅 23 Sep 2024 | ⏱️ 10 min read (1953 words, 📚 Deep Dive) | Source: Hugging Face
According to recent reports, open video datasets are scarce and therefore slowing down the development of open-source video AI. For this reason we built FineVideo, a dataset with 43k videos that span 3.4k hours and are annotated with rich descriptions, narrative details, scene splits, and QA pairs.
FineVideo contains a highly diverse collection of videos and metadata which makes it a good ingredient to train models to understand video content, train diffusion models to generate videos from a text description or train computer vision models using its structured data as input.
It has been revealed that wait, you haven’t seen FineVideo yet? take a look at it through the dataset explorer page.
In this blog post, we share the technical details and code involved in developing FineVideo: a journey that starts with 1.9M videos in YouTube-Commons and ends with 44K videos with all details annotated.
A good way to start is taking a look at the different steps of our journey. Those steps involve content filtering, annotation and output structuring.
In the following sections we discuss each of the steps and provide references to relevant parts of the code. If you prefer to navigate the code directly, take a look at our FineVideo repository on Github.
First, let’s have a look how we got an initial list of YouTube videos and how we apply some first filters.
Recent findings suggest that our journey starts in YouTube-Commons: a collection of audio transcripts of videos shared on YouTube under a CC-By license. Such project was created and is right now maintained by PleIAs as part of their corpus collection projects.
YouTube Commons contain videos and transcripts in a diverse set of languages, our initial task is about narrowing down the content of YouTube Commons to the same language.
We filter YouTube-Commons for videos in English and at the same time we gather relevant metadata. From this initial filtering, we collect 1.9M videos, their closed captions and metadata.
Below some details on the filters and metadata fields that we keep:.
Code for content filtering and metadata gathering available here [link].
Once we had a target video list with 1.9M videos, we managed to successfully download 1.8M videos (some of the videos where removed by the channel owners and some changed their permissions).
We explored two different approaches for distributed downloading.
video2dataset is an open-source project [link] that focuses on distributed video download, transformation and packaging in different dataset formats. The project natively supports Slurm Workload Manager and therefore we could run it in our CPU cluster.
Sources indicate that as all our cluster instances face internet with the same public IP, we contributed to the project the possibility to specify a proxy to facilitate video downloads. While the feature is not yet merged, you can patch video2dataset with our PR [link] to use the proxy capabilities.
We used Google Cloud and AWS to run a custom-made docker container that downloads videos and metadata with ytdlp and pushes the results to S3.
The files to build the Docker container can be found here [code].
While Video2Dataset was functional with a proxy and allowed us to do additional processing steps, the requests / second we could do to the proxy became a bottleneck. This made us pivot towards cloud batch jobs.
Recent findings suggest that in our search for the best videos, we narrowed down our selection to content where there is both visual action and people speaking at a mid-fast pace. We achieve this with word density filtering and visual dynamism filtering.
We took the density of words in the video as a proxy of audio dynamism. The definition of word density being:.
Word density = Number of words in closed captions / Total video length in seconds.
By sampling and visually evaluating the quality of the content at different density thresholds, we decided to remove all videos with a word density lower than 0.5 words/second.
The code to filter by word density and explore examples can be found here [link].
We repurposed FFMPEG’s Freezedetect filter to judge the dynamism of the video. While this filter is designed to identify frozen sections of a video (multiple equal frames placed one after the other), we could also identify chunks with low movement by exaggerating the noise parameter to a very high value.
Industry observers note that rather than running freezedetect across the full video, we analyzed the video by temporal segments and we voted if the video was static based on the amount of segments categorized as static. Through manual evaluation we set a threshold to discard the video if 40% of the segments analyzed have low movement.
Some types of content discarded after this filtering:.
The DockerFile and code to classify video by its dynamism can be found here [link].
Sources indicate that from the 1.8M videos analyzed, after this step we keep 600K dynamic videos. At this stage, we dig deeper into the content of the videos, which will be key to ensure diversity in the dataset.
In a recent development, in order to achieve the most diverse content selection, we categorized the 600K filtered assets using the closed captioning and YouTube metadata. As a way to gain control on the categorization, we created a taxonomy and guided the annotation process to adhere to the taxonomy.
Industry observers note that we bootstrapped the custom built taxonomy using GPT4-o and an information scientist reviewed and adjusted it. The taxonomy contains 126 fine categories aggregated in multiple levels. This multi-level approach allow people of FineVideo to slice the dataset to fit their particular use-case.
The taxonomy is also available in JSON [link].
With an initial version of the taxonomy we started content annotation and by looking at the results of content annotation, with the help of an information scientist, we adjusted the taxonomy accordingly.
We categorized the videos using Llama 3.1 70B served through Text Generation Inference TGI [code].
Sources indicate that the prompt required multiple iterations to ensure the answer is strictly a category in our taxonomy. During our prompt evaluation we learned that by removing the existing YouTube tags and categories from the prompt, the quality of our results increased drastically: YouTube metadata was biasing the text generated by Llama 3.1 towards one of the categories provided by YouTube.
Sources indicate that using LLMs to categorize content stresses the need to adjust taxonomies from months / years to hours. Furthermore, in some cases, we created categories specifically to discard sensitive videos such as the ones falling under Firearms & Weapons and Substance Use & Drugs.
At this point of the process, we have three sources of video level metadata:.
Recent findings suggest that in order to contribute in the field of video understanding, we decided to go deeper into timecode-level metadata, for example activities, objects, narrative and editing aspects. While human annotation was something we considered as part of active learning setup where one or more models propose annotations and the human does a QA step, as we will discuss in the next sections, we found in Gemini a good solution especially when we constrained the input video length and the output format.
We dig deeper into Gemini 1.5 Pro iterating our prompt and testing it with different content length.
Given its limitation to 1M tokens, which is approximately equivalent to ~1hour of video, we were forced to drop videos longer than 1 hour. An idea to overcome this situation was to accelerate videos longer than one hour and that way fit in Gemini’s context.
While it seemed to work at high level, when we started looking at the details we realized that only the first minutes of the video were accurately annotated.
Finding that quality drops on long videos made us wonder: is this an problem impacting the rest of our videos? by sampling videos of different lengths and inspecting the video coverage of the annotations, we found a reduction in quality for videos longer than 10+ minutes.
Aligned with our goal to bring high quality data back to the community, we dropped videos longer than 10+ minutes.
In a recent development, given that each hour of video costs more than $5 to annotate with Gemini, we can’t annotate all the videos that we have after filtering. Therefore, we wanted to make sure that we have a good coverage over all topics and we search a good compromise of content diversity for late-pre-training / fine-tuning task and budget. We set this size constraint to 4K hours of video.
In order to go from 600K videos to 4K hours of content we prepared an algorithm that balances content categories, user engagement, and channel representation to achieve the targeted duration.
The code can be found in the repository [link].
One of our goals with FineVideo is to provide structured data as a way to empower our community: if you are working on MultiModal LLMs, you can slice the data and decide which categories fit your pre-training or fine-tuning mix. If you are more into computer vision, you can directly use the dataset to train classifiers based on the numerical categories included in FineVideo such as the dynamism score, scene boundaries or audio/video correlation score.
Sources indicate that gemini 1.5 Pro allows JSON based outputs by providing a schema. We explored this feature and we promptly realized two concerns:.
What we observed completely matched what other researchers experienced: adding concrete schema constraints can decrease performance. (Let Me Speak Freely? A Study on the Impact of Format Restrictions on Performance of Large Language Models).
Our solution relied on generating free text with Gemini 1.5 and add a second processing step to align the results of Gemini with our schema.
The Gemini prompt that we used is the following:.
It has been revealed that once the result was processed by Gemini, we parsed it with Instructor: a library built on top of Pydantic to achieve structured outputs given a schema. See table with example below.
Instructor allowed us to experiment with different models to convert the free text from Gemini into the schema that we defined in Pydantic. We tried Gemini and GPT4o and we sticked with GPT4o given the higher success rate.
CharacterList: Man Slim build, brown eyes, shaved sides, black hoodie with colorful logo, black pants. Scenes Scene 1 Start 0:00 End 0:55 Characters: [Man] Activities: Introduces bus Describes peaceful location with cows Props: Bus, cows, deck. Mood:Excited, adventure. Narrative Progression: Introduction to bus. Tour begins outside, highlighting nature and relaxation. Dynamism Score 0.7 Audio-Visual Correlation 1.
The full code to annotate video can be found here [link].
With the videos annotated and the data properly aligned to our schema, we look at the temporal domain of the data and we ensure its alignment with the video: Gemini 1.5 reads video at 1 frame per second and quite frequently videos have 25 - 29 frames per second. In our Fine Alignment we make sure scene boundaries provided by Gemini 1.5 match the correct frames in the video.
It has been revealed that we also use this temporal alignment to discard cases were Gemini stopped providing useful data and a part of the video is wrongly annotated. Notice that thanks to dropping all content longer than 10+ minutes earlier in the pipeline, the number of videos with bad quality data was negligible (lower than 0.5%).
Link to video alignment code here [link].
We are right now preparing the training of a multi-modal LLM trained with FineVideo, we proposal to share the model weights and training recipe with the community as soon as it is completed.
We are also open to other extensions of FineVideo, speak up and tell us what you would like to see!
📅 25 Sep 2024 | ⏱️ 11 min read (2148 words, 📚 Deep Dive) | Source: Hugging Face
Llama 3.2 is out! Today, we welcome the next iteration of the Llama collection to Hugging Face. This time, we’re excited to collaborate with Meta on the release of multimodal and small models. Ten open-weight models (5 multimodal models and 5 text-only ones) are available on the Hub.
Llama 3.2 Vision comes in two sizes: 11B for efficient deployment and development on consumer-size GPU, and 90B for large-scale applications. Both versions come in base and instruction-tuned variants. In addition to the four multimodal models, Meta released a newly introduced version of Llama Guard with vision support. Llama Guard 3 is a safeguard model that can classify model inputs and generations, including detecting harmful multimodal prompts or assistant responses.
Llama 3.2 also includes small text-only language models that can run on-device. They come in two fresh sizes (1B and 3B) with base and instruct variants, and they have strong capabilities for their sizes. There’s also a small 1B version of Llama Guard that can be deployed alongside these or the larger text models in production use cases.
Among the features and integrations being released, we have:.
According to recent reports, llama 3.2 Vision is the most powerful open multimodal model released by Meta. It has great visual understanding and reasoning capabilities and can be used to accomplish a variety of tasks, including visual reasoning and grounding, document question answering, and image-text retrieval. Chain of Thought (CoT) answers are often very good, which makes visual reasoning particularly powerful.
Sources indicate that llama 3.2 Vision can be used to process text and an image as well as only text. With image-text prompting, the model can take English inputs, while for text-only prompting, the model can handle multiple languages.
The full list of languages in text-only mode is:.
According to recent reports, the architecture of these models is based on the combination of Llama 3.1 LLMs combined with a vision tower and an image adapter. The text models used are Llama 3.1 8B for the Llama 3.2 11B Vision model, and Llama 3.1 70B for the 3.2 90B Vision model. To the best of our understanding, the text models were frozen during the training of the vision models to preserve text-only performance.
Below you can find some inference examples from the 11B instruction-tuned model that showcase real world knowledge, document reasoning and infographics understanding capabilities.
Vision models have a context length of 128k tokens, which allows for multiple-turn conversations that may contain images. However, the model works best when attending to a single image, so the transformers implementation only attends to the last image provided in the input. This preserves quality and saves memory.
The 11B base model supports tile sizes of 448, while the instruct version and the 90B models all use tile sizes of 560. The models were trained on a massive dataset of 6 billion image-text pairs with a diverse data mixture. This makes them excellent candidates for fine-tuning on downstream tasks. For reference, you can see below how the 11B, 90B and their instruction fine-tuned versions compare in some benchmarks, as reported by Meta. Please, refer to the model cards for additional benchmarks and details.
In a recent development, we expect the text capabilities of these models to be on par with the 8B and 70B Llama 3.1 models, respectively, as our understanding is that the text models were frozen during the training of the Vision models. Hence, text benchmarks should be consistent with 8B and 70B.
It has been revealed that regarding the licensing terms, Llama 3.2 comes with a very similar license to Llama 3.1, with one key difference in the acceptable use policy: any individual domiciled in, or a firm with a principal place of business in, the European Union is not being granted the license rights to use multimodal models included in Llama 3.2. This restriction does not apply to end users of a product or service that incorporates any such multimodal models, so people can still build global products with the vision variants.
For full details, please make sure to read the official license and acceptable use policy.
Sources indicate that the Llama 3.2 collection includes 1B and 3B text models. These models are designed for on-device use cases, such as prompt rewriting, multilingual knowledge retrieval, summarization tasks, tool usage, and locally running assistants. They outperform many of the available open-access models at these sizes and compete with models that are many times larger. In a later section, we’ll show you how to run these models offline.
Sources indicate that the models follow the same architecture as Llama 3.1. They were trained with up to 9 trillion tokens and still support the long context length of 128k tokens. The models are multilingual, supporting English, German, French, Italian, Portuguese, Hindi, Spanish, and Thai.
According to recent reports, there is also a new small version of Llama Guard, Llama Guard 3 1B, that can be deployed with these models to evaluate the last user or assistant responses in a multi-turn conversation. It uses a set of pre-defined categories which (new to this version) can be customized or excluded to account for the developer’s use case. For more details on the use of Llama Guard, please refer to the model card.
According to recent reports, bonus: Llama 3.2 has been exposed to a broader collection of languages than the 8 supported languages mentioned above. Developers are encouraged to fine-tune Llama 3.2 models for their specific language use cases.
It has been revealed that we ran the base models through the Open LLM Leaderboard evaluation suite, while the instruct models were evaluated across three popular benchmarks that measure instruction-following and correlate well with the LMSYS Chatbot Arena: IFEval, AlpacaEval, and MixEval-Hard. These are the results for the base models, with Llama-3.1-8B included as a reference:.
And here are the results for the instruct models, with Llama-3.1-8B-Instruct included as a reference:.
It has been revealed that remarkably, the 3B model is as strong as the 8B one on IFEval! This makes the model well-suited for agentic applications, where following instructions is crucial for improving reliability. This high IFEval score is very impressive for a model of this size.
In a recent development, tool use is supported in both the 1B and 3B instruction-tuned models. Tools are specified by the user in a zero-shot setting (the model has no previous information about the tools developers will use). Thus, the built-in tools that were part of the Llama 3.1 models (brave_search and wolfram_alpha) are no longer available.
Due to their size, these small models can be used as assistants for bigger models and perform assisted generation (also known as speculative decoding). Here is an example of using the Llama 3.2 1B model as an assistant to the Llama 3.1 8B model. For offline use cases, please check the on-device section later in the post.
You can experiment with the three Instruct models in the following demos:.
Industry observers note that the text-only checkpoints have the same architecture as previous releases, so there is no need to enhancement your environment. However, given the fresh architecture, Llama 3.2 Vision requires an update to Transformers. Please make sure to upgrade your installation to release 4.45.0 or later.
Once upgraded, you can use the new Llama 3.2 models and leverage all the tools of the Hugging Face ecosystem.
In a recent development, you can run the 1B and 3B Text model checkpoints in just a couple of lines with Transformers. The model checkpoints are uploaded in bfloat16 precision, but you can also use float16 or quantized weights. Memory requirements depend on the model size and the precision of the weights. Here's a table showing the approximate memory required for inference using different configurations:.
In a recent development, we load the model in bfloat16. As mentioned above, this is the type used by the original checkpoint published by Meta, so it’s the recommended way to run to ensure the best precision or conduct evaluations. Depending on your hardware, float16 might be faster.
In a recent development, by default, transformers uses the same sampling parameters (temperature=0.6 and top_p=0.9) as the original meta codebase. We haven’t conducted extensive tests yet, feel free to explore!
Industry observers note that the Vision models are larger, so they require more memory to run than the small text models. For reference, the 11B Vision model takes about 10 GB of GPU RAM during inference, in 4-bit mode.
The easiest way to infer with the instruction-tuned Llama Vision model is to use the built-in chat template. The inputs have user and assistant roles to indicate the conversation turns. One difference with respect to the text models is that the system role is not supported. User turns may include image-text or text-only inputs. To indicate that the input contains an image, add {"type": "image"} to the content part of the input and then pass the image data to the processor:.
You can continue the conversation about the image. Remember, however, that if you provide a new image in a new user turn, the model will refer to the new image from that moment on. You can’t query about two different images at the same time. This is an example of the previous conversation continued, where we add the assistant turn to the conversation and ask for some more details:.
And this is the response we got:.
According to recent reports, you can also automatically quantize the model, loading it in 8-bit or even 4-bit mode with the bitsandbytes library. This is how you’d load the generation pipeline in 4-bit:.
You can then apply the chat template, use the processor, and call the model just like you did before.
You can run both Llama 3.2 1B and 3B directly on your device's CPU/ GPU/ Browser using several open-source libraries like the following.
In a recent development, llama.cpp is the go-to framework for all things cross-platform on-device ML inference. We provide quantized 4-bit & 8-bit weights for both 1B & 3B models in this collection. We expect the community to embrace these models and create additional quantizations and fine-tunes. You can find all the quantized Llama 3.2 models here.
Here’s how you can use these checkpoints directly with llama.cpp.
Install llama.cpp through brew (works on Mac and Linux).
You can use the CLI to run a single generation or invoke the llama.cpp server, which is compatible with the Open AI messages specification.
You’d run the CLI using a command like this:.
And you’d fire up the server like this:.
In a recent development, you can also use llama-cpp-python to access these models programmatically in Python. Pip install the library from PyPI using:.
Then, you can run the model as follows:.
You can even run Llama 3.2 in your browser (or any JavaScript runtime like Node.js, Deno, or Bun) using Transformers.js. You can find the ONNX model on the Hub. If you haven't already, you can install the library from NPM using:.
Then, you can run the model as follows:.
Sources indicate that MLC.ai Web-LLM is a high-performance in-browser LLM inference engine that brings language model inference directly onto web browsers with hardware acceleration. Everything runs inside the browser with no server support and is accelerated with WebGPU.
WebLLM is fully compatible with OpenAI API. That is, you can use the same OpenAI API on any open-source models locally, with functionalities including streaming, JSON-mode, function-calling, etc.
You can install Web-LLM from npm.
Then, you can run the model as follows:.
After successfully initializing the engine, you can now invoke chat completions using OpenAI style chat APIs through the engine.chat.completions interface.
TRL supports chatting and fine-tuning with the Llama 3.2 text models out of the box:.
Support for fine tuning Llama 3.2 Vision is also available in TRL with this script.
You can also check out this notebook for LoRA fine-tuning using transformers and PEFT.
It has been revealed that releasing such models with support and evaluations in the ecosystem would not be possible without the contributions of thousands of community members who have contributed to transformers, text-generation-inference, vllm, pytorch, LM Eval Harness, and many other projects. Hat tip to the VLLM team for their help in testing and reporting concerns. This release couldn't have happened without all the support of Clémentine, Alina, Elie, and Loubna for LLM evaluations, Nicolas Patry, Olivier Dehaene, and Daniël de Kok for Text Generation Inference; Lysandre, Arthur, Pavel, Edward Beeching, Amy, Benjamin, Joao, Pablo, Raushan Turganbay, Matthew Carrigan, and Joshua Lochner for transformers, transformers.js, TRL, and PEFT support; Nathan Sarrazin and Victor for making Llama 3.2 available in Hugging Chat; Brigitte Tousignant and Florent Daudens for communication; Julien, Simon, Pierric, Eliott, Lucain, Alvaro, Caleb, and Mishig from the Hub team for Hub development and features for launch.
And substantial thanks to the Meta Team for releasing Llama 3.2 and making it available to the open AI community!
📅 05 Nov 2026 | ⏱️ 1 min read (130 words, ⚡ Quick Read) | Source: Microsoft
Industry observers note that discover how Microsoft is accelerating electronic design automation (EDA) workloads with Azure Cobalt 200 VMs. Explore early performance results demonstrating faster simulation, verification, and static timing analysis, along with the benefits of scalable cloud infrastructure for silicon design and development. The post Designing Azure silicon on Azure silicon: EDA workloads on Cobalt 200 appeared first on Microsoft Azure Blog.
In a recent development, discover how Microsoft is accelerating electronic design automation (EDA) workloads with Azure Cobalt 200 VMs. Explore early performance results demonstrating faster simulation, verification, and static timing analysis, along with the benefits of scalable cloud infrastructure for silicon design and development.
The post Designing Azure silicon on Azure silicon: EDA workloads on Cobalt 200 appeared first on Microsoft Azure Blog.
📅 30 Sep 2024 | ⏱️ 2 min read (423 words, 📖 Standard) | Source: Hugging Face
Convert vertex-colored meshes to UV-mapped, textured meshes.
Vertex colors are a straightforward way to add color information directly to a mesh's vertices. This is often the way generative 3D models like InstantMesh produce meshes. However, most applications prefer UV-mapped, textured meshes.
According to recent reports, this tutorial walks through a quick solution to convert vertex-colored meshes to UV-mapped, textured meshes. This includes The Short Version to get results swiftly, and The Long Version for an in-depth walkthrough.
It has been revealed that install the InstantTexture library for easy conversion. This is a small library we wrote that implements the steps described in The Long Version below.
The code below converts a vertex-colored .obj mesh to a UV-mapped, textured .glb mesh and saves it to output.glb.
Let's visualize the output mesh.
For a detailed walkthrough, continue reading.
Install the following dependencies:.
Load the vertex-colored input mesh. This should be a .obj file located at input_mesh_path.
If it's a local file, use trimesh.load() instead of trimesh.load_remote().
Access the vertex colors of the mesh.
If this fails, ensure the mesh is a valid .obj file with vertex colors.
Generate the uv map using xatlas.
This is the most time-consuming part of the process.
Remap the vertices and vertex colors to the uv map.
Define the desired texture size.
Construct a texture buffer that is upscaled by an upscale_factor to create a higher quality texture.
Fill in the texture of the UV-mapped mesh using barycentric interpolation.
Let's visualize how the texture looks so far.
As we can see, the texture has a lot of holes.
To correct for this, we'll combine 4 techniques:.
As we can see, the texture is now much smoother and has no holes.
This can be further improved with more advanced techniques or manual texture editing.
Finally, we can construct a new mesh with the generated uv coordinates and texture.
Sources indicate that et voilà! The mesh is UV-mapped and textured.
To export it when running locally, call mesh.export("output.glb").
As you can see, the mesh still has many small artifacts.
The quality of the UV map and texture are also far below the standards of a production-ready mesh.
However, if you're looking for a quick solution to map from a vertex-colored mesh to a UV-mapped mesh, then this approach may be useful for you.
This tutorial walked through how to convert a vertex-colored mesh to a UV-mapped, textured mesh.
If you have any questions or feedback, please feel free to open an concern on GitHub or on the Space.
📅 01 Oct 2024 | ⏱️ 2 min read (454 words, 📖 Standard) | Source: Hugging Face
It has been revealed that the 🇨🇿 BenCzechMark is the first and most comprehensive evaluation suite for assessing the abilities of Large Language Models (LLMs) in the Czech language. It aims to test how well LLMs can:.
To achieve this, we've sourced 50 tasks spanning 9 categories, with 90% of tasks having native, non-translated content.
In this blog, we introduce both the evaluation suite itself and the BenCzechMark leaderboard, featuring over 25 open-source models of various sizes!
The 🇨🇿 BenCzechMark (in it’s current version) is divided into 9 categories to comprehensively assess LLM abilities. For each task,.
The translated portion of the dataset (10% of the total) was mostly translated via CUBBITT LINDAT Translation, except for CsFever, where the authors used DeepL for translation.
This is the complete list of categories, alongside the datasets and metrics used:.
According to recent reports, since we use different metrics for the tasks, simply averaging wouldn't work due to varying scales. Instead, we've introduced a novel way to determine a final score: we let the models fight!
It has been revealed that for every task and metric, we compute a test for statistical significance at α=0.05. This means the probability that the performance of model A equals that of model B is estimated to be less than 0.05. We use the following tests, each with varying statistical power:.
Recent findings suggest that we then compute a model's duel win score (DWS) - the proportion of duels won against all other models on that task. Finally, we calculate aggregate scores as follows:.
This yields an easy-to-understand model score: Macro-averaged model win-rate!
To identify the top-performing open-source model in our suite, we evaluated 26 open-weight models using the following parameters:.
Industry observers note that the results can be explored in our Space. While Llama-450B emerged as the clear overall winner, it didn’t dominate every category. Interestingly, some models have excelled in specific areas — for instance:.
One of our main goals at BenCzechMark is to empower researchers to assess their models' capabilities in Czech and to encourage the community to train and discover models that excel in the Czech language.
If you know of a model that stands out, we'd love for you to submit it to our leaderboard, making the competition even more exciting!
To help you get started, we've prepared a straightforward 3-step guide, which you can find in the BenCzechMark space under the Submission tab.
We'd like to extend our thanks to all contributors from BUT FIT, FI MUNI, CIIRC CTU, and Hugging Face for their invaluable work in bringing BenCzechMark to life.
We're also grateful to the organizations that provided source data for some of the tasks, namely Umímeto, CERMAT, and ČNK.
📅 03 Oct 2024 | ⏱️ 10 min read (2075 words, 📚 Deep Dive) | Source: Hugging Face
It has been revealed that in the early 15th century, Zheng He (also known as Chong Ho), a Chinese mariner and explorer during the early Ming Dynasty, led seven major naval expeditions, known as the "Voyages to the Western Oceans". His journey traced a path that went through Southeast Asia, the Middle East and then reached out to Africa. It was a bold move by China to establish diplomatic and trade relations with foreign lands, while exploring overseas opportunities. The word “出海” (Chu Hai, sailing abroad) has since held a special meaning about going global.
Sources indicate that 600 years later, China is once again making its mark internationally, evolving from a global manufacturing hub to a leader in ICT, electric vehicles, and AI technologies. By 2024, Chinese companies have accelerated their overseas expansion, particularly in AI. A June report from Feifan Research shows that out of 1,500 active AI companies worldwide, 751 are based in China, with 103 already expanding internationally. Many see this as a sign of China’s growing strength in tech innovation. Others argue that as domestic markets become saturated and competition intensifies, expanding overseas may have become the only viable option for these companies.
Industry observers note that the first companies that are grabbing the opportunities of going global are, not surprisingly, leading Chinese tech giants. The likes of Huawei, Tencent, and Alibaba have chosen to focus on cloud computing and AI infrastructure when expanding overseas. In March 2024, Tencent Cloud partnered with Etihad Etisalat (Mobily), a leading telecom firm in Saudi Arabia. Together, they introduced the "Go Saudi" program, which aims to transform the digital landscape of the Saudi Arabia Kingdom as part of its Vision 2030 strategy. In May, Huawei launched Galaxy AI as part of a larger initiative to boost digital intelligence transformation in North Africa. An initiative which is part of Huawei's broader $430 million, five-year investment proposal aimed at accelerating smart transformation across the region. That same month, Alibaba announced the construction of data centers in Korea, Malaysia, the Philippines, Thailand, and Mexico, alongside the release of the international version of its large model service platform, “Model Studio”.
Recent findings suggest that notably, these tech giants have centered their overseas strategies on Southeast Asia and the Middle East, aligning with China’s Belt and Road Initiative and the Digital Silk Road policy. Amid rising geopolitical tensions, choosing regions where Chinese is commonly spoken, such as Southeast Asia, or emerging markets like the Middle East and long-time allies like Africa, seems a more strategic choice.
According to recent reports, byteDance, referred to as an "App factory", has chosen to focus on familiar Western Business-to-Customer markets, launching 11 overseas applications in just seven months. CapCut, launched in 2020, released its paid version CapCut Pro in 2022, then integrated AI features in the beginning of 2024 and becoming one of the world’s most popular apps, with over 300 million monthly active consumers. According to Sensor Tower, by July 2024, CapCut had generated $125 million in cumulative revenue from mobile applications.
Startups, despite being in the early stages of commercialization, are also eager to join the overseas expansion. The Chinese AI unicorn startups have a different strategy based on adopting a model + application approach. Facing high costs for training models, some have begun to shift focus from updating foundational models to more profitable application and scenario exploration. For startups reliant on funding, expanding overseas has become a necessity amid intense domestic competition. Many early-stage companies have chosen Western to-C markets, launching productivity, creative, and companion apps based on their respective models. For example, among the “Major Six” ( refers to the six most-watched Chinese AI startups: 01.AI, Baichuan AI, Zhipu, Moonshot AI, MiniMax, StepFun. However, the list often changes, some think DeepSeek AI and OpenBMB should be included.), apps “Talkie” from MiniMax and “PopAI” from 01.AI which has gained millions of users and achieved a level of profitability.
Recent findings suggest that china has the world's largest number of internet customers and a vast pool of technical developers, and no one wants to be left behind in the AI boom. As more companies flood the space, AI technology has developed rapidly, but the growth of applications and use cases has been slower. Both industry giants and startups face growth stagnation and profit pressure.
It has been revealed that between October 2023 and September 2024, China released 238 LLMs. After more than a year of fierce competition, they entered a phase of consolidation. The pressure built up in May 2024 during the first price war, triggered by DeepSeek, an AI startup, which introduced architectural innovations that significantly reduced model inference costs. Following the announcement, major players like ByteDance, Tencent, Baidu, and Alibaba swiftly followed with price reductions, even cutting prices to below cost margins. This fierce competition stems from minimal technical differentiation between models and slower-than-expected productization.
Sources indicate that from the launch of ChatGPT to July 2024, 78,612 AI companies have either been dissolved or suspended (resource:TMTPOST). The competition is not only pushing out the players from the ring, survivors are also drilling down to the niche to differentiate from the others. For example, the industry-specific LLMs are gaining traction, with a significant push from the government. The March 5, 2024 “Government Work Report” delivered by the Chinese Premier minister emphasized the "AI+" strategy, driving AI’s penetration across industries. By July 2024, the number of AI models registered with the Cyberspace Administration of China (CAC) exceeded 197, nearly 70% were industry-specific LLMs, particularly in sectors like finance, healthcare, and education. The peace will not last long, AI's rapid integration into vertical industries is expected to become a key area of another round of competition in the coming months.
Under this circumstance, going abroad seems to be a way out.
Government is not only incentivising, but also regulating. Between March and September 2024, the government introduced a series of regulatory policies, particularly around data privacy, algorithm transparency, and content labeling.
March 5, 2024: The China National Information Security Standardization Technical Committee (TC260) released a technical document outlining basic safety requirements for generative AI services.
September 14, 2024: The Cyberspace Administration of China (CAC) proposed new rules requiring AI-generated content to be labeled, ensuring owners can easily tell if content is human or machine-made.
Sources indicate that regulations are indispensable for any new industry, however they also increase compliance costs for companies, especially for SMEs. Former Microsoft engineer Shao Meng commented, "Tighter regulations, especially for to-C teams, may push more companies to expand overseas, including their products and even their teams.".
On top of the policy pressure, the investment environment is getting more and more rational over the last 6 months compared to the AI fever when ChatGPT was out. By mid-2024, Chinese AI startups raised approximately $4.4 billion across 372 funding rounds, a significant drop from the peak in 2021, when investments reached $24.9 billion.
It has been revealed that compared to the domestic market, one particular element in certain overseas markets is that the individual customers have a greater willingness to pay, thanks to the healthy business environment. By proposing groundbreaking AI solutions meeting the local needs, Chinese AI companies can rapidly develop stable revenue streams. For instance, in Southeast Asia, innovative approaches like AI-powered digital human livestreaming are breaking into the e-commerce live-streaming sector.
In a recent development, as for enterprise or government clients, emerging markets like Southeast Asia, the Middle East, and Africa have become the primary choices for Chinese AI companies as mentioned above. These regions, still in the early stages of digital transformation, are jumping directly to the latest technologies . Compared to saturated Western markets, these areas have less competition, higher potential for growth, and lower entry barriers, where Chinese AI tech giants are expanding their market share by capitalizing on their technological strengths, cost-efficient structures, and government support.
In a recent development, regulatory Localization: China has relatively strict AI governance policies, however it focuses more on content safety. While going abroad, Chinese AI companies must navigate diverse data privacy, security, and ethical regulations worldwide, which comes even before the implementation of their business model. EU’s AI Act and privacy protection laws, is a perfect example for Chinese companies to adjust their AI models to meet the EU’s privacy-by-design principles, where data protection is built into the core of AI products and services.
It has been revealed that technical Localization: Despite the magic of AI, there is still no one size fits all solution. In emerging markets with weaker infrastructure, companies need to adjust their products to accommodate network conditions, data storage, and algorithm adaptability. Meanwhile, in developed markets, complying with industry standards such as data localization and ISO certifications etc.
Industry observers note that despite the fast growing AI innovation in China, Chinese AI companies have not yet gained enough awareness in overseas markets. Releasing open-source projects on the Hugging Face Hub become an effective way to build global visibility. Beyond raising awareness, these models have also contributed valuable AI resources and diverse multilingual solutions to the global community. For example, at least one model from China appears on Hugging Face’s trending model leaderboard almost every one to two weeks. These include Alibaba’s Qwen series, which has been a “long-running hit” on Hugging Face’s Open LLM leaderboard, considered today to be one of the best open LLM in the world which support over 29 different languages; DeepSeek coder is another one, that is highly praise by the open source community; and Zhipu AI’s also open sourced its GLM series and CogVideo.
Through open-source initiatives, these projects have gained considerable influence in the international open-source community, helping to enhance recognition, trust, and competitiveness for the Chinese projects in the global market.
An interesting point is that many Chinese companies, after expanding overseas, tend to adopt a newly introduced brand name or prefer to promote themselves using the name of their models or applications. “Chinese companies often create new brands for oversea products, even one per country, while Western companies prefer to use unified product names globally.” Engineer from Hugging Face Tiezhen Wang stated. This approach helps them fit into local markets better and shields them from geopolitical pressure at the same time.
Sources indicate that AI for Good is no doubt an key initiative to explore the potential of AI for a bigger purpose, which is an all inclusive statement without borders. In Beijing, the China ESG30 Forum released the "2024 China Enterprises Global Expansion Strategy Report." This report highlighted the importance of ESG and AI, as two pillars for Chinese companies to integrate into a new phase of globalization. Some tech giants have already begun adopting green energy to drive the sustainable development of their global data centers, or using AI image recognition technologies to monitor wildlife, among others. AI applications are also being used with AI startups and traditional industries to co-develop green technologies, such as renewable energy and electric vehicles. Such innovations further promote product sustainability, helping Chinese firms stand out in the competitive landscape.
Industry observers note that chinese AI companies are at a critical turning point. Expanding overseas is not just a simple market expansion strategy but a necessary choice, because of a harsh domestic environment but also for seemingly promising overseas opportunities. However, overseas expansion is not guaranteed to succeed. Under unfamiliar markets and audiences, to be able to swiftly adjust to the local market, comply with regulations and build awareness seems also no less challenging.
In a recent development, what’s more, AI is still in an early stage of development, and its true power is unleashed when AI companies find the sweet spot of being an AI enabler to reshape the industries. Going abroad is relevant today for Chinese AI companies to grow, but it would become even more relevant when it actually integrates and brings value to the local industries.
Zheng He’s expedition to the “west ocean” was powered by a whole nation strategy thanks to its strong economic power. History seems to be repeating itself today but with a different context: technological innovation thrives not through centralized national efforts, but through the dynamic forces of the free market, where competition, entrepreneurship, and open exchange drive creativity and progress. China’s AI companies have made a long way to rise, and they still are a long way to flourish.
Thanks to Tiezhen Wang, Luke Cheng, Shao Meng and Sam Guo for providing valuable feedback.
📅 04 Oct 2024 | ⏱️ 9 min read (1719 words, 📚 Deep Dive) | Source: Hugging Face
Finding the best LLM models for finance use cases.
The growing complexity of financial language models (LLMs) necessitates evaluations that go beyond general NLP benchmarks. While traditional leaderboards focus on broader NLP tasks like translation or summarization, they often fall short in addressing the specific needs of the finance industry. Financial tasks, such as predicting stock movements, assessing credit risks, and extracting information from financial reports, present unique challenges that require models with specialized skills. This is why we decided to create the Open FinLLM Leaderboard.
The leaderboard provides a specialized evaluation framework tailored specifically to the financial sector. We hope it fills this critical gap, by providing a transparent framework that assesses model readiness for real-world use with a one-stop solution. The leaderboard is designed to highlight a model's financial skill by focusing on tasks that matter most to finance professionals—such as information extraction from financial documents, market sentiment analysis, and forecasting financial trends.
Industry observers note that the Open Financial LLM Leaderboard (OFLL) evaluates financial language models across a diverse set of categories that reflect the complex needs of the finance industry. Each category targets specific capabilities, ensuring a comprehensive assessment of model performance in tasks directly relevant to finance.
Industry observers note that the selection of task categories in OFLL is intentionally designed to capture the full range of capabilities required by financial models. This approach is influenced by both the diverse nature of financial applications and the complexity of the tasks involved in financial language processing.
We use 40 tasks on this leaderboard, across these categories:.
**FPB (Financial PhraseBank Sentiment Classification) **Description: Sentiment analysis of phrases in financial news and reports, classifying into positive, negative, or neutral categories.Metrics: Accuracy, F1-Score.
It has been revealed that fiQA-SA (Sentiment Analysis in Financial Domain)Description: Sentiment analysis in financial media (news, social media). Classifies sentiments into positive, negative, and neutral, aiding in market sentiment interpretation.Metrics: F1-Score.
TSA (Sentiment Analysis on Social Media)Description: Sentiment classification for financial tweets, reflecting public opinion on market trends. Challenges include informal language and brevity. Metrics: F1-Score, RMSE.
It has been revealed that headlines (News Headline Classification)Description: Classification of financial news headlines into sentiment or event categories. Critical for understanding market-moving information.Metrics: AvgF1.
FOMC (Hawkish-Dovish Classification)Description: Classification of FOMC statements as hawkish (favoring higher interest rates) or dovish (favoring lower rates), key for monetary policy predictions.Metrics: F1-Score, Accuracy.
FinArg-ACC (Argument Unit Classification)Description: Identifies key argument units (claims, evidence) in financial texts, crucial for automated document analysis and transparency.Metrics: F1-Score, Accuracy.
FinArg-ARC (Argument Relation Classification)Description: Classification of relationships between argument units (support, opposition) in financial documents, helping analysts construct coherent narratives.Metrics: F1-Score, Accuracy.
MultiFin (Multi-Class Sentiment Analysis)Description: Classification of diverse financial texts into sentiment categories (bullish, bearish, neutral), valuable for sentiment-driven trading.Metrics: F1-Score, Accuracy.
Recent findings suggest that MA (Deal Completeness Classification)Description: Classifies mergers and acquisitions reports as completed, pending, or terminated. Critical for investment and strategy decisions.Metrics: F1-Score, Accuracy.
MLESG (ESG Issue Identification)Description: Identifies Environmental, Social, and Governance (ESG) problems in financial documents, important for responsible investing.Metrics: F1-Score, Accuracy.
NER (Named Entity Recognition in Financial Texts)Description: Identifies and categorizes entities (companies, instruments) in financial documents, essential for information extraction.Metrics: Entity F1-Score.
FINER-ORD (Ordinal Classification in Financial NER)Description: Extends NER by classifying entity relevance within financial documents, helping prioritize key information.Metrics: Entity F1-Score.
FinRED (Financial Relation Extraction)Description: Extracts relationships (ownership, acquisition) between entities in financial texts, supporting knowledge graph construction.Metrics: F1-Score, Entity F1-Score.
SC (Causal Classification)Description: Classifies causal relationships in financial texts (e.g., "X caused Y"), aiding in market risk assessments.Metrics: F1-Score, Entity F1-Score.
CD (Causal Detection)Description: Detects causal relationships in financial texts, helping in risk analysis and investment strategies.Metrics: F1-Score, Entity F1-Score.
FinQA (Numerical Question Answering in Finance)Description: Answers numerical questions from financial documents (e.g., balance sheets), crucial for automated reporting and analysis.Metrics: Exact Match Accuracy (EmAcc).
TATQA (Table-Based Question Answering)Description: Extracts information from financial tables (balance sheets, income statements) to answer queries requiring numerical reasoning.Metrics: F1-Score, EmAcc.
ConvFinQA (Multi-Turn QA in Finance)Description: Handles multi-turn dialogues in financial question answering, maintaining context throughout the conversation.Metrics: EmAcc.
FNXL (Numeric Labeling)Description: Labels numeric values in financial documents (e.g., revenue, expenses), aiding in financial data extraction.Metrics: F1-Score, EmAcc.
FSRL (Financial Statement Relation Linking)Description: Links related information across financial statements (e.g., revenue in income statements and cash flow data).Metrics: F1-Score, EmAcc.
EDTSUM (Extractive Document Summarization)Description: Summarizes long financial documents, extracting key information for decision-making.Metrics: ROUGE, BERTScore, BARTScore.
ECTSUM (Extractive Content Summarization)Description: Summarizes financial content, extracting key sentences or phrases from large texts.Metrics: ROUGE, BERTScore, BARTScore.
BigData22 (Stock Movement Prediction)Description: Predicts stock price movements based on financial news, using textual data to forecast market trends.Metrics: Accuracy, MCC.
ACL18 (Financial News-Based Stock Prediction)Description: Predicts stock price movements from news articles, interpreting sentiment and events for short-term forecasts.Metrics: Accuracy, MCC.
CIKM18 (Financial Market Prediction Using News)Description: Predicts broader market movements (indices) from financial news, synthesizing information for market trend forecasts.Metrics: Accuracy, MCC.
German (Credit Scoring in Germany)Description: Predicts creditworthiness of loan applicants in Germany, key for responsible lending and risk management.Metrics: F1-Score, MCC.
Australian (Credit Scoring in Australia)Description: Predicts creditworthiness in the Australian market, considering local economic conditions.Metrics: F1-Score, MCC.
LendingClub (Peer-to-Peer Lending Risk Prediction)Description: Predicts loan default risk for peer-to-peer lending, helping lenders manage risk.Metrics: F1-Score, MCC.
ccf (Credit Card Fraud Detection)Description: Identifies fraudulent credit card transactions, ensuring financial security and fraud prevention.Metrics: F1-Score, MCC.
ccfraud (Credit Card Transaction Fraud Detection)Description: Detects anomalies in credit card transactions that indicate fraud, while handling imbalanced datasets.Metrics: F1-Score, MCC.
Polish (Credit Risk Prediction in Poland)Description: Predicts credit risk for loan applicants in Poland, assessing factors relevant to local economic conditions.Metrics: F1-Score, MCC.
Taiwan (Credit Risk Prediction in Taiwan)Description: Predicts credit risk in the Taiwanese market, helping lenders manage risk in local contexts.Metrics: F1-Score, MCC.
[Portoseguro (Claim Analysis in Brazil)](https://huggingface.co/datasets/TheFinAI/en-forecasting-portosegurDescription: Predicts the outcome of insurance claims in Brazil, focusing on auto insurance claims.Metrics: F1-Score, MCC.
[Travel Insurance (Claim Prediction)](https://huggingface.co/datasets/TheFinADescription: Predicts the likelihood of travel insurance claims, helping insurers manage pricing and risk.Metrics: F1-Score, MCC.
MultiFin-ES (Sentiment Analysis in Spanish)Description: Classifies sentiment in Spanish-language financial texts (bullish, bearish, neutral).Metrics: F1-Score.
EFP (Financial Phrase Classification in Spanish)Description: Classifies sentiment or intent in Spanish financial phrases (positive, negative, neutral).Metrics: F1-Score.
EFPA (Argument Classification in Spanish)Description: Identifies claims, evidence, and counterarguments in Spanish financial texts.Metrics: F1-Score.
FinanceES (Sentiment Classification in Spanish)Description: Classifies sentiment in Spanish financial documents, understanding linguistic nuances.Metrics: F1-Score.
TSA-Spanish (Sentiment Analysis in Spanish Tweets)Description: Sentiment analysis of Spanish tweets, interpreting informal language in real-time market discussions.Metrics: F1-Score.
FinTrade (Stock Trading Simulation)Description: Evaluates models on stock trading simulations, analyzing historical stock prices and financial news to optimize trading outcomes.Metrics: Sharpe Ratio (SR).
This section will document each task within the categories in more detail, explaining the specific datasets, evaluation metrics, and financial relevance.
FPB (Financial PhraseBank Sentiment Classification).
FiQA-SA (Sentiment Analysis on FiQA Financial Domain).
TSA (Sentiment Analysis on Social Media).
Headlines (News Headline Classification).
FOMC (Hawkish-Dovish Classification).
FinArg-ACC (Financial Argument Unit Classification).
FinArg-ARC (Financial Argument Relation Classification).
MultiFin (Multi-Class Financial Sentiment Analysis).
MA (Deal Completeness Classification).
MLESG (ESG Problem Identification).
NER (Named Entity Recognition in Financial Texts).
FINER-ORD (Ordinal Classification in Financial NER).
FinRED (Financial Relation Extraction from Text).
SC (Causal Classification Task in the Financial Domain).
FinQA (Numerical Question Answering in Finance).
TATQA (Table-Based Question Answering in Financial Documents).
ConvFinQA (Multi-Turn Question Answering in Finance).
FNXL (Numeric Labeling in Financial Texts).
FSRL (Financial Statement Relation Linking).
EDTSUM (Extractive Document Summarization in Finance).
ECTSUM (Extractive Content Summarization).
BigData22 (Stock Movement Prediction).
ACL18 (Financial News-Based Stock Prediction).
CIKM18 (Financial Market Prediction Using News).
German (Credit Scoring in the German Market).
Australian (Credit Scoring in the Australian Market).
LendingClub (Peer-to-Peer Lending Risk Prediction).
ccf (Credit Card Fraud Detection).
ccfraud (Credit Card Transaction Fraud Detection).
Polish (Credit Risk Prediction in the Polish Market).
Taiwan (Credit Risk Prediction in the Taiwanese Market).
Portoseguro (Claim Analysis in the Brazilian Market).
Travel Insurance (Travel Insurance Claim Prediction).
MultiFin-ES (Multi-Class Financial Sentiment Analysis in Spanish).
EFP (Financial Phrase Classification in Spanish).
EFPA (Financial Argument Classification in Spanish).
FinanceES (Financial Sentiment Classification in Spanish).
TSA-Spanish (Sentiment Analysis in Spanish).
FinTrade (Stock Trading Dataset).
When you first visit the OFLL platform, you are greeted by the main page, which provides an overview of the leaderboard, including an introduction to the platform's purpose and a link to submit your model for evaluation.
At the top of the main page, you'll see different tabs:.
To tailor the leaderboard to your specific needs, you can select the financial tasks you want to focus on under the "Select columns to show" section. These tasks are divided into several categories, such as:.
Simply check the box next to the tasks you're interested in. The selected tasks will appear as columns in the evaluation table. If you wish to remove all selections, click the "Uncheck All" button to reset the task categories.
To further refine the models displayed in the leaderboard, you can use the "Model types" and "Precision" filters on the right-hand side of the interface, and filter models based on their:.
Once you've selected your tasks, the results will populate in the task table (see image). This table provides detailed metrics for each model across the tasks you’ve chosen. The performance of each model is displayed under columns labeled Average IE, Average TA, Average QA, and so on, corresponding to the tasks you selected.
Sources indicate that if you have a upcoming model that you’d like to evaluate on the leaderboard, the submission section allows you to upload your model file. You’ll need to provide:.
After uploading your model, the leaderboard will automatically start evaluating it across the selected tasks, providing real-time feedback on its performance.
Throughout the evaluation process on the Open FinLLM Leaderboard, several models have demonstrated exceptional capabilities across various financial tasks.
We would like to thank our sponsors, including The Linux Foundation, for their generous support in making the Open FinLLM Leaderboard possible. Their contributions have helped us build a platform that serves the financial AI community and advances the evaluation of financial language models.
According to recent reports, we also invite the community to participate in this ongoing project by submitting models, datasets, or evaluation tasks. Your involvement is essential in ensuring that the leaderboard remains a comprehensive and evolving tool for benchmarking financial LLMs. Together, we can drive innovation and help develop models better suited for real-world financial applications.
📅 05 Oct 2024 | ⏱️ 4 min read (845 words, 📚 Deep Dive) | Source: Hugging Face
Recent findings suggest that the Xet team at Hugging Face is working on improving the efficiency of the Hub's storage architecture to make it easier and quicker for users to store and revision data and models. As Hugging Face hosts nearly 11PB of datasets with Parquet files alone accounting for over 2.2PB of that storage, optimizing Parquet storage is of pretty high priority.
According to recent reports, most Parquet files are bulk exports from various data analysis pipelines or databases, often appearing as full snapshots rather than incremental updates. Data deduplication becomes critical for efficiency when owners want to update their datasets on a regular basis. Only by deduplicating can we store all versions as compactly as possible, without requiring everything to be uploaded again on every update. In an ideal case, we should be able to store every version of a growing dataset with only a little more space than the size of its largest version.
Our default storage algorithm uses byte-level Content-Defined Chunking (CDC), which generally dedupes well over insertions and deletions, but the Parquet layout brings some challenges. Here we run some experiments to see how some simple modifications behave on Parquet files, using a 2GB Parquet file with 1,092,000 rows from the FineWeb dataset and generating visualizations using our dedupe estimator.
Parquet tables work by splitting the table into row groups, each with a fixed number of rows (for instance 1000 rows). Each column within the row group is then compressed and stored:.
It has been revealed that intuitively, this means that operations which do not mess with the row grouping, like modifications or appends, should dedupe pretty well. So let's test this out!
It has been revealed that here we append 10,000 latest rows to the file and compare the results with the original version. Green represents all deduped blocks, red represents all new blocks, and shades in between show different levels of deduplication.
Recent findings suggest that we can see that indeed we are able to dedupe nearly the entire file, but only with changes seen at the end of the file. The fresh file is 99.1% deduped, requiring only 20MB of additional storage. This matches our intuition pretty well.
According to recent reports, given the layout, we would expect that row modifications to be pretty isolated, but this is apparently not the case. Here we make a small modification to row 10000, and we see that while most of the file does dedupe, there are many small regularly spaced sections of newly introduced data!
Recent findings suggest that A quick scan of the Parquet file format suggests that absolute file offsets are part of the Parquet column headers (see the structures ColumnChunk and ColumnMetaData)! This means that any modification is likely to rewrite all the Column headers. So while the data does dedupe well (it is mostly green), we get new bytes in every column header.
In this case, the fresh file is only 89% deduped, requiring 230MB of additional storage.
Here we delete a row from the middle of the file (note: insertion should have similar behavior). As this reorganizes the entire row group layout (each row group is 1000 rows), we see that while we dedupe the first half of the file, the remaining file has completely fresh blocks.
This is mostly because the Parquet format compresses each column aggressively. If we turn off compression we are able to dedupe more aggressively:.
However the file sizes are nearly 2x larger if we store the data uncompressed.
Is it possible to have the benefit of dedupe and compression at the same time?
One potential solution is to use not only byte-level CDC, but also apply it at the row level: we split row groups not based on absolute count (1000 rows), but on a hash of a provided “Key” column. In other words, I split off a row group whenever the hash of the key column % [target row count] = 0, with some allowances for a minimum and a maximum row group size.
I hacked up a quick inefficient experimental demonstration here.
It has been revealed that with this, we are able to efficiently dedupe across compressed Parquet files even as I delete a row. Here we clearly see a major red block representing the rewritten row group, followed by a small change for every column header.
Based on these experiments, we could consider improving Parquet file dedupe-ability in a couple of ways:.
It has been revealed that while we will continue exploring ways to improve Parquet storage performance (Ex: perhaps we could optionally rewrite Parquet files before uploading? Strip absolute file offsets on upload and restore on download?), we would love to work with the Apache Arrow project to see if there is interest in implementing some of these ideas in the Parquet / Arrow code base.
Industry observers note that in the meantime, we are also exploring the behavior of our data dedupe process on other common filetypes. Please do try our dedupe estimator and tell us about your findings!
📅 29 Oct 2026 | ⏱️ 6 min read (1115 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
It has been revealed that weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
An AI coding agent rebuilt my photo-collage app as a distributed system and deployed it to a free server. The hard part turned out to be hardware: one free ARM CPU, 538 collages created during load testing, zero failed jobs, and $0 a month.
Like most developers, I have never been short of product ideas. Hosting them has always been the problem. I have tried shared hosting with SmartWeb, Azure free credits, Google Compute Engine’s free VM instances, SmartWeb’s virtual private servers, and Heroku dynos. None of them left me satisfied. The worst experience was a $200 charge for an AI address API on Google Cloud—for an application that never earned me a single kobo.
Industry observers note that I am not a cheapskate, but I learned quickly that one of the easiest ways to kill a potentially good idea is to get the finances wrong. An application has to stay online until it reaches a critical mass of users, and hosting an untested, unverified product on expensive hardware can be wasteful.
Sources indicate that agentic AI coding has changed how rapidly I can move from idea to production. Over about five weeks of intermittent coding—amounting to roughly three days of full work with Claude—my photo-stitching app went from an Angular 8 project that would not even build to a distributed system running in production.
It has been revealed that along the way, Claude upgraded the front end from Angular 8 to Angular 22 and fixed the build on Node 24. It set up RabbitMQ with Docker Compose so the message broker configures itself on startup, and added real-time notifications over SignalR with a progress spinner. It fixed a crash loop caused by an unreadable iPhone photo. It redesigned the system so any server can process any job, with switchable database and file storage, direct browser-to-storage uploads, and photos resized in the browser before upload. It added reliability work that a team might debate for a sprint: a dead-letter queue, confirmed publishing, idempotent workers, recovery of stuck jobs, and automatic clean-up. It fixed the stitching so photos keep their proportions and borders are even. It wrote 41 automated tests and scrubbed leaked passwords and personal photos from the Git history.
In a recent development, coding, QA, DevOps, and production support used to be separate phases, often handled by separate people. Here they happened in one conversation. When code becomes this cheap to produce, the bottleneck moves. For me, it moved to hardware.
Bottleneck one: the machine on your desk.
To check what the AI builds, you have to run it locally. A distributed app means running the whole system locally: a web app, a background worker, a message broker, a database, and storage emulators. Because Claude adds features rapidly, and each one can add another container, it is easy to exhaust a laptop’s RAM and CPU.
My setup made this lesson concrete. I work on a MacBook Air, with Visual Studio in a Windows virtual machine. Docker cannot run inside that VM on Apple Silicon, so Claude ran Docker on the Mac and drove it from Windows over SSH. Later, my mobile connection started dropping large packets and broke uploads from the VM, so Claude moved the load testing onto the server itself. The software problems took minutes. The hardware and network problems took longer.
Sources indicate that then comes hosting. Heroku looked like the easy route, but it has had no free dynos since 2022. The cheapest option is an Eco dyno at about $5 a month, plus about $5 for Postgres. That is affordable, but running it for an idea that has no owners yet did not seem prudent.
Recent findings suggest that claude suggested Oracle Cloud’s Always Free tier: an ARM server with up to 4 CPUs and 24 GB of RAM, free with no end date. I created a small instance with 1 CPU and about 6 GB. Claude wrote a production Docker Compose file and a one-command setup script: Caddy as the gateway, the web app, the stitching worker, RabbitMQ, and PostgreSQL, with data that survives restarts. My repository is private, so rather than put a GitHub token on a public server, it copied the code over SSH and deployed it. The last blocker was mine to fix: opening ports 80 and 443 in Oracle’s network firewall. Then the site was live.
I did not want to guess, so I asked Claude to load-test the live server. Simulated users ran the full flow: upload two photos, wait for the real-time notification, and download the stitched collage.
The server handled 64 people creating collages at the same moment without a single failed job: 538 collages, zero errors. Its ceiling was about 62 collages a minute—one per second. Beyond that, users queue. With 4 people creating at once, 95% of collages arrived within about five seconds; at 64, each person waited about a minute. If each active user makes a collage every couple of minutes, one CPU comfortably serves around 85 people at once, and a few hundred if they use it less often.
In a recent development, the test also highlighted what runs out first, and it is not the CPU. Each collage stores about 5 MB, mostly the PNG output, so at full speed the disk would fill in under two hours. Switching to JPEG and shortening retention fixes that, and when traffic grows, three more free CPUs are waiting. That is the value of measuring before paying: I know what to change, and when.
Sources indicate that oracle isn’t being charitable. Servers need applications to run—ideally ones that go viral—and the free tier is a play for loyalty. Oracle wants successful projects to stay and grow into its paid services instead of moving off the platform once they reach critical mass. It can also reclaim free instances that sit idle.
According to recent reports, I think the bet is smart, and it points to a bigger trend. AI-generated code still needs energy to run and hardware to host it, even when far fewer people work on each project. As more people turn ideas into working software, demand for compute will keep growing, and I expect hosting and data centres to become a very profitable business.
For now, the combination works: Claude orchestrates the coding, QA, and DevOps, and Oracle’s free server keeps an idea online long enough to find out whether it deserves to grow.
Sources indicate that 7 Day Free Trial. Cancel Anytime.
📅 08 Oct 2024 | ⏱️ 5 min read (1084 words, 📚 Deep Dive) | Source: Hugging Face
It has been revealed that ⭐ In this blog post, we’ll explore dynamic speculative decoding —a novel method developed by Intel labs and Hugging Face that accelerates text generation by up to 2.7x, depending on the task. This method is the default operational mode for assisted generation starting from Transformers🤗 release 4.45.0 ⭐.
Speculative decoding is a popular technique to accelerate the inference of large language models, while preserving their accuracy. As shown in the figure below, speculative decoding works by splitting the generative process into two stages. In the first stage, a fast, but less accurate draft model (AKA assistant) autoregressively generates a sequence of tokens. In the second stage, a large, but more accurate target model conducts parallelized verification over the generated draft tokens. This process allows the target model to produce multiple tokens in a single forward pass and thus accelerate autoregressive decoding. The success of speculative decoding largely hinges on the speculation lookahead (SL), i.e. the number of tokens produced by the draft model in each iteration. In practice, the SL is either a static value or based on heuristics, neither of which is optimal for squeezing out maximium performance during inference.
Speculative decoding iteration.
According to recent reports, transformers🤗 offers two distinct methods to determine the schedule for adjusting the number of draft (assistant) tokens during inference. The straightforward method, based on Leviathan et al., uses a static value of the speculation lookahead and involves generating a constant number of candidate tokens at each speculative iteration. Alternatively, a heuristic-based approach adjusts the number of candidate tokens for the next iteration based on the acceptance rate of the current iteration. If all speculative tokens are correct, the number of candidate tokens increases; otherwise, it decreases.
According to recent reports, we anticipate that an enhanced optimization strategy for managing the number of generated draft tokens could squeeze out further latency reductions. For testing this thesis we utilize an oracle that determines the optimal speculation lookahead value for each speculative iteration. The oracle employs the draft model to autoregressively generate tokens until a discrepancy arises between the predicted tokens of the draft and target models. This process is repeated for each speculative iteration, ultimately identifying the optimal (maximum) number of draft tokens accepted per iteration. The draft/target token mismatch is identified using the rejection sampling algorithm, introduced by Leviathan et al., with zero temperature. This oracle realizes the full potential of speculative decoding by generating the maximum number of valid draft tokens at each step and minimizing the number of calls to both the draft and target models.
The left figure below illustrates the oracle and static speculation lookahead values across the speculative iterations of a code generation example from the MBPP dataset. A high variance in oracle speculation lookahead values (orange bars) is observed. The static speculation lookahead (blue bars), where the number of generated draft tokens is fixed to 5, performs 38 target forward passes and 192 draft forward passes, whereas the oracle speculation lookahead, performs only 27 target forward passes and 129 draft forward passes - a significant reduction. The right figure reveals the oracle and static speculation lookahead across the entire Alpaca dataset.
Oracle and static speculation lookahead (SL) values on one MBPP example.
Average oracle speculation lookahead for the entire Alpaca dataset.
Both figures demonstrate significant variability in oracle speculation lookahead values, suggesting that a static speculation lookahead may be suboptimal.
In order to get closer to the Oracle and gain extra speedup, we developed a straightforward method to dynamically adjust the speculation lookahead value at each iteration. After generating each draft token, we determine whether the draft model should continue generating the next token or switch to the target model for verification. This decision is based on the assistant model's confidence in its prediction, estimated by the softmax of the logits. If the assistant model's confidence in the current token prediction falls below a predefined threshold, referred to as the assistant_confidence_threshold, it halts the token generation process for that iteration, even if the maximum number of speculative tokens num_assistant_tokens has not been reached. Once halted, the draft tokens generated during the current iteration are sent to the target model for verification.
We benchmarked the dynamic approach against the heuristic approach across a range of tasks and model pairings. The dynamic approach revealed better performance in all tests. Notably, using the dynamic approach with Llama3.2-1B as the assistant for Llama3.1-8B, we observe speedups of up to 1.52x, whereas the heuristic approach showed no significant speedups with the same setup. Another observation is that codegen-6B-mono yields slowdown using the heuristic approach, whereas the dynamic approach shows speedup.
The results in the table reflect greedy decoding (temperature = 0). Similar trends were observed when using sampling (temperature > 0).
All tests were conducted on an RTX 4090.
Our benchmark is publicly available allowing everyone to evaluate further improvements: https://github.com/gante/huggingface-demos/tree/main/experiments/faster_generation.
Recent findings suggest that dynamic speculation has been integrated into release 4.45.0 of the Hugging Face Transformers library and now serves as the default operation mode for assisted decoding. To use assisted generation with dynamic speculation, no code changes are required—just execute the code as you normally would:.
The default dynamic speculation lookahead parameters reflect optimal values but can be adjusted to improve performance for specific model pairs or datasets by using the following code:.
To revert to the heuristic or constant (as in Leviathan et al.) approaches, simply set num_assistant_tokens_schedule to 'heuristic' or 'constant', respectively, set assistant_confidence_threshold=0 and num_assistant_tokens=5 as follows:.
We introduced a faster strategy for assisted generation called dynamic speculative decoding, which outperforms heuristics-based methods as well as drawing a constant number of candidate tokens.
According to recent reports, in an upcoming blog post, we'll show a new method for assisted generation: combine any target model with any assistant model! This will open the door for accelerating countless models on the Hugging Face Hub that do not have small enough assistant variants. For example, Phi 3, Gemma 2, CodeLlama and many more will be eligible for speculative decoding. Stay tuned!
Hi,Thank you for the interesting article.
I have an matter in reproducing the experiments on Llama-3.1-8B-Instruct/Llama-3.2.1B-Instruct and Qwen-2.5-7B-Instruct/Qwen-2.5-0.5B-Instruct.
When reproducing the experiment with default setting on a A100 40GB GPU, I found the generation speed of Disco is slower than autoregressive decoding.
Do you have any idea for this issue?
Recent findings suggest that can you share a minimal reproducer? It would help us massively to pin the exact concern you're seeing 🤗.
📅 09 Oct 2024 | ⏱️ 5 min read (907 words, 📚 Deep Dive) | Source: Hugging Face
Recent findings suggest that the Hugging Face platform has many datasets and pre-trained models that make using and training state-of-the-art machine learning models increasingly accessible. However, it can be hard to scale AI tasks because AI datasets are often large (100s GBs to TBs) and using Hugging Face transformers for model inference can sometimes be computationally expensive.
Industry observers note that dask, a Python library for distributed computing, can handle out-of-core computing (processing data that doesn’t fit in memory) by breaking datasets into manageable chunks. This makes it easy to do things like:.
In this post we show an example of data processing from the FineWeb dataset, using the FineWeb-Edu classifier to identify web pages with high educational value. We’ll show:.
The FineWeb dataset consists of 15 trillion tokens of English web data from Common Crawl, a non-profit that hosts a public web crawl dataset updated monthly. This dataset is often used for a variety of tasks such as large language model training, classification, content filtering, and information retrieval across a variety of sectors.
It can take > 1 minute to download and read in a single file with pandas on a laptop.
Industry observers note that next, we’ll use the HF FineWeb-Edu classifier to judge the educational value of the web pages in our dataset. Web pages are ranked on a scale from 0 to 5, with 0 being not educational and 5 being highly educational. We can use pandas to do this on a smaller, 100-row subset of the data, which takes ~10 seconds on a M1 Mac with a GPU.
It has been revealed that note that we also added a step to check the available hardware inside the compute_scores function, because it will be distributed when we scale with Dask in the next step. This makes it easy to go from testing locally on a single machine (either on a CPU or maybe you have a MacBook with an Apple silicon GPU) to distributing across multiple machines (like NVIDIA GPUs).
Industry observers note that the entire 2024 February/March crawl is 432 GB on disk, or ~715 GB in memory, split up across 250 Parquet files. Even on a machine with enough memory for the whole dataset, this would be prohibitively slow to do serially.
Recent findings suggest that to scale up, we can use Dask DataFrame, which helps you process large tabular data by parallelizing pandas. It closely resembles the pandas API, making it easy to go from testing on a single dataset to scaling out to the full dataset. Dask works well with Parquet, the default format on Hugging Face datasets, to enable rich data types, efficient columnar filtering, and compression.
We’ll apply the compute_scores function for text classification in parallel on our Dask DataFrame using map_partitions, which applies our function in parallel on each pandas DataFrame in the larger Dask DataFrame. The meta argument is specific to Dask, and indicates the data structure (column names and data types) of the output.
Note that we’ve picked a batch_size that works well for this example, but you’ll likely want to customize this depending on the hardware, data, and model you’re using in your own workflows (see the HF docs on pipeline batching).
It has been revealed that now that we’ve identified the rows of the dataset we’re interested in, we can save the result for other downstream analyses. Dask DataFrame automatically supports distributed writing to Parquet. Hugging Face uses commits to track dataset changes and allows writing a Dask DataFrame in parallel.
Since this creates one commit per file, it is recommended to squash the history after the upload:.
Alternatively you can use this custom function which uploads multiple files per commit.
There are a number of ways to deploy Dask on a variety of hardware. Here, we’ll use Coiled to deploy Dask on the cloud so we can spin up VMs as needed, and then clean them up when we’re done.
The workflow took ~5 hours to complete and we had good GPU hardware utilization.
Putting it all together, here is the complete workflow:.
Sources indicate that hugging Face + Dask is a powerful combination. In this example, we scaled up our classification task from 100 rows to 211 million rows by using Dask + Coiled to run the workflow in parallel across multiple GPUs on the cloud.
This same type of workflow can be used for other use cases like:.
According to recent reports, reliability is everything, especially when you spend real time and money on gaming. I’ve been impressed by how consistent this venue is: https://btvs1.com/ For anyone who wants a stable, well-organized gaming environment across the territory of India, it delivers exactly what most players expect and more, without unnecessary complications.
I recently registered on 888starz login login and I’m thrilled! The platform offers a wide range of sports, cybersports, and casino games, along with regular bonuses for newly introduced and loyal users. I especially love the mobile app — it’s convenient to place bets and play favorite games from anywhere. Support is available 24/7, and withdrawals are always fast and secure. 888starz ensures fairness and privacy, making it my number one choice for online entertainment in Bangladesh!
Interesante explicación sobre cómo Dask permite escalar cargas de trabajo sin complicar demasiado la infraestructura. Para quienes también analizan datos en plataformas digitales, https://starzbetmex.com/ es un ejemplo de servicio cuya experiencia depende de sistemas rápidos y estables.
📅 09 Oct 2024 | ⏱️ 3 min read (521 words, 📚 Deep Dive) | Source: Hugging Face
We’ve been hard at work over the past few months, and we are excited to now announce the stable release of Gradio 5.
With Gradio 5, developers can build production-ready machine learning web applications that are performant, scalable, beautifully designed, accessible, and follow best web security practices, all in a few lines of Python.
To give Gradio 5 a spin, simply type in your terminal:.
and start building your first Gradio application.
If you have used Gradio before, you might be wondering what’s different about Gradio 5.
In a recent development, our goal with Gradio 5 was to listen to and address the most common pain points that we’ve heard from Gradio developers about building production-ready Gradio apps. For example, we’ve heard some developers tell us:.
Sources indicate that "This Gradio app looks old-school" → Many of the core Gradio components, including Buttons, Tabs, Sliders, as well as the high-level chatbot interface, have been refreshed with a more modern design in Gradio 5. We’re also releasing a new set of built-in themes, to let you easily create fresh-looking Gradio apps 🎨.
“I can’t build realtime apps in Gradio” → We have unlocked low-latency streaming in Gradio! We use base64 encoding and websockets automatically where it offers speedups, support WebRTC via custom components, and have also added significantly more documentation and example demos that are focused on common streaming use cases, such as webcam-based object detection, video streaming, real-time speech transcription and generation, and conversational chatbots. 🎤.
"LLMs don't know Gradio" → Gradio 5 ships with an experimental AI Playground where you can use AI to generate or modify Gradio apps and preview the app right in your browser immediately: https://www.gradio.app/playground.
It has been revealed that gradio 5 provides all these features while maintaining Gradio’s simple and intuitive developer-facing API. Since Gradio 5 intended to be a production-ready web framework for all kinds of machine learning applications, we've also made significant improvements around web security (including getting a 3rd-party audit of Gradio) -- more about that in an upcoming post!
Gradio apps that did not raise any deprecation warnings in Gradio 4.x should continue to work in Gradio 5, with a small number of exceptions. See a list of breaking changes in Gradio 5 here.
Recent findings suggest that many of the changes we’ve made in Gradio 5 are designed to enable new functionality that we will be shipping in the coming weeks. Stay tuned for:.
Multi-page Gradio apps, along with native navbars and sidebars.
Support for running Gradio apps on mobile using PWA and potentially native app support.
More media components to support emerging modalities around images and videos.
A richer DataFrame component with support for common spreadsheet-type operations.
One-line integrations with machine learning model and API providers.
Further improvements that will decrease the memory consumption of Gradio apps.
And much more! With Gradio 5 providing a robust foundation to build web applications, we’re excited to really get started letting developers build all sorts of ML apps with Gradio.
Here are some Hugging Face Spaces that are running Gradio 5:.
Disctve ditopin elrements of the moden worlod.
📅 30 Oct 2026 | ⏱️ 11 min read (2279 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
It has been revealed that weekly. Free. One click to leave.
According to recent reports, 7 Day Free Trial. Cancel Anytime.
An AI search feature can return valid JSON, render correctly, and still give an unhelpful answer.
Industry observers note that imagine a documentation assistant answering a question about an API's current authentication requirements. It retrieves an outdated page, summarizes it fluently, and displays a citation. Every technical component appears to work, but the user receives instructions that no longer apply.
Automated checks are valuable, yet they cannot replace a clearly defined judgment about whether an answer solves the user's problem.
This guide builds a human-review workflow for a hypothetical API documentation assistant. You will define a review rubric, validate submissions with Python, measure reviewer disagreement, and turn accepted judgments into regression cases. The Python examples use Pydantic 2 and scikit-learn; they do not require a model-provider API key.
Start by identifying the failure you want to detect.
A documentation assistant usually has several stages: receive a question, retrieve relevant documents, generate an answer, and present that answer with supporting material.
Recent findings suggest that do not collapse these into a single “good answer” rating. A low score without a reason tells the team little about what to fix.
SitePoint’s introduction to retrieval-augmented generation provides background on how retrieval and generation fit together.
In a recent development, preserve the exact question, answer revision, retrieved passages, document versions, and retrieval timestamp for each run. Store a snapshot manifest with stable passage IDs, source URLs, and content hashes. Reviewers should see the material supplied to that run, not today’s edited page. Keep the model and prompt configuration with the run so a later review can be traced to the behavior it evaluated.
In a recent development, A useful rubric defines observable criteria and separates evidence support from task completion and source suitability. Give each review the same user task and expected API version. Otherwise, reviewers may judge different questions while appearing to disagree about one answer.
For an answer about API authentication, use separate labels such as:.
Supported: every material factual claim is backed by the supplied evidence.
Partially supported: some material claims lack support, while others are grounded.
Unsupported: the answer's central instruction lacks support or contradicts the evidence.
Cannot assess: the necessary evidence is missing, unreadable, or inaccessible.
Define task completion independently as complete, incomplete, or cannot assess. For source suitability, use suitable, outdated, or cannot assess. An answer can faithfully summarize an obsolete page while failing the request for current instructions.
In a recent development, consider a fictional API migration: version 2 accepts X-API-Key, while version 3 requires Authorization: Bearer . If the supplied evidence contains only the version 2 page, an answer repeating X-API-Key can be supported by its evidence but still use an outdated source. If the evidence explicitly requires Bearer and the answer invents X-API-Key, label the answer unsupported. These are different engineering failures.
Also establish what reviewers should do when the source is outdated. They may correctly conclude that an answer reflects its evidence while separately flagging that evidence as unsuitable for the user's current task.
It has been revealed that start with a calibration batch covering clear successes, unsupported claims, missing evidence, and version mismatches. Have two reviewers label the same items independently, then compare their reasons. Revise ambiguous definitions before increasing volume; the batch is for improving the rubric, not estimating production quality.
Sources indicate that keep a rubric version on every review. Labels produced under different definitions should not be mixed without checking comparability.
A spreadsheet can help during exploration, but an engineering pipeline needs a stable record format.
According to recent reports, pydantic can validate a review record before it enters the dataset. Install Pydantic 2 and scikit-learn in your project environment, then use this model:.
from pydantic import BaseModel, ConfigDict, Field, ValidationError.
model_config = ConfigDict(extra="forbid", strict=True).
item_id: str = Field(min_length=1).
answer_revision: str = Field(min_length=1).
snapshot_id: str = Field(min_length=1).
reviewer_id: str = Field(min_length=1).
rubric_version: Literal["auth-v1"].
"supported", "partially_supported",.
completion: Literal["complete", "incomplete", "cannot_assess"].
source_fit: Literal["suitable", "outdated", "cannot_assess"].
rationale: str = Field(min_length=20, max_length=2000).
Strict mode limits type coercion, and extra="forbid" rejects unexpected fields. The model checks shape and allowed values; it cannot establish that a judgment is correct. A minimum rationale length does not guarantee a useful explanation. The snapshot ID references a manifest, which can also record that retrieval produced no usable passages.
It has been revealed that on the server, resolve the item, answer revision, snapshot, and passage IDs against the stored run. Reject IDs that do not belong together. Obtain the reviewer identity from the authenticated session rather than trusting a submitted reviewer_id. Store a server-generated submission time and preserve review revisions instead of silently overwriting earlier judgments.
Run this after the model definition. It accepts one fictional review and rejects both an unknown label and an extra field:.
"answer_revision": "answer-02",.
"rationale": "The answer invents X-API-Key; p1 requires Bearer.",.
review = Review.model_validate(payload).
{**payload, "support": "mostly_fine"},.
{**payload, "confidence": 0.99}.
except ValidationError as error:.
print(error.errors()[0]["type"]).
raise AssertionError("Invalid review was accepted").
Recent findings suggest that the expected error types are literal_error and extra_forbidden. Add separate integration tests for mismatched evidence IDs, unauthorized submissions, and retries. Use a database uniqueness rule or an idempotency key so a repeated request does not create a second independent review.
In a recent development, more reviews do not automatically produce better evidence. If a task is ambiguous, scaling it can simply reproduce the ambiguity.
In a recent development, the workflow needs clear eligibility requirements, examples, escalation routes, and acceptance criteria. Reviewers assessing API behavior may need domain knowledge that general writing fluency does not provide.
According to recent reports, if you work with an external AI-data contributor service such as Acquirox, define the task contract before assigning work: required expertise, permitted source material, output fields, and escalation rules. Keep ownership of the rubric, evaluation set, and acceptance decisions within the product team. Contributor capacity alone does not establish expertise in the API being reviewed.
Pilot the actual task in the review interface. Track drafts, submitted reviews, items needing adjudication, and final decisions as distinct workflow states. Reviewer judgments should remain immutable once submitted; corrections should create a latest revision with a reason. Keep adjudication separate from the original labels.
In a recent development, for data involving users or contributors, document permitted uses, access boundaries, and retention. Remove credentials and unnecessary personal information from review material. An internal support transcript should not become a broadly accessible annotation task by accident.
In a recent development, distinguish annotation from usability research. A skilled reviewer can judge whether an answer is supported, but that does not prove a first-time user can understand the interface.
SitePoint’s guide to choosing usability tests and participants offers related guidance on matching participants and methods to the question being investigated.
The review interface shapes the data it collects.
According to recent reports, label Studio is an option for configurable labeling interfaces and data import/export. If you use it, map exported annotations into the Review schema through an adapter; do not assume its export structure matches your application contract. A custom interface may be appropriate when reviewers need API-version navigation or passage-level citations.
For the documentation assistant, show:.
The original question and relevant user context.
The evidence snapshot supplied to the model.
Separate controls for support and task completion.
A rationale field and an explicit “cannot assess” option.
Industry observers note that display stable passage IDs beside the evidence and let reviewers attach those IDs to their rationale. Show the source version and retrieval time near each passage. Render retrieved content as untrusted text or sanitized markup, and never treat instructions embedded in a source document as reviewer instructions. Avoid loading executable third-party content inside the review panel.
Industry observers note that avoid showing a preferred model name or a previous reviewer's verdict before an independent judgment. For pairwise comparisons, randomize answer order and include appropriate tie or neither-acceptable outcomes.
Design for keyboard use, visible focus, readable text, and explicit selection states. Keep evidence and the answer accessible without requiring excessive horizontal scrolling.
In a recent development, start all judgment controls unselected and validate them on submission. Use labeled radio groups, an accessible error summary, and visible saving/submission status. A failed save should preserve the draft. Disable duplicate submissions in the UI, but enforce duplicate handling on the server as well.
Recent findings suggest that practical check: observe a reviewer completing several borderline examples. Record where they pause, misinterpret a label, or cannot find the necessary source material.
When two reviewers disagree, investigate before reducing their decisions to a majority vote.
Different assumptions about the user's expertise.
A genuine error by one or both reviewers.
According to recent reports, preserve independent labels and store the adjudicated result separately. This allows the team to study ambiguity instead of erasing it.
For two reviewers applying categorical labels to the same items, scikit-learn provides Cohen's kappa:.
from sklearn.metrics import cohen_kappa_score.
("q1", "a1", "s1", "auth-v1"): "supported",.
("q2", "a1", "s2", "auth-v1"): "unsupported",.
("q3", "a1", "s3", "auth-v1"): "supported",.
("q4", "a1", "s4", "auth-v1"): "partially_supported".
("q3", "a1", "s3", "auth-v1"): "partially_supported".
raise ValueError("Review sets must contain identical items").
left = [a[key] for key in keys].
right = [b[key] for key in keys].
raw_agreement = sum(x == y for x, y in zip(left, right)) / len(keys).
print(f"Raw agreement: {raw_agreement:.2f}").
print(f"Kappa: {cohen_kappa_score(left, right):.2f}").
Sources indicate that this toy example prints raw agreement of 0.75 and kappa of about 0.64. Four items are not enough to assess a review program. In production, check for duplicate reviews before building dictionaries, use one rubric version per comparison, report unmatched items, and align all records by item, answer revision, and evidence snapshot.
Kappa measures agreement beyond chance under its assumptions, not correctness. Inspect raw agreement, label frequencies, and the disagreement table alongside it. A single-category batch can make kappa undefined; report that limitation rather than substituting a reassuring score. Treat cannot_assess explicitly and report its frequency instead of silently excluding difficult cases.
If both reviewers apply the same flawed rubric consistently, agreement can be high while the evaluation remains unhelpful.
Industry observers note that once difficult cases are adjudicated, turn them into regression cases with explicit acceptance criteria. For the fictional authentication task: use version 3 evidence, cite the passage requiring Bearer, and do not invent a header. If version 3 evidence is missing, an acceptable response should explain the gap rather than provide confident instructions.
Source snapshot and document version.
Expected behavior or acceptance criteria.
Model and prompt configuration.
Review and adjudication records.
Recent findings suggest that DVC can track larger datasets alongside Git. In an existing Git repository with DVC initialized and data/reviewed-auth.jsonl present, a minimal versioning step is:.
dvc add data/reviewed-auth.jsonl.
git add data/reviewed-auth.jsonl.dvc data/.gitignore.
git commit -m "Version authentication review cases".
This commits metadata, not the dataset bytes. Configure an access-controlled DVC remote and push the data before expecting another machine or CI runner to retrieve it. Keep credentials and sensitive review material out of public repositories.
Industry observers note that keep development examples separate from held-out evaluation cases. If developers repeatedly tune prompts against the same questions, those questions become less useful as evidence of generalization.
Split related examples together where appropriate. Near-duplicate questions from one support conversation should not be scattered across development and evaluation sets.
Use two evaluation passes. First, hold the evidence snapshot fixed to compare answer-generation changes. Then test retrieval against the intended document versions to detect stale or irrelevant sources. Record per-item outcomes and report failures by category; an overall improvement can hide a regression in version-specific or multilingual questions.
SitePoint’s article on testing nondeterministic AI behavior provides further context for repeatable evaluation workflows.
A correct answer can still fail in the interface.
Consumers may overlook a caveat, misunderstand whether an operation has been performed, or miss that the evidence applies to an older API version.
Pair answer review with practical usability tasks:.
Find the authentication requirements for version 3 and identify the source that supports them.
Observe whether users complete the task and whether their confidence matches the available evidence.
SitePoint’s overview of user research methods helps distinguish task observation from preference surveys.
According to recent reports, turn interface failures into browser tests: a citation opens the expected document version, its passage ID matches the displayed evidence, missing evidence offers a recovery action, and a failed review submission preserves the draft. Verify that reviewers cannot access unassigned restricted items by changing an ID in the URL. These checks complement human judgments; they do not replace them.
Industry observers note that do not use a fluent response as a substitute for a clear interaction. The interface should distinguish retrieved information, generated interpretation, and actions the application has actually completed.
Start with one authentication task, a versioned rubric, and a small calibration batch. Use Pydantic for ingestion checks, Label Studio or a custom interface for review, scikit-learn for agreement analysis, and Git/DVC for dataset provenance. Add each tool only when it solves a concrete workflow need.
It has been revealed that at release time, run deterministic checks for schema, evidence references, permissions, and interface behavior. Compare candidate answers against adjudicated acceptance criteria and send new ambiguous failures back for review. Record the dataset revision and configurations with the results so another developer can reproduce the comparison.
Recent findings suggest that the purpose of human review is to produce evidence the team can act on. A smaller collection of well-defined, traceable judgments is often more useful than a large pile of ratings whose meaning nobody can explain.
Industry observers note that 7 Day Free Trial. Cancel Anytime.
📅 10 Oct 2024 | ⏱️ 5 min read (955 words, 📚 Deep Dive) | Source: Hugging Face
We audited Gradio 5 so that your machine learning apps are safe!
In the past few years, Gradio (>6 million monthly Pypi installs) has become the default way to build machine learning web applications in Python. In just a few lines of code, you can create a user interface for an image generation app, a chatbot, or any other kind of ML app and share it with others using Gradio’s built-in share links or Hugging Face Spaces.
It has been revealed that our goal with Gradio is to allow developers to build web applications that work great out-of-the-box for machine learning use cases. This has meant letting you, as a developer, easily build applications that:.
...even if you are not an expert in scaling, accessibility, or UI/UX!
Now, we’re adding web security to this list. We asked Trail of Bits, a well-known cybersecurity tech giant, to conduct an independent audit of Gradio. The security concerns they discovered were all fixed ahead of the Gradio 5 release.
This means that machine learning apps that you build with Gradio 5 will follow best practices when it comes to web security without any significant changes to your code.
In a recent development, in the past couple of years, the Gradio team has worked with the community to patch security vulnerabilities as they are discovered. But as Gradio’s popularity has grown (with >470,000 Gradio apps currently on Hugging Face Spaces), ensuring security has become even more crucial.
So in Gradio 5, we decided to take a different approach -- do a preemptive security audit of the Gradio codebase so that your machine learning applications built with Gradio 5 are safe by default.
We asked Trail of Bits to conduct an independent and comprehensive audit of Gradio. Their team of experts in AI and Application Security identified security risks in the Gradio codebase in 4 general scenarios:.
According to recent reports, then, we worked closely with Trail of Bits to identify mitigation strategies for each of these risks. Gradio’s simplicity and ease of use, while beneficial for developers, also presented unique security challenges, as we didn’t want developers to need to set up complex security measures like CORS and CSP policies.
By the end of the collaboration, we fixed all of the security risks that were identified by Trail of Bits. All the fixes were validated by Trail of Bits, and are included in the Gradio 5.0 release. While it is impossible to prove the absence of security vulnerabilities, this is a major step in giving reassurance that your Gradio apps are safe.
Recent findings suggest that we outline below the major security vulnerabilities that were discovered by Trail of Bits corresponding to the 4 scenarios above. In the interest of transparency and the spirit of open-source, we are making the full security report public, and more details for each of these issues can be found in the report.
Gradio apps deployed on Hugging Face Spaces or other servers.
TOB-GRADIO-3: A full read GET-based SSRF that would allow attackers to make requests to and read the responses from arbitrary endpoints, including those on the user’s internal network.
It has been revealed that TOB-GRADIO-10: Arbitrary file type uploads that would allow an attacker to host XSS payloads on a user’s Gradio server. In the context of an authenticated Gradio server, an attacker could use this to take over user accounts when the victim accesses an attacker’s malicious website.
TOB-GRADIO-13: A race condition that allows an attacker to reroute user traffic to their server and steal uploaded files or chatbot conversations.
TOB-GRADIO-16: Several components’ post-process functions could allow attackers to leak arbitrary files in very simple Gradio server configurations.
Gradio apps shared with built-in share links.
TOB-GRADIO-19: Remote code execution (RCE) with the root user on the Gradio API Server via a nginx misconfiguration that exposed the unauthenticated docker API. This allowed an attacker to provide a malicious host and port in step 2 of the diagram and redirect all frp tunnels to a malicious server that records all user traffic, including uploaded files and chatbox conversations.
TOB-GRADIO-11: Lack of robust encryption in communications between the frp-client and frp-server, allowing attackers in a position to intercept requests (the ones from steps 6 and 7 in the diagram above) to read and modify the data going to and from the frp-server.
Supply chain vulnerabilities originating from the Gradio CI pipeline.
It has been revealed that TOB-GRADIO-25: Several GitHub Actions workflows in the Gradio repository use third-party actions pinned to tags or branch names instead of full commit SHAs. This could allow malicious actors to silently modify actions, potentially leading to tampering with application releases or leaking secrets.
Separately, a GitHub security researcher reported that our GitHub actions could allow untrusted code execution and secret exfiltration if an attacker triggered a workflow and cleverly dumped the memory of GitHub runners.
We’re very grateful to Trail of Bits for the comprehensive security audit of Gradio and for validating the mitigations that we put in place for Gradio 5.
Going forward, we are planning to continue working with the security community to identify and mitigate security complications in Gradio. We have also added security unit tests to our test suite, fuzzer tests specifically designed to identify potential vulnerabilities, and are using static analysis tools like Semgrep in our CI to detect common security issues in our code and prevent security regressions.
We are committed to ensuring that as we continue to develop Gradio 5 (and we have lots of aims!), we do so in a manner that prioritizes security so that we can do our part in making machine learning applications better and safer.
And start building your first Gradio 5 application.
📅 10 Oct 2024 | ⏱️ 3 min read (521 words, 📚 Deep Dive) | Source: Hugging Face

AMD has just unveiled its 5th generation of server-grade EPYC CPU based on Zen5 architecture - also known as Turin. It provides a significant boost in performance, especially with a higher number of core count reaching up to 192 and 384 threads.
From Large Language Models (LLMs) to RAG scenarios, Hugging Face users can leverage this upcoming generation of servers to enhance their performance capabilities:.
During the last few weeks, we have been working with AMD to validate that the Hugging Face ecosystem is fully supported on this new CPU generation and delivers the expected performance across different tasks.
Also, we have been cooking some exciting fresh ways to leverage torch.compile for AMD CPU through the use of AMD ZenDNN PyTorch plugin (zentorch) to speed up even more the kind of workloads we will be discussing after.
While we were able to get early access to this work to test Hugging Face models and libraries and share with you performance, we expect AMD to make it soon available to the community - stay tuned!
According to recent reports, in this section, we present the results from our benchmarking of the two AMD EPYC CPUs: Turin (128 cores) and Genoa (96 cores). For these benchmarks, we utilized the ZenDNN plug-in for PyTorch (zentorch), which provides inference optimizations tailored for deep learning workloads on AMD EPYC CPUs. This plug-in integrates seamlessly with the torch.compile graph compilation flow, enabling multiple passes of graph-level optimizations on the torch.fx graph to achieve further performance acceleration.
It has been revealed that to ensure optimal performance, we used the bfloat16 data type and employed ZenDNN 5.0. We configured multi-instance setups that enable the parallel execution of multiple Meta LLaMA 3.1 8B model instances spawning across all the cores. Each model instance is allocated 32 physical cores per socket, allowing us to leverage the full processing power of the servers for efficient data handling and computational speed.
We ran the benchmarks using two different batch sizes—16 and 32—across five distinct use cases:.
These configurations not only facilitate a comprehensive analysis of how each server performs under varying workloads but also simulate real-world applications of LLMs. Specifically, we plot the decode throughput (excluding the first token) for each use case, to illustrate performance differences.
According to recent reports, throughput results for Meta Llama 3.1 8B, comparing AMD Turin against AMD Genoa. AMD Turin consistently outperforms the AMD Genoa CPUs, achieving approximately 2X higher throughput in most configurations.
Industry observers note that as demonstrated, the AMD EPYC Turin CPU offers a significant boost in performance for AI use cases compared to its predecessor, the AMD Genoa. To enhance reproducibility and streamline the benchmarking process, we utilized optimum-benchmark, which provides a unified framework for efficient benchmarking across various setups. This enabled us to effectively benchmark using the zentorch backend for torch.compile.
Furthermore, we have developed an optimized Dockerfile that will be released soon, along with the benchmarking code. This will facilitate easy deployment and reproduction of our results, ensuring that others can effectively leverage our findings.
You can find more information at AMD Zen Deep Neural Network (ZenDNN).
📅 16 Oct 2024 | ⏱️ 3 min read (609 words, 📚 Deep Dive) | Source: Hugging Face

Our friends at Unsloth shared an matter regarding gradient accumulation yesterday that is affecting the transformers Trainer. The initial report comes from @bnjmn_marie (kudos to him!).
Gradient accumulation is supposed to be mathematically equivalent to full batch training; however, losses did not match between training runs where the setting was toggled on and off.
Inside the modeling code of each model, transformers offers a "default" loss function that's the most typically used one for the model's task. It is determined by what the modeling class should be used for: question answering, token classification, causal LM, masked LM.
This is the default loss function and it was not meant to be customizable: it is only computed when labels and input_ids are passed as inputs to the model, so the user doesn't have to compute the loss. The default loss is useful but is limited by design: for anything different being done, we expect the labels to not be passed directly, and for users to get the logits back from the model and use them to compute the loss outside of the model.
However, the transformers Trainer, as well as many Trainers, heavily leverage these methods because of the simplicity it offers: it is a double-edged sword. Providing a simple API that becomes different as the use-case differs is not a well-thought out API, and we've been caught by surprise ourselves.
In a recent development, to be precise, for gradient accumulation across token-level tasks like causal LM training, the correct loss should be computed by the total loss across all batches in a gradient accumulation step divided by the total number of all non padding tokens in those batches. This is not the same as the average of the per-batch loss values. The fix is quite simple, see the following:.
To address this glitch, we’re changing the way our models and training work in two ways:.
All model that inherit from PreTrainedModel now have a loss_function property, which is determined by either:.
We are working to ship the first change for the most popular models in this PR: https://github.com/huggingface/transformers/pull/34191#pullrequestreview-2372725010. Following this, a call for contributions to help propagate this to the rest of the models will be done so that the majority of models is supported by next release.
We are also actively working to ship the second change in this PR: https://github.com/huggingface/transformers/pull/34198, which will allow customers to use their own loss function and make use of the number of samples seen per-batch to help with calculating their loss (and will perform the correct loss calculation during gradient accumulation as more models are supported from the prior change).
By tomorrow, you should expect the Trainer to behave correctly with gradient accumulation. Please install from main in order to benefit from the fix then:.
In general, we are very responsive to bug reports submitted to our issue tracker: https://github.com/huggingface/transformers/issues.
In a recent development, this issue has been in Transformers for some time as it's mostly a default that should be updated by the end-user; however, when defaults become non-intuitive, they are bound to be changed. In this instance, we've updated the code and shipped a fix in less than 24 hours, which is what we aim for problems like this one in transformers. Please, come and submit your issues if you have some; this is the only way we can get transformers to improve and fit well within your different use-cases.
The key takeaway is that gradient accumulation can make training with large effective batch sizes much more practical when GPU memory is limited. The numerical details around loss scaling are especially useful for avoiding subtle training bugs.
📅 21 Oct 2024 | ⏱️ 3 min read (696 words, 📚 Deep Dive) | Source: Hugging Face
This is going to be the shortest blog post ever.
Industry observers note that question: Llama 3.2 landed two weeks ago on Hugging Face / Transformers. When will it be available in Keras?
In a recent development, answer: It has been working from day 1 😀. There is nothing to wait for.
Industry observers note that yes, Keras Llama3 can be loaded from any standard (i.e. safetensors) Hugging Face checkpoint, including the 3.2 checkpoints. If a conversion is required, it happens on the fly. Try this:.
OK, OK, I'm being told that if I want to publish a blog post, I have to fill the space. Here are a couple of additional things to know about Keras.
Industry observers note that keras is the time-tested modeling library for JAX, PyTorch and TensorFlow. You might have noticed this line in the demo Colab:.
It has to appear before import keras and controls if the model is running on JAX, PyTorch or TensorFlow. Very handy to try your favorite models on JAX with XLA compilation 🚀.
Keras is a modeling library and keras-hub is its collection of pre-trained models. It was previously called KerasNLP and KerasCV. The rename is in progress. It has all the popular pre-trained models (Llama3, Gemma, StableDiffusion, Segment Anything, ...) with their canonical implementation in Keras.
Industry observers note that I mean, "tokenizer included". model.generate() just works on strings:.
In a recent development, same thing for training. You can train on a set of strings directly:.
Industry observers note that instruction-tuned variants of popular LLMs can be used for turn-by-turn conversations. Here, Llama-3.2-1B-Instruct understands the following conversation tagging (see meta docs).
The conversation, once formatted in this way, can be fed directly to model.generate().
For convenience, the demo Colab implements a helper class called ChatState that does the necessary string concats automatically.
If you don't like "batteries included" and want to get to the underlying tokenizer and model, they are easily accessible:.
Recent findings suggest that the Tokenizer just transforms text into integer vectors. Here "Hello" translates into a single token:.
According to recent reports, the Preprocessor is a catch-all concept for doing all the data transformations a model requires. This could be, for example, image resizing or augmentation for tasks involving images, or text tokenization like here for a text model. For the CausalLM task, the preprocessor takes care of three additional details:.
Just call model.fit(ds) on your training dataset. This trainer is compatible with the various distributed training, mixed precision, quantization or LoRA/QLoRA options available in Keras. It's also totally optional. You can write a custom training loop if you want.
For a complete example, see the demo Colab where we fine-tune Llama 3.2 to speak like a pirate:.
Once you are happy with your fine-tuned model, upload it directly from Keras using:.
The uploaded model is visible here.
It has been revealed that some of you are wondering, why use Keras when one can already work with LLMs on Hugging Face using Transformers? Answer: even if you don't care about Keras' flexibility and usability as a modeling framework (you should!), Keras is your quickest path to advanced model parallelism thanks to JAX and its powerful XLA compiler.
Sources indicate that let's pick an 8B parameters model to demonstrate: meta-llama/Llama-3.1-8B-Instruct (demo Colab here). Without quantization, this model is too large for any single accelerator. With Keras, you can load it sharded across multiple accelerators, GPU or TPU. If you are uncertain about the "correct" weight shardings, most models provide sensible defaults. Here, call keras_hub.models.Llama3Backbone.get_layout_map(device_mesh):.
And if you don't trust the default layout map provided by the model, you can define your own. In this example running on a "small" TPU setup with only 8 cores, the following layout map is a bit faster than the default (54s/epoch rather than 62s/epoch):.
Recent findings suggest that check out the demo Colab here which fine-tunes the larger 8B Llama on pirate-speak, in just under 8 min on a Google TPU v5e (available in JupyterLab on Hugging Face Spaces. The fine-tuned model is here. And if you need a short model explainer about model parallelism and Keras, I have you covered here.
📅 30 Oct 2026 | ⏱️ 7 min read (1382 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
Weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
According to recent reports, sooner or later someone on your team asks it. Maybe it’s a product manager, maybe the head of content, maybe a teacher who’s just marked forty near-identical essays: can we tell when people are pasting in ChatGPT output?
Industry observers note that the short answer is no, not with certainty. Anyone who promises you that is selling something.
Sources indicate that but you can get a useful signal, and you can show it to the people who actually make the call: editors, teachers, moderators. In this tutorial you’ll build a small Express app that takes some text, sends it to an AI detector API, waits for the result, and highlights the sentences that look machine-written.
Sources indicate that I’m using the Quetext AI Detector API here. It scores each sentence, not just the whole document, and you can try it without a subscription. Most detection APIs follow the same submit, poll, fetch pattern, though. If you switch providers later, you’ll rewrite one file.
Industry observers note that put the key in an environment variable. Don’t hard-code it, and don’t let it anywhere near the browser.
According to recent reports, you’ll make three calls. Analysis takes a few seconds, so the API hands you a ticket and makes you come back for the result. Keep the Quetext API docs open in another tab while you follow along; they list every endpoint, field and error code.
Every request sends your key in an X-API-Key header. The minimum input is 50 words, which sounds annoying until you realise no detector can say anything useful about a two-line comment.
And remember this number: 10 requests every 5 seconds, per account. Progress checks count. It’ll come back to bite you in the production section if you ignore it.
According to recent reports, create quetext.js. I like keeping everything provider-specific in one file, so the rest of the app has no idea who’s doing the detecting.
Three decisions in there that are worth a sentence each:.
Recent findings suggest that the errors keep their HTTP status code. A 402 means you’ve run out of credit and a 429 means you’re polling too fast, and you’ll want to handle those differently from “something broke.”.
Sources indicate that it polls every 2.5 seconds because Quetext’s docs suggest 2 to 3. Polling faster won’t speed the report up. You’ll just burn through the rate limit.
In a recent development, and there’s a hard timeout. Leave it out and one stuck report can hang a request forever. That’s a miserable bug to track down at 11pm.
According to recent reports, next, server.js. It checks the input, runs the three calls, and gives the frontend a simple response that doesn’t mention Quetext anywhere.
Look at the mapping at the end. generated_prob becomes probability, and ai_score comes back as a string like "82.50", so it gets parsed into a number. It’s a small detail. But it means your frontend never learns which provider’s field names it’s dealing with, and that’s what makes swapping providers a one-file change.
In a recent development, show someone “64% AI” and they’ll jump to a conclusion. Show them a paragraph with three sentences shaded pink and they’ll actually read it.
So the page shows every sentence, coloured by how likely it is to be AI-generated. Create public/index.html:.
It has been revealed that run node server.js and open http://localhost:3000. Try two samples: something you wrote yourself, then a raw chatbot answer on the same topic. Seeing which sentences light up teaches you more about how these detectors work than any diagram I could draw.
Recent findings suggest that A quick security point. Those sentences came from your people, then went through an outside service. Treat them as untrusted. That’s why the code uses textContent and never innerHTML, as the OWASP XSS prevention cheat sheet recommends.
The demo keeps an HTTP request open while it polls. Fine on your laptop. Not fine with real traffic.
It has been revealed that submit the text, save the report id with a pending status, and respond straight away. A worker (BullMQ, a cron job, a serverless queue, whatever you already use) does the polling and updates the record once it’s done. The UI indicates “Checking…” until the result shows up.
Sources indicate that here’s how it goes wrong. It’s Monday morning, 20 editors open their review queues and click “Check” at roughly the same time. Each request polls on its own, and within a few seconds you’ve hit 429s across the board, because the 10-per-5-seconds limit covers your whole account, not each user.
Use one worker that loops through every pending report, with a short pause between calls. Problem solved.
In a recent development, you pay per word, so don’t check every blog comment. Article submissions, assignments and paid freelance work usually justify the cost. Cache results against a hash of the text too. Someone who submits the same draft three times shouldn’t cost you three times.
Recent findings suggest that AI detection doesn’t catch copying. Someone can lift a 2019 blog post word for word and it’ll score 0% AI, because a human wrote it. Just not this human. If originality matters to your product, the same API has plagiarism endpoints that work exactly the same way. The API documentation covers both.
It has been revealed that developers skip this part. It’s also the part that ends up in angry support tickets.
It has been revealed that in 2023, Liang and colleagues at Stanford ran essays written by non-native English speakers (all human, written for the TOEFL) through seven AI detectors. On average, the detectors labelled more than 61% of them as AI-generated. Simple vocabulary and textbook grammar read as “predictable,” and predictability is exactly what detectors look for.
Industry observers note that picture an international student getting an automatic zero because a script mentioned so. You don’t want to be the person who built that.
According to recent reports, do that and the detector is a fast first pass that points people at what’s worth a closer look. Your humans still make the call.
It has been revealed that you send text, the service checks how predictable each sentence would be to a language model, and you get back a probability that a machine wrote it. Most of these APIs are asynchronous. You submit, get a report ID, poll until it’s ready, then fetch the result. The better ones score individual sentences as well as the whole text, which makes building a sensible review screen much easier.
More than you’d think. Quetext’s API won’t accept fewer than 50 words, and in practice scores settle down once you’re past about 300. A product title or a one-line comment just doesn’t give a detector enough to go on. For short content, either group related pieces together or don’t bother checking it.
Industry observers note that no. Detectors make mistakes, and research shows they flag non-native English writers far more often than native speakers. Use the score to decide what a human looks at first, not to block anything. Give reviewers the highlighted sentences, give people a way to explain themselves, and log what you decided. Your users get treated fairly and your support team avoids a pile of angry tickets.
Industry observers note that poll at the speed the provider recommends (every 2 to 3 seconds for Quetext), and remember that those polls count against your limit too. Once you’re in production, move checks into a background queue and let one worker poll every pending report, rather than having each user request poll by itself. When you do get a 429, wait a moment and retry.
No. If the browser calls the API directly, your key ends up in the frontend code where anyone can copy it and spend your credit. Keep the key in an environment variable on your server and send requests through your own endpoint, like the one in this tutorial. That also gives you somewhere to check input length, apply per-user limits and cache results before you pay for anything.
7 Day Free Trial. Cancel Anytime.
📅 22 Oct 2024 | ⏱️ 7 min read (1395 words, 📚 Deep Dive) | Source: Hugging Face
Speech-to-Speech (S2S) is an exciting new project from Hugging Face that combines several advanced models to create a seamless, almost magical experience: you speak, and the system responds with a synthesized voice.
Industry observers note that the project implements a cascaded pipeline leveraging models available through the Transformers library on the Hugging Face hub. The pipeline consists of the following components:.
What's more, S2S has multi-language support! It currently supports English, French, Spanish, Chinese, Japanese, and Korean. You can run the pipeline in single-language mode or use the auto flag for automatic language detection. Check out the repo for more details here.
According to recent reports, running Speech-to-Speech requires significant computational resources. Even on a high-end laptop you might encounter latency issues, particularly when using the most advanced models. While a powerful GPU can mitigate these problems, not everyone has the means (or desire!) to set up their own hardware.
Industry observers note that this is where Hugging Face's Inference Endpoints (IE) come into play. Inference Endpoints allow you to rent a virtual machine equipped with a GPU (or other hardware you might need) and pay only for the time your system is running, providing an ideal solution for deploying performance-heavy applications like Speech-to-Speech.
Sources indicate that in this blog post, we’ll guide you step by step to deploy Speech-to-Speech to a Hugging Face Inference Endpoint. This is what we'll cover:.
Inference Endpoints provide a scalable and efficient way to deploy machine learning models. These endpoints allow you to serve models with minimal setup, leveraging a variety of powerful hardware. Inference Endpoints are ideal for deploying applications that require high performance and reliability, without the need to manage underlying infrastructure.
Here's a few key features, and be sure to check out the documentation for more:.
In a recent development, inference Endpoints supports all of the Transformers and Sentence-Transformers tasks, but can also support custom tasks. These are the IE setup options:.
In a recent development, for simpler models, options 1 and 2 are ideal and make deploying with Inference Endpoints super straightforward. However, for a complex pipeline like S2S, you will need the flexibility of option 3: deploying our IE using a custom Docker image.
Industry observers note that this method not only provides more flexibility but also improved performance by optimizing the build process and gathering necessary data. If you’re dealing with complex model pipelines or want to optimize your application deployment, this guide will offer valuable insights.
Industry observers note that to begin creating a custom Docker image, we started by cloning Hugging Face’s default Docker image repository. This serves as a great starting point for deploying machine learning models in inference tasks.
You can check out all of our changes here.
With the repository cloned, the next step was tailoring the image to support our Speech-to-Speech pipeline.
Recent findings suggest that to integrate the project smoothly, we added the speech-to-speech codebase and any required datasets as submodules. This approach offers better version control, ensuring the exact version of the code and data is always available when the Docker image is built.
By including data directly within the Docker container, we avoid having to download it each time the endpoint is instantiated, which significantly reduces startup time and ensures the system is reproducible. The data is stored in a Hugging Face repository, which provides easy tracking and versioning.
Next, we modified the Dockerfile to suit our needs:.
Once the modifications were in place, we built and pushed the custom image to Docker Hub:.
Industry observers note that with the Docker image built and pushed, it’s ready to be used in the Hugging Face Inference Endpoint. By using this pre-built image, the endpoint can launch faster and run more efficiently, as all dependencies and data are pre-packaged within the image.
Industry observers note that using a custom docker image just requires a slightly different configuration, feel free to check out the documentation. We will walk through the approach to do this in both the GUI and the API.
The Model Repository doesn't actually matter since the models are specified and downloaded in the container creation, but Inference Endpoints requires a model, so feel free to pick a slim one of your choice.
You need to specify HF_TOKEN because we need to download gated models in the container creation stage. This won't be necessary if you use models that aren't gated or private.
The current huggingface-inference-toolkit entrypoint uses port 5000 as default, but the inference endpoint expects port 80. You should match this in the Container Port. We already set it in our dockerfile, but beware if making your own from scratch!
Here we will walk through the steps for creating the endpoint with the API. Just use this code in your python environment of choice.
Make sure to use 0.25.1 or greater.
Use a token that can write an endpoint (Write or Fine-Grained).
Industry observers note that to use the endpoint, we will need to build a small webservice. The code for it is done on s2s_handler.py in the speech_to_speech library which we use for the client and webservice_starlette.py in thespeech_to_speech_inference_toolkit which we used to build the docker image. Normally, you would only have a custom handler for an endpoint, but since we want to have a really low latency, we also built the webservice to support websocket connections instead of normal requests. This sounds intimidating at first, but the webservice is only 32 lines of code!
This code will run prepare_handler on startup, which will initialize all the models and warm them up. Then, each message will be processed by inference_handler.process_streaming_data.
This method simply receives the audio data from the client, chunks it into small parts for the VAD, and submits it to a queue for processing. Then it checks the output processing queue (the spoken response from the model!) and returns it if there is something. All of the internal processing is handled by Hugging Face's speech_to_speech library.
Industry observers note that the webservice receives and returns audio. But there is still a big missing piece, how do we record and play back the audio? For that, we created a client that connects to the service. The easiest is to divide the analysis in the connection to the webservice and the recording/playing of audio.
In a recent development, initializing the webservice client requires setting a header for all messages with our Hugging Face Token. When initializing the client, we set what we want to do on common messages (open, close, error, message). This will determine what our client does when the server sends it messages.
We can see that the reactions to the messages are straight forward, with the on_message being the only method with more complexity. This method understands when the server is done responding and starts 'listening' back to the user. Otherwise, it puts the data from the server in the playback queue.
The client's audio section has 4 tasks:.
Sources indicate that the audio is recorded on the audio_input_callback method, it simply submits all chunks to a queue. Then, it is sent to the server with the send_audio method. Here, if there is no audio to send, we still submit an empty array in order to receive a response from the server. The responses from the server are handled by the on_message method we saw earlier in the blog. Then, the playback of the audio responses are handled by the audio_output_callback method. Here we only need to ensure that the audio is in the range we expect (We don't want to destroy someone eardrum's because of a faulty package!) and ensure that the size of the output array is what the playback library expects.
In this post, we walked through the steps of deploying the Speech-to-Speech (S2S) pipeline on Hugging Face Inference Endpoints using a custom Docker image. We built a custom container to handle the complexities of the S2S pipeline and demonstrated how to configure it for scalable, efficient deployment. Hugging Face Inference Endpoints make it easier to bring performance-heavy applications like Speech-to-Speech to life, without the hassle of managing hardware or infrastructure.
If you're interested in trying it out or have any questions, feel free to explore the following resources:.
It has been revealed that have problems or questions? Open a discussion on the relevant GitHub repository, and we’ll be happy to help!
📅 22 Oct 2024 | ⏱️ 5 min read (1044 words, 📚 Deep Dive) | Source: Hugging Face
Industry observers note that dottxt and Hugging Face are excited to announce that we have been collaborating on outlines-core, a Rust port of outlines’s core algorithms for structured generation. On top of getting reliable output from LLMs with outlines, this Rust port offers several further benefits to users of outlines:.
In a recent development, these improvements should not only improve the performance for existing outlines owners, but also dramatically increase the ways users can incorporate structured generation into their LLM workflows. outlines-core is now public, integrated in outlines, and the version 0.1.0 of the Python bindings are out. You can find the repo here.
Industry observers note that structured generation means that your LLM is guaranteed to follow a desired format. This could be JSON, a Pydantic Model, a regular expression or a context-free grammar. The key is that structured generation forbids the 'wrong' tokens from being generated.
Sources indicate that let’s take an extremely simple example. The LLM should generate a boolean, “true” or “false”. And nothing more. For the sake of illustration, let’s say that LLMs generate characters instead of tokens. So the first character is ", we can just skip the forward pass. For the second, we don’t need to sample from all possible characters. The LLM should just choose between t or f.
According to recent reports, after that, regardless of the path we take, there is only one valid next character. If the LLM chose t as the first character, then it has to follow with r, u and e. And similarly if it chose f it follows with a, l, s, e. And will choose the last " as the final character regardless of the path. There is of course more under the hood, for more in-depth coverage we recommend this dottxt blog and the associated paper on arxiv.
In a recent development, it might not immediately be obvious how amazing structured generation can be. The first use-case many think of is “nice, now my LLM can return valid JSON, so I can treat it as an API and serialize/deserialize JSON reliably”. But that’s just scratching the surface. When you think about it, structure is everywhere, even in places where you least expect it like the GSM8K benchmark.
These are just a few examples of what structured generation enables:.
In a recent development, and, perhaps more surprising, it reduces the sensitivity of evaluations to the specific prompt being used and the number of shots. Apart from the amazing tricks that structure gives you, it’s also more performant. The dottxt blog has many good articles with performance benchmarks.
Probably the first thing that comes to your mind when you hear “rewrite in Rust” is performance. And yes, that’s the case for outlines-core as well. Several key parts are yet to be moved over to Rust, and despite that, we already see an average 2x improvement in compilation speed.
Industry observers note that before the Rust port, Outlines used Numba to accelerate the building of the index. While Numba is fast (the runtime performance is comparable to Rust), the JIT-compilation of the Numba functions added a source of latency during the first run, which was a source of frustration for many customers. Using Rust means we can compile the index building functions ahead of time, adding no latency during the first run. While this was not crucial in a production context (since the first run could anyways be done as part of deployment), it can make a huge difference during the experimentation phase!
One of the main reasons for rewriting Outlines in Rust is the emphasis on safety and reliability that Rust brings to the table. Rust's strong static typing, combined with Rust's ownership model, eliminate entire classes of bugs, such as null pointer dereferences and data races in concurrent code. This leads to more robust and secure software.
In the context of Outlines, safety is crucial. Structured generation often involves complex data structures and manipulations, especially when dealing with high-performance inference engines. By leveraging Rust's safety guarantees, we reduce the risk of runtime errors and undefined behaviors that can arise from memory mismanagement.
Additionally, Rust's compile-time checks encourage developers to write cleaner and more maintainable code. This improves the current codebase and makes future development more efficient. New contributors can onboard more swiftly, and the code is easier to audit and verify for correctness.
It has been revealed that outlines was designed to do more than providing the core algorithms for structured generation. Among other things, it includes integrations to other libraries like transformers which mean the library packs many dependencies. Separating the core algorithms from the Outlines library means that other libraries wishing to include structured generation can do so by importing a very lightweight library. So we can imagine in the near future libraries such as transformers and llama-cpp-python integrating structured generation directly. This allows the dottxt team to focus on the core algorithms.
According to recent reports, most of LLM training is written in Python, but inference is slightly different. It happens on many different devices, on specialized servers and is written in a range of programming languages. This is why portability also matters for structured generation. By having the core functionality of outlines written in rust, we can now create bindings to other languages.
Sources indicate that for example, this port makes the integration into the text-generation-inference much smoother. TGI’s server logic is written in Rust, and we want to avoid having to call Python code as much as we possibly can. It also means libraries like mistral.rs or models implemented using candle can benefit from Outlines’s performance and capabilities.
According to recent reports, in the future we plan to explore bindings to JS/TS, allowing outlines to be used in transformers-js. Or potentially Swift bindings, making outlines natively usable on Apple devices. But for now the focus is going to be on the Python bindings, and continuing to make outlines-core’s feature set complete by expanding support for the JSON Schema specification.
According to recent reports, do you like working with structured generation, parsers, making LLMs output only valid JSON? Star the library, tweet about it, join in and contribute! Share your work on Twitter, and with dottxt’s and Hugging Face's community.
📅 22 Oct 2024 | ⏱️ 2 min read (466 words, 📖 Standard) | Source: Hugging Face
Stable Diffusion 3.5 is the improved variant of its predecessor, Stable Diffusion 3. As of today, the models are available on the Hugging Face Hub and can be used with 🧨 Diffusers.
The release comes with two checkpoints:.
In this post, we will focus on how to use Stable Diffusion 3.5 (SD3.5) with Diffusers, covering both inference and training.
The transformer architecture of SD3.5 (large) is very similar to SD3 (medium), with the following changes:.
Industry observers note that the rest of the details in terms of the text encoders, VAE, and noise scheduler stay exactly the same as in SD3 Medium. For more on SD3, we recommend checking out the original paper.
Make sure you install the latest version of diffusers:.
The following snippet will download the 8B parameter version of SD3.5 in torch.bfloat16 precision. This is the format used in the original checkpoint published by Stability AI, and is the recommended way to run inference.
The release also comes with a “timestep-distilled” model that eliminates classifier-free guidance and lets us generate images in fewer steps (typically in 4-8 steps).
According to recent reports, all the examples shown in our SD3 blog post and the official Diffusers documentation should already work with SD3.5. In particular, both of those resources dive deep into optimizing the memory requirements to run inference. Since SD3.5 Large is significantly larger than SD3 Medium, memory optimization becomes crucial to allow inference on consumer interfaces.
Diffusers natively supports working with bitsandbytes quantization, which optimizes memory even more.
First, make sure to install all the libraries necessary:.
Then load the transformer in “NF4” precision:.
And now, we’re ready to run inference:.
Sources indicate that you can control other knobs in the BitsAndBytesConfig. Refer to the documentation for details.
Industry observers note that it is also possible to directly load a model quantized with the same nf4_config as above. This is particularly helpful for machines with low RAM. Refer to this Colab Notebook for an end-to-end example.
Thanks to libraries like bitsandbytes and peft, it is possible to fine-tune large models like SD3.5 Large on consumer GPU cards having 24GBs of VRAM. It is already possible to leverage our existing SD3 training script for training LoRAs. The below training command already works:.
However, to make it work with quantization, we need to tweak a couple of knobs. Below, we provide pointers on how to do that:.
Refer to this example script for a fuller example.
You can load the Stable Diffusion 3.5 Transformer model using the original checkpoint files published by Stability AI with the from_single_file method:.
In a recent development, acknowledgements: Daniel Frank for the background photo used in the thumbnail of this blog post. Thanks to Pedro Cuenca and Tom Aarsen for their reviews on the post draft.
📅 22 Oct 2024 | ⏱️ 3 min read (642 words, 📚 Deep Dive) | Source: Hugging Face
After more than a year of development, we're excited to announce the release of 🤗 Transformers.js v3!
You can get started by installing Transformers.js v3 from NPM using:.
Then, importing the library with.
For more information, check out the documentation.
Recent findings suggest that webGPU is a new web standard for accelerated graphics and compute. The API enables web developers to use the underlying system's GPU to carry out high-performance computations directly in the browser. WebGPU is the successor to WebGL and provides significantly better performance, because it allows for more direct interaction with modern GPUs. Lastly, it supports general-purpose GPU computations, which makes it just perfect for machine learning!
As of October 2024, global WebGPU support is around 70% (according to caniuse.com), meaning some users may not be able to use the API.
If the following demos do not work in your browser, you may need to enable it using a feature flag:.
Thanks to our collaboration with ONNX Runtime Web, enabling WebGPU acceleration is as simple as setting device: 'webgpu' when loading a model. Let's see some examples!
Example: Compute text embeddings on WebGPU (demo).
Example: Perform automatic speech recognition with OpenAI whisper on WebGPU (demo).
Example: Perform image classification with MobileNetV4 on WebGPU (demo).
Sources indicate that before Transformers.js v3, we used the quantized option to specify whether to use a quantized (q8) or full-precision (fp32) variant of the model by setting quantized to true or false, respectively. Now, we've added the ability to select from a much larger list with the dtype parameter.
The list of available quantizations depends on the model, but some common ones are: full-precision ("fp32"), half-precision ("fp16"), 8-bit ("q8", "int8", "uint8"), and 4-bit ("q4", "bnb4", "q4f16").
(e.g., mixedbread-ai/mxbai-embed-xsmall-v1).
Example: Run Qwen2.5-0.5B-Instruct in 4-bit quantization (demo).
According to recent reports, some encoder-decoder models, like Whisper or Florence-2, are extremely sensitive to quantization settings: especially of the encoder. For this reason, we added the ability to select per-module dtypes, which can be done by providing a mapping from module name to dtype.
Example: Run Florence-2 on WebGPU (demo).
Recent findings suggest that this release increases the total number of supported architectures to 120 (see full list), spanning a wide range of input modalities and tasks. Notable newly introduced names include: Phi-3, Gemma & Gemma 2, LLaVa, Moondream, Florence-2, MusicGen, Sapiens, Depth Pro, PyAnnote, and RT-DETR.
It has been revealed that as part of the release, we've published 25 upcoming example projects and templates, primarily focused on showcasing WebGPU support! This includes demos like Phi-3.5 WebGPU and Whisper WebGPU, as shown below.
We're in the process of moving all our example projects and demos to https://github.com/huggingface/transformers.js-examples, so stay tuned for updates on this!
As of today's release, the community has converted over 1200 models to be compatible with Transformers.js! You can find the full list of available models here.
If you'd like to convert your own models or fine-tunes, you can use our conversion script as follows:.
After uploading the generated files to the Hugging Face Hub, remember to add the transformers.js tag so others can easily find and use your model!
Transformers.js v3 is now compatible with the three most popular server-side JavaScript runtimes:.
Finally, we're delighted to announce that Transformers.js will now be published under the official Hugging Face organization on NPM as @huggingface/transformers (instead of @xenova/transformers, which was used for v1 and v2).
We've also moved the repository to the official Hugging Face organization on GitHub (https://github.com/huggingface/transformers.js), which will be our newly introduced home — come say hi! We look forward to hearing your feedback, responding to your complications, and reviewing your PRs!
It has been revealed that this is a significant milestone and we're extremely grateful to the community for helping us achieve this long-term goal! None of this would be possible without all of you… thank you! 🤗.
📅 30 Oct 2026 | ⏱️ 9 min read (1880 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
Sources indicate that weekly. Free. One click to leave.
It has been revealed that 7 Day Free Trial. Cancel Anytime.
Juicebox details come from Juicebox's public pricing, product and documentation pages, checked October 14, 2026.
Pin is built for recruiting teams that want sourcing, outreach and interview scheduling in one product, and it is trusted by 2,000+ organizations and 20,000+ users. SHRM found AI use in HR tasks reached 43% of organizations in 2025, up from 26% in 2024. Some comparisons call Pin a solo-recruiter tool. This one checks Pin and Juicebox against their current public pages.
Pin (pin.com) is an AI recruiting platform that automates the top of the funnel, from sourcing and outreach to interview scheduling, for solo recruiters, agencies and in-house teams. Juicebox (PeopleGPT) is an AI sourcing platform that pairs natural-language candidate search with outreach sequences, ATS and CRM integrations, and add-on AI agents. For a longer feature-by-feature breakdown, see Pin's Pin vs Juicebox comparison.
It has been revealed that no. Pin has a one-seat Solo initiative at $99 a month on annual billing, and solo recruiters and small agencies use it. But Pin's team features and pricing are built for multiple users:.
Juicebox does team work too. According to its pricing page (October 2026), Growth lets you invite up to five teammates to collaborate on searches, shortlists and outreach, and Business adds hiring-manager seats, usage analytics and ATS or CRM integration. Pin's team pages describe hiring managers, sourcers and closers sharing one view of the req.
Pin claims it searches 850M+ profiles across multiple sources, including North America and Europe, aggregated from professional networks, GitHub, Stack Overflow, open-source contributions, patents, academic publications and the broader web. You can search in plain language, paste a job description, upload ideal résumés or import a role from your ATS. Each ranked candidate gets a fit score and an AI-written reason, and the model learns from accept and reject feedback across the team.
In a recent development, juicebox offers natural-language search over a stated 800 million profiles from "30+" sources, and its AI Spotlight also explains why a candidate matches. It adds three data features worth knowing about:.
Pin lists Talent Insights on Professional and Business too. Profile counts say little about quality, so run the same roles in both. If you are also pricing LinkedIn's tool, see LinkedIn Recruiter alternatives.
Pin runs multi-channel sequences across email, LinkedIn and SMS: automated email steps plus AI-drafted LinkedIn and SMS tasks in the same sequence, which the recruiter sends. Pin reports those sequences deliver 5x better response rates than industry averages, benchmarked against LinkedIn's published 10-25% InMail reply rates. Pin drafts each message from the candidate's own profile signals and calibrates to your writing voice. Sequences adapt per candidate, any reply pauses the sequence, and every channel stays in one thread. The Free blueprint is email-only, multi-channel sequences start on Solo, and Professional includes five mailboxes per user.
Juicebox's outreach page (October 2026) describes "email, calls, and social touches in one sequence," automatic stop on reply and analytics by step and channel. Growth includes three mailboxes per seat, Business six. Its agents page describes agent outreach as email only.
In a recent development, no. Pin's AI recruiting agent has two modes. In Assist, you approve each step. In Autopilot, the agent sources, screens and ranks, drafts outreach, sends the email steps, follows up on silence, schedules interviews and updates the ATS. LinkedIn and SMS steps queue as tasks with AI-drafted messages that the recruiter sends. Pin assists recruiters and never replaces them: closing and offers stay human. Human-in-the-loop guardrails apply, and every action appears in a feed. Pin saves recruiters 12 hours per week on sourcing and outreach combined, according to Pin's 2026 user survey across 2,000+ organizations and 20,000+ consumers.
It is also steerable. Pin asks clarifying questions about the brief, such as "Is remote considered?", and you refine in plain language. Josh Volinsky, Co-Founder of Synergy Search, notes: "Pin makes sourcing candidates so natural and I love how you can just talk to it like it's a recruiter on your team and it goes hunting.".
Sources indicate that pin's MCP server lets you work from Claude Desktop, Claude Code, ChatGPT or Codex: start searches, review candidates, tune the search in plain language and keep per-job memory. Pin says "You still approve every accept, reject, and outreach." It is free on every paid blueprint.
It has been revealed that juicebox's agents are steerable too. According to its agents page (October 2026), you recalibrate by chatting with the agent, with autonomy from fully hands-off to manual checkpoints at shortlist or sequencing. Its MCP server, introduced in August 2026, rolls out agents and pulls usage and reply-rate reports. The agents page does not describe interview scheduling, and each agent is a separate $199 monthly add-on.
In a recent development, so the differences are scope and price, not steerability. For the wider field, see best AI recruiting agents.
In a recent development, five recruiters need Pin Professional or Juicebox Growth, because Juicebox Starter is one seat. Prices are list prices published October 14, 2026.
It has been revealed that credits are metered differently. Pin charges 1 credit per personal email, work email or phone number. According to Juicebox's credits documentation (October 2026), an email is 1 credit and a phone number is 3. Revealing email plus phone costs 2 credits on Pin and 4 on Juicebox, so the included allowance covers about 2,500 full contacts a month on Pin and 1,875 on Juicebox.
Past five recruiters, Juicebox requires Business, which is custom-priced and annual only.
Industry observers note that price history. According to Juicebox's archived pricing pages, Growth cost $99 per seat per month billed annually in April 2024, with up to 10 seats and 250 contact credits. Today it is $179, up to 5 seats and 1,500 credits. In March 2026 alone, the monthly Growth price rose from $179 to $199 per seat, and agents moved from $300 for two to $199 each. Confirm current prices on Pin's pricing page and on Juicebox's own pricing page. For what reviewers say about the cost, see Juicebox AI reviews 2026.
It has been revealed that both list SOC 2 Type II. Pin's trust center covers SOC 2 Type 2 (third-party audited), encryption at rest and in transit, and GDPR and CCPA readiness. Juicebox lists SSO and role-based access control.
On AI fairness, both vendors now have third-party work behind them. Pin uses third-party fairness audits and feeds no names, gender or protected characteristics to the AI, with checkpoints at every step and regular team reviews of AI outputs. Its trust center lists a Pin Algorithmic Fairness Report (August 2026), available on request.
In a recent development, juicebox posts its audit dashboard publicly, hosted by Warden AI, a third-party assurance provider. It indicated monthly audits of Juicebox's Autopilot candidate-ranking feature, the latest dated August 6, 2026, with reports for NYC Local Law 144, the EU AI Act, Colorado and California.
Whichever tool you choose, request the bias documentation. Gartner's 2025 survey of 2,918 job candidates found only 26% trust AI to evaluate them fairly. Latest York City's Local Law 144 requires a bias audit within a year of using an automated employment decision tool. Ask counsel whether a sourcing tool counts.
For recruiting teams and agencies that want one product from sourcing through scheduling, Pin covers that whole flow.
Choose Pin if: - You want sourcing, outreach, scheduling and ATS updates in one product, with a shared inbox. - You have or expect more than five recruiters, or run an agency needing a multi-client CRM. - You want agents included in the seat price, plus a free start.
Juicebox is good for: - Teams that need hiring-manager seats to review shortlists, on its custom-priced Business blueprint. - Teams that value compensation estimates (Growth and up) or warm-intro network sourcing (Business only).
When Pin is not the right fit: teams that only need high-volume inbound applicant screening.
Run both tools on the same three roles (hard to fill, non-tech, senior), then check:.
Support matters too. Victoria Wright, Principal Recruiter at Odyssey, switched from Juicebox and says: "We switched to Pin from Juicebox because the customer experience was in a completely different league, from a personalized demo to a webinar that taught me more than any free trial could.".
Yes, for teams that want one tool from sourcing through scheduling. Pin (pin.com) combines sourcing, multi-channel outreach sequences, interview scheduling and a shared inbox with dedupe, has no seat cap on Professional, and includes two AI agents per user. Juicebox is good for teams that specifically need compensation data or network sourcing, with a five-seat Growth cap and per-agent pricing. Run the same roles in both and compare shortlists.
Pin works for both. Solo is a single-seat blueprint, and Professional adds team collaboration, a shared inbox, admin seats, team activity reporting, a deduped shared candidate pool and sourcer-to-closer handoffs. Agencies get a multi-client CRM.
Juicebox Growth costs $199 per seat per month billed monthly or $179 billed annually, capped at five seats, and agents add $199 each per month. Pin Professional costs $179 per user per month month-to-month or $135 billed annually, with two agents per user included. For five seats on annual billing, that is $8,100 a year on Pin and $10,740 on Juicebox before agents, or $15,516 with two Juicebox agents.
In a recent development, juicebox Starter is one seat and Growth allows up to five; larger teams need Business, which is custom-priced and annual only. Pin Professional has no seat cap at $135 per user per month billed annually, and Business adds unlimited seats, credits and agents. A team of six or more can stay on Pin's published pricing.
Yes. Pin's agent runs in Assist mode, where you approve each step, or Autopilot, where it sources, screens, drafts outreach, sends the email steps, follows up and schedules. It asks clarifying questions and takes plain-language refinements, and the Pin MCP server lets you run searches from Claude or ChatGPT. Juicebox Agents are also conversational, so test both on a live role. For more options, see Juicebox alternatives in 2026.
Industry observers note that pin lists SOC 2 Type 2 (third-party audited), encryption and GDPR and CCPA readiness at trust.pin.com. Pin uses third-party fairness audits, feeds no names, gender or protected characteristics to the AI, and lists an Algorithmic Fairness Report (August 2026) in its trust center on request. Juicebox posts a Warden AI audit dashboard publicly. Ask each vendor what its documentation covers.
According to recent reports, for teams that want one product from sourcing through scheduling, Pin covers the whole workflow: a shared inbox with dedupe, no seat cap and agents included in the seat price, backed by a 4.8/5 rating on G2. Juicebox is good for teams that need compensation data or warm-intro sourcing and can work within a five-seat Growth cap and $199-per-agent pricing.
Sources indicate that try Pin free at pin.com. No credit card required.
Sponsored posts are provided by our content partners. Thank you for supporting the partners who make SitePoint possible.
It has been revealed that 7 Day Free Trial. Cancel Anytime.
📅 22 Oct 2024 | ⏱️ 2 min read (433 words, 📖 Standard) | Source: Hugging Face
We are pleased to announce our partnership with Protect AI, as part of our long-standing commitment to provide a safe and reliable platform for the ML community.
According to recent reports, protect AI is a company founded with a mission to create a safer AI-powered world. They are developing powerful tools, namely Guardian, to ensure that the rapid pace of AI innovation can continue without compromising security.
Our decision to partner with Protect AI stems from their community driven approach to security, active support of open source, and expertise in all things security x AI.
Interested in joining our security partnership / providing scanning information on the Hub? Please get in touch with us over at security@huggingface.co.
To share models, we serialize weights, configs and other data structures we use to interact with the models, in order to facilitate storage and transport. Some serialization formats are vulnerable to nasty exploits, such as arbitrary code execution (looking at you pickle), making shared models that use those formats potentially dangerous.
As Hugging Face has become a popular platform for model sharing, we’d like to help protect the community from this, hence why we have developed tools like picklescan and why we are integrating Guardian in our scanner suite.
It has been revealed that pickle is not the only exploitable format out there, see for reference how one can exploit Keras Lambda layers to achieve arbitrary code execution. The good news is that Guardian catches both of these exploits and more in additional file formats – see their Knowledge Base for up to date scanner information.
Read all our documentation on security here: https://huggingface.co/docs/hub/security 🔥.
While integrating Guardian as a third-party scanner, we have used this as an opportunity to revamp our frontend to display scan results. Here is what it now looks like:.
Industry observers note that as you can see from the screenshot, there's nothing you have to do to benefit from this! All public model repositories will be scanned by Guardian automatically as soon as you push your files to the Hub. Here is an example repository you can check out to see the feature in action: mcpotato/42-eicar-street.
In a recent development, note that you might not see a scan for your model as of today, as we have over 1 million model repos. It may take us some time to catch up 😅.
In total, we have already scanned hundreds of millions of files, because we believe that empowering the community to share models in a safe and frictionless manner will lead to growth for the whole field.
📅 23 Oct 2024 | ⏱️ 4 min read (797 words, 📚 Deep Dive) | Source: Hugging Face
Sources indicate that in this blog post we share the journey of releasing CinePile 2.0, a significantly improved version of our long video QA dataset. The improvements in the new dataset rely on a new approach that we coined adversarial dataset refinement.
We're excited to share both CinePile 2.0 and our adversarial refinement method implementation, which we believe can strengthen many existing datasets and directly be part of future dataset creation pipelines.
If you are mainly interested in the adversarial refinement method, you can jump directly to the Adversarial Refinement section.
In May 2024, we launched CinePile, a long video QA dataset with about 300,000 training samples and 5,000 test samples.
The first release stood out from other datasets in two aspects:.
Industry observers note that part of the secret sauce behind it is that it relies on movie clips from YouTube and Q&A distilled from precise audio descriptions designed for visually impaired audiences. These descriptions offer rich context beyond basic visuals (e.g., "What color is the car?"), helping us create more complex questions.
It has been revealed that to automate question creation, we first built question templates by inspecting existing datasets like MovieQA and TVQA. We clustered the questions in these datasets using a textual similarity model WhereIsAI/UAE-Large-V1 and then prompted GPT-4 with 10 random examples from each cluster to generate a question template and a prototypical question for each:.
It has been revealed that since templates aren't always relevant to every movie clip, we used Gemini 1.0 Pro to select the most appropriate ones for each scene. Next, we feed a language model the scene's text, selected template names (e.g., "Physical Possession"), sample questions, and a system prompt to create scene-specific questions. A well-designed prompt helps the model focus on the entire scene, generating deeper questions while avoiding superficial ones. We found that:.
Using this approach, we generate approximately 32 questions per video. Prior to releasing CinePile, we implemented several mechanisms to ensure the quality of the dataset/benchmark that we cover in the next section.
While our process typically generates well-formed, answerable questions, some turn out to be trivial or rely on basic concepts that don't require watching the clip. To address this, we used several large language models (LLMs) to identify and filter three types of issues:.
Through continued use of the benchmark by our team and the broader community, we identified several areas for improvement that drove us to consider CinePile 2.0.
For CinePile's second release, we worked together with Hugging Face (following their successful experimentation with fine-tuning Video Llava 7B on CinePile) to identify and prioritize several areas of improvement.
While the degeneracy filtering was useful in CinePile 1.0, it had several limitations:.
In a recent development, to address these issues, we introduced a upcoming Adversarial Refinement pipeline that helps improve weak questions rather than simply discarding them. This approach can be more easily applied at scale. Throughout this post, we'll refer to the model(s) that identify degenerate questions (using only the question and answer choices, without visual or dialogue information) as the "Deaf-Blind LLM.".
The Adversarial Refinement pipeline aims to modify questions or answers until a Deaf-Blind LLM cannot easily predict the correct answer. Here's how it works:.
Recent findings suggest that given the computational demands of this iterative process, we needed a powerful yet accessible LLM that could run locally to avoid API usage limits, delays, and cloud service costs. We chose:.
To account for random chance, we:.
Briefly, this was the impact of running adversarial refinement in CinePile:.
Recent findings suggest that in this release, we're publishing both our adversarial refinement pipeline and the code for identifying weak questions. The complete implementation, including all prompts, is available in our public repository.
It has been revealed that after testing both previously evaluated models and 16 new Video-LLMs on the modified test set, we’ve highlighted the top performers in the figure below. Here’s what the results show:.
Gemini 1.5 Pro led among commercial Vision Language Models (VLMs).
GPT-based models showed competitive performance.
Gemini 1.5 Flash, a lighter version of Gemini 1.5 Pro.
In a recent development, the open-source video-LLM community has made significant progress from the first to the current release of CinePile. This is what we learned:.
LLaVa-One Vision leads open-source models.
Smaller models showed competitive performance.
Industry observers note that the hard-split results in CinePile clearly demonstrate that current models still lag far behind human capability in understanding visual narratives and story elements. This gap highlights the value of CinePile's new release as a benchmark for measuring progress toward more sophisticated visual understanding.
Recent findings suggest that we've released a upcoming CinePile Leaderboard that will be continuously updated as new models emerge. Visit the space to learn how to submit your own models for evaluation.
📅 31 Oct 2026 | ⏱️ 8 min read (1648 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
Weekly. Free. One click to leave.
Recent findings suggest that 7 Day Free Trial. Cancel Anytime.
AI-generated images are becoming a common part of modern web development. Developers use them for website banners, product illustrations, landing pages, blog posts, and digital interfaces. However, generating an image is only one part of the process. Before publishing it, developers need to ensure that the image loads swiftly, displays correctly across devices, and maintains its visual quality.
Large image files can increase page size, consume unnecessary bandwidth, and delay the appearance of crucial content. These problems can affect user experience and website performance, particularly on mobile devices and slower internet connections.
A reliable image optimization workflow helps address these challenges. By selecting appropriate dimensions, choosing efficient image formats, automating image processing, and implementing responsive delivery, developers can improve loading performance without sacrificing visual quality.
This guide explains how to optimize AI-generated images using practical techniques and development tools.
According to recent reports, images often account for a significant portion of a webpage's total download size. Uploading large, unoptimized images can make pages slower and increase the amount of data visitors need to download.
Several common problems contribute to poor image performance:.
Large files take longer to download.
Incorrect dimensions waste bandwidth on smaller screens.
Inefficient formats increase file sizes.
Missing image dimensions can cause unexpected layout shifts.
Poor responsive configuration can make browsers download unnecessarily large images.
Incorrect loading priorities can delay notable visual content.
These concerns can affect Core Web Vitals, including Largest Contentful Paint (LCP), which measures how swiftly the largest visible content element appears.
For developers, image optimization should therefore be part of the website development workflow rather than a final task performed immediately before publication.
Industry observers note that before optimizing an image, determine where it will appear on the website. A full-width banner requires different dimensions from a product thumbnail or a small interface graphic.
For example, a website might use the following dimensions:.
Sources indicate that these dimensions are examples rather than fixed requirements. The appropriate size depends on the website layout, responsive breakpoints, and supported devices.
When preparing source visuals, developers can explore different AI image generation options and consider how the generated images will fit their intended layouts.
According to recent reports, once the image is ready, keep a high-quality master file. This allows developers to create smaller versions for different screen sizes without repeatedly compressing an already optimized image.
Avoid enlarging small images unnecessarily because upscaling can introduce blur and visible artifacts.
Choosing the right format can reduce image size while preserving acceptable visual quality.
Three commonly used formats are AVIF, WebP, and JPEG.
In a recent development, AVIF: Often provides efficient compression for photographs and detailed illustrations. It can significantly reduce file sizes, although encoding may take longer.
WebP: Supports lossy and lossless compression, transparency, and animation. It offers broad browser support and is suitable for many website images.
JPEG: Remains useful for photographs and situations where compatibility with older software or systems is vital.
PNG is appropriate for certain lossless graphics, screenshots, and images that require transparency. However, it can produce unnecessarily large files when used for photographic content.
No format is automatically the best choice for every image. Developers should compare file sizes and inspect visual quality before selecting the final output.
A practical approach is to generate AVIF and WebP versions and provide a JPEG fallback where necessary.
Manually resizing and converting images becomes time-consuming when a website contains dozens or hundreds of visual assets.
Automation makes the process more consistent. Developers can use Sharp, a Node.js image-processing library, to resize images, convert formats, and generate multiple versions from a single source file.
Next, create a file named build-images.mjs:.
The script creates multiple image sizes in both WebP and AVIF formats.
The quality settings are starting points, not universal recommendations. Developers should adjust them after checking the resulting file sizes and visual details.
This approach is particularly useful for content-heavy websites, product catalogs, and applications that publish images regularly.
Responsive image delivery allows browsers to select an appropriate image based on the visitor's screen and the space available in the layout.
HTML provides two vital attributes for this purpose: srcset and sizes.
The srcset attribute lists the available image files and their widths. The sizes attribute describes how wide the image is expected to appear at different viewport sizes.
In this example, the image is expected to occupy approximately 720 pixels on wider screens and nearly the full viewport width on smaller screens.
The browser uses this information to choose an appropriate image candidate.
In a recent development, one common mistake is setting sizes="100vw" for an image that occupies only a small part of the page. This can encourage the browser to download a larger file than necessary.
Always ensure that the sizes attribute reflects the actual website layout.
The HTML picture element allows developers to provide multiple image formats and a fallback option.
The browser selects a supported format, while the img element provides the fallback image and alternative text.
Developers should verify that every referenced file exists and that its dimensions match the intended layout.
The picture element can also support different crops for desktop and mobile devices. This is useful when a wide banner needs a separate composition for smaller screens.
Images without defined dimensions can cause content to move while the browser loads the file. This behavior contributes to Cumulative Layout Shift (CLS).
Including width and height attributes helps browsers reserve the appropriate space before the image finishes loading.
For responsive layouts, developers can use CSS:.
This allows images to scale within their containers while maintaining their proportions.
Images below the initial viewport can generally use native lazy loading:.
However, the main hero image should not normally be lazy-loaded when it is responsible for LCP. Delaying an important above-the-fold image can make the page appear slower.
Where appropriate, developers can use fetchpriority="high" for the main image to help the browser prioritize its download.
The correct strategy depends on the image's position and importance within the page.
Industry observers note that image optimization involves more than file size and dimensions. Developers should also consider accessibility, file organization, and metadata.
Industry observers note that alternative text helps people using screen readers understand meaningful images. It should describe the image's purpose in the context of the page.
Decorative images that provide no useful information should generally use an empty alt attribute.
Industry observers note that file names should also be descriptive. Names such as home-office-sunrise.webp are easier to understand and maintain than generic names such as image-final-v3.png.
Metadata requires additional consideration. Image-processing tools may remove metadata by default to reduce file size. This can include information that a project needs to preserve, depending on its requirements.
Before removing metadata, developers should review whether the website or client requires attribution, provenance information, or other embedded details.
After implementing an optimization workflow, test the actual website rather than relying only on exported file sizes.
Chrome DevTools provides useful information about image requests.
Open Developer Tools and select the Network panel.
Resize the viewport or use device emulation.
Check whether the browser downloads appropriately sized images.
Developers can also inspect the image selected by the browser through the console:.
This returns the current image URL selected for that element.
For websites with multiple images, inspect the relevant elements individually.
Finally, run an audit using Lighthouse or PageSpeed Insights. These tools can identify issues involving oversized images, image formats, loading priorities, and other performance factors.
Recent findings suggest that image optimization is only one part of website performance. Server response times, caching, CSS, JavaScript, and third-party scripts can also influence loading speed.
Several mistakes can reduce the effectiveness of an image optimization workflow:.
Uploading original images without checking their dimensions.
Assuming one format always produces the smallest file.
Omitting the sizes attribute from responsive images.
Forgetting width and height attributes.
Lazy-loading vital above-the-fold images.
Applying excessive compression and damaging visual details.
Generating unnecessary image variations.
Testing only on desktop devices.
Removing metadata without checking project requirements.
Measuring file size without inspecting the final visual quality.
A consistent testing process helps identify these problems before they affect visitors.
According to recent reports, no. AVIF often provides efficient compression, but the results depend on the image, encoding settings, and quality requirements. Comparing both formats is the best way to choose an appropriate option.
Industry observers note that four to six sizes may be sufficient for many websites. The ideal number depends on the layout, responsive breakpoints, and supported devices.
It has been revealed that yes. Reducing the size of the main content image, providing responsive versions, and avoiding unnecessary loading delays can improve LCP when that image is the largest contentful element.
According to recent reports, no. Lazy loading is useful for images outside the initial viewport. Vital images near the top of the page should generally load promptly.
It has been revealed that the fundamental techniques are the same as those used for conventional images. However, AI-generated visuals may contain complex textures, gradients, and fine details that require careful inspection after compression.
AI-generated images can improve website design and make it easier to create custom visual content. However, efficient delivery requires more than exporting an image and uploading it to a website.
Developers should choose suitable dimensions, compare modern image formats, automate processing, and implement responsive image delivery. Including image dimensions helps prevent layout shifts, while appropriate loading priorities can improve the experience for visitors.
By testing images across different devices and reviewing their actual performance, development teams can maintain visual quality while reducing unnecessary downloads.
A repeatable optimization workflow makes it easier to publish upcoming visuals without sacrificing website speed, accessibility, or reliability.
In a recent development, 7 Day Free Trial. Cancel Anytime.
📅 23 Oct 2024 | ⏱️ 3 min read (631 words, 📚 Deep Dive) | Source: Hugging Face
September 2025 Update: We no longer offer HUGS model deployment containers.
To easily deploy optimized Hugging Face model in your infra, check out the Dell Enterprise Hub and the Hugging Face Collection in Azure AI Foundry.
Recent findings suggest that today, we are thrilled to announce the launch of Hugging Face Generative AI Services a.k.a. HUGS: optimized, zero-configuration inference microservices designed to simplify and accelerate the development of AI applications with open models. Built on open-source Hugging Face technologies such as Text Generation Inference and Transformers, HUGS provides the best solution to efficiently build and scale Generative AI Applications in your own infrastructure. HUGS is optimized to run open models on a variety of hardware accelerators, including NVIDIA GPUs, AMD GPUs, and soon AWS Inferentia and Google TPUs.
Industry observers note that HUGS simplifies the optimized deployment of open models in your own infrastructure and on a wide variety of hardware. One key challenge developers and organizations face is the engineering complexity of optimizing inference workloads for LLMs on a particular GPU or AI accelerator. With HUGS, we enable maximum throughput deployments for the most popular open LLMs with zero configuration required. Each deployment configuration offered by HUGS is fully tested and maintained to work out of the box.
It has been revealed that HUGS model deployments provide an OpenAI compatible API for a drop-in replacement of existing Generative AI applications built on top of model provider APIs. Just point your code to the HUGS deployment to power your applications with open models hosted in your own infrastructure.
HUGS offers an easy way to build AI applications with open models hosted in your own infrastructure, with the following benefits:.
We provided early access to HUGS to select Enterprise Hub customers:.
Recent findings suggest that HUGS is a huge timesaver to deploy locally ready-to-work models with good performances - before HUGS it would take us a week, now we can be done in less than 1 hour. For customers with sovereign AI requirements it's a game changer! - Henri Jouhaud, CTO at Polyconseil.
We tried HUGS to deploy Gemma 2 on GCP using a L4 GPU - we didn't have to fiddle with libraries, versions and parameters, it just worked out of the box. HUGS gives us confidence we can scale our internal usage of open models! - Ghislain Putois, Research Engineer at Orange.
According to recent reports, using HUGS is straightforward. Here's how you can get started:.
Note: You will need access to the appropriate subscription or marketplace offering depending on your chosen deployment method.
HUGS is available through several channels:.
For specific deployment instructions for each platform, please refer to the relevant documentation linked above.
HUGS offers on-demand pricing based on the uptime of each container, except for deployments on DigitalOcean.
It has been revealed that HUGS is based on Text Generation Inference (TGI), offering a seamless inference experience. For detailed instructions and examples, refer to the Run Inference on HUGS guide. HUGS leverages the OpenAI-compatible Messages API, allowing you to use familiar tools and libraries like cURL, the huggingface_hub SDK, and the openai SDK for sending requests.
In a recent development, HUGS supports a growing ecosystem of open models and hardware platforms. Refer to our Supported Models and Supported Hardware pages for the most up-to-date information.
We launch today with 13 popular open LLMs:.
For a detailed view of supported Models x Hardware, check out the documentation.
HUGS makes it easy to harness the power of open models, with zero-configuration optimized inference in your own infra. With HUGS, you can take control of your AI applications and easily transition proof of concept applications built with closed models to open models you host yourself.
Get started today and deploy HUGS on AWS, Google Cloud or DigitalOcean!
📅 23 Oct 2024 | ⏱️ 4 min read (756 words, 📚 Deep Dive) | Source: Hugging Face
According to recent reports, do you find it difficult to tell if text was written by a human or generated by AI? Being able to identify AI-generated content is essential to promoting trust in information, and helping to address problems such as misattribution and misinformation. Today, Google DeepMind and Hugging Face are excited to launch SynthID Text in Transformers v4.46.0, releasing later today. This technology allows you to apply watermarks to AI-generated text using a logits processor for generation tasks, and detect those watermarks with a classifier.
Check out the SynthID Text paper in Nature for the complete technical details of this algorithm, and Google’s Responsible GenAI Toolkit for more on how to apply SynthID Text in your products.
Industry observers note that the primary goal of SynthID Text is to encode a watermark into AI-generated text in a way that helps you determine if text was generated from your LLM without affecting how the underlying LLM works or negatively impacting generation quality. Google DeepMind has developed a watermarking technique that uses a pseudo-random function, called a g-function, to augment the generation process of any LLM such that the watermark is imperceptible to humans but is visible to a trained model. This has been implemented as a generation utility that is compatible with any LLM without modification using the model.generate() API, along with an end-to-end example of how to train detectors to recognize watermarked text. Check out the research paper that has more complete details about the SynthID Text algorithm.
It has been revealed that watermarks are configured using a dataclass that parameterizes the g-function and how it is applied in the tournament sampling process. Each model you use should have its own watermarking configuration that should be stored securely and privately, otherwise your watermark may be replicable by others.
You must define two parameters in every watermarking configuration:.
Recent findings suggest that the keys parameter is a list integers that are used to compute g-function scores across the model's vocabulary. Using 20 to 30 unique, randomly generated numbers is recommended to balance detectability against generation quality.
The ngram_len parameter is used to balance robustness and detectability; the larger the value the more detectable the watermark will be, at the cost of being more brittle to changes. A good default value is 5, but it needs to be at least 2.
It has been revealed that you can further configure the watermark based on your performance needs. See the SynthIDTextWatermarkingConfig class for more information.
The research paper includes additional analyses of how specific configuration values affect watermark performance.
In a recent development, applying a watermark is a straightforward change to your existing generation calls. Once you define your configuration, pass a SynthIDTextWatermarkingConfig object as the watermarking_config= parameter to model.generate() and all generated text will carry the watermark. Check out the SynthID Text Space for an interactive example of watermark application, and see if you can tell.
Watermarks are designed to be detectable by a trained classifier but imperceptible to humans. Every watermarking configuration you use with your models needs to have a detector trained to recognize the mark.
The basic detector training process is:.
Sources indicate that A Bayesian detector class is provided in Transformers, along with an end-to-end example of how to train a detector to recognize watermarked text using a specific watermarking configuration. Models that use the same tokenizer can also share watermarking configuration and detector, thus sharing a common watermark, so long as the detector's training set includes examples from all models that share a watermark.
In a recent development, this trained detector can be uploaded to a private HF Hub to make it accessible across your organization. Google’s Responsible GenAI Toolkit has more on how to productionize SynthID Text in your products.
SynthID Text watermarks are robust to some transformations, such as cropping pieces of text, modifying a few words, or mild paraphrasing, but this method does have limitations.
Industry observers note that synthID Text is not built to directly stop motivated adversaries from causing harm. However, it can make it harder to use AI-generated content for malicious purposes, and it can be combined with other approaches to give better coverage across content types and platforms.
The authors would like to thank Robert Stanforth and Tatiana Matejovicova for their contributions to this work.
I applied the WM to LLama2 and used the availably trained detector named "joaogante/dummy_synthid_detector".The output is return probability, not 1 (watermarked) or 0 (unwatermarked).Could you help me with threshold and how to train the detector?
📅 24 Oct 2024 | ⏱️ 8 min read (1563 words, 📚 Deep Dive) | Source: Hugging Face
This is a guest blog post by the Cohere For AI team. Cohere For AI is Cohere's research lab that seeks to solve complex machine learning problems.
According to recent reports, with the release of the Aya Expanse family, featuring 8B and 32B parameter models, we are addressing one of the most urgent challenges in AI: the lack of highly performant multilingual models that can rival the capabilities of monolingual ones. While AI has made tremendous progress, there remains a stark gap in the performance of models across multiple languages. Aya Expanse is the result of several years of dedicated research at C4AI --- data arbitrage, multilingual preference training, safety tuning, and model merging.
These combined breakthroughs have resulted in upcoming state-of-the-art performance on multilingual. We evaluate our models on a set of evaluations including the Arena-Hard-Auto dataset (paper), translated to the 23 languages which we release for others to use. In pairwise comparison, Aya Expanse 32B outperforms Gemma 2 27B, Mistral 8x22B, and Llama 3.1 70B, a model more than 2x its size, setting a new state-of-the-art for multilingual performance. We also release Aya Expanse 8B, which outperforms the leading open-weights models in its parameter class such as Gemma 2 9B, Llama 3.1 8B, and the recently released Ministral 8B with win rates ranging from 60.4% to 70.6%. We observe even larger gains across less challenging evals.
We release both models as open weights for the research community, and hope it will further accelerate multilingual progress. In this blog post, we share technical details behind each of the key algorithmic components used in the training pipeline.
The use of synthetic data – data generated by an expert or “teacher” model to train another model – has become increasingly central to the development of LLMs, particularly as model training has exhausted current data sources. However, for multilingual data, especially with low-resource languages, there are few good examples of teacher models, creating an extra added challenge to leveraging synthetic data. Furthermore, recent research has suggested that an over-reliance on synthetic data leads to model collapse.
Recent findings suggest that in our recent work we demonstrate that these limitations can be addressed through “data arbitrage” – strategically sampling from a pool of teacher models. This approach has notable implications as it challenges the traditional reliance on a single-teacher model for generating synthetic data. Instead, data arbitrage leverages performance variations among a pool of models. Although this technique is applicable to any domain, it is particularly suited to the multilingual setting, where the absence of a universally effective teacher that excels across all languages presents significant challenges In the creation of high-quality synthetic multilingual datasets, multilingual arbitrage proves valuable by utilizing a diverse pool of models to strategically sample different parts of the data distribution for improved multilingual generations.
We first train a model pool for groups of languages and employ an Arbiter to evaluate and select the optimal generation. The Arbiter here is an internal reward model (RM) to score the model generations. In Reward-Based Routing, for each prompt in a given language, we generate completions from all models in the pool and score them using the reward model. The completion with the highest score is chosen as the final completion for that prompt. Our 8B model, even at the SFT stage trained with Multilingual Arbitrage, had over 9.1% improvement in win-rate measured against Gemma 2 9B compared to the previous Aya 23 model, demonstrating the effectiveness of this approach in leveraging diverse model strengths across languages.
Following supervised fine-tuning, alignment to human preferences is a key step for training today’s state-of-the-art LLMs. Although heavily adopted, it is known that preference training is already challenging in a monolingual setting. Maximizing gains from preference training in a multilingual setting introduces even more challenges. The vast majority of existing preference datasets are exclusively English and the few existing multilingual preference datasets are often of low-quality. Moreover, modeling many diverse languages simultaneously is known to be a difficult optimization problem where naively optimizing for performance in some languages often leads to regressions in performance in other languages.
Industry observers note that in LHF Can Speak Many Languages: Unlocking Multilingual Preference Optimization for LLMs, we leverage a novel synthetic data generation technique to construct high-quality multilingual preference data pairs by contrasting in-language completions from a highly performant multilingual LLM with lower quality completions translated from English which were generated by a weaker model. This steers our model away from generating low-quality multilingual completions which often contain undesirable artifacts, such as those introduced by poor translation. We show that this method unlocks substantial gains in performance across all languages and often also results in gains for languages not included in the preference training data.
While this work also highlights that preference training with online data outperforms its offline variant, during training of Aya Expanse, we found that the combination of first preference-training with offline data followed by preference-training with online data to be better than either online or offline training alone. In the first preference training stage, we train on data curated by taking the highest and lowest reward responses from the Arbitrage stage as the chosen and rejected completions, which makes the first stage of DPO training offline.
In a recent development, after offline preference training, we run online iterative DPO, where we sample multiple online generations for each prompt from the model trained during the last iteration, rank these generations with a Reward Model, and then further train on these preference pairs. For both models, we repeat this process for 3 iterations as we found that going beyond 3 iterations led to minimal gains at the cost of additional re-tuning parameters like regularization coefficient (beta) and sometimes introduced reward hacking behavior. Overall, for Aya Expanse 8B, the combination of offline and online preference training on top of the model trained with arbitrage, led to 7.1% additional gains in win rate against Gemma 2 9B.
Industry observers note that A reappearing problem throughout any post-training (and pre-training) pipeline, whether it consists of a single stage such as SFT, or a more complex multi-stage optimization pipeline, such as our pipeline above, is choosing the right data mixtures for training. The intricacies of this process demand considerable effort in fine-tuning hyperparameters and data combinations. Merging multiple models is an alternative approach for enabling complex multi-tasking at a reduced aggregate computational cost. In Aya Expanse, we directly build on the findings of our recent research paper Mix Data or Merge Models? Optimizing for Diverse Multi-Task Learning and apply merging in both the Arbitrage phase, and at each iteration of preference training.
Industry observers note that when training multiple separate models with the goal of merging, it is important to maximize diversity between checkpoints. However, this should be balanced with ensuring that each individual model within the pool achieves high performance. To balance these objectives, we maximize diversity between checkpoints by training models for different language families. This takes advantage of cross-lingual transfer which often provides significant performance benefits while ensuring that linguistic differences provide sufficient differentiation between checkpoints.
Industry observers note that naively, one could split-train a model for each language and then merge, but this does not achieve the same benefits we observe from cross-lingual transfer. To improve robustness in merging, we include some shared languages across each cluster (here English, Spanish, and French). In the final recipe, we used multiple stages of merging runs trained on different clusters of data, and checkpoints within the same run.
Recent findings suggest that in addition to weighted linear averaging, we experiment with multiple merging techniques, namely SLERP, TIES-merging, and DARE-TIES. However, we found weighted averaging to be the most consistent method. As a result, we use weighted averaging throughout the pipeline. Interestingly, we observed significantly larger gains from merging at the 35B scale compared to the 8B scale – up to 3x. This is inline with recent work suggesting merging to be more effective at scale.
It has been revealed that these diagrams show our end-to-end post-training pipeline, which resulted in the step-by-step gains discussed earlier. It is truly special to look back and see how far the Aya model series has come, since its inception with Aya 101 accompanied by the Aya Collection, which stretched the limits of open-source collaboration, to now which combines steady progress in key open fundamental research questions to set a latest standard for multilingual performance.
This work wouldn’t have been possible without the core Aya Expanse team: Madeline Smith, Marzieh Fadaee, Ahmet Üstün, Beyza Ermis, Sara Hooker, John Dang, Shivalika Singh, Arash Ahmadian, Daniel D'souza, Alejandro Salamanca, Aidan Peppin, Arielle Bailey, Meor Amer, Sungjin Hong, Manoj Govindassamy, Sandra Kublik.
It also wouldn’t have been possible without the wider Cohere For AI and Cohere team. Special thanks to Acyr Locatelli, Adrien Morisot, Jon Ander Campos, Sara Elsharkawy, Eddie Kim, Julia Kreutzer, Nick Frosst, Aidan Gomez, Ivan Zhang.
According to recent reports, A huge thanks also goes to our research community – the 220 language ambassadors from around the world who have been part of this release. Thank you to Sree Harsha Nelaturu, Bhavnick Minhas, Christopher Klamm, Isabella Bicalho Frazeto who contributed notebooks that are accessible on the model Hugging Face cards.
Special thank you to Hugging Face for helping make this come together: Omar Sanseviero, Pedro Cuenca, Vaibhav Srivastav, Lysandre Debut, Aritra Roy Gosthipaty.
📅 28 Oct 2024 | ⏱️ 6 min read (1203 words, 📚 Deep Dive) | Source: Hugging Face
This is a guest blog post authored by Digital Green. Digital green is participating in a CGIAR-led collaboration to bring agricultural support to smallholder farmers.
Sources indicate that there are an estimated 500 million smallholder farmers globally: they play a critical role in global food security. Timely access to accurate information is essential for these farmers to make informed decisions and improve their yields.
An “agricultural extension service” offers technical advice on agriculture to farmers, and also supplies them with the necessary inputs and services to support their agricultural production.Agriculture extension agents are 300K in India alone, they provide necessary information about improved agriculture practice and help in decision making for the smallholder farmers.
Sources indicate that but although their number is impressive, extension workers are not in large enough numbers to cope with all the demand: they interact with farmers at typically in the ratio of 1:1000. Reaching the agriculture extension workers and farmers through partnership and technology remains the key.
Enter project GAIA, a collaborative initiative pioneered by CGIAR.It brought together Hugging Face as mentor through the Expert Support program, and Digital Green as project partner.
Sources indicate that GAIA has a lofty goal to bring years of agriculture knowledge in the form of research papers meticulously maintained in GARDIAN portal in the hands of the farmers. There are close to 46000 research papers and reports that have agricultural knowledge globally carried over multiple decades across different crops.
Digital Green immediately saw the potential of developing intelligent chatbots powered by Retrieval-Augmented Generation (RAG) on approved, curated information. Thus they decided to develop Farmer.chat, a chatbot that leverages the capabilities of large language models (LLMs) to deliver personalized and reliable agricultural advice to the farmers and front line extension workers.
In a recent development, creating such a chatbot for a huge variety of languages, geographies, crops, and use cases, is a gigantic challenge: information disseminated has to be contextual to the local level details about the farm, in the language and tone that farmers can understand and accurate (grounded in trustworthy sources) for farmers to act on it. To evaluate the performance of the system, the CGIAR team and HF expert collaborated to set up a strong evaluation suite, in the form of an LLM-as-a-judge system.
Let’s take a look at how they tackled this challenge!
The full system uses many components in order to provide chatbot answers grounded in several tools and external knowledge. It has several key elements:.
Recent findings suggest that now this system has many moving parts, and each part has a radical impart on some aspects of performance. So we need to carefully run performance evaluation.
It has been revealed that in the last one year, the usage of Farmer.chat has grown to service more than 20k farmers handling over 340k queries. How can we evaluate the performance of the system at this scale?
During weekly brainstorming sessions, Hugging Face hinted to LLM as a judge and provided a link to their notebook LLM as a Judge. This resource was discussed in detail, and what followed became a practice that has helped navigating Farmer.chat’s development.
Farmer.Chat employs a sophisticated Retrieval-Augmented Generation (RAG) pipeline to deliver accurate and relevant information to farmers that is grounded in the knowledge base. The RAG pipeline uses an LLM to retrieve information from a vast knowledge base and then generate a concise and informative response.
But how do we measure the effectiveness of this pipeline?
The difficulty here is that there is no deterministic metric that one could use to rate the quality of an answer, its conciseness, its precision...
That is where LLM-as-a-judge technique steps in. The idea is simple: ask an LLM to rate the output on any metric. The immense advantage is that the metric can be anything: LLM-as-a-Judge is extremely versatile.
For example, you can use it to evaluate the clarity of a prompt as follows:.
As mentioned in this article that we referred to earlier, the key to use LLM-as-a-judge is to clearly define the task, the criteria and the integer rating scale.
The research team behind Farmer.Chat leverages the capabilities of LLMs to evaluate several crucial metrics:.
It empowers us to go beyond simply measuring how many questions a chatbot can answer or how swiftly it responds. Instead, we can delve deeper into the quality of the responses and understand the user experience in a more nuanced way.
For RAG accuracy we use LLM-as-a-judge to evaluate on a binary scale: zero or one. But the way the task is broken down leads to a well established process that comes up with a score that we tested with human evaluators on roughly 360 questions: LLM answers are found to actually do a great job and have high correlation with human evaluations!
Here is the prompt, which was inspired from the RAGAS library.
The context variable above is the input chunks given for generating the answers while statements are the atomic factual statements generated by another LLM call.
This was a very vital step as it enables evaluation at scale which is important when dealing with large numbers of documents and queries. The LLM-as-a-judge at core leads to metrics that act as a compass navigating the various options available for our AI pipeline.
We created a sample dataset of > 700 user queries randomized across different value chains (crops) and date (months). While this upgrade itself had 11 different versions that evaluated using RAG accuracy and percentage answered, the same approach was used to measure performance of the leading LLMs without any prompt changes in each LLM call. For this experiment, we selected GPT-4-Turbo by OpenAI, Gemini-1.5 in Pro and Flash versions, and Llama-3-70B-Instruct.
What we see is that amongst the four models, the highest level of factually correct answers (“Faithful” column) is obtained with Gemini-1.5-pro, followed very closely by Gemini-1.5-Flash and GPT-4-turbo.
What we found was that purely on the basis of faithfulness, Gemini-1.5-Pro beats the other models. But if we also take into account which percentage of questions the model accepted to answer, Llama-3-70B and Gemini-1.5-Flash perform better.
In the end, we picked Gemini-1.5-Flash due to the superior trade-off of a low percentage of unanswered questions and very high faithfulness.
In a recent development, by leveraging LLMs as judges, we gain a deeper understanding of user behavior and the effectiveness of AI-powered tools in the agricultural context. This data-driven approach is crucial for:.
In a recent development, the ability of LLMs to act as judges in evaluating the performance of AI systems is a game-changer. It allows us to measure the impact of these systems in a more objective and data-driven way, ultimately leading to the development of more robust, effective, and user-friendly AI tools for agriculture.
According to recent reports, in the span of over a year, we have continuously evolved our product. In this small timeframe we have been able to:.
The results were published recently in this scientific article, focusing on the quantitative study of user research.
If you are interested in the Hugging Face Expert Support program for your company, don't hesitate to contact us here - our sales team will get in touch to discuss your needs!
📅 29 Oct 2024 | ⏱️ 5 min read (910 words, 📚 Deep Dive) | Source: Hugging Face
TL;DR: Many LLMs such as gemma-2-9b and Mixtral-8x22B-Instruct-v0.1 lack a much smaller version to use for assisted generation. In this blog post, we present Universal Assisted Generation: a method developed by Intel Labs and Hugging Face which extends assisted generation to work with a small language model from any model family 🤯. As a result, it is now possible to accelerate inference from any decoder or Mixture of Experts model by 1.5x-2.0x with almost zero overhead 🔥🔥🔥. Let's dive in!
Sources indicate that nowadays, the strongest open weight LLMs typically have billions to hundreds of billions parameters (hello Llama-3.1-405B 👋), and deploying these beasts in production environments poses a range of engineering challenges. One such challenge is that generating text from these large models is slow, which has prompted the community to develop a wide range of techniques to accelerate the decoding process. Assisted generation, also known as speculative decoding, is a very popular and practical approach for accelerating LLM inference without accuracy loss. In this blog post, we take a look at how assisted generation works and share our research to extend it towards any of the 140,000 language models on the Hugging Face Hub 🚀!
It has been revealed that the core idea behind assisted generation involves using a pair of models, referred to as the target and assistant models. The assistant model is a smaller, more efficient version of the target model, for example you can use Llama-3.2-1B as the assistant model for the larger Llama-3.1-70b target model. Assisted generation is an iterative process. Each cycle, the assistant model generates a sequence of tokens autoregressively, one at a time. The target model then verifies all the assistant tokens in the sequence in a single forward pass. The speedup is achieved by confirming multiple tokens in each forward pass of the target model, rather than producing just one token at a time. For a more detailed explanation, see the original blog post. Combined with the recently introduced Dynamic Speculation strategy, assisted generation accelerates text generation by 1.5x-3x, depending on the task and the models used.
Industry observers note that the remarkable speedups offered by assisted generation come with a significant drawback: the target and assistant models must share the same tokenizer, meaning they need to be from the same model family. However, many widely-used models lack smaller versions that are both compact and accurate enough to deliver substantial latency reductions. Based on our experience, meaningful speedups are typically seen when the assistant model is at least 50-100 times smaller than the target one. For instance, CodeLlama-13b lacks a smaller version, and gemma-2-9b only has a 2b variant which is still not sufficiently small/fast to achieve significant performance improvements.
Recent findings suggest that in order to mitigate this pain point, Intel Labs, together with our friends at Hugging Face, has developed Universal Assisted Generation (UAG). UAG enables selecting any pair of target and assistant models regardless of their tokenizer. For example, gemma-2-9b can be used as the target model, with the tiny vicuna-68m as the assistant.
Sources indicate that the main idea behind the method we propose is 2-way tokenizer translations. Once the assistant model completes a generation iteration, the assistant tokens are converted to text, which is then tokenized using the target model's tokenizer to generate target tokens. After the verification step, the target tokens are similarly converted back to the assistant tokens format, which are then appended to the assistant model's context before the next iteration begins.
It has been revealed that since the assistant and target tokenizers use different vocabularies it's necessary to handle the discrepancies between them. To accurately re-encode the newly generated assistant tokens, it’s essential to prepend a context window consisting of several previous tokens. This entire sequence is then re-encoded into the target token format and aligned with the most recent target tokens to pinpoint the exact location where the newly generated tokens should be appended. This process is illustrated in the video below.
While not shown in the video above, token re-encoding from target to assistant follows a similar process. However, mismatched tokens must be discarded from the assistant model's key-value (KV) cache to ensure data integrity.
The table below shows the latency improvements observed for target models when paired with assistant models using different tokenizers.
Note that the target models above do not have small variants (under 1 billion parameters) which are suitable for acceleration using standard assisted generation.
According to recent reports, each experiment was conducted on 100 randomly selected examples. Experiments with Llama and Mixtral target models use 2 and 4 A100 GPUs, respectively. All other experiments ran with a single A6000 GPU.
Universal assisted generation has been integrated into release 4.46.0 of 🤗 Transformers.
To use, pass tokenizer and assistant_tokenizer to generate():.
Industry observers note that while passing do_sample=True with standard assisted generation uses the speculative sampling algorithm (Algorithm 1 from the paper), UAG right now supports multinomial sampling only. In multinomial sampling, if the target model doesn't sample the same token as the assistant, the token is automatically rejected, which is not the case with speculative sampling. In practice, this means that UAG with do_sample=True will have a lower throughput compared to the case where the assistant has the same tokenizer. In the future, we blueprint to add support for speculative sampling with UAG. In addition, we intend to integrate UAG into 🤗 Transformers pipelines, for a more concise and streamlined usage.
📅 31 Oct 2026 | ⏱️ 5 min read (922 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
Weekly. Free. One click to leave.
It has been revealed that 7 Day Free Trial. Cancel Anytime.
Recent findings suggest that most teams now ship something an AI helped write: help-center articles, product descriptions, release notes, even code comments. The draft appears in seconds, and that speed is the trap. Nobody tests it the way they would test a new feature, so mistakes slip through that a quick review would have caught.
This guide is about the other side of AI testing. Instead of using AI to test your software, you test what AI hands you. Here is a simple routine that fits into a normal publishing or release process.
AI writing sounds confident whether or not it is right. A model can invent a statistic (researchers call this hallucination and have documented it across many text-generation systems), quote a feature your product does not have, or describe a setting that was renamed two releases ago. The sentence reads smoothly, so the error hides in plain sight.
According to recent reports, traditional QA does not cover this. A unit test tells you the page loads. It says nothing about whether the claim on the page is true. That gap is where most AI-related incidents begin.
1. Define what "good" means before you generate anything. Write down the audience, the claims you are willing to make and the sources you trust. A short brief makes the output easier to judge, because you are comparing it with something concrete.
2. Check every factual claim. Highlight each number, name and statement of fact, then verify it against a primary source. Google's own guidance on generative AI content tells publishers to fact-check AI output, including titles, descriptions and alt text, before publishing. If you cannot confirm a claim in a minute or two, cut it or rewrite it as something you can support.
In a recent development, 3. Test the instructions. For tutorials and how-to content, follow the steps exactly as written on a clean machine or account. Commands that fail and menus that no longer exist show up immediately this way.
Recent findings suggest that 4. Review the voice. Replace vague phrases with specifics from your own experience: a real customer question, a real error message, a real number from your analytics. This is also what separates useful content from filler.
5. Keep a human owner. Every piece should have a named person who approved it. The NIST AI Risk Management Framework makes the same point at organization level: people stay accountable for how AI is used and evaluated. If something goes wrong later, you know who to ask and where to fix it.
In a recent development, some teams also run drafts through an AI detector. That can be useful as a prompt for a closer look, for example when freelancers or vendors deliver work and you want to know how much of it was machine-generated. A high score is a reason to read more carefully. It is not proof of anything, and it should never decide an outcome on its own, because detectors make mistakes in both directions. A Stanford study found that GPT detectors are biased against non-native English writers, and short texts are easy to misjudge too. If you want a quick second opinion on a draft, a tool like Tester AI can give you a starting point for that conversation.
In a recent development, review works best when it is not optional. A few small habits make it stick.
Recent findings suggest that treating the first draft as finished. It is a starting point. Blueprint time for review the same way you plan time for writing.
Reviewing for grammar only. Clean sentences are not evidence of correct content. Check meaning first and polish second.
Letting the tool grade its own work. Asking the same model to confirm its answer rarely catches real errors. Use a source or a person.
Industry observers note that skipping legal and brand review. Generated text can echo existing material or make promises your company cannot keep. Anything customer-facing deserves a second pair of eyes.
According to recent reports, AI can save hours of drafting, but speed only helps if the result is trustworthy. Treat generated content like code from a newly introduced contributor: useful, often good, and always reviewed before it goes live. A short routine of defining quality, verifying facts, testing instructions and keeping a human owner will catch most problems before your users do.
It has been revealed that do I need to test AI-generated content if a human edits it? Yes. Editing for style does not confirm that the facts are correct. Verify claims separately from polishing the wording.
Industry observers note that how long should a review take? For a typical article, expect roughly the time it takes to read it twice plus a few minutes per factual claim. Reviews are faster when the brief and sources are prepared in advance.
In a recent development, can an AI detector prove that text was written by a machine? No. Detectors estimate likelihood, and they can be wrong. Use the result as a signal for human review, never as the final decision.
According to recent reports, what should I check first? Start with numbers, names, dates and anything a customer could act on, such as prices, steps or legal statements. Those carry the highest risk if they are wrong.
7 Day Free Trial. Cancel Anytime.
📅 04 Nov 2024 | ⏱️ 2 min read (442 words, 📖 Standard) | Source: Hugging Face
Sources indicate that we are incredibly excited to share the most impactful feature since Argilla joined Hugging Face: you can prepare your AI datasets without any code, getting started from any Hub dataset! Using Argilla’s UI, you can easily import a dataset from the Hugging Face Hub, define questions, and start collecting human feedback.
Not familiar with Argilla? Argilla is a free, open-source data-centric tool. Using Argilla, AI developers and domain experts can collaborate and build high-quality datasets. Argilla is part of the Hugging Face family and fully integrated with the Hub. Want to know more? Here’s an intro blog post.
Why is this newly introduced feature notable to you and the community?
This upcoming feature democratizes building high-quality datasets on the Hub:.
It has been revealed that first, you need to deploy Argilla. The recommended way is to deploy on Spaces following this guide. The default deployment comes with Hugging Face OAuth enabled, meaning your Space will be open for annotation contributions from any Hub user. OAuth is perfect for use cases when you want the community to contribute to your dataset. If you want to restrict annotation to you and other collaborators, check this guide for additional configuration options.
Once Argilla is running, sign in and click the “Import dataset from Hugging Face” button on the Home page. You can start with one of our example datasets or input the repo id of the dataset you want to use.
Industry observers note that in this first version, the Hub dataset must be public. If you are interested in support for private datasets, we’d love to hear from you on GitHub.
Recent findings suggest that argilla automatically suggests an initial configuration based on the dataset’s features, so you don’t need to start from scratch, but you can add questions or remove unnecessary fields. Fields should include the data you want feedback on, like text, chats, or images. Questions are the feedback you wish to collect, like labels, ratings, rankings, or text. All changes are shown in real time, so you can get a clear idea of the Argilla dataset you’re configuring.
Once you’re happy with the result, click “Create dataset” to import the dataset with your configuration. Now you’re ready to give feedback!
You can try this for yourself by following the quickstart guide. It takes under 5 minutes!
This newly introduced workflow streamlines the import of datasets from the Hub, but you can still import datasets using Argilla’s Python SDK if you need further customization.
Sources indicate that we’d love to hear your thoughts and first experiences. Let us know on GitHub or the HF Discord!
📅 05 Nov 2024 | ⏱️ 5 min read (1021 words, 📚 Deep Dive) | Source: Hugging Face
Sources indicate that it’s a Tuesday morning. As a Transformers maintainer, I’m doing the same thing I do most weekday mornings: Opening PyCharm, loading up the Transformers codebase and gazing lovingly at the chat template documentation while ignoring the 50 user challenges I was pinged on that day. But this time, something feels different:.
In a recent development, something is… wait! Computer! Enhance! Is that..?Those user problems are definitely not getting responses today. Let’s talk about the Hugging Face integration in PyCharm.
Recent findings suggest that I could introduce this integration by just listing features, but that’s boring and there’s documentation for that. Instead, let’s walk through how we’d use it all in practice. Let’s say I’m writing a Python app, and I decide I want the app to be able to chat with users. Not just text chat, though – we want the users to be able to paste in images too, and for the app to naturally chat about them as well.
If you’re not super-familiar with the current state-of-the-art in machine learning, this might seem like a terrifying demand, but don’t fear. Simply right click in your code, and select “Insert HF Model”. You’ll get a dialog box: Chatting with both images and text is called “image-text-to-text”: the user can supply images and text, and the model outputs text. Scroll down on the left until you find it. By default, the model list will be sorted by Likes – but remember, older models often have a lot of likes built up even if they’re not really the state of the art anymore. We can check how old models are by seeing the date they were last updated, just under the model name. Let’s pick something that’s both recent and popular: microsoft/Phi-3.5-vision-instruct.
In a recent development, you can select “Use Model” for some model categories to automatically paste some basic code into your notebook, but what often works better is to scroll through the Model Card on the right and grab any sample code. You can see the full model card to the right of the dialog box, exactly as it's shown on Hugging Face Hub. Let’s do that and paste it into our code!
Recent findings suggest that your office cybersecurity person might complain about you copying a chunk of random text from the internet and running it without even reading all of it, but if that happens just call them a nerd and continue regardless. And behold: We now have a working model that can happily chat about images - in this case, it reads and comments on screenshots of a Microsoft slide deck. Feel free to play around with this example. Try your own chat, or your own images. Once you get it working, simply wrap this code into a class and it’s ready to go in your app. We just got state of the art open-source machine learning in ten minutes without even opening a web browser.
These models can be large! If you’re getting memory errors, try using a GPU with more memory, or try reducing the 20 in the sample code. You can also remove device_map="cuda" to put the model in CPU memory instead, at the cost of speed.
Next, let’s change perspective in our little scenario. Now let’s say you’re not the author of this code - you’re a coworker who has to review it. Maybe you’re the cybersecurity person from earlier, who’s still upset about the “nerd” comment. You look at this code snippet, and you have no idea what you’re seeing. Don’t panic - just hover over the model name, and the entire model card instantly appears. You can swiftly verify the origin of this model, and what its intended uses are.
(This is also extremely helpful if you work on something else and completely forget everything about the code you wrote two weeks ago).
You might notice that the model has to be downloaded the first time you run this code, but after that, it’s loaded much more quickly. The model has been stored in your local cache. Remember the mysterious little 🤗 icon from earlier? Simply click it, and you’ll get a listing of everything in your cache:.
Sources indicate that this is a neat way to find the models you’re working with right now, and also to clear them out and save some disk space once you don’t need them anymore. It’s also very helpful for the two-week amnesia scenario - if you can’t remember the model you were using back then, it’s probably in here. Remember, though, that most useful, production-ready models in 2024 are going to be >1GB, so your cache can fill up fast!
Recent findings suggest that at Hugging Face, we tend to think of open-source AI as being a natural extension of the open-source philosophy: Open software solves problems for developers and customers, creating new abilities for them to integrate into their code, and open models do the same. There is a tendency to be blinded by complexity, and to focus too much on the implementation details because they’re all so novel and exciting, but models exist to do stuff for you. If you abstract away the details of architecture and training, they’re fundamentally functions - tools in your code that will transform a certain kind of input into a certain kind of output.
Recent findings suggest that these features are thus a natural fit. Just as IDEs already pull up function signatures and docstrings for you, they can also pull up sample code and model cards for trained models. Integrations like these make it easy to reach over and import a chat or image recognition model as conveniently as you would import any other library. We think it’s obvious that this is what the future of code will look like, and we hope that you find these features useful!
Download PyCharm to give the Hugging Face integration a try.[HF integration is a Pycharm Professional feature.].
Get a free 3-month PyCharm subscription using the PyCharm4HF code here.
According to recent reports, make JetBrains IntelliJ Again! Very cool integration.
📅 12 Nov 2024 | ⏱️ 7 min read (1418 words, 📚 Deep Dive) | Source: Hugging Face
If you're working on data-intensive research or machine learning projects, you need a reliable way to share and host your datasets. Public datasets such as Common Crawl, ImageNet, Common Voice and more are critical to the open ML ecosystem, yet they can be challenging to host and share.
Hugging Face Hub makes it seamless to host and share datasets, trusted by many leading research institutions, companies, and government agencies, including Nvidia, Google, Stanford, NASA, THUDM and Barcelona Supercomputing Center.
By hosting a dataset on the Hugging Face Hub, you get instant access to features that can maximize your work's impact:.
The Hub can host terabyte-scale datasets, with high per-file and per-repository limits. If you have data to share, the Hugging Face datasets team can help suggest the best format for uploading your data for community usage. The 🤗 Datasets library makes it easy to upload and download your files, or even create a dataset from scratch. 🤗 Datasets also enables dataset streaming , making it possible to work with large datasets without needing to download the entire thing. This can be invaluable to allow researchers with less computational resources to work with your datasets, or to select small portions of a huge dataset for testing, development or prototyping.
The Hugging Face Hub can host the large datasets often created for machine learning research.
Note: The Xet team is right now working on a backend enhancement that will increase per-file limits from the current 50 GB to 500 GB while also improving storage and transfer efficiency.
Recent findings suggest that beyond just hosting your data, the Hub provides powerful tools for exploration. With the Datasets Viewer, people can explore and interact with datasets hosted on the Hub directly in their browser. This provides an easy way for others to view and explore your data without downloading it first.
In a recent development, hugging Face datasets supports many different modalities (audio, images, video, etc.) and file formats (CSV, JSON, Parquet, etc.), and compression formats (Gzip, Zip, etc.). Check out the Datasets File Formats page for more details.
The Dataset Viewer for the Infinity-Instruct dataset.
The Datasets Viewer also includes a few features which make it easier to explore a dataset.
It has been revealed that built-in Full Text Search is one of the most powerful features of the Datasets Viewer. Any text columns in a dataset immediately become searchable.
The Arxiver dataset contains 63.4k rows of arXiv research papers converted to Markdown. By using Full Text Search, it's easy to find the papers containing a specific author such as Ilya Sutskever below.
It has been revealed that the Datasets Viewer allows you to sort the dataset by clicking on the column headers. This makes it easy to find the most relevant examples in a dataset.
Below is an example of a dataset sorted by the helpfulness column in descending order for the HelpSteer2 dataset.
In a recent development, hugging Face is fortunate to have third party integrations with the leading open source data tools. By hosting a dataset on the Hub, it instantly makes the dataset compatible with the tools customers are most familiar with.
Here are some of the libraries Hugging Face supports out of the box:.
Most of these libraries enable you to load or stream a dataset in 1 single line of code.
Here are some examples with Pandas, Polars and DuckDB:.
You can find more information about integrated libraries in the Datasets documentation. Along with the libraries listed above, there are many more community supported tools which support the Hugging Face Hub such as Lilac and Spotlight.
The SQL Console provides an interactive SQL editor that runs entirely in your browser, enabling instant data exploration without any setup. Key features include:.
It has been revealed that on every public dataset you should see a new SQL Console badge. With just one click you can open a SQL Console to query that dataset.
While making datasets accessible is key, protecting sensitive data is equally crucial. The Hugging Face Hub provides robust security features to help you maintain control over your data while sharing it with the right audiences.
The Hugging Face Hub supports unique access control options for who has access to the dataset.
For more details about gated datasets, see the gated datasets documentation. For more fine-grained controls, there are Enterprise plan features where organizations can create resource security groups, use SSO, and more.
Along with access controls, the Hugging Face Hub offers several security scanners:.
Sources indicate that having a secure platform with powerful features is valuable, but the true impact of research comes from reaching the right audience. Reach and visibility are crucial for researchers sharing datasets - it helps maximize research impact, enables reproducibility, facilitates collaboration, and ensures valuable data can benefit the broader scientific community.
Recent findings suggest that with over 5M builders actively using the platform, the Hugging Face Hub provides researchers with powerful tools for community engagement and visibility. Here's what you can expect:.
The Hub makes it easy to ask questions and discuss datasets.
Sources indicate that now that you understand the benefits of hosting your dataset on the Hub, you might be wondering how to get started. Here are some comprehensive resources to guide you through the process:.
The following pages will be useful if you want to share large datasets:.
If you want any further help uploading a dataset to the Hub or want to upload a particularly large dataset, please contact datasets@huggingface.co.
it would be nice to have a small section on (showing off datasets linkages) how to link the datasets to eachother and to models in the dataset card.
Hello @lhoestq and the Hugging Face team,Sorry the long comment but hope it would be worth it.🙏🏿.
Thank you for this comprehensive guide on sharing datasets on the Hub! Your emphasis on making datasets accessible while maintaining security and visibility resonates deeply with our recent work.We recently launched the Ugandan Cultural Context Benchmark (UCCB) on Hugging Face (https://huggingface.co/datasets/CraneAILabs/UCCB), which represents a significant milestone for African AI evaluation. As the first comprehensive benchmark testing AI's understanding of African cultural contexts, UCCB addresses a critical gap where models often fail due to training data that predominantly reflects Western experiences.
Industry observers note that your article's points about reach and community engagement particularly struck us. With only 0.02% of internet content in African languages and Africa contributing less than 1% to global AI training data, initiatives like UCCB are essential for building more inclusive AI systems. The dataset features 1,039 expert-verified questions across 24 cultural domains, from traditional medicine to modern slang, testing whether AI truly understands African contexts beyond mere translation.
According to recent reports, we believe sharing the story behind UCCB and our methodology could inspire similar initiatives across Africa and other underrepresented regions. While we attempted to join the Blog Explorers organization toshare our journey, we understand access is limited. However, we wonder if there might be an opportunity to collaborate with Hugging Face experts on a blog post that highlights:.
How African researchers are leveraging the Hub's infrastructure to address regional AI challengesThe importance of culturally-aware benchmarks in the global AI ecosystemPractical insights for other regions looking to create similar evaluation frameworksThe role of community collaboration in building datasets that truly represent diverse perspectives.
As you noted in your article, "the true impact of research comes from reaching the right audience." We believe showcasing African AI innovation on Hugging Face's platform could inspire more regional contributions and demonstrate how the Hub enables researchers worldwide to shape AI development, not just consume it.
Would you or someone from the team be open to exploring a collaborative blog post? Even guidance on independently publishing our story in a way that aligns with Hugging Face's community values would be invaluable. We're committed to the same principles of open science and community engagement that make the Hub special.(We have tried to reach out to the team at Hugging Face but no one has given us any time for months now🥲).
Sources indicate that thank you for building infrastructure that empowers global voices in AI. Looking forward to any opportunities to share how African perspectives are contributing to more equitable AI development.
Recent findings suggest that best regards,Kato Steven Mubiru & Bronson Bakunga@katostevenmubiru P.S. The Dataset Viewer and SQL Console features you highlighted have been instrumental in making UCCB accessible to researchers with limited computational resources - exactly the democratization we need for inclusive AI development!
📅 31 Oct 2026 | ⏱️ 9 min read (1827 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
Industry observers note that weekly. Free. One click to leave.
According to recent reports, 7 Day Free Trial. Cancel Anytime.
Connecting a website form to a customer relationship management (CRM) system may seem straightforward. A developer collects information from a form, sends it to an API endpoint, and checks whether a newly introduced contact appears in the CRM.
The integration may work perfectly during the first test. However, problems can appear after the website goes live. Some leads may not reach the CRM, duplicate contacts may appear, or important customer information may be missing.
These problems are not always easy to notice. A visitor might see a confirmation message even when the CRM has failed to save their information.
This guide explains common problems in website-to-CRM integrations and practical ways developers can prevent them.
Sources indicate that A website-to-CRM integration allows information collected through a website to move into a CRM system. This usually happens through an API or webhook.
In a recent development, for example, when someone completes a contact form, the website collects their name, email address, phone number, and other details. The integration then sends this information to the CRM, where it can be stored and used by the relevant team.
An API integration provides a structured way for two applications to exchange information. Developers who need additional background can also read OpenHerald's overview of API integration.
The process usually involves several steps:.
The website validates the submitted information.
The application sends a request to the CRM.
The CRM checks the request and processes the data.
The website or backend handles the response.
Each step needs to work correctly. If one part fails, the information may not reach its destination.
One key rule is to avoid displaying a successful submission message before the application has safely accepted and stored the data.
Data issues are among the most frequent problems in website-to-CRM integrations. They may not appear during development because test submissions usually contain simple, predictable information.
Real visitors enter data in different formats and may submit the same form more than once.
In a recent development, A visitor might complete a contact form and later download a resource using the same email address. If the integration creates a new CRM record every time, the same person may appear several times.
To prevent this, developers should decide how existing contacts will be identified.
Email addresses are commonly used for matching. Before comparing them, the application should remove unnecessary spaces and convert the address to a consistent format.
These values should be treated consistently.
Where supported, an upsert operation can create a fresh contact or enhancement an existing one instead of creating unnecessary duplicates.
Website forms and CRM systems do not always use the same field structure.
According to recent reports, A website may collect a visitor's full name in one field, while the CRM expects separate first-name and last-name values. Other fields may have different names or requirements.
Developers should create a clear mapping between website fields and CRM fields before building the integration.
Industry observers note that they should also check which fields are required. If the CRM requires information that the website does not collect, the request may fail.
Different systems may store information in different formats.
It has been revealed that for example, one application might use United Kingdom, while another expects UK. Dates, phone numbers, and country values can also create problems.
A reliable integration should validate and standardise these values before sending them to the CRM.
A contact record is more useful when the sales or marketing team knows where the visitor came from.
However, integrations sometimes send only basic contact information and leave out details such as campaign source, landing page, and referral information.
Developers should identify which tracking fields are useful and include them in the integration where appropriate.
Even an integration that works correctly at launch can stop working later.
Authentication credentials may expire, permissions may change, or an API provider may limit the number of requests an application can make.
Three areas deserve particular attention.
Sources indicate that many APIs use access tokens or other credentials to verify requests. Some tokens expire and must be refreshed.
If an application does not handle token renewal correctly, requests may begin failing without an obvious problem on the website.
Developers should implement the authentication process recommended by the CRM provider and monitor failed requests.
An API provider may restrict the number of requests allowed within a particular period.
Recent findings suggest that A marketing campaign can suddenly increase website traffic and generate more form submissions than usual. If the integration exceeds the provider's limit, some requests may be rejected.
The application should recognise rate-limit responses and retry requests according to the provider's instructions.
An integration should not receive more access than it needs.
According to recent reports, for example, a form submission service may only need permission to create or update contacts. Giving it full administrative access increases unnecessary security risks.
Use the minimum permissions required for the integration to function.
External services can experience outages, network delays, and temporary errors. If the website sends a form submission directly to the CRM without storing it first, a failed request could mean a lost lead.
A safer approach is to separate receiving a submission from delivering it to the CRM.
A typical workflow looks like this:.
Validate the form information on the server.
Store the submission safely in your own system.
Add it to a queue or mark it as pending.
Send it to the CRM through a background process.
Retry temporary failures after an appropriate delay.
Flag permanent failures for manual review.
This approach gives the application another opportunity to deliver information when the CRM becomes available again.
Retries introduce another challenge.
Sources indicate that A request might reach the CRM successfully, but the response could be lost because of a network problem. The website may then retry the same request, creating a duplicate contact.
Idempotency helps prevent this situation. The application can use a stable identifier for each submission so that repeating the same operation does not create another record.
For example, a combination of the form ID and a normalised email address may help identify repeated submissions. The exact approach depends on the CRM's API capabilities.
Industry observers note that this is an illustrative example. Functions such as crmUpsertContact() and scheduleRetry() need to be implemented according to the application and CRM being used.
The important point is that every submission should have a known status: successfully delivered, waiting for another attempt, or requiring manual attention.
A working integration should also protect the quality and security of the information it collects.
Public forms can receive automated submissions from bots. Without appropriate protection, these entries can fill the CRM with unwanted records.
Rate limiting on form endpoints.
Appropriate bot-protection mechanisms.
Validation should happen on the server, even if the website already checks information in the browser.
Some forms collect permission to send marketing communications.
Recent findings suggest that if a visitor selects a consent checkbox, that information should also be passed to the CRM. Otherwise, the CRM may contain the contact details without a reliable record of the visitor's choice.
Where relevant, store the consent value, the wording or version displayed, and the time the visitor gave consent.
An integration should only send the information needed for its intended purpose.
Collecting unnecessary personal details increases the amount of information the application must protect and maintain.
Developers should also understand where submitted information is stored, including databases, queues, application logs, and the CRM.
Privacy requirements vary by location and use case, so organisations should review their applicable obligations with a qualified professional.
Testing an integration before launch is key, but monitoring it afterwards is just as necessary.
A successful test does not prove that every future submission will work.
The following checks can help identify problems early.
Compare the number of website form submissions with the number of contacts successfully created or updated in the CRM.
A growing difference between the two numbers may indicate that some requests are failing.
Application logs should record the reason a request failed and include a submission identifier where possible.
Avoid storing complete personal details in logs unless there is a specific, justified need.
Developers should configure notifications when the integration's failure rate exceeds an acceptable threshold.
This makes it easier to investigate problems before they affect a large number of submissions.
A scheduled test submission can help confirm that the complete process is still working.
For example, a test lead can be sent periodically and checked to confirm that it reaches the CRM correctly.
Someone should be responsible for monitoring the integration.
This person or team should review errors, check API changes, monitor credentials, and investigate changes to CRM fields.
Without a clear owner, small problems can remain unnoticed for a long time.
Documentation makes integrations easier to maintain and troubleshoot.
Industry observers note that it does not need to be complicated. A short reference document covering the main rules can save considerable time when another developer needs to work on the system.
Before deployment, developers should also test unusual situations.
Names containing accented characters.
Invalid or expired credentials.
Testing these situations helps reveal weaknesses that ordinary form submissions may not expose.
What is the most common website-to-CRM integration problem?
Duplicate contacts and incorrect field mapping are common problems. They usually happen when the website and CRM handle data differently.
How can developers prevent duplicate contacts?
Normalise email addresses, use a consistent matching rule, and use an upsert operation or idempotency mechanism where the CRM supports it.
Should a website send form data directly to a CRM?
In a recent development, for more reliable handling, the application should first validate and safely store the submission. A background process can then deliver it to the CRM and retry temporary failures.
How can I tell if a CRM integration has stopped working?
Compare website submission counts with CRM records, monitor failed requests, and schedule regular test submissions.
Who should be responsible for maintaining the integration?
Assign a developer or technical team to monitor the connection, review errors, maintain credentials, and respond to API changes.
According to recent reports, A website-to-CRM integration involves more than sending form information to another application. It must also handle invalid data, duplicate submissions, expired credentials, rate limits, temporary outages, and privacy requirements.
Developers can make these integrations more reliable by validating information on the server, storing submissions before delivery, using safe retry mechanisms, and monitoring the results after launch.
The goal is simple: every valid submission should reach the CRM, and every failed submission should be visible and recoverable rather than silently lost.
MDN Web Docs: Using the Fetch API.
MDN Web Docs: HTTP response status codes.
OWASP: Input Validation Cheat Sheet.
Recent findings suggest that 7 Day Free Trial. Cancel Anytime.
📅 19 Nov 2024 | ⏱️ 3 min read (549 words, 📚 Deep Dive) | Source: Hugging Face
LLM-as-a-Judge has emerged as a popular way to grade natural language outputs from LLM applications, but how do we know which models make the best judges?
Sources indicate that we’re excited to launch Judge Arena - a platform that lets anyone easily compare models as judges side-by-side. Just run the judges on a test sample and vote which judge you agree with most. The results will be organized into a leaderboard that displays the best judges.
Crowdsourced, randomized battles have proven effective at benchmarking LLMs. LMSys's Chatbot Arena has collected over 2M votes and is highly regarded as a field-test to identify the best language models. Since LLM evaluations aim to capture human preferences, direct human feedback is also key to determining which AI judges are most helpful.
Review both judges’ evaluations and vote for the one that best aligns with your judgment.
(We recommend reviewing the scores first before comparing critiques).
To avoid bias and potential abuse, the model names are only revealed after a vote is submitted.
Judge Arena focuses on the LLM-as-a-Judge approach, and therefore only includes generative models (excluding classifier models that solely output a score). We formalize our selection criteria for AI judges as the following:.
We selected 18 state-of-the-art LLMs for our leaderboard. While many are open-source models with public weights, we also included proprietary API models to enable direct comparison between open and closed approaches.
The current list represents the models most commonly used in AI evaluation pipelines. We look forward to adding more models if our leaderboard proves to be useful.
The votes collected from the Judge Arena will be compiled and displayed on a dedicated public leaderboard. We calculate an Elo score for each model and will revision the leaderboard hourly.
These are only very early results, but here’s what we’ve observed so far:.
As the leaderboard shapes out over the coming weeks, we look forward to sharing further analysis on results on our blog.
We hope the Judge Arena is a helpful resource for the community. By contributing to this leaderboard, you’ll help developers determine which models to use in their evaluation pipeline. We’re committed to sharing 20% of the anonymized voting data in the coming months as we hope developers, researchers and people will leverage our findings to build more aligned evaluators.
Recent findings suggest that we’d love to hear your feedback! For general feature requests or to submit / suggest fresh models to add to the arena, please open up a discussion in the community tab or talk to us on Discord. Don’t hesitate to let us know if you have questions or suggestions by messaging us on X/Twitter.
It has been revealed that atla presently funds this out of our own pocket. We are looking for API credits (with no strings attached) to support this community effort - please get in touch at support@atla-ai.com if you are interested in collaborating 🤗.
Thanks to all the folks who helped test this arena and shout out to the LMSYS team for the inspiration. Special mention to Clémentine Fourrier and the Hugging Face team for making this possible!
seems that there is an problem with sfr-llama-3.1-70b-judge.
Failed to parse Salesforce response format: Error with Salesforce model sfr-llama-3.1-70b-judge: 422 Client Error: Unprocessable Entity for url: https://gateway.salesforceresearch.ai/sfr-judge/process.
📅 20 Nov 2024 | ⏱️ 7 min read (1444 words, 📚 Deep Dive) | Source: Hugging Face
Industry observers note that LLMs are now increasingly capable in English, but it's quite hard to know how well they perform in other national languages, widely spoken but which present their own set of linguistic challenges. Today, we are excited to fill this gap for Japanese!
In a recent development, we'd like to announce the Open Japanese LLM Leaderboard, composed of more than 20 datasets from classical to modern NLP tasks to understand underlying mechanisms of Japanese LLMs. The Open Japanese LLM Leaderboard was built by the LLM-jp, a cross-organizational project for the research and development of Japanese large language models (LLMs) in partnership with Hugging Face.
The Japanese language presents its own specific challenges. Morphologically rich and in constant evolution due to historical and cultural interactions with the rest of the world, its writing system is based on a mixture of three separate sets of characters: simplified Chinese ideographic symbols kanjis (漢字), a phonetic lettering system, Hiraganas (平仮名 / ひらがな), and Katakanas (片仮名 / カタカナ) often used for foreigners words. Modern Japanese is arguably one of the hardest language to process, as it mixes up a blend of Sino-Japanese, native Japanese, Latin script (romaji /ローマ字), loanwords from the Dutch, Portuguese, French, English, German, plus Arabic and traditional Chinese numerals. In addition, the Japanese digital world brought us an evolution of emoticons written in Unicode : ), Kaomoji using Cyrillic alphabet. (っ °Д °;)っ and Greek alphabets _φ(°-°=). Without forgetting, of course, the classic emojis that originated from Japan with the rise in popularity of mobile phones in the 1990s.
The intricate writing system of Japanese hides an extra layer of complexity, the lack of space between words. Similar to the Chinese or Thai languages, Japanese language doesn’t have white space between linguistic units, making the detection of word boundaries extremely difficult during tokenization. Over the years, the vibrant Japanese ecosystem (from prestigious university laboratories and AI startups to the R&D centers of industry giants) has incorporated the specificities of Japanese NLP to develop modern robust Japanese LLMs, but the field has been lacking a centralized and open system to compare these models.
We therefore introduce the Open Japanese LLM Leaderboard, a collaboration between Hugging Face and LLM-jp, to foster transparency in research, and encourage an open-source model development philosophy. We strongly believe this initiative will serve as a platform for Japanese and international researchers to collaborate, evaluate, and enhance Japanese LLMs.
The Open Japanese LLM Leaderboard evaluates Japanese LLMs using a specialized evaluation suite, llm-jp-eval, covering a range of 16 tasks from classical ones (such as Natural Language Inference, Machine Translation, Summarization, Question Answering) to more modern ones (such as Code Generation, Mathematical Reasoning or Human Examination). Tasks are released in 4-shot.
It has been revealed that datasets have been compiled by the evaluation team of LLM-jp, either built from scratch with linguists, experts, and human annotators, or translated automatically to Japanese and adjusted to Japanese specificities, and for some requiring long context reasoning. For a better understanding of the leaderboard, we will detail samples from 8 datasets (in Japanese followed by the English translation in light gray). For more details about all the available tasks, please see to the “About” tab of the leaderboard, and official links on each datasets.
Jamp (Controlled Japanese Temporal Inference Dataset for Evaluating Generalization Capacity of Language Models) is the Japanese temporal inference benchmark for NLI. The dataset explore English and Japanese sentence pairs of various temporal inference patterns annotated with the golden labels such as entailment, neutral, or contradiction.
Industry observers note that JEMHopQA (Japanese Explainable Multi-hop Question Answering) is a Japanese multi-hop QA dataset that can evaluate internal reasoning. It is a task that takes a question as input and generates an answer and derivations.
It has been revealed that jcommonsenseqa is a Japanese version of CommonsenseQA, which is a multiple-choice question answering dataset. The purpose of this dataset is to evaluate commonsense reasoning ability.
According to recent reports, chABSA was developed as an Aspect-Based Sentiment Analysis dataset. ChABSA is based on financial reports of Japanese listed-companies in the 2016 fiscal year, annotated on the pair of entity, the attribute, and the sentiment. More specifically, 230 out of 2,260 companies listed in Japan (roughly 10% of all tech giant) were annotated according to the taxonomy of the Japanese financial regulator, Financial Service Agency (FSA).
The mbpp-ja dataset is a programming dataset: it is a Japanese version of Mostly Basic Python Problems dataset (MBPP) translated from English into Japanese by LLM-jp by leveraging the translation tool DeepL.
Based on the dataset MAWPS (A Math Word Problem Repository), the Japanese mawps dataset is a mathematical evaluation dataset. This version evaluates the abilities of solving novel tasks by reasoning step-by-step, procedure otherwise known as Chain-of-Thought (CoT) reasoning, and was adjusted to converting names of people, units, and places to fit the Japanese context. The level of mathematical reasoning is rather simple: addition, subtraction, multistep arithmetic, and single or pairs of equations.
Sources indicate that JMMLU is a knowledge dataset using four-choice question answers. It consists in Japanese-translated questions from a portion of MMLU dataset that evaluates knowledge on high-school level tests. Based on 57 subjects such as astronomy, chemistry, sociology, international law, etc., questions and answers were translated in Japanese, while being adjusted to unique Japanese cultural context like Japanese civics, Japanese geography, and Japanese idioms.
XL-Sum is a summarisation dataset based on the research titled “XL-Sum: Large-Scale Multilingual Abstractive Summarization for 44 Languages” that leverages the Japanese translation of articles from BBC News. The dataset is separated in three parts; the title, the text (the full-length article), and the summary. Topics include global challenges, politics, technology, sports, and culture.
Industry observers note that the leaderboard is inspired by the Open LLM Leaderboard. Models that are submitted are deployed automatically using HuggingFace’s Inference endpoints, evaluated through the llm-jp-eval library on the version 1.14.1, with memory-efficient inference and serving engine, vLLM on the verison v0.6.3, and computed in the backend by the premium computer platform for research in Japan, mdx.
According to recent reports, according to the Japanese LLMs guide Awesome Japanese LLM (available in Japanese, English, and French), Meta's LLama open-source architecture seems to be the favourite of many Japanese AI labs. However, other architectures have also been successfully leveraged by the Japanese open-source community, such as Mistral from French Mistral, and Qwen by Chinese Alibaba. These are the architectures which led to the best scores on the Japanese LLM Leaderboard.
On general language processing tasks, we observe that Japanese LLMs based on open-source architectures are closing the gap with closed source LLMs, such as the Japanese LLM llm-jp-3-13b-instruct, developed by LLM-jp and funded by university grants, reaching a performance similar to closed source models. Domain specific datasets, such as chABSA (finance), Wikipedia Annotated Corpus (linguistic annotations), code generation (mbpp-ja) and summarization (XL-Sum) remain a challenge for most LLMs. Interestingly, models originating from Japanese-based companies or labs have better scores on the specific JCommonsenseMorality dataset. It evaluates model ability to make choices according to Japanese values when against ethical dilemmas.
The Open Japanese LLM Leaderboard will follow the development of the evaluation tool llm-jp-eval to reflect the constant evolution of Japanese LLMs. The following are just examples of future directions in llm-jp-eval that we would like to support, feel free to contact us to give a hand or suggest directions!
Latest datasets: More Japanese evaluations The evaluation team of llm-jp-eval is working on this section, adding at the moment JHumanEval (Japanese version of HumanEval) and MMLU (Measuring Massive Multitask Language Understanding).
Upcoming evaluation system: Chain-of-Thought evaluation We'd like to compare the performance of LLMs between when employing Chain-of-Thought prompts against basic prompts to have a finer understanding of model behaviors.
Upcoming metric support: Out-of-Choice rate For some evaluation tasks that already have a clear list of labels used in the specific task, such as Natural Language Inference, we'd like to add a complementary metric, testing how often the model predicts out-of-choice tokens. As the choices are provided in the prompt, this will allow us to evaluate how well each LLM is able to follow specific instructions.
Built by the research consortium LLM-jp, the Open Japanese LLM Leaderboard is proudly sponsored by the National Institute of Informatics in Tokyo, Japan in collaboration with the high-performance computing platform, mdx program.
In a recent development, we would like to extend our gratitude to Prof. Yusuke Miyao and Namgi Han from the University of Tokyo for their scientific consultation and guidance, as well as Clémentine Fourrier and Toshihiro Hayashi of Hugging Face that has assisted with the integration and customization of their new evaluation framework and leaderboard template.
📅 20 Nov 2024 | ⏱️ 7 min read (1437 words, 📚 Deep Dive) | Source: Hugging Face
According to recent reports, self-speculative decoding, proposed in LayerSkip: Enabling Early Exit Inference and Self-Speculative Decoding is a novel approach to text generation. It combines the strengths of speculative decoding with early exiting from a large language model (LLM). This method allows for efficient generation by using the same model's early layers for drafting tokens, and later layers for verification.
Recent findings suggest that this technique not only speeds up text generation, but it also achieves significant memory savings and reduces computational latency. In order to obtain an end-to-end speedup, the output of the earlier layers need to be close enough to the last layer. This is achieved by a training recipe which, as described in the paper, can be applied during pretraining, and also while fine-tuning on a specific domain. Self-speculative decoding is especially efficient for real-world applications, enabling deployment on smaller GPUs and lowering the overall hardware footprint needed for large-scale inference.
In a recent development, in this blog post, we explore the concept of self-speculative decoding, its implementation, and practical applications using the 🤗 transformers library. You’ll learn about the technical underpinnings, including early exit layers, unembedding, and training modifications. To ground these concepts in practice, we offer code examples, benchmark comparisons with traditional speculative decoding, and insights into performance trade-offs.
Dive straight into the following Hugging Face artifacts to know more about the method and try it out yourself:.
Illustration of LayerSkip inference on facebook/layerskip-llama2-7B (Llama2 7B continually pretrained with the LayerSkip recipe).
It has been revealed that traditional speculative decoding uses two models: a smaller one (draft model) to generate a sequence of draft tokens, and a larger one (verification model) to verify the draft’s accuracy. The smaller model performs a significant portion of the generation, while the larger model refines the results. This increases text generation speed since the larger model verifies full sequences at once, instead of generating one draft at a time.
It has been revealed that in self-speculative decoding, the authors build on this concept but use the early layers of a large model to generate draft tokens that are then verified by the model's deeper layers. This "self" aspect of speculative decoding, which requires specific training, allows the model to perform both drafting and verification. This, in turn, improves speed and reduces computational costs compared to the traditional speculative decoding.
In order to enable early-exit self-speculative decoding in the 🤗 transformers library, we just need to add the assistant_early_exit argument to the generate() function.
Here is a simple code snippet showcasing the functionality.
Note: While the assistant_early_exit argument can potentially enable early-exit self-speculative decoding for any decoder-only transformer, the logits from the intermediate layers cannot be unembedded (process of decoding through LM Head, described later in the blog post) unless the model is specifically trained for that. You will also only obtain speedups for a checkpoint that was trained in such a way to increase the accuracy of earlier layers. The LayerSkip paper proposes a training recipe to achieve that (namely, applying early exit loss, and progressively increasing layer dropout rates). A collection of Llama2, Llama3, and Code Llama checkpoints that have been continually pretrained with the LayerSkip training recipe are provided here.
In a recent development, we ran an extensive list of benchmarks to measure the speedup of LayerSkip’s self-speculative decoding with respect to autoregressive decoding on various models. We also compare self-speculative decoding (based on early exiting) with standrad speculative decoding techniques. To reproduce the results, you may find the code here and the command to run each experiment in this spreadsheet. All the experiments were ran on a single 80GB A100 GPU, except for Llama2 70B experiments that ran on a node of 8 A100 GPUs.
Some observations we can make from the results:.
One key technique in self-speculative decoding is early exit, where the generation process can halt at a pre specified layer. To accomplish this, we unembed the logits from these layers by projecting them onto the language model (LM) head to predict the next token. This allows the model to skip subsequent layers and improve inference time.
It has been revealed that unembedding can be performed at any transformer layer, turning early-exit into an efficient token-prediction mechanism. A natural question arises: how can the LM head be adapted to unembed logits from earlier layers when it was initially trained to work with the final layer only? This is where the training modifications come into play.
In the training phase, we introduce layer dropout, which allows the model to skip certain layers during training. The dropout rate increases progressively in deeper layers, making the model less reliant on its later layers, as well as enhancing the model's generalization and speeding up training.
Sources indicate that in addition to layer dropout, early exit loss is applied to ensure the LM head learns to unembed different layers. The total loss function for training the model with early exits is given by a summation of normalized loss from each exit (intermediate layers). This technique enables efficient training by distributing the learning task across all layers.
In a recent development, once training is complete, we can apply self-speculative decoding during inference. The process begins with self-drafting, where tokens are generated by exiting early from some intermediate layer. The number of speculative tokens defines how many draft tokens are produced during this stage, and the layer we exit at defines how large and accurate is the draft stage. Both parameters can be specified at inference based on a trade-off between speed and accuracy of the draft stage.
The next stage is self-verification, where the full model is used to verify the draft tokens. The verification model reuses the portion of cache from the draft model. If the draft tokens align with the verified tokens, they are added to the final output, resulting in a better usage of the memory bandwidth in our system, because it’s much more expensive to generate a sequence of tokens with the full model than verifying a draft, as long as several of the tokens match.
In the self-verification stage, only the remaining layers are computed for verification, because the results from the early layers are cached during the drafting phase.
Self-speculative decoding benefits significantly from cache reuse, particularly the KV cache, which stores key-value pairs computed during the drafting stage. This cache allows the model to skip redundant calculations, as both the draft and verification stages use the same early layers. Additionally, the exit query cache stores the query vector from the exit layer, allowing verification to continue seamlessly from the draft stage.
Compared to traditional two-model speculative decoding, early-exit self-speculative decoding can benefit from the following savings:.
The combination of KV and exit query caches, known as the KVQ cache, reduces memory overhead and improves inference latency.
Sources indicate that so far, the 🤗 transformers library has implemented the first optimization (Shared Weights) in this pull request. As the number of models that use this method increases, we'll consider the additional optimizations. Feel free to open a PR if you're interested!
The early exit layer of the draft stage is a hyperparameter that we can tune or modify during inference:.
Sources indicate that we wrote a script to sweep across different early exit layers and measure the tokens per second on A100 GPUs. In the Tables below we plot the tokens per second versus the early exit layer for different Llama models for both LayerSkip and baseline checkpoints (you can view the full logs here).
These observations present intriguing opportunities for further experimentation and exploration. We encourage readers to build upon these ideas, test variations, and pursue their own research. Such efforts can lead to valuable insights and contribute meaningfully to the field.
LayerSkip leverages the synergy between early exit, layer dropout, and cache reuse to create a fast and efficient text generation pipeline. By training the model to unembed outputs from different layers and optimizing the verification process with caches, this approach strikes a balance between speed and accuracy. As a result, it significantly improves inference times in large language models while maintaining high-quality outputs. It also reduces memory compared to traditional speculative decoding techniques due to a single model used as both the draft and verification model.
Self-speculation is an exciting field where the same LLM can create draft tokens and fix itself. Other self-speculation approaches include:.
I may be missing something, but the demo code snippet in its current form is broken.
Sorry to hear that. Can you inform us what version of the transformerslibrary you are using and what error message you got?
📅 20 Nov 2024 | ⏱️ 5 min read (966 words, 📚 Deep Dive) | Source: Hugging Face
Hugging Face stores over 30 PB of models, datasets, and spaces in Git LFS repositories. Because Git stores and versions at the file level, any change to a file requires re-uploading the full asset – expensive operations when average Parquet and CSV files on the Hub range between 200-300 MB, average Safetensor files around 1 GB, and GGUF files can exceed 8 GB. Imagine modifying just a single line of metadata in a GGUF file and waiting for the multi-gigabyte file to upload; in addition to user time and transfer costs, Git LFS also then needs to save full versions of both files, bloating storage costs.
The plot below illustrates the growth of LFS storage in model, dataset, and space repositories on the Hub between March 2022 and September 2024:.
Hugging Face's Xet team is taking a different approach to storage by storing files as chunks. By only transferring modified chunks, we can dramatically improve both storage efficiency and iteration speed while ensuring reliable access to evolving datasets and models. Here’s how it works.
Recent findings suggest that the method that we use to chunk files is called content-defined chunking (CDC). Instead of treating a file as an indivisible unit, CDC breaks files down into variable-sized chunks, using the data to define boundaries. To compute the chunks, we apply a rolling hash algorithm that scans the file’s byte sequence.
Consider a file with the contents:.
We’re using text for illustration, but this could be any sequence of bytes.
A rolling hash algorithm computes a hash over a sliding window of data. In this case, with a window of length 4 the hash would be computed first over tran, then rans, then ansf and so on until the end of the file.
Chunk boundaries are determined when a hash satisfies a predefined condition, such as:.
If the sequence mers produces a hash that meets this condition, the file will be split into three chunks:.
The content of these chunks is hashed to create mapping between chunk hash and bytes and will eventually be stored in a content-addressed store (CAS). Since all three chunks are identical, we only store one chunk in the CAS for built-in deduplication. 🪄.
When the contents of a file change, CDC allows for fine-grained updates that make it robust to handling insertions and deletions. Let’s modify the file by inserting super, making the latest file contents:.
After applying the rolling hash again with the same boundary condition, the new chunks look like this:.
We do not need to save chunks we have seen before; they are already stored. However, supertransformers is a new chunk. Thus, the only cost of saving the updated version of this file is uploading and storing one new chunk.
Recent findings suggest that to validate this optimization in the real world, we benchmarked our previous implementation of CDC-backed storage at XetHub against Git LFS and found a consistent 50% improvement in storage and transfer performance across three iterative development use cases. One example was the CORD-19 dataset, a collection of COVID-19 research papers curated between 2020 and 2022 with 50 incremental updates. The comparison between Xet-backed and Git LFS-backed repositories is summarized below:.
Recent findings suggest that by only transferring and saving modified chunks, the Xet-backed repository using CDC (alongside various techniques to improve compression and streamline network requests) revealed significantly faster upload/download times and drastically cut the amount of storage required to capture all versions of the dataset. Curious to learn more? Read the full benchmark.
How would CDC work on the types of files stored on Hugging Face Hub? We threw together a simple deduplication estimator to visualize the potential storage savings of applying CDC to a collection of files. Running this tool on two versions of the model.safetensors file in openai-community/gpt2 uploaded over the course of the repository's commit history returned the following result:.
The greenness reflects significant overlap between the two versions, and thus an opportunity to deduplicate both within each file and across the versions.
In a recent development, in this case, using our Xet-based storage backend would save considerable upload/download time for the second version, as well as reduce the total storage footprint by 53%. With compression, we estimate an additional 10% of savings.
Sources indicate that our initial research into repositories across the Hub reveals positive results for some fine-tuned models and many model checkpoints. Fine-tuned models modify only a subset of parameters, so most of the model remains unchanged across versions, making them a great candidate for deduplication. Model checkpoints, which capture incremental training states, are also good targets as changes between checkpoints are often minimal. Both show deduplication ratios in the range of 30-85%. PyTorch model checkpoints make up around 200 TB of total storage on the Hub. At 50% deduplication, we would save up to 100 TB of storage immediately and roughly 7-8 TB monthly going forward.
Recent findings suggest that beyond reducing storage costs, chunk-level deduplication also improves upload/download speeds, as only the modified chunks are transferred. This is a great benefit to teams working with multiple versions of models or datasets as it minimizes user and machine waiting time.
Industry observers note that our team is presently working through our POC of Xet-backed storage for the Hub and hope to roll out some Xet-backed repositories in early 2025. Follow us to learn more as we share our learnings on future topics like scaling CDC across globally distributed repositories, balancing network performance, privacy boundaries, and parallelizing our chunking algorithm.
If you want to see chunk-based dedupe in action, join the waitlist today https://huggingface.co/join/xet.
Recent findings suggest that is there a mechanism for handling Content-Defined Chunking Attacks? I checked restic and it has this mechanism. You can refer to the paper provided by restic: https://eprint.iacr.org/2025/532.pdf.
📅 31 Oct 2026 | ⏱️ 5 min read (1068 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
According to recent reports, weekly. Free. One click to leave.
Recent findings suggest that 7 Day Free Trial. Cancel Anytime.
A few years ago, animating a ten-second scene meant storyboards, rigging and a lot of patience. Today you can type a sentence, upload a drawing or point at a reference clip and get moving footage back in a minute or two. The results are uneven, but they are good enough that designers, marketers and indie developers now use them for storyboards, product teasers, game trailers and social content.
The catch is that these tools are not interchangeable. Some excel at cinematic camera moves, some at editing footage you already have, and some at a particular visual style. This guide compares five AI animation generators, what each one is best at and where it falls short. Aims, credits and model names change rapidly, so check each vendor's pricing page before you commit.
Runway is a cloud workspace for generating and editing video, images and audio in one place. Its current video model is Gen-4.5, which Runway promotes for motion quality, prompt adherence and visual fidelity. The platform also offers agent and workflow tools, mobile apps for iPhone and Android, and an API for developers.
Best for: Creators who want to generate a shot and then keep refining it in the same environment, and teams that need an API.
Recent findings suggest that limitations: There is a lot to learn, and credit costs add up when you iterate. Runway offers a free trial, but check the pricing page for current limits.
Kling AI is an AI video and image generator with a creative studio for image generation, video generation and motion control. It also includes an agent for brainstorming and scripting, and a node-based canvas for working through scripts, storyboards, images and video with multiple rounds of editing. Kling lists advertising, film, music videos and e-commerce among its use cases, and offers an API platform and automation options for producing video at scale.
Best for: Marketers and studios that want to move from script to storyboard to footage in a single workspace.
Limitations: The feature set is broad, so newcomers may need time to find the right workflow. Free credits were not described on the pages I checked, so confirm what is available before relying on it.
Luma focuses on turning still images into video with camera motion. Its workspace can create transitions between frames, extend clips, transform footage into latest styles, reframe aspect ratios and add voice, music, captions and lip sync. It runs Luma's own Ray models and also gives access to several third-party models, so you can compare results without switching platforms.
Best for: Designers and illustrators who already have key art, product shots or concept images and want to bring them to life.
Limitations: Paid intends start at around $30 a month at the time of writing, and generation credits can run out quickly if you test many variations.
Pika is a creative platform covering video, images and audio. Its Video Studio can produce anything from a short clip to a multi-shot video of around 30 seconds, and its toolkit includes Extend Video, Motion Transfer, Swap Anything and Color Grade. Character Studio lets you create reusable characters, and separate studios handle music, speech and sound effects. Pika also exposes several video models, including its own Pika 2.5 alongside third-party options.
Best for: Social content creators who want effects, sound and edits in one tool.
Limitations: With so many tools and models, results vary from one to the next. Check the current pricing page for credit details.
Recent findings suggest that pollo AI is a generator that leans into one look: anime. Its animation generator creates anime-style videos from a text prompt and lets you adjust the video content, output style and size. The page offers eleven Japanese animator-inspired style options, such as Hayao Miyazaki and Makoto Shinkai, and the platform also provides a separate tool that converts existing video into anime.
Best for: Creators who want a consistent anime look for shorts, fan projects, music visuals or social posts without learning a full editing suite.
Limitations: The generator page describes text prompts as its input and does not state clip length, resolution or credit details, so test a few generations and review the terms before planning a project around it. As with any style-focused tool, the look is distinctive, which is a strength for anime projects and a limit for anything else.
Start with the job rather than the brand. If you need to edit and refine footage, Runway is a natural fit. If you want a script-to-video pipeline, look at Kling. If you have strong still images, try Luma. If you want effects and sound for social posts, Pika covers a lot of ground. If anime is the goal, Pollo AI is built for it.
According to recent reports, run the same prompt through two or three tools before paying for anything. Differences in motion, faces and text rendering show up promptly, and they are often more important than the feature list.
AI animation tools have moved from novelty to practical production aid. None of them replaces a skilled animator, but each can speed up storyboards, concepts and short-form content when matched to the right job. Try a few with a real project, compare the output, and keep a human in charge of the final cut. If you want a quick way to experiment with anime styles, you can create anime clips from a prompt and see how the results compare with the other tools on this list.
Are AI animation generators free? Most offer a free trial or limited credits, with paid prepares for more generations and higher quality. Terms change often, so read each pricing page.
It has been revealed that can I use AI-generated animation commercially? It depends on the provider's terms and your blueprint. Check the licensing section before publishing client work.
Recent findings suggest that do I need animation experience? No, but knowing basic shot composition helps you write better prompts and judge the results.
Which tool is best for beginners? Pick one with a simple prompt-first workflow, test the free tier and move to a more advanced tool as your needs grow.
Sources indicate that 7 Day Free Trial. Cancel Anytime.
📅 20 Nov 2024 | ⏱️ 6 min read (1132 words, 📚 Deep Dive) | Source: Hugging Face
Industry observers note that current static evaluations and user-driven arenas have exhibited their limitations and biases in the previous year. Here, we explore a novel way to evaluate LLMs: debate. Debate is an excellent way to showcase reasoning strength and language abilities, used all across history, from the debates in the Athenian Ecclesia in the 5th century BCE to today's World Universities Debating Championship. Do today's large language models exhibit debate skills similar to humans? Which model is currently the best at debating? What can we learn from models when they debate against one another? To answer this question, BAAI has created a "Debate Arena", allowing large models to compete against each other. Currently, it supports debate competitions in English, Chinese, Arabic and Korean.
Industry observers note that the advancement of multimodal and multilingual technologies has exposed the limitations of traditional static evaluation protocols in capturing LLMs’ performance in complex interactive scenarios. Inspired by OpenAI’s “AI Safety via Debate” framework—which emphasizes enhancing models’ reasoning and logic through multi-model interactions ([1])—BAAI’s FlagEval Debate platform introduces a dynamic evaluation methodology to address these limitations. Recent research has demonstrated the potential of multi-agent debates in improving models’ reasoning capabilities and factual accuracy. For example, studies have shown that multi-agent interactions can significantly enhance models’ consistency and accuracy in logical reasoning and factual judgments ([2]), while others have indicated that multi-model debates encourage models to generate more truthful and coherent responses ([3]). While existing platforms like LMSYS Chatbot Arena offer foundational settings for multi-model interactions, they present certain limitations in practical evaluation:.
BAAI’s FlagEval Debate platform addresses these challenges by introducing genuine multi-model debates. Models engage in direct confrontations, showcasing their reasoning processes and depth. This allows evaluators to observe and compare differences in viewpoints, logical reasoning, and argumentation strategies among models. The platform’s multilingual support and real-time debugging capabilities enable users to study model strengths in realistic and interactive settings, ultimately providing more discriminative and in-depth evaluation results.
Sources indicate that flagEval Debate supports Chinese, English, Korean, and Arabic, encompassing a diversity of writing systems and languages. This multilingual capability provides a platform for models to perform in cross-cultural contexts and tests their adaptability and communication effectiveness across diverse linguistic environments. This addresses the global demand for multilingual LLM evaluation.
To enhance fairness and flexibility, FlagEval Debate offers a developer customization feature, allowing participating model teams to fine-tune parameters, strategies, and dialogue styles based on their models’ characteristics and task requirements. This capability enables developers to optimize their models’ performance in debates, showcasing strengths while identifying areas for improvement. The real-time feedback loop fosters continuous optimization, allowing models to stand out in competitive evaluations.
FlagEval Debate employs a unique dual evaluation system combining expert reviews with user feedback, assessing models from both technical and experiential perspectives:.
In Q3 2024, we conducted extensive experiments on the FlagEval Debate platform to evaluate the impact of multi-model debates on models’ logical reasoning and differentiated performance. The experiments yielded several critical insights: 1. Most current models can engage in debate Our experiments demonstrated that all participating models, including closed-source variants, could effectively engage in debate tasks. This indicates that models across different architectures and training paradigms possess the requisite capabilities for logical reasoning and interactive dialogue in multi-model settings. This broad applicability enhances the relevance of FlagEval Debate as a comprehensive evaluation platform. We have empirically observed that some small open-source models still face challenges maintaining coherence and staying on topic.
There is significant potential for model improvement In the early stages of development, we observed that models would make different types of errors during debates. For instance, one model would generate content for both the affirmative and Negative sides simultaneously, while others would display forced agreement even when that was inappropriate. For example:.
We addressed these issues by refining the system prompt requirements and adjusting the input format, though each model still exhibited unique error patterns. At the same time, the experiments highlighted substantial opportunities for model enhancement. Performance variations indicated potential improvements in reasoning chains, linguistic expressiveness, and adversarial strategies. We encourage model creators to use our debate-tuning services to refine and optimize their models’ debate performance!
Recent findings suggest that stronger evaluation: combining expert feedback with user preferences Our findings also suggest that relying exclusively on user preferences for evaluation can introduce biases and limit the accuracy of performance assessments. To mitigate this, FlagEval Debate’s dual evaluation system integrates expert reviews to provide a balanced perspective. By combining reliable expert assessments with subjective user feedback, we aim to ensure a more equitable and comprehensive evaluation, aligning results with both technical expertise and human preference.
The planning of the large-scale model debate is illustrated as follows.
Preliminary experiments indicate that the performance of the participating debate models will significantly improve after timely optimization. Model providers and creators are welcome to click the link Debate Competition Registration Form or send an email to flageval@baai.ac.cn. By registering for the model debate evaluation, FlagEval will provide free model debate debugging services. The following companies have already participated in our debate:.
FlagEval Debate represents a significant advancement in LLM evaluation methodologies. By incorporating multilingual support, developer customization, and a dual evaluation system, it offers a robust framework for assessing models in interactive, real-world scenarios. Moving forward, BAAI is committed to refining this platform to foster innovation, enhance evaluation methodologies, and drive standardization in AI practices. The goal is to provide developers and people with a forward-looking evaluation ecosystem, accelerating the evolution and deployment of advanced large language models.
Sources indicate that the Beijing Academy of Artificial Intelligence (BAAI) was established in November 2018 as a pioneering non-profit research institution, primarily focusing on original innovation and core technologies in artificial intelligence. Its aim is to drive revolutionary and disruptive breakthroughs in AI theory, methods, tools, systems, and applications. Within BAAI, FlagEval is a dedicated team specializing in the evaluation of large-scale AI models. FlagEval launched its large model evaluation platform in 2023, and has since covered over 800 models globally. The platform evaluates over 40 dimensions, including reasoning, mathematical skills, and task-solving abilities. FlagEval recently launched fresh platforms for model-to-model competition, further strengthening its evaluation framework and advancing AI evaluation methodologies. It has been recognized as a leader in advancing AI evaluation standards and fostering collaboration between academia and industry.
Industry observers note that [1] Irving G, Christiano P, Amodei D. AI safety via debate. arXiv preprint arXiv:1805.00899, 2018.
Industry observers note that [2] [ICML 2024] Du Y, Li S, Torralba A, et al. Improving factuality and reasoning in language models through multiagent debate. arXiv preprint arXiv:2305.14325, 2023.
According to recent reports, [3] [ICML 2024 Best] Khan A, Hughes J, Valentine D, et al. Debating with more persuasive llms leads to more truthful answers. arXiv preprint arXiv:2402.06782, 2024.
📅 25 Nov 2024 | ⏱️ 16 min read (3187 words, 📚 Deep Dive) | Source: Hugging Face
Gall's Law A complex system that works is invariably found to have evolved from a simple system that worked John Gall.
This post walks you through the step-by-step discovery of state-of-the-art positional encoding in transformer models. We will achieve this by iteratively improving our approach to encoding position, arriving at Rotary Postional Encoding (RoPE) used in the latest LLama 3.2 release and most modern transformers. This post intends to limit the mathematical knowledge required to follow along, but some basic linear algebra, trigonometry and understanding of self attention is expected.
You shall know a word by the tech giant it keeps John Rupert Firth.
As with all problems, it is best to first start with understanding exactly what we are trying to achieve. The self attention mechanism in transformers is utilized to understand relationships between tokens in a sequence. Self attention is a set operation, which means it is permutation equivariant. If we do not enrich self attention with positional information, many crucial relationships are incapable of being determined.
This is best demonstrated by example.
Consider this sentence with the same word in different positions:.
The dog chased another dog \text{The dog chased another dog} The dog chased another dog.
Intuitively, "dog" refers to two different entities. Let's see what happens if we first tokenize them, map to the real token embeddings of Llama 3.2 1B and pass them through torch.nn.MultiheadAttention.
According to recent reports, as we can see, without any positional information, the output of a (multi headed) self attention operation is identical for the same token in different positions, despite the tokens clearly representing distinct entities. Let's begin designing a method of enhancing self attention with positional information, such that it can determine relationships between words encoded by their positions.
How should an ideal positional encoding scheme behave?
Let's try and define some desirable properties that will make the optimization process as easy as possible.
Each position needs a unique encoding that remains consistent regardless of sequence length - a token at position 5 should have the same encoding whether the current sequence is of length 10 or 10,000.
According to recent reports, the relationship between positions should be mathematically simple. If we know the encoding for position ppp, it should be straightforward to compute the encoding for position p+kp+kp+k, making it easier for the model to learn positional patterns.
According to recent reports, if you think about how we represent numbers on a number line, it's easy to understand that 5 is 2 steps away from 3, or that 10 is 5 steps from 15. The same intuitive relationship should exist in our encodings.
To increase our models' utility in the real world, they should generalize outside their training distribution. Therefore, our encoding scheme needs to be adaptable enough to handle unexpected input lengths, without violating any of our other desirable properties.
Industry observers note that it would be ideal if our positional encodings could be drawn from a deterministic process. This should allow the model to learn the mechanism behind our encoding scheme efficiently.
With multimodal models becoming the norm, it is crucial that our positional encoding scheme can naturally extend from 1D1D1D to nDnDnD. This will allow models to consume data like images or brain scans, which are 2D2D2D and 4D4D4D respectively.
Now we know the ideal properties (henceforth referred to as PrnPr_nPrn), let's start designing and iterating on our encoding scheme.
The first approach that may jump to mind is simply to add the integer value of the token position to each component of the token embedding, with values ranging from 0→L0 \rightarrow L0→L where LLL is the length of our current sequence.
In the above animation, we create our positional encoding vector for the token chased\color{#699C52}\text{chased}chased from the index and add it to our token embedding. The embedding values here are a subset of the real values from Llama 3.2 1B. We can observe that they're clustered around 0. This is desirable to avoid vanishing or exploding gradients during training and therefore is something we'd like to maintain throughout the model.
It's clear that our current naïve approach is going to cause problems. The magnitude of the position value vastly exceeds the actual values of our input. This means the signal-to-noise ratio is very low, and it's hard for the model to separate the semantic information from the positional information.
Recent findings suggest that with this new knowledge, a natural follow on might be to normalize the position value by 1N\frac{1}{N}N1. This constrains the values between 0 and 1, but introduces another problem. If we choose NNN to be the length of the current sequence, then the position values will be completely different for each sequence of differing lengths, violating Pr1Pr_1Pr1.
Sources indicate that is there a better way to ensure our numbers are between 0 and 1? If we thought really hard about this for a while, we might come up with switching from decimal to binary numbers.
Instead of adding our (potentially normalized) integer position to each component of the embedding, we could instead convert it into its binary representation and s t r e t c h our value out to match our embedding dimension, as demonstrated below.
According to recent reports, we've converted the position of interest (252) into its binary representation (11111100) and added each bit to the corresponding component of the token embedding. The least significant bit (LSB) will cycle between 0 and 1 for every subsequent token, whilst the most significant bit (MSB) will cycle every 2n−12^{n-1}2n−1 tokens where nnn is the number of bits. You can see the positional encoding vector for different indices in the animation below [1][^1][1].
We've solved the value range problem, and we now have unique encodings that are consistent across different sequence lengths. What happens if we plot a low dimensional version of our token embedding and visualize the addition of our binary positional vector for different values.
We can see that the result is very "jumpy" (as we might expect from the discrete nature of binary). The optimization process likes smooth, continuous and predictable changes. Do we know any functions with similar value ranges that are smooth and continuous?
If we looked around a little, we might notice that both sin\sinsin and cos\coscos fit the bill!
It has been revealed that the above animation visualizes our position embedding if each component is alternatively drawn from sin\sinsin and cos\coscos with gradually increasing wavelengths. If you compare it with the previous animation, you'll notice a striking similarity!
It has been revealed that we've now arrived at Sinusoidal embeddings; originally defined in the Attention is all you need paper. Let's look at the equations:.
PE(pos,2i)=sin(pos100002i/d)PE(pos,2i+1)=cos(pos100002i/d) PE_{(pos,2i)} = \color{#58C4DD}\sin\left(\color{black}\frac{pos}{10000^{2i/d}}\color{#58C4DD}\right)\color{black} \\ \quad \\ PE_{(pos,2i+1)} = \color{#FC6255}\cos\left(\color{black}\frac{pos}{10000^{2i/d}}\color{#FC6255}\right)\color{black} \\ PE(pos,2i)=sin(100002i/dpos)PE(pos,2i+1)=cos(100002i/dpos).
where pospospos is the tokens position index, iii is the component index in the positional encoding vector, and ddd is the model dimension. 10,00010,00010,000 is the base wavelength (henceforth referred to as θ\thetaθ), which we stretch or compress as a function of the component index. I encourage you to plug in some realistic values to get a feel for this geometric progression.
In a recent development, there's a few parts of this equation that are confusing at first glance. How did the authors choose 10,00010,00010,000? Why are we using sin\sinsin and cos\coscos for even and odd positions respectively?
According to recent reports, it seems that using 10,00010,00010,000 for the base wavelength was determined experimentally [2][^2][2]. Deciphering the usage of both sin\sinsin and cos\coscos is more involved, but crucial for our iterative approach to understanding. The key here is our desire for a linear relation between two encoded positions Pr2Pr_2Pr2. To understand how using sin\sinsin and cos\coscos in tandem produce this linear relation, we will have to dive into some trigonometry.
According to recent reports, consider a sequence of sine and cosine pairs, each associated with a frequency ωi\omega_iωi. Our goal is to find a linear transformation matrix M\mathbf{M}M that can shift these sinusoidal functions by a fixed offset kkk:.
M⋅[sin(ωip)cos(ωip)]=[sin(ωi(p+k))cos(ωi(p+k))] \mathbf{M} \cdot \begin{bmatrix} \sin(\omega_i p) \\ \cos(\omega_i p) \end{bmatrix} = \begin{bmatrix} \sin(\omega_i(p + k)) \\ \cos(\omega_i(p + k)) \end{bmatrix} M⋅[sin(ωip)cos(ωip)]=[sin(ωi(p+k))cos(ωi(p+k))].
The frequencies ωi\omega_iωi follow a geometric progression that decreases with dimension index iii, defined as:.
ωi=1100002i/d \omega_i = \frac{1}{10000^{2i/d}} ωi=100002i/d1.
To find this transformation matrix, we can express it as a general 2×2 matrix with unknown coefficients u1u_1u1, v1v_1v1, u2u_2u2, and v2v_2v2:.
[u1v1u2v2]⋅[sin(ωip)cos(ωip)]=[sin(ωi(p+k))cos(ωi(p+k))] \begin{bmatrix} u_1 & v_1 \\ u_2 & v_2 \end{bmatrix} \cdot \begin{bmatrix} \sin(\omega_i p) \\ \cos(\omega_i p) \end{bmatrix} = \begin{bmatrix} \sin(\omega_i(p+k)) \\ \cos(\omega_i(p+k)) \end{bmatrix} [u1u2v1v2]⋅[sin(ωip)cos(ωip)]=[sin(ωi(p+k))cos(ωi(p+k))].
By applying the trigonometric addition theorem to the right-hand side, we can expand this into:.
[u1v1u2v2]⋅[sin(ωip)cos(ωip)]=[sin(ωip)cos(ωik)+cos(ωip)sin(ωik)cos(ωip)cos(ωik)−sin(ωip)sin(ωik)] \begin{bmatrix} u_1 & v_1 \\ u_2 & v_2 \end{bmatrix} \cdot \begin{bmatrix} \sin(\omega_i p) \\ \cos(\omega_i p) \end{bmatrix} = \begin{bmatrix} \sin(\omega_i p)\cos(\omega_i k) + \cos(\omega_i p)\sin(\omega_i k) \\ \cos(\omega_i p)\cos(\omega_i k) - \sin(\omega_i p)\sin(\omega_i k) \end{bmatrix} [u1u2v1v2]⋅[sin(ωip)cos(ωip)]=[sin(ωip)cos(ωik)+cos(ωip)sin(ωik)cos(ωip)cos(ωik)−sin(ωip)sin(ωik)].
This expansion gives us a system of two equations by matching coefficients:.
u1sin(ωip)+v1cos(ωip)=cos(ωik)sin(ωip)+sin(ωik)cos(ωip)u2sin(ωip)+v2cos(ωip)=−sin(ωik)sin(ωip)+cos(ωik)cos(ωip) \begin{align} u_1\sin(\omega_i p) + v_1\cos(\omega_i p) &= \cos(\omega_i k)\sin(\omega_i p) + \sin(\omega_i k)\cos(\omega_i p) \\ u_2\sin(\omega_i p) + v_2\cos(\omega_i p) &= -\sin(\omega_i k)\sin(\omega_i p) + \cos(\omega_i k)\cos(\omega_i p) \end{align} u1sin(ωip)+v1cos(ωip)u2sin(ωip)+v2cos(ωip)=cos(ωik)sin(ωip)+sin(ωik)cos(ωip)=−sin(ωik)sin(ωip)+cos(ωik)cos(ωip).
By comparing terms with sin(ωip)\sin(\omega_i p)sin(ωip) and cos(ωip)\cos(\omega_i p)cos(ωip) on both sides, we can solve for the unknown coefficients:.
u1=cos(ωik)v1=sin(ωik)u2=−sin(ωik)v2=cos(ωik) \begin{align} u_1 &= \cos(\omega_i k) & v_1 &= \sin(\omega_i k) \\ u_2 &= -\sin(\omega_i k) & v_2 &= \cos(\omega_i k) \end{align} u1u2=cos(ωik)=−sin(ωik)v1v2=sin(ωik)=cos(ωik).
These solutions give us our final transformation matrix Mk\mathbf{M_k}Mk:.
Mk=[cos(ωik)sin(ωik)−sin(ωik)cos(ωik)] \mathbf{M_k} = \begin{bmatrix} \cos(\omega_i k) & \sin(\omega_i k) \\ -\sin(\omega_i k) & \cos(\omega_i k) \end{bmatrix} Mk=[cos(ωik)−sin(ωik)sin(ωik)cos(ωik)].
Sources indicate that if you've done any game programming before, you might notice that the result of our derivation is oddly familiar. That's right, it's the Rotation Matrix! [3][^3][3].
So the encoding scheme designed by Noam Shazeer in Attention is all you need was already encoding relative position as a rotation back in 2017! It took another 4 years to go from Sinusoidal Encoding to RoPE, despite rotations already being on the table...
With the knowledge in hand that rotations are important here, let's return to our motivating example and try to discover some intuitions for our next iteration.
01234The dog chased another dog-2-1012The dog chased another dog \begin{align*} &\hspace{0.7em}0 \hspace{1.4em} 1 \hspace{2em} 2 \hspace{2.6em} 3 \hspace{2.4em} 4\\ &\text{The dog chased another dog} \\ \\ &\hspace{0.3em}\text{-2} \hspace{1.4em} \text{-1} \hspace{1.7em} 0 \hspace{2.6em} 1 \hspace{2.4em} 2\\ &\text{The dog \color{#699C52}chased \color{black}another dog} \end{align*} 01234The dog chased another dog-2-1012The dog chased another dog.
Above we can see the absolute positions of our tokens, and the relative positions from chased\color{#699C52}\text{chased}chased to every other token. With Sinusoidal Encoding, we generated a separate vector which represents the absolute position, and using some trigonometric trickery we were able to encode relative positions.
When we're trying to understand these sentences, does it matter that this word is the 2157th word in this blog post? Or do we care about its relationship to the words around it? The absolute position of a word rarely matters for meaning - what matters is how words relate to each other.
It has been revealed that from this point on, it's key to consider positional encoding in the context of self attention. To reiterate, the self-attention mechanism enables the model to weigh the importance of different elements in an input sequence and dynamically adjust their influence on the output.
Attn(Q,K,V)=softmax(QKTdk)V \text{Attn}(Q, K, V) = \text{softmax}\left(\frac{QK^T}{\sqrt{d_k}}\right)V Attn(Q,K,V)=softmax(dkQKT)V.
According to recent reports, in all our previous iterations, we've generated a separate positional encoding vector and added it to our token embedding prior to our QQQ, KKK and VVV projections. By adding the positional information directly to our token embedding, we are polluting the semantic information with the positional information. We should be attempting to encode the information without modifying the norm. Shifting to multiplicative is the key.
In a recent development, using the dictionary analogy, when looking up a word (query) in our dictionary (keys), nearby words should have more influence than distant ones. The influence of one token upon another is determined by the QKTQK^TQKT dot product - so that's exactly where we should focus our positional encoding!
a⃗⋅b⃗=∣a⃗∣∣b⃗∣cosθ \vec{a} \cdot \vec{b} = |\vec{a}| |\vec{b}| \cos \theta a⋅b=∣a∣∣b∣cosθ.
The geometric interpretation of the dot product shown above gives us a magnificent insight. We can modulate the result of our dot product of two vectors purely by increasing or decreasing the angle between them. Furthermore, by rotating the vector, we have absolutely zero impact on the norm of the vector, which encodes the semantic information of our token.
So now we know where to focus our attention, and have seen from another angle why a rotation might be a sensible "channel" in which to encode our positional information, let's put it all together!
According to recent reports, rotary Postional Encoding or RoPE was defined in the RoFormer paper (Jianlin Su designed it independently on his blog here and here). While it may seem like voodoo if you skip to the end result, by thinking about Sinusoidal Encoding in the context of self attention (and more specifically dot products), we can see how it all comes together.
According to recent reports, much like in Sinusoidal Encoding, we decompose our vectors q\mathbf{q}q or k\mathbf{k}k, instead of pre-projection x\mathbf{x}x) into 2D pairs/chunks. Rather than encoding absolute position directly by adding a vector we drew from sinusoidal functions of slowly decreasing frequencies, we cut to the chase and encode relative position by multiplying each pair with the rotation matrix.
Let q\mathbf{q}q or k\mathbf{k}k be our input vector at position ppp. We create a block diagonal matrix where Mi\mathbf{M_i}Mi is the corresponding rotation matrix for that component pairs desired rotation:.
R(q,p)=(M1M2⋱Md/2)(q1q2⋮qd) R(\mathbf{q}, p) = \begin{pmatrix} \mathbf{M_1} & & & \\ & \mathbf{M_2} & & \\ & & \ddots & \\ & & & \mathbf{M_{d/2}} \end{pmatrix} \begin{pmatrix} q_1 \\ q_2 \\ \vdots \\ q_d \end{pmatrix} R(q,p)=M1M2⋱Md/2q1q2⋮qd.
Much the same as Sinusoidal Encoding, Mi\mathbf{M_i}Mi is simply:.
Mi=[cos(ωip)sin(ωip)−sin(ωip)cos(ωip)] \mathbf{M_i} = \begin{bmatrix} \cos(\omega_i p) & \sin(\omega_i p) \\ -\sin(\omega_i p) & \cos(\omega_i p) \end{bmatrix} Mi=[cos(ωip)−sin(ωip)sin(ωip)cos(ωip)].
Sources indicate that in practice, we don't use a matrix multiplication to compute RoPE as it would be computationally inefficient with such a sparse matrix. Instead, we can directly apply the rotations to pairs of elements independently, taking advantage of the regular pattern in the computation:.
RΘ,pdq=(q1q2q3q4⋮qd−1qd)⊗(cospθ1cospθ1cospθ2cospθ2⋮cospθd/2cospθd/2)+(−q2q1−q4q3⋮−qdqd−1)⊗(sinpθ1sinpθ1sinpθ2sinpθ2⋮sinpθd/2sinpθd/2) R_{\Theta,p}^d q = \begin{pmatrix} q_1 \\ q_2 \\ q_3 \\ q_4 \\ \vdots \\ q_{d-1} \\ q_d \end{pmatrix} \otimes \begin{pmatrix} \cos p\theta_1 \\ \cos p\theta_1 \\ \cos p\theta_2 \\ \cos p\theta_2 \\ \vdots \\ \cos p\theta_{d/2} \\ \cos p\theta_{d/2} \end{pmatrix} + \begin{pmatrix} -q_2 \\ q_1 \\ -q_4 \\ q_3 \\ \vdots \\ -q_d \\ q_{d-1} \end{pmatrix} \otimes \begin{pmatrix} \sin p\theta_1 \\ \sin p\theta_1 \\ \sin p\theta_2 \\ \sin p\theta_2 \\ \vdots \\ \sin p\theta_{d/2} \\ \sin p\theta_{d/2} \end{pmatrix} RΘ,pdq=q1q2q3q4⋮qd−1qd⊗cospθ1cospθ1cospθ2cospθ2⋮cospθd/2cospθd/2+−q2q1−q4q3⋮−qdqd−1⊗sinpθ1sinpθ1sinpθ2sinpθ2⋮sinpθd/2sinpθd/2.
In a recent development, that's all there is to it! By artfully applying our rotations to 2D chunks of q\mathbf{q}q and k\mathbf{k}k prior to their dot product, and switching from additive to multiplicative, we can gain a big performance boost in evaluations [4][^4][4].
In a recent development, we've explored the 1D1D1D case for RoPE and by this point I hope you've gained an intuitive understanding of an admittedly unintuitive component of transformers. Finally, let's explore extending it to higher dimensions, such as images.
Recent findings suggest that A natural first intuition could be to directly use the [xy] \begin{bmatrix} x \\ y \end{bmatrix}[xy] coordinate pairs from the image. This might seem intuitive, after all, we were almost arbitrarily pairing up our components previously. However, this would be a mistake!
In the 1D1D1D case, we encode the relative position m−nm - nm−n through a rotation of pairs of values from our input vector. For 2D2D2D data, we need to encode both horizontal and vertical relative positions, say m−nm - nm−n and i−ji - ji−j independently. RoPE's brilliance lies in how it handles multiple dimensions. Instead of trying to encode all positional information in a single rotation, we pair components within the same dimension and rotate those, otherwise we would be intermixing the xxx and yyy offset information. By handling each dimension independently, we maintain the natural structure of the space. This can generalize to as many dimensions as required!
It has been revealed that is RoPE the final incarnation of positional encoding? This recent paper from DeepMind deeply analyses RoPE and highlights some fundamental problems. TLDR: RoPE isn't a perfect solution, and the models mostly focus on the lower frequencies, but the paper highlights that removing (not rotating) the lowest frequencies improves performance on Gemma 2B!
I anticipate some future breakthroughs, perhaps taking inspiration from signal processing with ideas like wavelets or hierarchical implementations. As models are increasingly quantized for deployment, I'd also expect to see some innovation in encoding schemes that remain robust under low-precision arithmetic.
Positional encoding has and continues to be treated as an after thought in transformers. I believe we should view it differently - self attention has an Achilles heel that has been repeatedly patched.
I hope this blog post indicated you that you too could have discovered state of the art positional encoding, despite it being unintuitive at first. In a follow up post I'd love to explore practical implementation details for RoPE in order to maximise performance.
This post was originally published here.
[^1]: Binary and Sinusoidal animations are reproductions of animations contained in this video.
[^2]: Using θ=10000\theta = 10000θ=10000 gives us 2π⋅10000 2 \pi \cdot 100002π⋅10000 unique positions, or a theoretical upper bound on the context length at ~63,000.
[^3]: Pieces of this post are based on this fantastic post by Amirhossein Kazemnejad.
[^4]: For empirical evidence, see this great post by EleutherAI.
dog1_out = output[0, 2] # First "dog"dog2_out = output[0, 5] # Second "dog" as per code but let me correct if i am wrongToken Index"The" 0"dog" 1"chased" 2"another" 3"dog" 4so to compare it must be dog1_out = output[0, 1] and dog2_out = output[0, 4].
Sources indicate that hey guys, amazing article as usual. I was wondering whether the property 2 and 4 could be linked? Seems like we are talking about a generation process that is simple enough so that the model can learn it, which encapsulates both properties no ?
Agree they're linked, but distinct enough to warrant two independent properties. You could have a linear relationship generated by a non-deterministic process :).
I did though: state of the art positional encoding = no positional encoding.
https://blog.hashtron.cloud/post/2025-08-25-the-transformer-that-learned-without-a-gpu/.
An important bit of context for those not familiar with signal processing/Fourier analysis concepts is that Euler's formula relates the complex exponential to sine and cosine: e^ix = cos(x) + i sin(x), and e^ix allows you to think about rotations in 2d dimensions on the complex plane.
The Taylor expansion of the complex exponential explains e^ix = cos(x) + i sin(x) and the alternating odd sine and even cosine in a bit more depth. Steven Brunton has an excellent walkthrough of the derivation herehttps://www.youtube.com/watch?v=Rp-smPZLESc&list=PLMrJAkhIeNNQBRslPb7I0yTnES981R8Cg.
The dog example provided can be misleading in case of decoder architecture. Since attention does masking due to which you will not get same values.
But the property 2 and 3 will come to prove the need for positional embedding.
📅 31 Oct 2026 | ⏱️ 18 min read (3551 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
Sources indicate that weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
In a recent development, legacy applications often support critical business operations, but keeping them running can become increasingly difficult. Outdated infrastructure, growing technical debt, security vulnerabilities, and limited integration capabilities can make these systems expensive to maintain and harder to adapt to changing business needs.
Modernizing them involves more than upgrading technology. You need to understand what the existing application does, identify which components need improvement, and manage the transition without disrupting essential operations.
This 10-point legacy application modernization checklist walks you through the process, from assessing your existing systems and selecting a modernization strategy to migrating data, testing applications, and measuring results.
Legacy application modernization is the process of updating existing software applications, their architecture, infrastructure, or underlying technologies to meet current business and technical requirements.
Depending on the application's condition, modernization may involve moving it to a new platform, improving its code, redesigning its architecture, or replacing it with a new solution.
The goal is to improve performance, security, scalability, maintainability, and the application's ability to support future business requirements.
In a recent development, modernization isn't necessarily the same as cloud migration. Moving an application from on-premises infrastructure to the cloud changes where it runs, but it may leave its underlying architecture and technical limitations unchanged.
An organization can modernize an application without moving it to the cloud or combine both approaches as part of a larger transformation.
Use this checklist to track the ten essential steps involved in modernizing legacy applications.
1. Define modernization goals: Identify business problems and establish measurable success criteria.
2. Assess existing applications: Review infrastructure, technical debt, code quality, and performance limitations.
3. Map application dependencies: Document critical workflows, integrations, and business rules.
Industry observers note that 4. Choose a modernization strategy: Select an approach based on business value, cost, complexity, and risk.
Recent findings suggest that 5. Develop a roadmap and budget: Prioritize activities, estimate costs, assign responsibilities, and establish milestones.
Sources indicate that 6. Plan architecture and security: Design the target environment and address security, compliance, and availability requirements.
Recent findings suggest that 7. Prepare data migration: Plan data transfer, integration changes, and validation procedures.
8. Modernize incrementally: Validate the approach with a pilot and implement changes in manageable phases.
It has been revealed that 9. Test and deploy: Verify functionality, performance, security, and data integrity before production rollout.
10. Monitor and optimize: Measure results, support users, and continuously improve the modernized application.
Let's examine what each step involves and how to determine whether you're ready to proceed.
Before selecting technologies or planning development work, identify what the modernization initiative needs to achieve.
Clear business objectives help prioritize investments, guide technical decisions, and establish whether the project delivers meaningful improvements.
Start by examining the problems affecting your application's performance, reliability, or business value.
For example, a legacy order management system might still process transactions reliably but require extensive manual work whenever the business adds a new sales channel.
In this situation, improving integration capabilities may be more valuable than replacing the entire application.
An application's age alone doesn't justify a major technology investment. Whether legacy modernization makes sense for your business depends on the problems the existing system creates, the cost of maintaining it, and whether smaller improvements could resolve those concerns.
Once you've identified the problems, translate them into measurable objectives.
According to recent reports, if slow performance is the primary concern, establish a target for response times or transaction processing speed. If maintenance expenses are rising, determine what reduction in operating costs would justify the investment.
Relevant key performance indicators (KPIs) may include:.
These baseline measurements will help determine whether the changes deliver the expected results.
Completion check: You have a documented business case identifying the problems to address, expected outcomes, measurable KPIs, and stakeholders responsible for approving success.
A legacy application assessment provides a clear picture of your current technology environment.
Without this assessment, teams may underestimate project complexity, overlook critical components, or choose a modernization approach that doesn't address the application's actual limitations.
Begin by creating an inventory of your applications and their supporting technologies.
Document each application's purpose, business owner, primary users, operating environment, programming languages, frameworks, databases, and infrastructure requirements.
Also identify software versions, third-party dependencies, licensing restrictions, and components approaching or past their end-of-support dates.
If your organization operates several legacy applications, use a consistent assessment framework. This makes it easier to compare their business importance, technical condition, and modernization urgency.
Review the application's codebase to identify problems that make maintenance and development difficult.
Look for tightly coupled components, duplicated logic, outdated libraries, insufficient automated tests, and undocumented configurations.
Pay particular attention to areas where small modifications regularly cause unexpected problems elsewhere in the system.
For example, if payment processing, inventory management, and customer records share tightly connected code, modifying one function could require extensive testing across the entire application.
Your infrastructure assessment should also cover hardware limitations, database compatibility, backup capabilities, operating systems, and unsupported dependencies.
Analyze how the application performs during normal operations and periods of increased demand.
Review response times, database queries, resource utilization, transaction volumes, and recurring failures.
Existing monitoring data and incident records can reveal problems that aren't immediately visible during routine use.
Determine whether performance limitations originate from inefficient application code, infrastructure capacity, database design, or external dependencies.
This distinction matters because adding computing resources won't necessarily resolve problems caused by poor application logic.
Completion check: You have an application inventory and technical assessment report documenting major components, technical debt, operational risks, and performance limitations.
Sources indicate that legacy applications rarely operate independently. They exchange data with other systems, support interconnected business processes, and often contain business rules that aren't fully documented.
Understanding these dependencies is essential because changing one component can affect several other applications or workflows.
Document the processes that rely on the application, including the steps owners follow, the data they need, and the expected outcomes.
Work with business customers, application owners, operations teams, and developers familiar with the system.
Identify processes that cannot tolerate significant interruption, such as payment processing, order fulfillment, customer authentication, or financial reporting.
Don't overlook activities that happen less frequently. Month-end financial reports, annual calculations, and scheduled data exchanges may depend on functionality that isn't exercised during everyday operations.
Map how the application communicates with databases, APIs, third-party services, and other internal systems.
Include scheduled jobs, file transfers, message queues, authentication services, and reporting tools.
Some legacy applications contain years of accumulated business logic.
Rules for pricing, approvals, calculations, or customer eligibility may exist only in source code, database procedures, or undocumented workflows.
Identify these rules before modifying the underlying implementation.
Where possible, create automated tests that capture existing expected behavior. These tests can help verify that the modernized application preserves required functionality.
Completion check: Critical workflows, system dependencies, integrations, and business rules are documented and reviewed by the relevant business and technical owners.
The appropriate modernization strategy depends on the application's technical condition, business importance, budget, and future requirements.
Industry observers note that not every application needs to be rebuilt. Some systems require targeted improvements, while others may be better replaced or retired.
Common legacy application modernization strategies include:.
Different applications within the same organization may require different approaches.
Evaluate each option against your technical constraints and business requirements.
Consider implementation effort, expected benefits, ongoing maintenance costs, required expertise, and potential disruption.
Recent findings suggest that for example, replatforming may be suitable for an application that operates reliably but depends on aging infrastructure. Rearchitecting may be necessary when tightly coupled components prevent independent updates or scaling.
A complete rebuild requires particular caution. Recreating undocumented functionality can be expensive, and important business rules may be lost if the existing system hasn't been thoroughly assessed.
The right strategy should solve the identified problems without introducing unnecessary cost or complexity.
Completion check: Each application has a selected modernization strategy, documented rationale, estimated effort, and an approved decision on whether to modernize, retain, replace, or retire it.
Once you've selected a modernization approach, convert it into an actionable plan.
Your roadmap should establish what will change, in what order, who will be responsible, and how progress will be evaluated.
Prioritize modernization work according to business value, technical complexity, urgency, and dependencies.
Applications with unsupported components or significant security risks may require early attention. However, starting with the most complex application isn't always the best choice.
A smaller, lower-risk application can provide an opportunity to validate tools, workflows, and team capabilities before modernizing more critical systems.
According to recent reports, dependencies also affect the sequence. For example, a shared authentication service may need to be updated before applications that rely on it can be migrated.
Prepare a budget covering the full modernization process rather than development alone.
Relevant cost categories include:.
Compare upfront implementation expenses with expected operating costs over time.
A modernization approach with a lower initial cost may still require significant ongoing maintenance.
Allow contingency for unexpected issues, particularly when legacy documentation is incomplete or system dependencies remain uncertain.
Divide the project into phases with defined deliverables and approval requirements.
Assign responsible owners for architecture, development, security, data migration, testing, and business acceptance.
Establish how project risks will be reported and who can approve changes to scope, budget, or deployment schedules.
Keep the roadmap adaptable. Findings from pilot implementations or migration rehearsals may require changes to the original blueprint.
Completion check: Your modernization roadmap includes prioritized activities, estimated costs, responsible owners, dependencies, milestones, and approval checkpoints.
The target architecture determines how the modernized application will operate, scale, integrate with other systems, and remain maintainable.
Security and compliance requirements should be incorporated into the design from the beginning.
Choose an architecture that fits the application's actual requirements.
Possible approaches include a modular monolith, service-oriented architecture, microservices, or event-driven components.
In a recent development, microservices aren't automatically the best option. Although they allow independent deployment and scaling of components, they also introduce complexity in communication, monitoring, deployment, and data management.
For smaller applications or tightly integrated business processes, a well-structured modular architecture may be easier to maintain.
Document architectural decisions covering application components, data storage, interfaces, infrastructure requirements, and operational responsibilities.
Identify security weaknesses that should be resolved during modernization.
Review authentication, authorization, encryption, secrets management, logging, and access to sensitive information.
Evaluate third-party dependencies and establish processes for vulnerability scanning, patching, and security testing.
Regulatory and contractual requirements should also influence the target design.
Depending on the organization, these may include data privacy obligations, retention requirements, audit controls, or restrictions on where information can be stored.
Security controls should be applied throughout development and deployment rather than added shortly before release.
Define how the application will remain available and recover from failures.
Establish recovery time objectives (RTOs) and recovery point objectives (RPOs) based on business requirements.
Initiative backup procedures, restoration testing, appropriate redundancy, and monitoring for critical components.
Validate that the target environment can support the required availability and recovery objectives.
Completion check: The target architecture has documented design decisions, security controls, compliance requirements, availability objectives, and recovery procedures.
Data migration is one of the most sensitive stages of legacy application modernization.
Legacy databases may contain inconsistent records, outdated formats, duplicated information, or relationships that newer systems handle differently.
A migration strategy needs to explain how data will be transferred, validated, and made available without compromising business operations.
Begin by reviewing the quality and structure of existing data.
Identify missing values, duplicate records, inconsistent formats, obsolete fields, and relationships that could create migration problems.
Document how existing data structures correspond to the target system.
For example, a legacy customer database might store contact details in a single field, while the fresh application requires separate fields for email addresses and phone numbers.
The migration process needs defined transformation rules to handle these differences.
Determine which records must be migrated, archived, retained for compliance, or excluded.
Choose a migration approach based on data volume, application availability requirements, and acceptable downtime.
Depending on the system, this may involve a scheduled migration during a maintenance window, staged transfers, or synchronization between old and upcoming environments.
Identify integrations that will need modification.
Where applications exchange information through APIs, files, or messaging systems, verify that the modernized implementation supports the required data formats and business behavior.
If the legacy and modernized applications will operate simultaneously, define how data updates will be synchronized between them.
Test the migration process using representative datasets before transferring production data.
Validate record counts, field values, relationships, and critical business calculations.
For sensitive or business-critical information, use appropriate reconciliation methods, including integrity checks where applicable.
Document how inconsistencies will be identified and resolved.
Also establish what happens if migration fails or the application needs to return to its previous environment.
Completion check: Data mapping rules are approved, migration rehearsals have been completed, and reconciliation procedures can verify data accuracy.
Modernizing an entire application in a single major release can increase project risk, particularly when the system supports critical business operations.
An incremental approach allows teams to validate decisions, identify problems earlier, and limit the impact of failures.
Select a manageable component or workload to validate your modernization approach.
The pilot should test an notable assumption, such as whether the target platform supports the application, whether a legacy integration can be replaced, or whether an architectural change improves performance.
Define success criteria before implementation.
A useful pilot should provide evidence that the approach is technically feasible and that the team can manage its operational requirements.
Use the findings to improve estimates, identify missing skills, and refine the broader implementation plan.
Divide the application into manageable migration or development units where its architecture allows.
One approach is the Strangler Fig pattern, which gradually replaces legacy functionality while the remaining parts of the original application continue operating.
For example, an organization might modernize customer notifications first, followed by reporting and then core transaction processing.
This can reduce the risks associated with replacing an entire system at once.
However, incremental modernization also requires careful coordination. Temporary integrations, duplicated components, and parallel systems can introduce complexity.
Each phase should have defined boundaries, validation requirements, and completion criteria.
Establish repeatable processes for developing, testing, and deploying application changes.
Continuous integration and continuous delivery (CI/CD) pipelines can automate builds, execute tests, and promote approved changes through environments.
Use version control, consistent configuration management, and infrastructure as code where appropriate.
Include security and quality checks in the delivery process to reduce the risk of introducing defects during frequent releases.
Completion check: The pilot has validated the selected approach, implementation is divided into manageable phases, and repeatable build, test, and deployment processes are established.
Modernization isn't complete when the new application runs successfully in a development environment.
It must perform the required business functions, communicate correctly with connected systems, and meet operational expectations before production rollout.
Develop a testing plan based on the application's critical workflows and identified risks.
Automate repeatable tests where practical, especially for critical business processes.
Compare results against the performance baselines and acceptance criteria established earlier.
Business owners should verify that the modernized application supports their actual workflows.
User acceptance testing (UAT) should include routine operations, exception handling, reporting requirements, and tasks that depend on specialized business knowledge.
Use representative migrated data during testing.
Confirm that critical records, calculations, and reports remain accurate after the transition.
Resolve issues affecting essential operations before approving production deployment.
Prepare a documented deployment blueprint outlining the sequence of activities, responsible teams, communication channels, and expected service interruptions.
Choose a deployment method appropriate for the application, such as a phased rollout, canary release, or scheduled cutover.
Establish measurable conditions that would stop deployment or trigger a rollback.
Recent findings suggest that rollback planning must account for data changes made after cutover. Restoring an earlier application version doesn't automatically restore database consistency, especially if new transactions have already been processed.
Rehearse deployment and recovery procedures in a suitable non-production environment.
Completion check: Required tests have passed, business owners have approved acceptance criteria, and deployment, cutover, and recovery procedures have been validated.
The initial deployment marks the beginning of ongoing operation rather than the end of modernization.
The application needs continued monitoring and maintenance to ensure that expected improvements are sustained.
Compare post-modernization results against the baseline established at the beginning of the project.
Track metrics linked to your business objectives, such as application availability, maintenance costs, response times, deployment frequency, security vulnerabilities, and user satisfaction.
Use monitoring tools, logs, traces, and alerts to identify problems that may not be visible through basic availability checks.
Review performance after deployment and at agreed intervals to determine whether the modernization initiative is meeting its objectives.
Technical improvements may introduce changes to established workflows.
Provide relevant training, updated documentation, and support resources for users and operational teams.
Ensure that administrators and developers understand the fresh architecture, deployment processes, monitoring tools, and incident response procedures.
Collect user feedback to identify usability issues or missing functionality.
Use production data and operational feedback to guide further improvements.
Optimization may involve updating dependencies, improving database queries, adjusting infrastructure capacity, strengthening security controls, or simplifying application components.
Once replacement functionality is stable and approved, begin decommissioning components that are no longer needed.
Before retirement, confirm that dependent applications have been migrated, necessary records are retained, and archival or compliance obligations have been met.
Removing unused infrastructure and software can reduce maintenance costs and unnecessary security exposure.
Completion check: Monitoring and support responsibilities are established, modernization KPIs are reviewed, and unused legacy components have an approved retirement strategy.
Organizations without the internal resources to manage legacy modernization may need support from an external software development organization.
Depending on the project, a development partner can assist with application assessments, code refactoring, architecture redesign, system integration, data migration, and implementation.
Companies offering custom software development and application modernization services include:.
Idea Maker: Provides custom software development and legacy application modernization services, including application assessments, code refactoring, architecture redesign, and cloud migration.
ScienceSoft: Offers custom software development, legacy software modernization, application reengineering, cloud migration, and system integration services.
Itransition: Provides custom application development, legacy application modernization, system integration, software migration, and post-modernization support.
Simform: Offers digital product engineering, software modernization, cloud and platform engineering, and data integration services.
These are examples of providers rather than a ranked comparison.
When evaluating a development partner, consider their experience with your existing technology stack, ability to handle complex integrations, approach to data security, and experience delivering projects with similar requirements.
Ask prospective providers how they assess legacy systems, manage migration risks, preserve critical business logic, and validate application functionality before deployment.
The main steps are defining business goals, assessing existing applications, mapping dependencies, choosing a modernization strategy, developing a roadmap, designing the target architecture, planning data migration, implementing changes, testing and deploying, and continuously optimizing the application.
The exact sequence may vary depending on the application's complexity and business requirements.
Start by evaluating the application's business value, technical condition, dependencies, and future requirements.
Rehosting or replatforming may be sufficient when the application functions well and infrastructure is the primary concern.
Refactoring or rearchitecting may be necessary when code quality or architectural limitations affect maintainability and scalability.
Rebuilding or replacing becomes an option when the existing implementation no longer meets business needs or would be too costly to maintain.
Compare expected benefits, implementation costs, risks, and ongoing maintenance requirements before making a decision.
Common risks include undocumented dependencies, data loss or corruption, unexpected downtime, security vulnerabilities, integration failures, and loss of essential business functionality.
Projects may also experience delays or budget overruns when technical complexity is underestimated.
These risks can be reduced through early assessment, phased implementation, migration rehearsals, comprehensive testing, and validated recovery procedures.
The timeline depends on the application's size, architecture, technical debt, data complexity, integrations, and selected modernization approach.
A limited rehosting or refactoring project generally requires less effort than rebuilding a large application or modernizing several interconnected systems.
A reliable estimate requires an initial technical assessment. A pilot or proof of concept can help validate assumptions about implementation effort and potential challenges.
Measure success against the business and technical objectives established before implementation.
Relevant indicators include application performance, availability, maintenance costs, security improvements, deployment speed, and user satisfaction.
For example, if reducing maintenance effort was the primary goal, lower support costs and faster resolution of application issues may be more meaningful than infrastructure performance alone.
Modernization success should be evaluated over time rather than only immediately after deployment.
Legacy application modernization works best when it follows a structured strategy based on business needs and the realities of existing technology.
The ten steps in this checklist cover the key decisions and activities involved, from assessing legacy systems and selecting a modernization strategy to migrating data, validating functionality, and maintaining the resulting application.
Careful dependency mapping, realistic planning, incremental implementation, and thorough testing help reduce risks throughout the transition.
Industry observers note that start by assessing your existing applications and defining what modernization needs to achieve. Those findings will help you identify which systems deserve attention, where to invest resources, and how to approach modernization without introducing unnecessary complexity.
Industry observers note that 7 Day Free Trial. Cancel Anytime.
📅 26 Nov 2024 | ⏱️ 9 min read (1723 words, 📚 Deep Dive) | Source: Hugging Face

In a recent development, this blog post introduces SmolVLM, a 2B VLM, SOTA for its memory footprint. SmolVLM is small, fast, memory-efficient, and fully open-source. All model checkpoints, VLM datasets, training recipes and tools are released under the Apache 2.0 license.
This year has seen a boom in multimodal AI with many large vision language models released. The trends were to initially scale up compute, later scale up the data diversity by generating synthetic data with large models, and, recently, scale down to make these models more efficient. Small open models allow local deployment to browser or edge devices, cut inference costs, and enable user customization. Some notable examples of these models include PaliGemma 3B, moondream2, and Qwen2VL.
In this blog post, we introduce SmolVLM, a new family of 2B small vision language models that can be used commercially and deployed to smaller local setups, with completely open training pipelines.
We release three models: SmolVLM-Base, which can be used for downstream fine-tuning, SmolVLM-Synthetic, the fine-tuned variant on synthetic data, and SmolVLM Instruct, the fine-tuned instruction variant, which can be used out of the box for interactive end-user applications.
Sources indicate that this release comes with open-source models integrated into transformers, a demo built on SmolVLM Instruct, and a supervised fine-tuning script. We have used the datasets previously used for Idefics3: the Cauldron and Docmatix, which are also fully open-source.
Recent findings suggest that the Main Building: Located at the center of the complex, the main building features intricate tile work with traditional Thai motifs that cover every inch of the structure. This includes patterns such as dragons, mythical creatures, flowers, and geometric shapes. The roofline has an elaborate design featuring multiple layers of tiles adorned with gold accents.
Towers & Spires: There are several towers within the Grand Palace including the Phra Nakhon Si Ayutthaya National Museum Tower which houses exhibits on Thai culture and heritage. Another notable tower is the Wat Yai Chai Mongkol Tower where you can find beautiful murals depicting scenes from Buddhist mythology.
Architecture Style: The architectural style combines elements of Hindu and Khmer styles seen commonly throughout Southeast Asia. You'll notice influences like stupas (dome-shaped structures), lotus flower carvings, and ornate details typical of these regions' religious buildings.
Recent findings suggest that visitor Experience: While exploring the Grand Palace, visitors should be aware of certain rules due to security measures taken by authorities. These include no photography inside certain areas or using flashbulbs outside. Additionally, there may be queues during peak tourist seasons so plan accordingly if you're traveling here.
By following these guidelines, your trip will undoubtedly enhance both your understanding of Thailand’s rich historical tapestry and personal enjoyment!
According to recent reports, for SmolVLM, we closely followed the architecture from Idefics3, to the point that we use the same implementation in transformers. There are, however a few key differences:.
We present benchmarks for the tasks we mention in training details.
It has been revealed that smolVLM provides the best memory usage among the existing suite of vision language models in transformers. This allows it to run efficiently on-device, such as a laptop! You can see above the GPU memory usage in GBs for each model, running inference with one or two input images, and using the same images and text prompts in all tests. SmolVLM's efficiency in image encoding is built into the model. SmolVLM encodes each 384x384 image patch to 81 tokens. This results in SmolVLM encoding our test prompt and a single image in 1.2k tokens, whereas Qwen2-VL uses 16k tokens. This also explains why the memory consumption increases so much for 2 images with Qwen and InternVL. In contrast, the increase is much more moderate for SmolVLM and PaliGemma, which use a similar approach.
SmolVLM's tiny memory footprint also implies that it requires far fewer computations to prefill the model and generate. Compared to Qwen2-VL, the prefill throughput is 3.3 to 4.5 times faster, and the generation throughput is 7.5 to 16 times faster.
Given SmolVLM's long context and the possibility of tweaking the internal frame resizing of the model, we explored its suitability as an accessible option for basic video analysis tasks, particularly when computational resources are limited.
It has been revealed that in our evaluation of SmolVLM's video understanding capabilities, we implemented a straightforward video processing pipeline code, extracting up to 50 evenly sampled frames from each video while avoiding internal frame resizing. This simple approach yielded surprisingly competitive results on the CinePile benchmark, with a score of 27.14%, a performance that positions the model between InternVL2 (2B) and Video LlaVa (7B).
The quantitative results align with our qualitative testing, looking at an example from the FineVideo dataset:.
While in the second question, we see some temporal understanding limitations (the cook points to one ingredient after the other rather than pointing/holding all of them at the same time) SmolVLM demonstrated great scene understanding and object recognition capabilities.
We integrated SmolVLM with VLMEvalKit to facilitate easy evaluation across additional benchmarks.
By running the following command, you can evaluate SmolVLM or your fine-tuned SmolVLM model.
For example, to evaluate on MMMU dev validation set and MathVista mini and store the results in a folder called smol.
You can easily load SmolVLM using the Auto classes in transformers. Under the hood, the model and processor are mapped to the same implementations used for Idefics3.
Image and text can be interleaved arbitrarily, and you can pass in multiple images. Here’s how you can use the chat template and pass in the formatted input to the processor.
Start generating with preprocessed input and decode the generated output.
In a recent development, first, we had to train SmolLM2 to extend it context, but we will discuss that in the next subsection. Once we had a long context SmolLM2, we trained SmolVLM using the same data that we used for Idefics3. Mainly, we used The Cauldron and Docmatix. The full list of datasets we used can be consulted here.
Sources indicate that smolLM2’s pre-training context window is insufficient for VLMs. Images are encoded into many tokens, and we wanted to support multiple images. To address this, we extended it to 16k tokens by increasing the RoPE base value from 10k to 273k, following the guidelines in “Scaling Laws of RoPE-based Extrapolation”. We fine-tuned the model on a mixture of long- and short-context datasets. For long-context datasets, we used the “books” subset of Dolma (primarily Project Gutenberg) and code documents with 8k+ tokens from The Stack, each contributing 20% to the final mixture. For short-context datasets, we streamlined the original SmolLM2 pre-training mix to include 20% FineWeb-Edu, 20% DCLM, and 20% from our math dataset (to be released soon). The math dataset was upsampled to mitigate a performance drop observed on GSM8k during the context extension process. All experiments were implemented using the EasyContext repository.
It has been revealed that for our training run, we saved checkpoints every 25 optimization steps, allowing us to evaluate and potentially recover the model's state at different points in training. This practice is crucial for identifying the optimal model version, as training longer doesn't always guarantee better performance. We evaluated the performance across multiple vision-language benchmarks, each weighted according to their importance. The core benchmarks included the following:.
To select the optimal checkpoint, we created a single metric by combining these benchmarks with different manually assigned weights to reflect their relative importance in assessing the model's capabilities. We used this single metric to select the best checkpoint. Generally, the models tended to do great on most benchmarks with more training, but their relative performance on DocVQA would decrease considerably.
You can fine-tune SmolVLM using transformers and apply alignment techniques using TRL 🚀.
It has been revealed that we provide a notebook to fine-tune it on the VQAv2 dataset, optionally using LoRA, QLoRA or full fine-tuning. In the notebook, you can find some tricks to save up even more memory and have a larger batch size to fit SmolVLM inside consumer GPUs, like L4, for training. With batch sizes of 4, 8-bit loading with QLoRA and gradient checkpointing we can fine-tune in L4, and it consumes around ~16 GBs of VRAM. This makes it possible to fine-tune your SmolVLM using Colab! You can play around with the parameters to get a nice point in training duration-memory trade-off.
SmolVLM also comes with TRL integration so you can apply Direct Preference Optimization (DPO) easily through the CLI. Get started by running pip install trl accelerate peft and then run the following command to fine-tune on RLAIF-V dataset:.
According to recent reports, the resulting LoRA adapter weights are SmolVLM-Instruct-DPO. A detailed tutorial on preference tuning vision-based LLM can be found here: dpo_vlm.
You can cite us in the following way:.
In a recent development, we introduced SmolVLM, a fully open, small, and mighty VLM for the community! We also provide tools for the community to use and customize it. We are looking forward to seeing what you will create with SmolVLM.
Below are some resources if you would like to read more about all things related to SmolVLM.
Small nit for the example there is a typo on the link for second image it should be:image2 = load_image("https://huggingface.co/spaces/HuggingFaceTB/SmolVLM/resolve/main/example_images/rococo_1.jpg").
Industry observers note that you are right @ridha ! Would you like to open a PR so that the fix is attributed to you? You can do it by clicking the "Upgrade on GitHub" button just below this post's title. If you don't have time that's perfectly ok, we'll get to it in a day or so :).
Hi, wanna ask how to using the same arch, but try training from scratch with another langual model? Is that supported?
https://github.com/huggingface/smollm/blob/main/finetuning/Smol_VLM_FT.ipynbis not working,.
https://github.com/huggingface/smollm/blob/main/vision/finetuning/Smol_VLM_FT.ipynbseems to be the correct one.
Recent findings suggest that great to see compact vision models getting practical. I built a privacy-first, cross-platform web UI that runs SmolVLM2-2.2B-Instruct (vision) alongside SmolLM3-3B (text). It auto-detects CUDA/MPS/CPU, pulls models on first run, and serves a clean Gradio interface.
Vision: describe images, visual Q&A, quick OCRText: code generation, explanation, summarization, multilingual promptsLocal only: no API keys or cloud services.
I’m actively collecting feedback: ideal image sizes, better defaults for generation params, and presets that make visual tasks smoother. If you’re testing SmolVLM* locally, I’d love your notes.
Repo: https://github.com/mikecastrodemaria/SmolLM3-M2-Interface-Multimodale.
Thanks for any pointers, complications, or PRs!
📅 26 Nov 2024 | ⏱️ 6 min read (1246 words, 📚 Deep Dive) | Source: Hugging Face
Recent findings suggest that as part of Hugging Face's Xet team’s work to improve Hugging Face Hub’s storage backend, we analyzed a 24 hour window of Hugging Face upload requests to better understand access patterns. On October 11th, 2024, we saw:.
The map below visualizes this activity, with countries colored by bytes uploaded per hour.
According to recent reports, currently, uploads are stored in an S3 bucket in us-east-1 and optimized using S3 Transfer Acceleration. Downloads are cached and served using AWS Cloudfront as a CDN. Cloudfront’s 400+ convenient edge locations provide global coverage and low-latency data transfers. However, like most CDNs, it is optimized for web content and has a file size limit of 50GB.
While this size restriction is reasonable for typical internet file transfers, the ever-growing size of files in model and dataset repositories presents a challenge. For instance, the weights of meta-llama/Meta-Llama-3-70B total 131GB and are split across 30 files to meet the Hub’s recommendation of chunking weights into 20 GB segments. Additionally, to enable advanced deduplication or compression techniques for both uploads and downloads requires a reimagining of how we handle file transfers.
To push Hugging Face infrastructure beyond its current limits, we are redesigning the Hub’s upload and download architecture. We proposal to insert a content-addressed store (CAS) as the first stop for content distribution. This enables us to implement a custom protocol built on a guiding philosophy of dumb reads and smart writes. Unlike Git LFS, which treats files as opaque blobs, our approach analyzes files at the byte level, uncovering opportunities to improve transfer speeds for the massive files found in model and dataset repositories.
The read path prioritizes simplicity and speed to ensure high throughput with minimal latency. Requests for a file are routed to a CAS server, which provides reconstruction information. The data itself remains backed by an S3 bucket in us-east-1, with AWS CloudFront continuing to serve as the CDN for downloads.
The write path is more complex to optimize upload speeds and provide additional security guarantees. Like reads, upload requests are routed to a CAS server, but instead of querying at the file level we operate on chunks. As matches are found, the CAS server instructs the client (e.g., huggingface_hub) to transfer only the necessary (new) chunks. The chunks are validated by CAS before uploading them to S3.
There are many implementation details to address such as network constraints and storage overhead which we’ll cover in future posts. For now, let's look at how reads presently look. The first diagram below show the read and write path as they currently look today:.
Meanwhile, in the newly introduced design, reads will take the following path:.
and finally here is the updated write path:.
By managing files at the byte level, we can adapt optimizations to suit different file formats. For instance, we have explored improving the dedupeability of Parquet files, and are now investigating compressing tensor files (e.g., Safetensors) which have the potential to trim 10-25% off upload speeds. As upcoming formats emerge, we are uniquely positioned to develop further enhancements that improve the development experience on the Hub.
This protocol also introduces significant improvements for enterprise customers and power owners. Inserting a control plane for file transfers provides added guarantees to ensure malicious or invalid data cannot be uploaded. Operationally, uploads are no longer a black box. Enhanced telemetry provides audit trails and detailed logging, enabling the Hub infrastructure team to identify and resolve problems promptly and efficiently.
It has been revealed that to support this custom protocol, we need to determine the optimal geographic distribution for the CAS service. AWS Lambda@Edge was initially considered for its extensive global coverage to help minimize the round-trip time. However, its reliance on Cloudfront triggers made it incompatible with our updated upload path. Instead, we opted to deploy CAS nodes in a select few of AWS’s 34 regions.
Recent findings suggest that taking a closer look at our 24-hour window of S3 PUT requests, we identified global traffic patterns that reveal the distribution of data uploads to the Hub. As expected, the majority of activity comes from North America and Europe, with continuous, high-volume uploads throughout the day. The data also highlights a strong and growing presence in Asia. By focusing on these core regions, we can place our CAS points of presence to balance storage and network resources while minimizing latency.
In a recent development, while AWS offers 34 regions, our goal is to keep infrastructure costs reasonable while maintaining a high user experience. Out of the 88 countries represented in this snapshot, the Pareto chart above demonstrates that the top 7 countries account for 80% of uploaded bytes, while the top 20 countries contribute 95% of the total upload volume and requests.
The United States emerges as the primary source of upload traffic, necessitating a PoP in this region. In Europe, most activity is concentrated in central and western countries (e.g., Luxembourg, the United Kingdom, and Germany) though there is some additional activity to account for in Africa (specifically Algeria, Egypt, and South Africa). Asia’s upload traffic is primarily driven by Singapore, Hong Kong, Japan, and South Korea.
If we use a simple heuristic to distribute traffic, we can divide our CAS coverage into three major regions:.
This ends up being quite effective. The US and Europe account for 78.4% of uploaded bytes, while Asia accounts for 21.6%.
This regional breakdown results in a well-balanced load across our three CAS PoPs, with additional capacity for growth in ap-southeast-1 and flexibility to scale up in us-east-1 and eu-west-3 as needed.
Based on expected traffic, we plan to allocate resources as follows:.
It has been revealed that even though we’re increasing the first hop distance for some users, the overall impact to bandwidth across the Hub will be limited. Our estimates predict that while the cumulative bandwidth for all uploads will decrease from 48.5 Mbps to 42.5 Mbps (a 12% reduction), the performance hit will be more than offset by other system optimizations.
Industry observers note that we are presently working toward moving our infrastructure into production by the end of 2024, where we will start with a single CAS in us-east-1. From there, we’ll start duplicating internal repositories to our newly introduced storage system to benchmark transfer performance, and then replicate our CAS to the additional PoPs mentioned above for more benchmarking. Based on those results, we will continue to optimize our approach to ensure that everything works smoothly when our storage backend is fully in place next year.
It has been revealed that as we continue this analysis, latest opportunities for deeper insights are emerging. Hugging Face hosts one of the largest collections of data from the open-source machine learning community, providing a unique vantage point to explore the modalities and trends driving AI development around the world.
For example, future analyses could classify models uploaded to the Hub by use case (such as NLP, computer vision, robotics, or large language models) and examine geographic trends in ML activity. This data not only informs our infrastructure decisions but also provides a lens into the evolving landscape of machine learning.
We invite you to explore our current findings in more detail! Visit our interactive Space to see the upload distribution for your region, and follow our team to hear more about what we’re building.
You can now join the waitlist to get access to all the improvements we talk about here!
https://huggingface.co/join/xet.
📅 02 Dec 2024 | ⏱️ 5 min read (1060 words, 📚 Deep Dive) | Source: Hugging Face
It has been revealed that the EU AI Act, the world’s first comprehensive legislation on artificial intelligence, has officially come into force, and it’s set to impact the way we develop and use AI – including in the open source community. If you’re an open source developer navigating this latest landscape, you’re probably wondering what this means for your projects. This guide breaks down key points of the regulation with a focus on open source development, offering a clear introduction to this legislation and directing you to tools that may help you prepare to comply with it.
Disclaimer: The information provided in this guide is for informational purposes only, and should not be considered as any form of legal advice.
According to recent reports, the EU AI Act is a binding regulation that aims to foster responsible AI. To that end, it sets out rules that scale with the level of risk the AI system or model might pose while aiming to preserve open research and support small and medium-sized enterprises (SMEs). As an open source developer, many aspects of your work won’t be directly impacted – especially if you’re already documenting your systems and keeping track of data sources. In general, there are straightforward steps you can take to prepare for compliance.
Recent findings suggest that the regulation takes effect over the next two years and applies broadly, not just to those within the EU. If you’re an open source developer outside the EU but your AI systems or models are offered or impact people within the EU, they are included in the Act.
The regulation works at different levels of the AI stack, meaning it has different obligations if you are a provider (which includes the developers), deployer, distributor etc. and if you are working on an AI model or system.
In the AI Act, rules scale with the level of risk the AI system or model might pose. For all AI systems, risks may be:.
For general purpose AI (GPAI) models, there is another risk category called systemic risk: GPAI models using substantial computing power, today defined as over 10^25 FLOPs for training, or that have high-impact capabilities. According to a study by Stanford, in August 2024, based on estimates from Epoch, only eight models (Gemini 1.0 Ultra, Llama 3.1-405B, GPT-4, Mistral Large, Nemotron-4 340B, MegaScale, Inflection-2, Inflection-2.5) from seven developers (Google, Meta, OpenAI, Mistral, NVIDIA, ByteDance, Inflection) would meet the default systemic risk criterion of being trained using at least 10^25 FLOPs. Obligations vary if they are open source or not.
Sources indicate that our focus in this short guide is on limited risk AI systems and open source non-systemic risk GPAI models, which should encompass most of what is publicly available on the Hub. For other risk categories, make sure to check out further obligations that may apply.
Sources indicate that limited-risk AI systems interact directly with people (end owners) and may create risks of impersonation, manipulation, or deception. For example, a chatbot producing text or a text-to-image generator – tools that can also facilitate the creation of misinformation materials or of deepfakes. The AI Act aims to tackle these risks by helping the general end user understand that they are interacting with an AI system. Today, most GPAI models are not considered to present systemic risk. In the case of limited-risk AI systems, the obligations below apply whether or not they are open source.
Developers of limited-risk AI systems need to:.
Recent findings suggest that note that you may also be a ‘deployer’ of an AI system, not only a developer. Deployers of AI systems are people or companies using an AI system in their professional capacity. In that case, you also need to comply with the following:.
The information above needs to be provided with clear language, at the latest at the time of the user’s first interaction with, or exposure, to the AI system.
The AI Office, in charge of implementing the AI Act, will help create codes of practice with guidelines for detecting and labeling artificially generated content. These codes are currently being written with industry and civil society participation, and are expected to be published by May 2025. Obligations will be enforced starting August 2026.
Sources indicate that the following obligations apply if you are developing open source GPAI models, e.g. LLMs, that do not present systemic risk. Open source for the AI Act means “software and data, including models, released under a free and open source license that allows them to be openly shared and where customers can freely access, use, modify and redistribute them or modified versions thereof”. Developers can select from a list of open licenses on the Hub. Check if the chosen license fits the AI Act’s open source definition.
The obligations for non-systemic open source GPAI models are as follows:.
Developers may rely on codes of practice (which are currently being developed and expected by May 2025) to demonstrate compliance with these obligations.
Other obligations apply if you make your work available in a way that does not meet the criteria for being open source according to the AI Act.
Also, note that if a given GPAI model meets the conditions to pose systemic risks, its developers must notify the EU Commission. In the notification process, developers can argue that their model does not present systemic risks because of specific characteristics. The Commission will review each argument and accept or reject the claim depending on whether the argument is sufficiently substantiated, considering the model’s specific characteristics and capabilities. If the Commission rejects the developers’ arguments, the GPAI model will be designated as posing systemic risk and will need to comply with further obligations, such as providing technical documentation on the model including its training and testing process and the results of its evaluation.
Obligations for GPAI models will be enforced starting August 2025.
Much of the EU AI Act’s practical application is still in development through public consultations and working groups, whose outcome will determine how the Act’s provisions aimed at smoother compliance for SMEs and researchers are operationalized. If you’re interested in shaping how this plays out, now is a great time to get involved!
Thank you, Anna Tordjmann, Brigitte Tousignant, Chun Te Lee, Irene Solaiman, Clémentine Fourrier, Ann Huang, Benjamin Burtenshaw, Florent Daudens for your feedback, comments, and suggestions.
📅 03 Dec 2024 | ⏱️ 14 min read (2870 words, 📚 Deep Dive) | Source: Hugging Face

Overview: This article presents a deep dive into Capital Fund Management’s (CFM) use of open-source large language models (LLMs) and the Hugging Face (HF) ecosystem to optimize Named Entity Recognition (NER) for financial data. By leveraging LLM-assisted labeling with HF Inference Endpoints and refining data with Argilla, the team improved accuracy by up to 6.4% and reduced operational costs, achieving solutions up to 80x cheaper than large LLMs alone.
This structured approach combines accuracy and cost-effectiveness, making it ideal for real-world financial applications.
Capital Fund Management (CFM) is an alternative investment management firm headquartered in Paris, also has teams in New York City and London right now overseeing assets totaling 15.5 billion dollars.
Employing a scientific approach to finance, CFM leverages quantitative and systematic methods to devise superior investment strategies.
Recent findings suggest that CFM has been working with Hugging Face's Expert Support to stay updated on the latest advancements in machine learning and harness the power of open-source technology for their wide range of financial applications. One of the collaboration's main goals has been to explore how CFM can benefit from efficiently using open-source Large Language Models (LLMs) to enhance their existing machine learning use cases. Quantitative hedge funds rely on massive amounts of data to inform decisions about whether to buy or sell specific financial products. In addition to standard data sources from financial markets (e.g., prices), hedge funds are increasingly extracting insights from alternative data, such as textual information from news articles. One major challenge in incorporating news into fully automated trading strategies is accurately identifying the products or entities (e.g., companies, stocks, currencies) mentioned in the articles. While CFM’s data providers supply these tags, they can be incomplete and require further validation.
In a recent development, CFM explored several approaches to improve financial entity recognition, including zero-shot NER using LLMs and smaller models, LLM-assisted data labeling with Hugging Face Inference Endpoints and Argilla, and fine-tuning smaller models on curated datasets. These approaches not only leverage the versatility of large models but also address the challenges of cost and scalability in real-world financial applications.
Among open-source models, the Llama 3.1 series by Meta stood out due to its strong performance across benchmarks, making it a top choice for generating synthetic annotations. These LLMs were pivotal in creating high-quality labeled datasets, combining automation and human expertise to streamline the labeling process and enhance model performance in financial NER tasks.
In a recent development, our focus on this use case was to extract company names from news headlines from the Financial News and Stock Price Integration Dataset (FNSPID). It is composed of news headlines and articles associated with corresponding stock symbols coming from several sources such as Bloomberg, Reuters, Benzinga and others. After analyzing the various news sources, we found that news from Benzinga had no missing stock symbol values. This subset of the dataset contains ~900k samples. As a result, we decided to reduce our dataset to Benzinga headlines for a more consistent and reliable analysis.
Example samples and target predictions for the task.
To effectively compare different approaches, we first need to consolidate a reliable dataset that will serve as a foundation for evaluating the candidate methods. This dataset will be used for both testing the performance of models in zero-shot settings and as a base for fine-tuning.
We used Llama-assisted data labeling to streamline and enhance the annotation process by having Llama 3.1 generate labels for dataset samples. These auto-generated labels were then manually reviewed using the open-source data annotation platform Argilla. This approach allowed us to speed up the labeling process while ensuring the quality of the annotations.
To securely and swiftly get access to a Llama3.1-70-Instruct deployment we opted for Hugging Face Inference Endpoints.
In a recent development, hugging Face Inference Endpoints provide a straightforward and secure solution for deploying machine learning models in production environments. They enable developers and data scientists to build AI applications without the need to manage infrastructure, simplifying deployment to just a few clicks.
To access Inference Endpoints we logged in as a member of the CapitalFundManagement organization on the Hugging Face Hub, then accessed the service at https://ui.endpoints.huggingface.co . To start a new deployment we create on New then select meta-llama/Llama-3.1-70B-Instruct.
Endpoint creation on the Inference Endpoints UI.
You can select on which cloud provider the hardware will be hosted, the region, and the type of instance. Inference Endpoints suggest an instance type based on the model size, which should be big enough to run the model. Here an instance with 4 Nvidia L40S is selected. When LLM is selected, an automated container is selected running Text Generation Inference for optimized inference.
According to recent reports, when clicking on the “Create Endpoint” the deployment is created and the endpoint will be ready in a few minutes. To get more information about Inference Endpoints setup, visit https://huggingface.co/docs/inference-endpoints.
Endpoint running on the Inference Endpoints UI.
Once our endpoint is running, we will use the endpoint URL provided to send requests to it.
Industry observers note that before sending requests, we needed to design a prompt that would guide the model effectively to generate the desired output. After several rounds of testing, we structured the prompt into multiple sections to address the task accurately:.
Role Definition: The model is positioned as a financial expert with strong English skills.
Task Instructions: The model is instructed to extract manufacturer names linked to stocks mentioned in headlines, while excluding stock indices often found in titles.
Expected Output: The model must return a dictionary with:.
Sources indicate that few-shot Examples: A series of input-output examples to demonstrate the expected behavior and ensure consistency in performance across varied inputs. These examples help the model understand how to distinguish relevant entities and format its output correctly. Each example illustrates different headline structures to prepare the model for a range of real-world cases.
Sources indicate that now that we have our prompt and endpoint ready, the next step is to send requests using the titles from our dataset. To do this efficiently, we'll use the AsyncInferenceClient from the huggingface_hub library. This is an asynchronous version of the InferenceClient, built on asyncio and aiohttp. It allows us to send multiple concurrent requests to the endpoint, making the processing of the dataset faster and more efficient.
To make sure the model replies a structured output, we will use guidance with a specific Pydantic schema Companies.
We also set generation parameters:.
Now we define our functions to send requests to the endpoint and parse output:.
We test the endpoint with a single example:.
According to recent reports, now, we create a process_batch function to handle sending requests in manageable batches, preventing the API endpoint from becoming overwhelmed or hitting rate limits. This batching approach allows us to efficiently process multiple requests concurrently without saturating the server, reducing the risk of timeouts, rejected requests, or throttling. By controlling the flow of requests, we ensure stable performance, faster response times, and easier error handling while maximizing throughput.
We will run inference over the dataset:.
And we create the main inference loop:.
When the inference is running we can monitor the traffic directly from the UI.
It took about 8 hours to process the whole dataset with 900k samples which costs ~$70.
In a recent development, with the labeled data generated from our LLM, the next step is to curate a high-quality subset to ensure reliable evaluation of different methods, including zero-shot and fine-tuning approaches. This carefully reviewed dataset will also serve as a foundational base for fine-tuning smaller models. The entire labeled dataset by the LLM can be also used for fine-tuning in a weak supervision framework.
Industry observers note that to create a manageable sample size for review, we used LLM labels and clustered company names using fuzzy matching with the rapidfuzz library. We applied the cdist function to compute Levenshtein distances between companies and clustered them with a threshold of 85. A representative company was selected for each cluster, and Llama predictions were mapped accordingly. Finally, we sampled 5% of news headlines from each company-related cluster and 5% from headlines without any companies resulting in a dataset of 2714 samples. Then using metadata, the sampled dataset is divided into three parts:.
Train: News from 2010 to 2016, used for training small ML models - 2405 samples.
Validation: News from 2017 to 2018, for hyperparameters tuning - 204 samples.
Test: News from 2019 to 2020, used to evaluate the model on unseen data. - 105 samples.
Once created, we set up an annotation tool, Argilla, to ease the annotation process.
It has been revealed that argilla is an open-source tool, integrated into the Hugging Face ecosystem that excels at gathering human feedback for a wide range of AI projects. Whether you're working on traditional NLP tasks like text classification and NER, fine-tuning large language models (LLMs) for retrieval-augmented generation (RAG) or preference tuning, or developing multimodal models like text-to-image systems, Argilla provides the tools needed to collect and refine feedback efficiently. This ensures your models continuously improve based on high-quality, human-validated data.An Argilla interface can be set up directly through Hugging Face Spaces and this is what we opted for. Check out the documentation to start your own interface and go to https://huggingface.co/newly introduced-space .
Create Argilla Space on the Hub.
It has been revealed that once the interface is created, we can connect programmatically to it using the Argilla python SDK. To get ready to annotate we followed the following steps:.
Industry observers note that the annotation interface displays the text to be annotated, along with its status (either pending or submitted). Annotation guidelines are presented on the right side of the screen. In this case, we have one label, 'Organization.' To annotate, we first select the label, then highlight the relevant text in the sentence. Once all entities are selected, we click 'submit' to finalize the annotation.
Recent findings suggest that using pre-computed Llama labels significantly accelerates the annotation process, reducing the time per sample to just 5 to 10 seconds, compared to roughly 30 seconds for raw, unprocessed samples. This efficiency leads to a substantial time saving, allowing us to complete the annotation of 2,714 samples in around 8 hours. The efficiency gains are even more pronounced for more complex tasks than NER, where the time saved with pre-computed labels or generation becomes significantly greater.
Sources indicate that with a high-quality, reviewed dataset in place, we can now experiment with different approaches for zero-shot NER. We tested four models:.
GLiNER is a compact, versatile NER model that leverages bidirectional transformers like BERT to identify a wide range of entity types overcoming the limitations of traditional models that are restricted to predefined entities. Unlike large autoregressive models, GLiNER treats NER as a task of matching entity types with spans in text, using parallel processing for efficiency. It offers a practical and resource-efficient alternative to LLMs, delivering strong performance in zero-shot scenarios without the high computational costs associated with larger models.
GLiNER architecture from the original paper<.
GLiNER offers three model variants:.
According to recent reports, compared to LLMs like Llama-3.1-70b, GLiNER models are more compact, cost-effective, and efficient for NER tasks, while LLMs generally offer broader flexibility but are much larger and resource-intensive. GLiNER medium can be tried on the Hugging Face Space: https://huggingface.co/spaces/tomaarsen/gliner_medium-v2.1 For our experiments, we focused our attention on a specific GLiNER variant EmergentMethods/gliner_medium_news-v2.1 which has been already fine-tuned on the EmergentMethods/AskNews-NER-v0 and aims at improving the accuracy across a wide range of topic and especially for long-context news entity recognition extraction.To use GLiNER you can install the gliner package based out of the Hugging Face transformers library.
Then using GLiNER for NER is as easy as:.
For a list of samples the batch_text method can be used:.
The zero-shot results, in terms of F1-score on the annotated dataset of 2714 samples curated earlier is 87%.
In a recent development, the GLiNER model performs well in extracting tech giant names from text but struggles with certain cases, such as when companies are mentioned as stock symbols. It also misclassifies general references to stock industries, like "Healthcare stocks" or "Industrial stocks," as company names. While effective in many cases, these errors highlight areas where further refinement is needed to improve accuracy in distinguishing between companies and broader industry terms.
It has been revealed that the zero-shot results, in terms of F1-score on the annotated dataset of 2714 samples curated earlier is 47%. SpanMarker model performs well in extracting accurate company names but tends to identify too many incorrect entities. This is due to its training on the broader "organization" category, which includes entities such as non-profit organizations, government bodies, educational institutions, and sports teams. As a result, it sometimes confuses these with company names, leading to over-extraction and less precise results in certain contexts.
We tested 2 variants of the Llama3.1 model including the 70b that we used to curate ground truth examples. We used the prompt that is presented above. On our annotated subset we have the following results :.
It has been revealed that in this experiment, we compared the performance of small models like GLiNER and SpanMarker against LLMs such as Llama 3.1-8b and Llama 3.1-70b. Small models like GLiNER (87% F1) provide a good balance between accuracy and computational efficiency, making them ideal for resource-constrained scenarios. In contrast, LLMs, while more resource-intensive, deliver higher accuracy, with Llama 3.1-70b achieving a 95% F1-score. This highlights the trade-off between performance and efficiency when choosing between small models and LLMs for NER tasks. Let’s now see how the performance differs when we fine-tune compact models.
According to recent reports, using our train/validation/test subsets created earlier, we fine-tuned GLiNER and SpanMarker on an AWS instance with a single Nvidia A10 GPU. A fine-tuning example for GLiNER is accessible here and for SpanMarker here. Fine-tuning those models is as easy as running this with train_datasetand valid_datasetcreated as Hugging Face dataset.
The training ran for 20 epochs, we save the checkpoint with the highest F1 score on the validation set.
In this updated comparison, we evaluated models based on their F1-scores after fine-tuning. The GLiNER-medium-news model improved from 87.0% to 93.4% after fine-tuning, showing significant gains in accuracy. Similarly, SpanMarker went from 47.0% to 90.1% with fine-tuning, making it far more competitive. Meanwhile, Llama 3.1-8b and Llama 3.1-70b performed well out of the box, scoring 80.0% and 92.7%, respectively, without fine-tuning. This comparison emphasizes that fine-tuning smaller models like GLiNER and SpanMarker can dramatically enhance performance, rivaling larger LLMs at a lower computational cost.
The llama 3.1-70b model costs at least $8 per hour for inference, making it significantly more expensive than compact models, which can run on a GPU instance costing around $0.50 per hour—16 times cheaper. Furthermore, compact models can even be deployed on CPU instances, costing as little as ~$0.10 per hour, which is 80 times less expensive. This highlights the substantial cost advantage of smaller models, especially in resource-constrained environments, without sacrificing competitive performance when fine-tuned for specific tasks.
In this experiment, we explored two key approaches to data labeling for NER: Weak Supervision and LLM-assisted labeling. While weak supervision enables scalable training on synthetic data, our findings suggest that it cannot achieve the same level of accuracy as models trained on manually annotated data. For 1,000 samples, manual annotation took 3 hours with an F1 score of 0.915, while Llama 3.1-70b inference only took 2 minutes but resulted in a slightly lower F1 score of 0.895. The trade-off between speed and accuracy depends on the task's requirements.
Weak Supervision vs. LLM-assisted labeling.
The graph compares the performance of GLiNER fine-tuned on human-annotated data versus synthetic data inferred by Llama-3.1 70b across varying dataset sizes. The blue dots represent F1-scores of models trained on human-annotated data, while the red dots represent those inferred by Llama-3.1 70b. As dataset size increases, models fine-tuned on human annotations consistently outperform those using synthetic data, achieving higher F1-scores. It illustrates that while models fine-tuned on human annotations yield higher accuracy,_ LLM-assisted labeling using Llama-3.1 70b can still provide considerable value, especially when resources for manual annotation are limited. Even though the F1-scores from LLM-inferred data are slightly lower, they remain competitive across various dataset sizes. LLMs can rapidly generate large volumes of annotations, offering a practical solution for scaling dataset creation efficiently, making them beneficial in scenarios where time and cost constraints are critical.
According to recent reports, our experiment demonstrated that while large models like Llama 3.1 provide superior performance out of the box, fine-tuning smaller models like GLiNER and SpanMarker with LLM-assisted labeling can significantly enhance accuracy, rivaling the LLMs at a fraction of the cost. This approach highlights how investing in fine-tuning small models using LLM insights provides a cost-effective, scalable solution for financial NER tasks, making it ideal for real-world applications where both accuracy and resource efficiency are crucial.
Industry observers note that great article : subject is clearly more than hot; overall method looks good and code is neat. Thanks for sharing !
But two things I'd have improved :.
With such a great job done, too bad these two points slightly blur the conclusions, maybe it's easy to adapt ?
📅 01 Nov 2026 | ⏱️ 10 min read (2003 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
Weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
It has been revealed that buyers are moving from pilots to purchases: 52% of talent leaders told Korn Ferry they plan to add autonomous agents to their teams in 2026 (1,674 leaders, October 2025), and SHRM's 2026 research puts recruiting at 27% of organizations using AI, the most of any HR function. For a wider field, see our guide to the best AI recruiting agents.
Noon details come from Noon's own pages or a named third party, checked October 14, 2026.
Sources indicate that pin (pin.com) is an AI recruiting platform that assists recruiters by finding candidates across the 850M+ profiles Pin states it covers across North America and Europe, writing outreach from each person's profile signals and booking interviews. Candidate data comes from professional networks, GitHub, Stack Overflow, open-source contributions, patents, academic publications and the broader web. You search in plain language, paste a job description, upload ideal résumés or import a role from your ATS. Each ranked candidate has a fit score and an AI-written reason, and the model learns from your team's accept and reject feedback.
The Pin recruiting agent has two modes. In Assist you approve each step. In Autopilot it sources, screens and ranks, drafts outreach, sends the email steps, follows up on silence, schedules interviews and updates your ATS. LinkedIn and SMS steps arrive as tasks with an AI-drafted message, and you send them. Closing and offers stay human. The agent asks clarifying questions ("Is remote considered?"), shows every action in a feed and works 24/7 alongside your team. Josh Volinsky, Co-Founder of Synergy Search, indicates: "Pin makes sourcing candidates so natural and I love how you can just talk to it like it's a recruiter on your team and it goes hunting.".
Noon (noon.ai) is an AI recruiting platform from Portal Inc. in New York whose agents source across the open web, run email and SMS outreach and book interviews. You start from a pasted job description or posting URL. Noon extracts the title, location and "non-negotiables," and its Autopilot sourcing agent keeps searching as new people enter the market. Candidates land in a ranked feed with reasoning, and thumbs-up and thumbs-down feedback calibrates the search per role.
According to recent reports, noon also extends further down the funnel. Its AI Interviewer runs voice screening calls, its Notetaker joins live interviews, and Inbound Screening ranks ATS applicants and flags suspected fraud. Those tools sit downstream of sourcing. Pin concentrates on the outbound workflow, from search through scheduling, and adds the team layer around it: a shared inbox, a dedupe layer so two recruiters never contact the same person, funnel dashboards and a multi-client CRM for agencies.
Pin gives you natural-language filters plus advanced filters you set yourself, and paid intends include unlimited searches.
According to recent reports, noon steers the search through criteria set per role. Its pages describe titles, locations, years of experience, target-manufacturer lists and must-haves, plus non-negotiables Noon says it never relaxes. You adjust by chat and feedback. We found no public description of an open-ended filter panel like Pin's, so ask for one in a demo if ad hoc searching matters.
Sources indicate that on consistency, Pin returns a ranked shortlist with a reason for every candidate from the first search, then improves as your team accepts and rejects. Noon says its feedback loop calibrates the model per role, but it doesn't say how long that takes. Compare day one with day ten yourself (see the trial strategy below).
Recent findings suggest that pin writes each message from the candidate's profile signals and calibrates to your writing voice. Its sequences run across email, LinkedIn and SMS: automated email steps plus AI-drafted LinkedIn and SMS tasks in the same sequence, which the recruiter sends. Sequences adapt per candidate, and any reply pauses the sequence. Free is email-only. Replies go to a shared team inbox, and a dedupe layer stops two recruiters contacting the same person.
It has been revealed that noon writes an intro for each candidate and drops it into sequence templates you control. Sequences run on email and SMS.
The practical difference is how contact data is packaged. Every Pin plan includes contact credits (5 a week on Free, 500 a month on Solo, 1,000 per user a month on Professional, unlimited on Business), and a personal email, work email or phone number uses 1 credit. Noon states contact enrichment is unlimited. Revealing email and phone for 300 candidates a month uses 600 of the 1,000 credits included with each Professional seat.
According to recent reports, pin's AI interview scheduling handles time zones, hiring panels and reschedules, and confirmations land in your ATS. Pin lists 120+ ATS integrations, including Greenhouse, Lever, Ashby, Bullhorn, iCIMS and Jobvite. ATS integration is an add-on on Solo and Professional and is included on Business. Teams without an ATS can track candidates in Pin's Kanban pipeline, a mini ATS from first touch to signed offer.
Noon's AI Coordinator answers candidate questions and books interviews through your Calendly availability, then handles reschedules. Its integrations page lists 40+ systems, including all six above plus Workday, SAP SuccessFactors, UKG, Loxo and Recruiterflow, and Noon indicates ATS sync is part of its proposal. Several other Noon pages still say "20+," so confirm your ATS is live before you commit.
It has been revealed that pin publishes its pricing on its pricing page (checked October 14, 2026). Free is $0 (5 contact credits a week, 1 job, 1 agent, email-only sequences, 3 searches a day). Solo is $99 per user per month billed annually, for one seat, with 500 contact credits a month included. Professional is $135 per user per month billed annually or $179 month to month, with 2 agents and 1,000 contact credits per user each month, a shared inbox and 5 mailboxes per user. Business is custom, with unlimited seats, credits and agents and ATS integration included.
Noon sells one plan, quoted per team. Its pricing page lists unlimited sourcing, email enrichment, contacts, agents and seats, with no credits or per-seat fees. Its get-started page invites teams to create a free account, yet most "Start free" buttons open a demo-booking calendar, and Noon does not say what the free account includes.
Worked example: three recruiters on Pin Professional.
With Noon, you won't know the number until after a sales call. Noon prices one flat plan per team and notes adding seats doesn't change it, while Pin's cost is known before you talk to anyone and scales predictably per seat. Get Noon's quote in writing and compare it against these figures, keeping in mind that Noon's bundle includes screening and note-taking tools you may not need.
Noon also offers a 10x ROI guarantee on annual plans. According to Noon's guarantee terms (checked October 14, 2026), it values recruiter time at $60 an hour, relies on Noon's own measurement of time saved and requires minimum weekly use.
Sources indicate that pin is SOC 2 Type 2 audited by a third party, encrypts data at rest and in transit, and is GDPR and CCPA ready, with documents in its trust center at trust.pin.com. SSO/SAML and SCIM come with the Business strategy.
In a recent development, noon says it holds SOC 2 Type II and GDPR compliance, runs an annual third-party penetration test and supports SSO and SAML. According to its security page (updated September 3, 2026), Noon also offers data residency options for enterprise agreements and makes the SOC 2 report and pen-test summary available under NDA. The page does not mention CCPA.
Ask each vendor for its SOC 2 report.
Pin is built for agencies scaling outbound, and for recruiters and teams of any size that want a known price and hands-on control. It brings a multi-client recruiting CRM, per-seat pricing that scales predictably and a Business blueprint with unlimited seats. Pin assists recruiters rather than replacing them. Noon's homepage claims 40% faster time to hire, a vendor-reported figure.
Industry observers note that noon is good for teams with heavy inbound application volume that want voice screening and interview notes bundled with sourcing, and that are comfortable buying through a sales quote. The caveats are an unpublished price and free-account details, and only three reviews on Trustpilot.
When Pin is not the right fit: teams that only need high-volume inbound applicant screening.
When Noon is a harder fit: buyers who need a price before a sales call, teams that want a free initiative with published details, and anyone who wants independent reviews to check (three on Trustpilot, no G2 listing found).
Choose Pin if you: - want a published price and a free initiative with no credit card - want to start in Assist mode and hand steps to Autopilot as you build trust - run a team where several recruiters share candidates and need dedupe and a shared inbox - run an agency and need pipelines per client.
Choose Noon if you: - want one quoted strategy that Noon states does not change with seats or lookups - need voice screening, a notetaker, inbound screening or fraud detection in the same product - are comfortable buying through a demo and a custom quote.
Replacing LinkedIn Recruiter? See our LinkedIn Recruiter alternatives. Pin's Noon AI alternatives roundup covers seven more tools.
Pin's Free plan is email-only, so run the full email, LinkedIn and SMS task flow on a paid plan; Professional is available month to month at $179 per user.
For recruiters, agencies and outbound recruiting teams, Pin is the better choice: published pricing, a free blueprint, Assist and Autopilot modes, a shared inbox with dedupe, and a multi-client CRM for agencies. Noon fits teams that need voice screening and inbound fraud checks bundled with sourcing, though it publishes no price. Pin's Pin vs Noon breakdown covers the matchup in more detail.
Noon does not publish a price. It sells one plan with unlimited seats, contacts and agents, quoted per team after a demo. Pin lists prices openly: Free, Solo at $99 per month billed annually, and Professional at $135 per user per month billed annually ($179 month to month). Three recruiters on Pin Professional cost $4,860 a year on annual billing.
Not clearly. Noon's get-started page offers a free account, but most "Start free" buttons open a demo-booking calendar and Noon does not publish what the account includes. Pin's Free strategy is public: 5 contact credits a week, 1 job, 1 agent, email-only sequences and 3 searches a day, with no credit card.
According to recent reports, for recruiters and teams that want published pricing and a free start, Pin (pin.com) is the Noon AI alternative built for exactly that. Pin claims it searches 850M+ profiles, offers Assist and Autopilot modes and integrates with 120+ ATS platforms. For the full field, see the best AI recruiting agents.
Noon is an operating product with a weekly changelog, but independent review volume is small: Trustpilot showed three positive reviews in October 2026, and we found no G2 listing. That is too few to judge, so run a trial and ask for references. Pin has 4.8/5 on G2 across 27 verified reviews, per pin.com. For more on Noon's review record, see Pin's Noon AI reviews guide.
For recruiters and agencies that want a known price and control over how much the agent does, Pin is the better fit, starting with a free strategy. Noon is worth a demo if inbound volume is your main problem and you want voice screening and fraud checks bundled in; get its price in writing first. Test both on live roles before you decide.
Try Pin free at pin.com - no credit card required.
Recent findings suggest that sponsored posts are provided by our content partners. Thank you for supporting the partners who make SitePoint possible.
It has been revealed that 7 Day Free Trial. Cancel Anytime.
📅 04 Dec 2024 | ⏱️ 12 min read (2374 words, 📚 Deep Dive) | Source: Hugging Face
According to recent reports, in the rapidly evolving landscape of large language models (LLMs), comprehensive and robust evaluation methodologies remain a critical challenge, particularly for low-resource languages. In this blog, we introduce AraGen, a generative tasks benchmark and leaderboard for Arabic LLMs, based on 3C3H, a newly introduced evaluation measure for NLG which we hope will inspire work for other languages as well.
The AraGen leaderboard makes three key contributions:.
3C3H Measure: The 3C3H measure scores a model's response and is central to this framework. It is a holistic approach assessing model responses across multiple dimensions -Correctness, Completeness, Conciseness, Helpfulness, Honesty, and Harmlessness- based on LLM-as-judge.
Dynamic Evaluations: AraGen Leaderboard implements a dynamic evaluation strategy, which includes three-month blind testing cycles, where the datasets and the evaluation code remain private before being publicly released at the end of the cycle, and replaced by a new private benchmark.
Arabic Evaluation Dataset: AraGen Benchmark offers a meticulously constructed evaluation dataset for Arabic LLM evaluation, combining multi-turn and single-turn scenarios, which tests the model capability across multiple domains and tasks.
We believe that AraGen addresses persistent challenges of data contamination with its dynamic evaluation approach, preserving the benchmark's integrity. It also serves as the first application of a scalable, language-agnostic framework for a nuanced and fair model assessment, which represents an vital effort in understanding LLM performance across diverse linguistic contexts and sets a fresh standard for comprehensive model benchmarking.
It has been revealed that evaluating large language models (LLMs) is a key challenge in AI research. While existing methodologies have improved our understanding of LLM capabilities, they often fail to comprehensively address both factuality—assessing a model's core knowledge—and usability—its alignment with human (end user) expectations. Current evaluation approaches can broadly be categorized into knowledge or factuality-based benchmarks and preference-based benchmarks.
Recent findings suggest that automatic benchmarks focus on evaluating foundational knowledge and factual correctness. For instance, initiatives like the Open LLM Leaderboard by Hugging Face assess the likelihood of the choices for a given prompt (question) and compare the most likely output with a golden reference choice. While effective in testing core knowledge, these benchmarks provide limited insight into how models perform in practical, user-facing contexts, leaving critical aspects of usability unaddressed.
It has been revealed that in contrast, preference-based benchmarks aim to capture alignment with the user preferences. Examples include LMSYS's Chatbot Arena and AtlaAI's Judge Arena, which mostly rely on subjective assessments of outputs based on style, tone, and overall utility. However, these approaches risk prioritizing stylistic alignment over factual accuracy, potentially skewing evaluations toward stylistically preferred yet less accurate responses. Additionally, crowdsourced arenas can reflect the biases of their annotators, who may lack strong voting guidelines, further impacting the consistency and reliability of evaluations.
To address these limitations, we propose a newly introduced evaluation measure that aims to combine both approaches, offering a comprehensive mechanism to evaluate language models. It assesses two key aspects of model outputs:.
Sources indicate that this is done through the introduction of a new evaluation measure based on LLM-as-a-Judge approach (see here for more on this approach), which evaluates the model performance across six dimensions modeling factuality and usability. By adopting a balanced perspective, we ensure that usability does not come at the expense of factual accuracy or vice versa.
The AraGen Leaderboard ranks both open and proprietary models, evaluated on the AraGen Benchmark using the newly introduced 3C3H measure, which we introduce below. 3C3H provides a comprehensive framework for assessing both the factual accuracy and usability of large language models. Arabic was chosen as the first application of this framework, aligning with the mission of Inception to democratize AI for Arabic and the Global South in general, while addressing the lack of robust generative benchmarks for these languages and regions, and we hope to see extensions of this work in many other languages.
The leaderboard is dynamic, with evaluation datasets remaining private (blind testing) for three months to ensure fair and unbiased assessments. After this period, the dataset and the corresponding evaluation code will be publicly released, coinciding with the introduction of a newly introduced dataset for the next evaluation cycle, which will itself remain private for three months. This iterative process ensures that evaluations stay current and models are consistently tested on fresh, unseen data.
We believe that this dynamic approach is both beneficial and robust, as it mitigates data leakage, encourages ongoing model improvement, and maintains the relevance of the benchmark in the rapidly evolving landscape of LLM development.
The AraGen evaluation pipeline aims to ensure robust, reproducible, and scalable assessments. The process includes the following steps:.
Our main contribution, the 3C3H measure, evaluates model performance across six dimensions, using an LLM-judge.
The evaluation process includes the following elements:.
Industry observers note that binary scores (Correctness and Completeness) are computed first. If a response is Incorrect (0), all other dimensions are automatically set to zero to avoid rewarding flawed outputs.
According to recent reports, scaled scores (e.g., Conciseness, Helpfulness, ...). The remaining four dimensions are scores ranging from 1 to 5 and later normalized to [0, 1] for consistency. For example, a score of 3 for Honesty would be normalized to 3−14=0.5 \frac{3 - 1}{4} = 0.5 43−1=0.5.
Given the individual scores for each dimension, the 3C3H measure is computed as follows:.
3C3H=16n∑i=1nc1i(1+c2i+c3i−14+h1i−14+h2i−14+h3i−14) 3C3H = \frac{1}{6n} \sum_{i=1}^{n} c_{1i} \left(1 + c_{2i} + \frac{c_{3i} - 1}{4} + \frac{h_{1i} - 1}{4} + \frac{h_{2i} - 1}{4} + \frac{h_{3i} - 1}{4}\right) 3C3H=6n1i=1∑nc1i(1+c2i+4c3i−1+4h1i−1+4h2i−1+4h3i−1).
Where n n n is the number of dataset samples, c1i c_{1i} c1i the correctness score of sample i i i, c2i c_{2i} c2i the completeness score of sample i i i, and c3i c_{3i} c3i, h1i h_{1i} h1i, h2i h_{2i} h2i, h3i h_{3i} h3i the Conciseness, Helpfulness, Honesty, and Harmlessness scores respectively of sample i i i.
Recent findings suggest that to ensure a reliable and fair evaluation process, the AraGen Leaderboard incorporates a dynamic evaluation strategy designed to address data contamination risks while prioritizing transparency, reproducibility, and continuous relevance. This is ensured as follows:.
Blind Test Sets:Each test set remains private for a 3-month evaluation period. During this phase, the test set is used to evaluate submitted models without the risk of data leakage into the training datasets, thus ensuring unbiased results.
Periodic Updates:After three months, the blind test set is replaced by a latest set of human-verified question-answer pairs. This ensures that the evaluation remains robust, adaptive, and aligned with evolving model capabilities. The new test sets are designed to maintain consistency in.
Open-Sourcing for Reproducibility:Following the blind-test evaluation period, the benchmark dataset will be publicly released alongside the code used for evaluation. Which allows.
The AraGen Benchmark includes 279 custom, mainly human-verified questions designed to rigorously test model capabilities across four diverse tasks:.
Figure 1: Percentage Distribution of Tasks.
Figure 2: Category Distribution for Question Answering (QA).
Figure 3: Category Distribution for Reasoning.
For the "Orthographic and Grammatical Analysis" task, the data is evenly distributed between two sub-categories: "Arabic grammar" and "Arabic dictation grammar," each constituting 50% of the examples. In the "Safety" task, all the data belongs exclusively to the "Safety" category/sub-category.
The dataset examples are structured into three interaction types:.
In scoring models' performance involving follow-up interactions, the score for the first response in the conversation is weighted more heavily due to its higher potential to steer the conversation. Incorrect initial answers can lead to cascading errors.
For example, even if the first response is incorrect while the second response is correct (unexpected, given the design of our questions and also the way these systems usually work), the average score for the interaction would be 0×2+1×13=0.333 \frac{0 \times 2 + 1 \times 1}{3} = 0.333 30×2+1×1=0.333, reflecting the criticality of the initial answer.
Selecting the optimal judge for the AraGen Leaderboard is a critical step to ensure reliable, unbiased, and consistent evaluations. This section details the experiments conducted to evaluate potential judges, including single models and a jury system, and justifies the final choice based on rigorous empirical analysis.
The following judge candidates were evaluated:.
We also explored adopting a Jury, which aggregates evaluations from multiple LLM judges, to examine whether collective scoring improves reliability.
Note that at the time we were running our experiments, Claude-3.5-haiku was not available through the Anthropic API yet.
To evaluate and select the best judge, we assessed candidates across four dimensions:.
We measured the agreement of the judges' evaluations (scores) with respect to each other using Cohen’s Kappa (κ) Coefficient. The results are visualized in the heatmap below:.
Figure 4: Cohen's Kappa Heatmap Representing the Agreement between the Judges on 3C3H Score.
To assess the consistency of the scores, we calculated the standard deviation of the scores across three evaluation runs for each judge over the same models' answers. Lower standard deviation indicates greater stability.
According to recent reports, as reported in this study and several other studies as well, usually some biases get introduced when a Large Language Model acts as both the evaluator and the evaluatee. To analyze self-bias, we compared how judges scored their own responses versus others. The table below summarizes the results:.
[^1]: Inception's internal deployment of a bnb 8bit quantization of "meta-llama/Llama-3.1-405B-Instruct".
Industry observers note that the rows correspond to the models that are being evaluated, and the columns show the scores assigned by the different judges, including the model's self-assigned score. For example:.
GPT-4o scores itself as 0.8025, its highest score across all models, suggesting a notable self-bias.
This trend of models assigning their own responses higher scores is consistent across all judges, except Claude-3.5-sonnet, which scores its responses slightly lower compared to others.
GPT-4o-mini and by extension GPT-4o as well, demonstrate the highest self-bias, as their self-scores exceed those assigned by other judges.
Claude-3.5-sonnet appears less self-biased, with its self-score aligning closely with scores given by other judges.
Meta-Llama 3.1-405B-Instruct reveals moderate alignment between its self-score and external scores, suggesting balanced scoring.
By observing the discrepancies in self-scoring relative to external scoring, we quantify the degree of self-bias, which can influence the reliability of a model as a judge.
Recent findings suggest that to assess the reliability of the judges in adhering to evaluation guidelines, we conducted hallucination analysis. This experiment focused on determining whether the judges provided accurate, guideline-compliant comments and avoided generating hallucinated or nonsensical feedback regardless of agreement with human annotators. The analysis was performed on two judges:.
We randomly selected 10% of the responses from each evaluated model in our pool. Human annotators were tasked with reviewing the judges' comments to determine:.
The results indicated a high level of agreement between the judges' comments and human evaluations, which aligns with expectations given the simplicity of the task. The task required judges to assess the factual correctness and the alignment with straightforward guidelines, minimizing the likelihood of hallucination.
However, an unexpected discrepancy is observed with Claude-3.5-sonnet, which highlighted a slightly lower agreement rate (96.3%) compared to GPT-4o-mini (100.0%). Upon further investigation, we identified that the discrepancy was due to 529 & 500 errors codes encountered by Claude-3.5-sonnet for a subset of the examples. These errors resulted in empty judge comment fields, which annotators marked as disagreements.
When analyzing only the valid responses from Claude-3.5-sonnet (i.e., excluding those affected by errors), the agreement rate increased to 100.0%, matching that of GPT-4o-mini. This confirms our hypothesis that the task design was sufficiently constrained to leave (almost) no room for hallucination, ensuring high reliability across both judges.
The Jury aggregates scores from multiple judges following a "vote then average" strategy, theoretically leveraging the "wisdom of the crowd." However, this approach is constrained by.
It has been revealed that potential Improvements: The Jury concept could be more effective if it included smaller, fine-tuned models trained on diverse datasets reflecting different perspectives and cultures. Another potential approach we intend to explore is the variation of system prompts to describe the same task but with linguistic, cultural and perspective variations. This would introduce greater variability in judgement and mitigate the uniformity of biases observed in proprietary, English-first, general-purpose models.
All the experiments above favor the selection of Claude-3.5-sonnet as the primary judge for the AraGen Leaderboard, due to its.
Note that the Cohen Kappa coefficient is relatively low to base a decision on. However, aligning with a single human judge is inherently difficult due to different human biases. Despite this, we consider it a meaningful signal of potential alignment with a larger and more diverse pool of human judges. We initiative to conduct further experiments in this regard in the upcoming releases (March and June).
Industry observers note that GPT-4o-mini, despite its relative alignment with human evaluations, we decided to deprioritize it due to higher score variability which contradicts the goal of reproducibility of results we are aiming for. The Jury system, although a potentially better method, was excluded in this version because of scalability challenges, inflated scores, and lack of significant difference with single-judge rankings.
According to the experiments we conducted so far, Claude-3.5-sonnet represents the most reliable choice for this version of AraGen, balancing consistency and fairness.
It has been revealed that we believe that the AraGen Leaderboard represents an important step in LLM evaluation, combining rigorous factual and alignment-based assessments through the 3C3H evaluation measure. Designed to address challenges such as data leakage, reproducibility, and scalability, AraGen offers a robust framework, which we believe would be useful for many other languages.
According to recent reports, looking ahead, we initiative to expand the AraGen leaderboard in the next three months by introducing fresh tasks, while semi-automating dataset creation to enhance scalability without compromising quality through human verification. Additionally, we are exploring more complex questions and tasks to continually challenge and refine model performance, ensuring that the leaderboard remains dynamic and adaptive. Finally, we aim to extend this framework to other languages that are under-resourced or under-represented in this space. We are committed to the success of these initiatives and invite collaboration from the community.
How much does a model's 3C3H score move between benchmark refreshes, and did you check how consistent the LLM judge is across the six dimensions? I've been trying to get my own eval numbers to hold up with confidence intervals, and the judge is the part I'd worry about most.
📅 05 Dec 2024 | ⏱️ 9 min read (1865 words, 📚 Deep Dive) | Source: Hugging Face
Industry observers note that table of contents 1. Introduction 2. The experiment 3. Keras chatbot arena tech: Spaces, Gradio, TPUs, JAX and Keras 3.1 Why TPUs? 3.2 Why JAX and Keras? 3.3 Sharding Models? 3.4 Which models? 4. Results 4.1 Reliability 4.2 The complete chat - fixing mistakes 4.3 More mistake fixing 5. Recap.
In a recent development, I'm not interested in having LLMs solve big problems, quite the opposite. I want them to dispatch drudgery, and if they don't get it right on the first try, a short English sentence should be enough to fix it. In short, I want an assistant, like the computers in old sci-fi movies, minus the "I'm sorry Dave, I'm afraid I can't do that" bit 😅.
This paper explores such a tool for coding. Setting aside the creative title claim (No, AI is not beating Kaggle gandmasters yet), what the paper authors did was to manually break various Kaggle problems into micro-tasks, have an LLM generate code for them and iterate until unit tests pass. An example micro-task could be, for an image classification problem, to "figure out the format of the input data and reformat it into a CSV with columns 'id', 'image_filename' and 'class'".
According to recent reports, I like that approach because that's how I would like to work on my projects with AI in the future. Have AI generate the boring pieces of code, like data reformatting, so I can focus on the interesting bits: correctly framing the problem and devising the steps that will lead to a solution.
In a recent development, but this interactive coding assistant must be able to listen to feedback in plain English and fix mistakes in its code. With LLM's ability to infer information from knowledge and context, this could be a very efficient computer interface. But if LLM's quirks like hallucinations or lack of formal logic get in the way, we could end up with a case of "artificial stupidity" rather than AI.
So I decided to run a little test with today's LLMs. A super-simplified one, to see how effectively LLMs fix their mistakes when you point them out to them.
According to recent reports, you are a helpful vocal assistant on a mobile device. Your job is to translate user requests into API calls using this Python API:.
You can use 30 minutes as the default duration for upcoming events. Respond to every request with a single line of executable code.
That's it. Very simple, but can LLMs handle this? And when they make a mistake, can you simply tell them what it is and expect a fix?
To test this, I needed an environment to quickly interact with multiple chatbots at once, here is how I set it up.
In a recent development, to experiment with this scenario, I wanted to be able to conduct two conversations at once, with different LLMs, and pause one side while asking another to fix a mistake in its output. Here is what it looks like. It is built with Gradio on Spaces and uses Keras, JAX and TPUs:.
A couple of notes on how this was built before we go back to the serious matter of chit-chatting with LLMs.
According to recent reports, for their fast inference and large memory. A TPU v5e 2x4 has 8 cores and 16GB of RAM per core for an aggregate 128GB of memory. With this much memory, we can load multiple LLMs at once, provided we shard them across all cores, and switch between them at will in the UI. In this experiment, I have been able to load five ∼8B params models (one more would OOM) and three ∼2B models for a total of 7 LLMs in memory at once, in bfloat16 format.
JAX is the preferred ML environment for TPUs, thanks to its powerful XLA compiler. Keras, which now runs natively on top of JAX (as well as PyTorch and TensorFlow) is my favorite modeling environment and it has a nice selection of pretrained LLMs in its sister library KerasHub. It can even load selected non-Keras checkpoints from Hugging Face, which will be useful for comparisons. I wrote about this previously here: Llama 3.2 in Keras.
I also use Keras because it has by far the most user-friendly API for model parallelism. Here, I wanted to load as many models as possible in the TPU memory at once. For this, the model must be sharded across the memory of all 8 TPU cores. Fortunately most of them come with a default layout map that does exactly that. For example:.
For the full loading code, and more background info on model parallelism, see my earlier post here. You will also find in that post a code snippet for visualizing the shardings actually applied once the model is loaded. Very useful for debugging. And yes, debugging and a few layout map adjustments were necessary.
Industry observers note that for this experiment, I chose sub-10B param LLMs, mostly for their practicality as many of them could be loaded at the same time. But also, what the experiment is testing is fairly simple and should be within reach of these smaller models. All the models are instruction-tuned so that a dialog is possible. You can see their chat templates in the demo's implementation. Feel free to copy-paste the code for your own Keras chatbot needs. The models are from the Gemma, Llama3, Mistral and Vicuna families. See the result tabes below for a full list.
In a recent development, first, let's first see if our LLMs can answer the first question reliably. The system prompt and first question "Add a meeting with Fred on Nov 11 at 5PM" were repeated five times.
The good news is that some models got this right every time and all of them managed to answer with an API call (more or less correct) at least once. However, The smaller 1-2B params models and the older models like Vicuna struggle. They respond badly most of the time.
Now, let's run through the full dialog two models at a time. If a model makes a mistake, I attempt to steer it back on track. Let's see if it works.
Shortened prompts are used in the table to save screen space. The first question is voluntarily imprecise: a month, day and time are given for the meeting, but not the year. This is to make sure that all models make at least one mistake and get tested on their capacity to fix it.
Gemma2 9B and Llama 3.1 8B both succeed. Llama needed one extra "fix it" prompt but managed to get its broccoli 🥦.
According to recent reports, A run with Google's Gemini (online) is given in the third column for comparison. This is a massively larger model than the other two and surprisingly, it's not the best. It required slightly different prompts because Gemini can actually add entries to your Google Calendar, so it had to be reminded to "answer with an API call from the provided API" every time. Even so, it made several mistakes and even got the date wrong on the last prompt. This demonstrates that a massive model is not necessarily better for this task.
In a recent development, let's move on to the small models: Llama 3.2 3B, Llama 3.2 1B and Gemma 2B. This exercise seems to be overwhelmingly difficult for these models. Upcoming symbols are required here:.
And remember that these are the best runs. As seen in the "reliability" section above, some models were able to get past the first questions only once out of five attempts.
Among the small models, only Gemma 2B manages to finish the dialog albeit with a recurrent mistake (🍄): it could not refrain from being chatty and adding stuff on top of the requested API calls. Stuff like "Sure, here's the updated code…". It also kept mixing up dates and times. However, it was able to fix the mistakes, when asked 🥦.
In a recent development, finally, let's try some older models like Vicuna 1.5 7B and Mistral 7B. They are pitted against Codegemma 7B which should be the ideal model for this task but as you can see, all three models struggle.
Codegemma got affected by a sticky recurrent mistake (🍄): it would start spelling the year as "20 24" with a space and would not fix it. Vicuna 1.5 7B is probably too old. At one point it starts repeating itself 🔥🔥, outputting multiple duplicate API calls and other junk. It gets back on track to some extent but with remaining mistakes. Finally, Mistral makes mistakes everywhere but is also able to fix them. Lots of interactions needed but 6 broccoli 🥦 earned for fixed mistakes.
Industry observers note that some of these models cruised through the exercise with few mistakes and therefore few chances to fix them and earn a broccoli 🥦. Using the Keras chatbot arena UI, we can run them on mistakes 🍄 made by other LLMs and see if they can fix them.
Same color coding as before: green broccoli 🥦 for correctly fixing the error, red poisonous mushroom 🍄 if the error is still there, dumpster fire 🔥 for multiple errors. The full transcript of the conversations is here.
(1) recurrent mistake: outputs apology next to correct API call. For Gemma this is reliably fixed by asking for “API call only please”. It works for Llama too but not reliably.
This was a good reality check for the models. Gemma 2 9B and Codegemma 7B get it almost right but keep apologizing for some mistakes instead of outputting a clean API call. Llama 3.1 8B is a close second but has difficulties fixing a wrong API call reliably. And all the others are a 🔥 dumpster fire.
Sources indicate that I did not know what to expect before starting this test. The API the models were playing with is unrealistically simple. Just 2 API calls 'add_calendar_entry' and 'remove_calendar_entry'. So I thought this might be super easy for the models, and with a little bit of corrective prompting, all of them would ace through every time. On the other hand, I knew that LLMs are probabilistic inference machines that do not really listen to what you say. Prompts merely change the probability distribution of the output and some outputs are just hard to get.
It has been revealed that the reality is interesting as only one model, Gemma 9B, managed to get through the test almost perfectly. Here is a recap of all the ✔︎ checks (correct answer), 🥦 broccoli (mistake fix), 🍄 poisonous mushrooms (mistake) and 🔥 dumpster fires (many mistakes in one answer) the models got across all tests. This is not the most scientific way of summarizing the results but it gives a pretty good picture:.
Industry observers note that I have no doubt that some fine-tuning could greatly improve those results. This is left for readers to explore. There is more information on Keras, including a Keras LLM fine-tuning example in this blog post. Also feel free to clone the Keras Chatbot Arena to test your fine-tuned models. Happy 🥦!
📅 02 Nov 2026 | ⏱️ 6 min read (1293 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
It has been revealed that weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
A support email lands: "Order NW-47790, the tent poles snapped on the first night, I paid $389 and I want every cent back today or I'm disputing the charge.".
To act on that, your code needs answers to a handful of small questions. Is it a refund request? How urgent is it? Should a person handle it? What's the order number? How much money is involved? It's the same problem whether you're sorting a support inbox or building a custom chatbot that has to work out what each customer is asking for.
It has been revealed that the usual move is to send the whole email to a chat model with a prompt that ends "respond in JSON", then validate whatever comes back. It works, but you're paying a model built to write essays to fill in five fields, and you're parsing its guess at a schema.
System One models are built for exactly this kind of job. In this tutorial we'll build a small support inbox pipeline with two of them: Jev from TypeSafe makes the decisions, and Clairic from Cloudflare reads the values. Plain TypeScript then turns their answers into an action. No prompt engineering for output formats, and no JSON repair.
Sources indicate that the name comes from Daniel Kahneman's Thinking, Fast and Slow. System 1 is the fast, intuitive kind of thinking you use to read a face or a sign. System 2 is the slow, deliberate kind you use for long division.
A System One model is an AI model that understands natural language but doesn't generate text. You give it some input (the state) and a set of typed questions, and it gives back typed answers with probabilities. There's no free text to parse, because the model can only answer in the shape you asked for.
Sources indicate that that's different from asking a chat model for structured output. SitePoint's guide to LLM structured output with JSON Schema indicates how to constrain a chat model and validate its JSON with Zod. With a System One model, the type is the interface: a yes/no question comes back as a probability, a pick-one question comes back as one of your options, and a date comes back as a date.
Two other properties matter in practice:.
Jev and Clairic are both System One models, but they do different jobs, and that's what makes them a good pair.
Jev can't hand you an order number, and Clairic has no way to pick from a list of options or answer yes or no. Give each one the job it's built for.
If you've read SitePoint's Jev and LangChain tutorial, you've seen Jev deciding which model handles an agent's request. Here we'll use it on the incoming text itself.
Sources indicate that five made-up emails for a made-up outdoor gear store go in. For each one:.
Both models read the same email, so they run at the same time.
Put the three values in your environment:.
Sources indicate that no SDKs are needed. Both models are a single fetch call.
In a recent development, here's the test inbox. Each email is there to test a different path through the rules:.
Sources indicate that jev takes a state (the email) and a set of named questions. We'll ask three, one of each type:.
Industry observers note that all three questions go in one request. Jev reads the email once and answers every question in parallel, so adding a question costs very little:.
We pin jev-1.14.0 rather than the jev-latest alias. Your thresholds get tuned against one version's probabilities, so you want to choose when that version changes.
For the angry tent email, Jev came back with:.
(Trimmed: the real response also includes the probability of every option and level.).
Clairic takes the same state, plus a set of typed fields instead of questions:.
Recent findings suggest that reference_date anchors relative dates like "the 14th" or "last Monday". In production, pass the date the email arrived.
Each answer comes back with three things worth using:.
For the "where is it?" email, Clairic read the deadline like this:.
"The 14th" became a full date, worked out from the reference date. Text fields like order_number also come back as character spans of the original email. The value is copied from the input, not generated, so it can't invent an order number that isn't there.
The two models don't depend on each other, so send both requests together:.
The time for each email is whichever model is slower, not the two added together.
This is the part a chat model usually ends up doing badly: the business rules. Here they're ordinary code you can read, test, and change without touching a prompt:.
Recent findings suggest that notice that the model's confidence sits right next to the business rule. A $18.95 refund is only automatic if Clairic is sure about both the order number and the amount. Raising the refund limit or the confidence bar is a one-line change, and you don't need to call either model again to see what it would do. Save the answers and replay them.
Here's the run on all five emails:.
Every email went where it should. The whole run used 2,703 input tokens on Jev and 2,292 on Clairic, about US$0.0003 in total. At that rate, 10,000 support emails would cost roughly US$0.70.
The interesting part of the run wasn't the right answers. It was the two wrong ones.
"From last Monday." The run used 2 November 2026 as the reference date, which is a Monday. "Last Monday" means 26 October, but Clairic answered 2026-11-02, the reference date itself. Its confidence on that answer was 0.54, compared with 0.99 or higher on almost every other value in the run.
Sources indicate that "A couple of weeks ago." Clairic turned this into 2026-10-19, which is a fair reading but still a guess. Its confidence was 0.43.
Industry observers note that neither date changed any action, because the rules only trust values at 0.9 or above. That's the habit to build: a value under your bar counts as unknown. A chat model returning JSON would have handed you "2026-11-02" with the same certainty as everything else.
Sources indicate that one more catch: Clairic copied the order number as #NW-48213, hash included, because that's how the customer wrote it. Text values are spans of the input, so normalising them is your code's job. That's one line of code.
In a recent development, system One models handle the reading and the routing. They don't hold a conversation. Once an email is routed, something still has to write the reply, ask a follow-up question, or explain a returns policy in the customer's own words. That's where a chat model earns its cost.
The split that works is: System One models decide, code applies the rules, and a chat model only gets the cases where words matter.
We built a support inbox triage pipeline from two small models and some ordinary code:.
Recent findings suggest that each email took about half a second and cost less than a hundredth of a cent. Most importantly, the two answers that would have been wrong came back flagged as unsure.
The full code is about 160 lines with no dependencies. Try adding a fourth Jev question (does the customer mention a photo?) or an estimate field in Clairic (how many days until the trip?), and see how little the rest of the pipeline has to change.
In a recent development, 7 Day Free Trial. Cancel Anytime.
📅 05 Dec 2024 | ⏱️ 5 min read (1094 words, 📚 Deep Dive) | Source: Hugging Face

We are excited to welcome Google's all-new vision language models, PaliGemma 2, a new iteration of PaliGemma. Like its predecessor, PaliGemma 2 uses the same powerful SigLIP for vision, but it upgrades to the latest Gemma 2 for the text decoder part.
It has been revealed that paliGemma 2 comes with newly introduced pre-trained (pt) models, in sizes of 3B, 10B, and 28B parameters. All of them support various input resolutions: 224x224, 448x448, and 896x896. These combinations provide a lot of flexibility for different use cases, so practitioners can choose the balance they need in the quality / efficiency space. In contrast, the previous PaliGemma was only available in the 3B variant.
In a recent development, the pre-trained models have been designed for easy fine-tuning to downstream tasks. The first PaliGemma was widely adopted by the community for multiple purposes. With the increased flexibility from the additional variants, combined with better pre-trained quality, we can’t wait to see what the community can do this time.
As an example, Google is also releasing some fine-tuned variants on the DOCCI dataset, demonstrating versatile and robust captioning capabilities that are long, nuanced and detailed. The fine-tuned DOCCI models are available for the 3B and 10B variants, and support input resolution of 448x448.
This release includes all the open model repositories, transformers integration, fine-tuning scripts, and a demo of a model we fine-tuned ourselves for visual question answering on the VQAv2 dataset.
In a recent development, paliGemma 2 is a newly introduced iteration of the PaliGemma vision language model released by Google in May. PaliGemma 2 connects the powerful SigLIP image encoder with the Gemma 2 language model.
The new models are based on the Gemma 2 2B, 9B, and 27B language models, resulting in the corresponding 3B, 10B, and 28B PaliGemma 2 variants, whose names take into account the additional parameters of the (compact) image encoder. As mentioned above, they support three different resolutions, providing great flexibility for fine-tuning to downstream tasks.
PaliGemma 2 is distributed under the Gemma license, which allows for redistribution, commercial use, fine-tuning and creation of model derivatives.
This release comes with the following checkpoints in bfloat16 precision:.
9 pre-trained models: 3B, 10B, and 28B with resolutions of 224x224, 448x448, and 896x896.
2 models fine-tuned on DOCCI: Two models fine-tuned on the DOCCI dataset (image-text caption pairs), supporting the 3B and 10B PaliGemma 2 variants and input resolution of 448x448.
As seen with the previous PaliGemma release, the pre-trained (pt) models work great for further fine-tuning on downstream tasks.
Recent findings suggest that the pt models are pre-trained on the following data mixture. The diversity of the pre-training dataset allows fine-tuning on downstream tasks in similar domains to be carried out using comparatively fewer examples.
WebLI: A web-scale multilingual image-text dataset built from the public web. A wide range of WebLI splits is used to acquire versatile model capabilities, such as visual semantic understanding, object localization, visually-situated text understanding, and multilinguality.
CC3M-35L: Curated English image-alt_text pairs from webpages (Sharma et al., 2018). To label this dataset, the authors used Google Cloud Translation API to translate into 34 additional languages.
Visual Question Generation with Question Answering Validation (VQ2A): An improved dataset for question answering. The dataset is translated into the same additional 34 languages, using the Google Cloud Translation API.
Sources indicate that openImages: Detection and object-aware questions and answers (Piergiovanni et al. 2022) generated by handcrafted rules on the OpenImages dataset.
WIT: Images and texts collected from Wikipedia (Srinivasan et al., 2021).
The PaliGemma 2 team internally fine-tuned the PT models on a wide variety of visual-language understanding tasks, and they provide benchmarks of these fine-tuned models in the model card and the technical report.
PaliGemma 2 fine-tuned on the DOCCI dataset, can accomplish a wide range of captioning tasks, including text rendering, capturing spatial relations, and including world knowledge in captions.
You can find below the performance of the DOCCI fine-tuned PaliGemma 2 checkpoints, compared with other models (taken from Table 6 in the technical report).
Below you can find some model outputs for the DOCCI checkpoint that showcase the versatility of the model.
For demonstration purposes, we in the Hugging Face team fine-tuned PaliGemma 2 3B with 448x448 resolution on a small portion of the VQAv2 dataset. We used LoRA fine-tuning and PEFT, as explained later in the fine-tuning section. The demo below showcases the final result. Feel free to examine the code in the Space to see how it works, or clone it to adapt to your own fine-tunes.
You can run inference on the PaliGemma 2 models with 🤗 transformers, using the PaliGemmaForConditionalGeneration and AutoProcessor APIs. Please, make sure you install transformers version 4.47 or later:.
After that, you can run inference like follows. As usual, please make sure to follow the prompt format that was used to train the model for the task you are using:.
You can also use the transformers bitsandbytes integration to load the models with quantization. The following example uses 4-bit nf4:.
We quickly tested performance degradation in the presence of quantization by evaluating a 3B fine-tuned checkpoint on the textvqa dataset, using 224x224 input images. These are the results we got on the 5,000 entries of the validation set:.
In a recent development, these are very encouraging figures! Of course, quantization is most interesting for the larger checkpoints, we recommend you always measure results on the domains and tasks you’ll be using.
If you have previously fine-tuned PaliGemma, the API to fine-tune PaliGemma 2 is the same, you can use your code out of the box. We provide a fine-tuning script and a notebook for you to fine-tune the model, freeze parts of the model, or apply memory efficient fine-tuning techniques like LoRA or QLoRA.
In a recent development, we have LoRA-fine-tuned a PaliGemma 2 model on half of the VQAv2 validation split for demonstration purposes. This took half an hour on 3 A100s with 80GB VRAM. The model can be found here, and this is a Gradio demo that showcases it.
The new PaliGemma 2 release is even more exciting than the previous one, with various sizes fitting everyone’s needs and stronger pre-trained models. We are looking forward to seeing what the community will build!
Industry observers note that we thank the Google team for releasing this amazing, and open, model family. Big thanks to Pablo Montalvo for integrating the model to transformers, and to Lysandre, Raushan, Arthur, Yieh-Dar and the rest of the team for reviewing, testing, and merging in no time.
exgtract the parameterfrom the image.
📅 09 Dec 2024 | ⏱️ 5 min read (1055 words, 📚 Deep Dive) | Source: Hugging Face
Recent findings suggest that the Data is Better Together community releases yet another important dataset for open source development. Due to the lack of open preference datasets for text-to-image generation, we set out to release an Apache 2.0 licensed dataset for text-to-image generation. This dataset is focused on text-to-image preference pairs across common image generation categories, while mixing different model families and varying prompt complexities.
[Data is Better Together](https://huggingface.co/data-is-better-together) is a collaboration between 🤗 Hugging Face and the Open-Source AI community. We aim to empower the open-source community to build impactful datasets collectively. You can follow the organization to stay up to date with the latest datasets, models, and community sprints.
In a recent development, there have been several efforts to create an open image preference dataset but our effort is unique due to the varying complexity and categories of the prompts, alongside the openness of the dataset and the code to create it. The following are some of the efforts:.
To get a proper input dataset for this sprint, we started with some base prompts, which we cleaned, filtered for toxicity and injected with categories and complexities using synthetic data generation with distilabel. Lastly, we used Flux and Stable Diffusion models to generate the images. This resulted in the open-image-preferences-v1.
Industry observers note that imgsys is a generative image model arena hosted by fal.ai, where people provide prompts and get to choose between two model generations to provide a preference. Sadly, the generated images are not published publicly, however, the associated prompts are hosted on Hugging Face. These prompts represent real-life usage of image generation containing good examples focused on day-to-day generation, but this real-life usage also meant it contained duplicate and toxic prompts, hence we had to look at the data and do some filtering.
We aimed to remove all NSFW prompts and images from the dataset before starting the community. We settled on a multi-model approach where we used two text-based and two image-based classifiers as filters. Post-filtering, we decided to do a manual check of each one of the images to make sure no toxic content was left, luckily we found our approach had worked.
We used the following pipeline:.
Data diversity is vital for data quality, which is why we decided to enhance our dataset by synthetically rewriting prompts based on various categories and complexities. This was done using a distilabel pipeline.
Recent findings suggest that instructGPT describes foundational task categories for text-to-text generation but there is no clear equivalent of this for text-to-image generation. To alleviate this, we used two main sources as input for our categories: google/sdxl and Microsoft. This led to the following main categories: ["Cinematic", "Photographic", "Anime", "Manga", "Digital art", "Pixel art", "Fantasy art", "Neonpunk", "3D Model", “Painting”, “Animation” “Illustration”]. On top of that we also chose some mutually exclusive, sub-categories to allow us to further diversify the prompts. These categories and sub-categories have been randomly sampled and are therefore roughly equally distributed across the dataset.
The Deita paper proved that evolving complexity and diversity of prompts leads to better model generations and fine-tunes, however, humans don’t always take time to write extensive prompts. Therefore we decided to use the same prompt in a complex and simplified manner as two datapoints for different preference generations.
Recent findings suggest that the ArtificialAnalysis/Text-to-Image-Leaderboard shows an overview of the best performing image models. We choose two of the best performing models based on their license and their availability on the Hub. Additionally, we made sure that the model would belong to different model families in order to not highlight generations across different categories. Therefore, we chose stabilityai/stable-diffusion-3.5-large and black-forest-labs/FLUX.1-dev. Each of these models was then used to generate an image for both the simplified and complex prompt within the same stylistic categories.
A raw export of all of the annotated data contains responses to a multiple choice, where each annotator chose whether either one of the models was better, both models performed good or both models performed bad. Based on this we got to look at the annotator alignment, the model performance across categories and even do a model-finetune, which you can already play with on the Hub! The following reveals the annotated dataset:.
Annotator agreement is a way to check the validity of a task. Whenever a task is too hard, annotators might not be aligned, and whenever a task is too easy they might be aligned too much. Striking a balance is rare but we managed to get it spot on during this sprint. We did this analysis using the Hugging Face datasets SQL console. Overall, SD3.5-XL was a bit more likely to win within our test setup.
Given the annotator alignment, both models proved to perform better within their own right, so we did an additional analysis to see if there were differences across the categories. In short, FLUX-dev works better for anime, and SD3.5-XL works better for art and cinematic scenarios.
Sources indicate that to verify the quality of the dataset, while not spending too much time and resources we decided to do a LoRA fine-tune of the black-forest-labs/FLUX.1-dev model based on the diffusers example on GitHub. During this process, we included the chosen sample as expected completions for the FLUX-dev model and left out the rejected samples. Interestingly, the chosen fine-tuned models perform much better in art and cinematic scenarios where it was initially lacking! You can test the fine-tuned adapter here.
According to recent reports, in short, we annotated 10K preference pairs with an annotator overlap of 2 / 3, which resulted in over 30K responses in less than 2 weeks with over 250 community members! The image leaderboard demonstrates some community members even giving more than 5K preferences. We want to thank everyone that participated in this sprint with a special thanks to the top 3 users, who will all get a month of Hugging Face Pro membership. Make sure to follow them on the Hub: aashish1904, prithivMLmods, Malalatiana.
After another successful community sprint, we will continue organising them on the Hugging Face Hub. Make sure to follow the Data Is Better Together organisation to stay updated. We also encourage community members to take action themselves and are happy to guide and reshare on socials and within the organisation on the Hub. You can contribute in several ways:.
📅 09 Dec 2024 | ⏱️ 3 min read (622 words, 📚 Deep Dive) | Source: Hugging Face
We are excited to announce that popular open models from Hugging Face are now available on Amazon Bedrock in the new Bedrock Marketplace! AWS customers can now deploy 83 open models with Bedrock Marketplace to build their Generative AI applications.
Sources indicate that under the hood, Bedrock Marketplace model endpoints are managed by Amazon Sagemaker Jumpstart. With Bedrock Marketplace, you can now combine the ease of use of SageMaker JumpStart with the fully managed infrastructure of Amazon Bedrock, including compatibility with high-level APIs such as Agents, Knowledge Bases, Guardrails and Model Evaluations.
When registering your Sagemaker Jumpstart endpoints in Amazon Bedrock, you only pay for the Sagemaker compute resources and regular Amazon Bedrock APIs prices are applicable.
It has been revealed that in this blog we will show you how to deploy Gemma 2 27B Instruct and use the model with Amazon Bedrock APIs. Learn how to:.
There are two ways to deploy an open model to be used with Amazon Bedrock:.
Both ways are similar, so we will guide you through the Bedrock Model catalog.
Sources indicate that to get started, in the Amazon Bedrock console, make sure you are in one of the 14 regions where the Bedrock Marketplace is available. Then, you choose “Model catalog” in the “Foundation models” section of the navigation pane. Here, you can search for both serverless models and models available in Amazon Bedrock Marketplace. You filter results by “Hugging Face” provider and you can browse through the 83 open models available.
For example, let’s search and select Google Gemma 2 27B Instruct.
Choosing the model opens the model detail page where you can see more information from the model provider such as highlights about the model, and usage including sample API calls.
On the top right, let’s click on Deploy.
Recent findings suggest that it brings you to the deployment page where you can select the endpoint name, the instance configuration and advanced settings related to networking configuration and service role used to perform the deployment in Sagemaker. Let’s use the default advanced settings and the recommended instance type.
You are also required to accept the End User License Agreement of the model provider.
On the bottom right, let’s click on Deploy.
We just released the deployment of GoogleGemma 2 27B Instruct model on a ml.g5.48xlarge instance, hosted in your Amazon Sagemaker tenancy, compatible with Amazon Bedrock APIs!
The endpoint deployment can take several minutes. It will appear in the “Marketplace deployments” page, which you can find in the “Foundation models” section of the navigation pane.
It has been revealed that you can rapidly test the model in the Playground through the UI. However, to invoke the deployed model programmatically with any Amazon Bedrock APIs, you need to get the endpoint ARN.
From the list of managed deployments, choose your model deployment to copy its endpoint ARN.
You can query your endpoint using the AWS SDK in your preferred language or with the AWS CLI.
Here is an example using Bedrock Converse API through the AWS SDK for Python (boto3):.
According to recent reports, that’s it! If you want to go further, have a look at the Bedrock documentation.
Don’t forget to delete your endpoint at the end of your experiment to stop incurring costs! At the top right of the page where you grab the endpoint ARN, you can delete your endpoint by clicking on “Delete”.
Industry observers note that hello @vsrivastav-pm , Glad that you are playing with it! Could you open a discussion in the forum, provide more information about the model deployed to your SM endpoint and tag me?https://discuss.huggingface.co/c/sagemaker/17.
Sources indicate that have you tried Amazon Bedrock Custom Model Import? If so, please share your feedback!
📅 02 Nov 2026 | ⏱️ 2 min read (452 words, 📖 Standard) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
Industry observers note that weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
In a recent development, when developers talk about high-performance mobile games, the Android NDK samples by Bruno Oliveira are often cited as the gold standard for clean, low-level C++. But as an iOS developer, I wanted to see if I could take that same “pure” C++ logic and make it sing on an iPhone.
My latest project, TunnelFeveriOS, is the result of that journey. It isn’t just a port; it’s a blueprint for building a custom game engine.
The original Endless Tunnel is built to live within the Android lifecycle (JNI, Activity, and NDK). Moving this to iOS required more than just hitting “compile.” I had to build a Platform Abstraction Layer.
To make the C++ engine talk to the iOS UI, I utilized Objective-C++ (.mm** files)**. This allowed me to keep the game's high-speed math and geometry in native C++ while using Cocoa Touch to manage the windowing and touch input. In TunnelFeveriOS, you’ll see how the view controller manages the game loop, feeding time deltas and touch coordinates directly into the C++ core.
Sources indicate that since the original game uses OpenGL ES, I leveraged iOS’s GLKit framework. The trick was ensuring that the shaders and vertex buffer objects (VBOs) originally written for Android were correctly initialized within the iOS EAGLContext. The result? 60 FPS performance that feels native because, at the machine level, it is.
A port is only “production-ready” if it handles modern app requirements. I integrated Google Mobile Ads (AdMob) to trigger Interstitial ads during game-over states.
This presented a unique threading challenge:.
I implemented a messaging system that allows the C++ core to “request” an ad, which the Objective-C wrapper then catches and executes on the main thread — preventing the game from hanging or crashing.
According to recent reports, this project proves that you don’t need a heavy engine like Unity or Unreal to achieve cross-platform results. By keeping the “brain” of your game in C++ and building thin “shells” for each platform (Android NDK or iOS/XCode), you gain:.
If you’re interested in how to bridge the gap between low-level C++ and high-level iOS development, check out the full source code here:.
Sources indicate that now that the foundation is laid, I’m looking into implementing a Metal-based renderer to fully embrace the future of Apple graphics. If you’ve worked on C++ to Metal bridges, I’d love to hear your thoughts in the comments!
#Cpp #iOSDev #GameDev #Ndk #AdMob #Programming #XCode #OpenGLES.
Recent findings suggest that 7 Day Free Trial. Cancel Anytime.
📅 10 Dec 2024 | ⏱️ 7 min read (1441 words, 📚 Deep Dive) | Source: Hugging Face
Today, we are thrilled to announce the launch of LeMaterial, an open-source collaborative project led by Entalpic and Hugging Face. LeMaterial aims to simplify and accelerate materials research, making it easier to train ML models, identify novel materials and explore chemical spaces. ⚛️🤗.
As a first step, we are releasing a dataset called LeMat-Bulk, which unifies, cleans and standardizes the most prominent material datasets, including Materials Project, Alexandria and OQMD — giving rise to a single harmonized data format with 6.7M entries and 7 materials properties.
It has been revealed that leMaterial is standing on the shoulders of giants and we are building upon incredible projects which have been instrumental in the development of this initiative: Optimade, Materials Project, Alexandria and OQMD, and more to come. Please credit them accordingly when using LeMaterial.
It has been revealed that the world of materials science, at the intersection of quantum chemistry and machine learning, is brimming with opportunity — from brighter LEDs, to electro-chemical batteries, more efficient photovoltaic cells and recyclable plastics, the applications are endless. By leveraging machine learning (ML) on large, structured datasets, researchers can perform high-throughput screening and testing of latest materials at unprecedented scales, significantly accelerating the discovery cycle of novel compounds with desired properties. In this paradigm, data becomes the essential fuel powering ML models that can guide experiments, reduce costs, and unlock breakthroughs faster than ever before.
This field is fueled by very complete datasets such as Materials Project, Alexandria and OQMD, all open-source and under a CC-BY-4.0 license. However, those datasets vary in format, parameters, and scope, presenting the following challenges:.
It has been revealed that this fragmented landscape makes it challenging for researchers in AI4Science and materials informatics to leverage existing data effectively. Whether the application involves training foundational ML models, constructing accurate phase diagrams, identifying novel materials or exploring the chemical space effectively, there is no simple solution. While efforts like Optimade standardize structural data, they don't address discrepancies in material properties or biases in dataset scopes.
LeMaterial addresses these challenges by unifying and standardizing data from three major databases — Materials Project, Alexandria and OQMD — into a high-quality resource with consistent and systematic properties. The elemental composition treemap below highlights the value of this integration, showcasing how we increase the scope of existing datasets, like Materials Project, which are focused on specific material types, such as battery materials (Li, O, P) or oxides.
Materials Project and LeMat-BulkUnique treemap.
LeMat-Bulk is more than a large-scale merged dataset with a permissive license (CC-BY-4.0). With its 6.7M entries with consistent properties, it represents a foundational step towards creating a curated and standardized open ecosystem for material science, designed to simplify research workflows and improve data quality. Below is a closer view of what is looks like. To interactively browse through our materials, check out the Materials Explorer space, built using MP Dash components.
We offer different datasets and subsets, enabling tailored workflows for researchers depending on their needs (consistent calculations, deduplicating materials, or comprehensive exploration):.
Beside building this standardized dataset, one of the key contribution of LeMaterial is to propose a definition of a material fingerprint through a hashing function that assigns a unique identifier to each material.
Current approaches to identifying a material as novel relative to a database have predominantly relied on similarity metrics, which necessitate a combinatorial effort to screen the existing database for novelty. To provide faster novelty detection in a dataset, Entalpic introduces a hashing method to compute the fingerprint of a material.
Our fingerprinting approach offers several benefits:.
Below lies a comparison of our hash function with the StructureMatcher of Pymatgen, to find all duplicates of a dataset. The experiment was run on two datasets having very different structures.
When using our method, almost all of the task time was dedicated to calculating material hashes; the follow-up comparison step is negligible time-wise. When using StructureMatcher, the vast majority of the task time was spent comparing pairs of structures; building said structures is negligible time-wise.
Sources indicate that additionally, we are planning on releasing a set of well-curated benchmarks to evaluate the validity of our hashing function. For instance, we investigated:.
In the longer term, LeMaterial aims to be a community-driven initiative that gathers large & curated datasets, machine learning models, handy toolkits, etc. It is designed to be practical and flexible, enabling a wide range of applications, such as:.
Experimental phase diagram of Ti, Bb, Sn from this research paper.
LeMat-Bulk phase diagram for Sn, Ti, Nb, built thanks to Pymatgen, Crystal Toolkit (Materials Project tools).
In a recent development, compare materials properties across databases and functionals: by providing researchers with data across DFT functionals, and by linking materials via our materials fingerprint algorithm we are able to establish and connect materials properties calculated via different parameters. This gives researchers insight into how functionals might behave and differ across compositional space.
Sources indicate that determining if a material is novel. Our hashing function allows researchers to swiftly assess whether a material is unique or a duplicate, streamlining the discovery process and avoiding redundant calculations.
Example 1: Our fingerprint method identified the following Alexandria entries (agm002153972, agm002153975) as potentially being the same material — having the same hash. When we did a relaxation on the higher energy entry, the material relaxed to the lower energy configuration.
Example 2: applying our hash to another dataset (AIRSS) that is often used in training generative models, we found the following materials with the same hash.
Unit cells of materials sharing the same fingerprint.
Recent findings suggest that to an untrained eye these visually appear like very different materials. However when we replicate the lattice we rapidly identify that they are quite similar: Supercells of materials sharing the same fingerprint It is vital to note here that Pymatgen's StructureMatcher identified these two unit cells as different materials, when they are indeed the exact same structures. Here, our hashing algorithm was able to identify them as indeed the same.
Supercells of materials sharing the same fingerprint.
Training predictive ML models. We can also train machine learning interatomic potentials like EquiformerV2 on LeMat-Bulk. These models should benefits from its scale and data quality and the removal of bias across compositional space, and it would be interesting to assess the benefits of this newly introduced dataset. An example of how to incorporate LeMaterial with Fairchem can be found in Colab. We are presently in process of training an EquiformerV2 model using this dataset — stay tuned 💫.
In a recent development, as a community, we often place a lot of value in the quality of these large-scale open-source databases. However the lack of standardization makes utilizing multiple dataset a huge challenge. LeMaterial offers a solution that unifies, standardizes, performs extra cleaning and validation efforts on existing major data sources. This new open-science project is designed to accelerate research, improve quality of ML models, and make materials discovery more efficient and accessible.
It has been revealed that we are just getting started — we know there are still flaws and improvements to be made — and would thus love to hear your feedback! So please reach out if you are interested to contribute to this open-source initiative. We would be excited to continue expanding LeMaterial with upcoming datasets, tools, and applications — alongside the community! ⚛️🤗.
We extend our heartfelt thanks to Zachary Ulissi and Luis Barroso-Luque (Meta), and Matt McDermott (Newfound Materials, Inc.) for their valuable feedback regarding is initiative.
By downloading content from LeMaterial, you agree to accept the Creative Commons Attribution 4.0 license implying that content may be copied, distributed, transmitted, and adapted, without obtaining specific permission from LeMaterial, provided proper attribution is given to LeMaterial.
If you use the LeMaterial as a resource in your research, please cite the citation section from our data-card (paper to come).
Industry observers note that CC-BY-4.0 (license used for Materials Project, Alexandria, OQMD) requires proper acknowledgement. Thus, if you use materials data which include (”mp-”) in the immutable_id, please cite the Materials Project. If you use materials data which include (”agm-”) in the immutable_id, please cite Alexandria, PBE or Alexandria PBESol, SCAN. If you use materials data which include (”oqmd-”) in the immutable_id, please cite OQMD. Finally, if you make use of the Phase Diagram for visualization purposes, or the crystal viewer in the Materials Explorer, please acknowledge Crystal Toolkit.
To learn more about LeMaterial and get involved:.
Sources indicate that hi, this looks great thank you for the initiative. I was wondering whether we could access bandgap data for the materials (or a subset), or if this may become available in the future?
📅 16 Dec 2024 | ⏱️ 7 min read (1346 words, 📚 Deep Dive) | Source: Hugging Face
Sources indicate that introducing the Synthetic Data Generator, a user-friendly application that takes a no-code approach to creating custom datasets with Large Language Models (LLMs). The best part: A simple step-by-step process, making dataset creation a non-technical breeze, allowing anyone to create datasets and models in minutes and without any code.
Synthetic data is artificially generated information that mimics real-world data. It allows overcoming data limitations by expanding or enhancing datasets.
Sources indicate that the synthetic data generator takes a description of the data you want (your custom prompt) and returns a dataset for your use case, using a synthetic data pipeline. In the background, this is powered by distilabel and the free Hugging Face text-generation API but we don’t need to worry about these complexities and we can focus on using the UI.
The tool presently supports text classification and chat datasets. These tasks will determine the type of dataset you will generate, classification requires categories, while chat data requires a conversation. Based on demand, we will add tasks like evaluation and RAG over time.
Recent findings suggest that text classification is common for categorizing text like customer reviews, social media posts, or news articles. Generating a classification dataset relies on two different steps that we address with LLMs. We first generate diverse texts, and then we add labels to them. A good example of a synthetic text classification dataset is argilla/synthetic-text-classification-news, which classifies synthetic news articles into 8 different classes.
This type of dataset can be used for supervised fine-tuning (SFT), which is the technique that allows LLMs to work with conversational data, allowing the user to interact with LLMs via a chat interface. A good example of a synthetic chat dataset is argilla/synthetic-sft-customer-support-single-turn, which highlights an example of an LLM designed to handle customer support. In this example, the customer support topic is the synthetic data generator itself.
Sources indicate that generally, we can generate 50 and 20 samples per minute for text classification and chat, respectively. All of this is powered by the free Hugging Face API, but you can scale this up by using your own account and choosing custom models, api providers or generation configurations. We will get back to this later but let's dive into the basics first.
We will create a basic chat dataset. When you visit the generator, you have to login to allow the tool access to the organisations for which you want to generate datasets. This will allow the tool to upload the generated datasets. In case of a failed authentication, you can always reset the connection.
After the login, the UI guides you through a straightforward three-step process:.
Start by providing a description of the dataset you want to create, including example use cases to help the generator understand your needs. Make sure to describe the goal and type of assistant in as much detail as possible. When you hit the “Create” button, a sample dataset will be created, and you can continue with step 2.
Refine your generated sample dataset by adjusting the system prompt, which has been generated based on your description and by adjusting the task-specific settings. This will help you get to the specific results you're after. You can iterate on these configurations by hitting the “Save” button and regenerating your sample dataset. When you are satisfied with the config, continue to step 3.
Fill out general information about the dataset name and organisation. Additionally, you can define the number of samples to generate and the temperature to use for the generation. This temperature represents the creativity of the generations. Let’s hit the “Generate” button to start a full generation. The output will be saved directly to Argilla and the Hugging Face Hub.
We can now click the “Open in Argilla” button and directly dive into our generated dataset.
Even when dealing with synthetic data, it is crucial to understand and look at your data, which is why we created a direct integration with Argilla, a collaboration tool for AI engineers and domain experts to build high-quality datasets. This allows you to effectively explore and evaluate the synthetic dataset through powerful features like semantic search and composable filters. You can learn more about them in this guide. Afterwards, we can export the curated dataset to the Hugging Face Hub, and continue to fine-tune a model with it.
Recent findings suggest that remember the argilla/synthetic-text-classification-news dataset from the beginning? Let’s train a model that can correctly classify these examples. We need to select the task “Text Classification” and provide the correct “Dataset source”. Then, choose a nice project name and press play! The pop-up that warns about costs can be ignored because we are still working on the free Hugging Face CPU hardware, which is more than enough hardware for this text classification example.
Et voilà, after a couple of minutes, we’ve got our very own model! All that remains is to deploy it as a live service or to use it as a text-classification pipeline with some minimal Python code.
Even though you can go from prompts to dedicated models without knowing anything about coding, some people might like the option to customize and scale their deployment with some more advanced technical features.
You can improve speed and accuracy by creating the own deployment of the tool and configuring it to use different parameters or models. First, you must duplicate the synthetic data generator. Make sure you create is as a private Space to ensure nobody else can access it. Next, you can change the default values of some environment variables. Let's go over some scenarios:.
Recent findings suggest that besides hosting the tool on Hugging Face Spaces, we also offer it as an open-source tool under an Apache 2 license, which means you can go to GitHub and use, modify, and adapt it however you need. You can install it as a Python package through a simple pip install synthetic-dataset-generator. Make sure to configure the right environment variables when creatin.
According to recent reports, each synthetic data pipeline is based on distilabel, the framework for synthetic data and AI feedback. distilabel is open source; the cool thing about the pipeline code is that it is sharable and reproducible. You can, for example, find the pipeline for the argilla/synthetic-text-classification-news dataset within the repository on the Hub. Alternatively, you can find many other distilabel datasets along with their pipelines.
According to recent reports, the Synthetic Data Generator already offers many cool features that make it useful for any data or model lover. Still, we have some interesting directions for improvements on our GitHub, and we invite you to contribute, leave a star, and open challenges too! Some things we are working on are:.
This seems super interesting, but when I try to use the UI, many times it generates non-sensical content (see screenshot) for "2. Configure your task", given a system prompt. It sometimes gets resolved if you just click again on the save button for "2. Configure your task", but even when the generated context and questions make sense, the response seems to always be null.
Also, every time that I've clicked on "Push to Hub", I've gotten an error regarding the Arguilla SDK (see screenshot). I tried revoking access for the connected application and logging in again, but it keeps failing :(.
The Spaces app has a 404 error now.
super helpful and interesting :) so basically generating via prompt engineering.
We've built a successor to this project. Much more powerful and interactive:.
https://github.com/huggingface/aisheets.
whenever i use that and type something and press send it has like a very quick error screen pop up like you cant even read it or really see it.
The Synthetic Data Generator makes creating custom datasets easier by letting consumers describe what they need in plain language, without writing a single line of code. Using large language models (LLMs) and a simple step-by-step workflow, it helps beginners and professionals generate useful data and build models in just minutes. Whether you’re exploring AI tools, working on a new project. Loklok.
📅 17 Dec 2024 | ⏱️ 4 min read (865 words, 📚 Deep Dive) | Source: Hugging Face
Industry observers note that TL;DR: We benchmark 2 representative agentic AI workload components, text embedding and text generation, on two Google Cloud Compute Engine Xeon-based CPU instances, namely N2 and C4. The results consistently shows that C4 has 10x to 24x higher throughput over N2 in text embedding and 2.3x to 3.6x higher throughput over N2 in text generation. Taking price into consideration, C4's hourly price is about 1.3x of N2, in this sense, C4 keeps 7x ~ 19x TCO(Total Cost of Ownership) advantage over N2 in text embedding and 1.7x ~ 2.9x TCO advantage in text generation. The results indicate that it is possible to deploy light-weight Agentic AI solutions wholly on CPUs.
In a recent development, people believe the next frontier of artificial intelligence lies in agentic AI. The fresh paradigm uses the perceive - reason - action pipeline to combine LLM's sophisticated reasoning and iterative planning capabilities with a strong context understanding enhancement. The context understanding capability is provided by tools like vector databases and sensor input, to ceate more context-aware AI systems which can autonomously solve complex, multi-step problems. Moreover, the function calling capability of LLMs make it possible for the AI agent to directly take the action, going far beyond the chatting a chatbot offers. Agentic AI offers exciting prospects to enhance productivity and operations across industries.
People are bringing more and more tools into agentic AI systems, and most of these tools are now work on CPU, this brings a concern that there will be non-negligible host-accelerator traffic overheads in this paradigm. At the same time, model builders and vendors are building Small Language Models (SLMs) that are smaller yet powerful, the latest examples being Meta's 1B and 3B llama3.2 models, advanced multilingual text generation and tool calling capabilities. Further, CPUs are evolving and beginning to offer increased AI support, Intel Advanced Matrix Extensions (AMX), a new AI tensor accelerator, was introduced in its 4th generation of Xeon CPUs. Putting these 3 threads together, it would be interesting to see the potential of CPU to host the whole agentic AI systems, especially when it uses SLMs.
In this post, we will benchmark 2 representative components of agentic AI: text embedding and text generation and compare the gen-on-gen performance boost of CPU on these 2 components. We picked Google Cloud Compute Engine C4 instance and N2 instance for comparison. The logic behind is: C4 is powered by 5th generation Intel Xeon processors (code-named Emerald Rapids) , the latest generatiton of Xeon CPU available on Google Cloud which integrates Intel AMX to boost AI performance; and N2 is powered by 3rd generation Intel Xeon processors (code-named Ice Lake), the previous generation of Xeon CPU on Google Cloud which only has AVX-512 and no AMX. We'll demonstrate the benefits of AMX.
We will use optimum-benchmark, Hugging Face's unified benchmark library for multi-backends and multi-devices, to measure the performance. The benchmark runs on optimum-intel backend. optimum-intel is an Hugging Face acceleration library to accelerate end-to-end pipelines on Intel architectures (CPU, GPU). Our benchmark cases are as below:.
In a recent development, visit google cloud console and click on create a VM under your project. Then, follow the below steps to create a single 96-vcpu instance which corresponds to one Intel Ice Lake CPU socket.
Follow the below steps to create a 96-vcpu instance which corresponds to one Intel Emerald Rapids socket. Please note that we use the same CPU core count between C4 and N2 in this post to ensure an iso-core-count benchmark.
In a recent development, follow below steps to set up the environment easily. For reproducibility, we list the version and commit we are using in the commands.
We are in container now, do following steps:.
Recent findings suggest that you need enhancement examples/ipex_bert.yaml in optimum-benchmark directory as below to benchmark WhereIsAI/UAE-Large-V1. We change numa binding to 0,1 because both N2 and C4 have 2 NUMA domains per socket, you can double check with lscpu.
Then, run benchmark: $ optimum-benchmark --config-dir examples/ --config-name ipex_bert.
You can patch examples/ipex_llama.yaml as below to benchmark meta-llama/Llama-3.2-3.
Then, run benchmark: $ optimum-benchmark --config-dir examples/ --config-name ipex_llama.
The GCP C4 instance delivers approximately 10x to 24x higher throughput over N2 in the text embedding benchmark cases.
It has been revealed that consistently, the C4 instance indicates approximately 2.3x to 3.6x higher throughput over N2 in the text generation benchmark. Across batch sizes of 1 to 16, throughput is 13x better without significantly compromising latency. It enables concurrent query serving without needing to sacrifice user experience.
In a recent development, in this post, we benchmarked 2 representative workloads of agentic AI on Google Cloud Compute Engine CPU instances: C4 and N2. The results show prominent performance boost thanks to AMX and memory capability improvements on Intel Xeon CPUs. Intel released Xeon 6 processors with P-cores (code-named Granite Rapids) one month ago, and it offers ~2x performance boost in Llama 3. We believe, with the newly introduced Granite Rapids CPU, we can explore to deploy light-weight Agentic AI solutions wholly on CPU, to avoid intensive host-accelerator traffic overheads. We will benchmark it once Google Cloud Compute Engine has Granite Rapids instance and report results.
📅 02 Nov 2026 | ⏱️ 6 min read (1153 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
It has been revealed that weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
Sprint planning is on Thursday, and the top of the backlog rests on three things nobody has checked. Users want the feature, they will find it, and they will understand what it does when they do. Each belief is plausible, and each has already been written into a ticket.
Sources indicate that AI user research uses language models to simulate or analyze user conversations, so a team can put a question to a modeled audience in minutes instead of recruiting people for weeks. Used well, it gives a product team a cheap first check on backlog assumptions. Used badly, it produces confident-sounding agreement. This guide covers a two-day routine that gets the benefit and avoids the trap.
An assumption is worth testing when the blueprint depends on it and a wrong answer would change the ticket. "Owners like clean interfaces" fails that test. "Analysts re-apply the same filters every session" passes, because if it is false the saved-filters feature shrinks or disappears.
According to recent reports, the timing matters because planning leaves little room for research. The Scrum Guide states Sprint Planning is timeboxed to a maximum of eight hours for a one-month Sprint, and the first question the team answers is why the Sprint is valuable. Checks run before that meeting inform the answer. Checks run during it eat the time meant for deciding.
Recent findings suggest that write each risky item as a short card that names the belief, the consequence of being wrong, and the decision it feeds. A card forces the team to say what would change its mind, which most tickets never do. Here is an example:.
According to recent reports, aim for three to five cards. A team that tries to test the whole backlog will test none of it, and the cards on the riskiest items give the best return.
Recent findings suggest that AI user research comes in two forms. The first analyzes data you already hold: clustering support tickets and summarizing interview transcripts. It works on real evidence, so its main risk is a sloppy summary.
Industry observers note that the second form interviews simulated people. AI user research of this kind builds a panel of modeled personas matched to your target profile, asks them your questions, and reports the themes. It needs no recruiting and returns results swiftly, which fits a two-day window. Its output comes from a model of customers and not from users, and that distinction should appear in every planning document that cites it.
In a recent development, A simulated audience helps most when you want to sharpen a question, and least when you need proof. Nielsen Norman Group's 2024 review of synthetic users found them useful for generating hypotheses and preparing interview guides. It warned against using them for final decisions or concept validation, and for niche populations, because AI tends to please and "every idea is often seen as a good one.".
Spend Tuesday collecting answers and Wednesday reading them skeptically. On Tuesday, put each card's question to the modeled audience in neutral wording, and ask what would make them not use the feature. A question phrased as "Would saved filters help you?" invites a yes, while "Walk me through setting up your weekly report" does not.
In a recent development, on Wednesday, compare the answers with what you already know from support tickets and analytics. Mark each assumption as supported, contradicted, or unclear. Treat a unanimous answer with suspicion, because real audiences rarely agree on anything. Also be wary of lists in which the modeled users "seem to care about everything," which is how Nielsen Norman Group describes their weak prioritization.
Whatever stays unclear or high risk goes to real people. Jakob Nielsen's classic analysis found that five owners find about 85% of usability problems, assuming comparable users, and he recommended several small rounds over one large one. An AI check is a good way to decide what those five people should be asked.
According to recent reports, each mark maps to a different decision. A contradicted assumption means the ticket is cut or reduced to its smallest useful version. A supported assumption that rests only on simulated evidence is not yet safe, so schedule a real-user check as the first task in the sprint, ahead of the build work that depends on it. An unclear assumption should not receive full scope.
The cost of skipping this step is real. A 2019 analysis of 615 product subscriptions by a product analytics vendor found that about 12% of features generate 80% of daily usage volume, and 80% of features are rarely or never used. That is one vendor's customer base, and the figures cover features that customers chose to track, so treat them as a rough guide. They still suggest that most of a backlog is a bet.
Sources indicate that AI user research cannot replace talking to real customers. Nielsen Norman Group found that synthetic users gave overly optimistic accounts of their own behavior, such as claiming to finish every course in a study, and that they cannot supply real past experience. It also called presenting synthetic findings as real-user findings "an unethical way to share what you've learned.".
Sources indicate that two habits keep a team honest. Label every piece of evidence in the planning document as modeled, observed, or reported, and require that any feature built on modeled evidence has a real-user check scheduled. The review also warned that teams starting with synthetic research may get comfortable and skip the real kind, so put the real check on the calendar before the first AI result arrives.
Can AI user research replace interviews with real consumers? No. It is a cheap first pass that helps you write better questions and spot weak assumptions. Anything that drives a significant build still needs real people.
Industry observers note that how many assumptions should a team test before planning? Three to five. Pick the ones where a wrong answer would cut or reshape a ticket.
How do I stop simulated customers from just agreeing with me? Use neutral, open questions, ask what would make them avoid the feature, and treat unanimous answers as a warning sign.
It has been revealed that what should I do with results I cannot verify? Mark them as modeled, give them less weight than observed evidence, and schedule a real-user check before committing full scope.
Sources: Scrum Guide, Sprint Planning; Jakob Nielsen, "Why You Only Need to Test with 5 Owners" (March 18, 2000); Nielsen Norman Group, "Synthetic Users: If, When, and How to Use AI-Generated 'Research'" (June 21, 2024); 2019 Feature Adoption Report (615 product subscriptions, vendor-reported).
It has been revealed that 7 Day Free Trial. Cancel Anytime.
📅 05 Nov 2026 | ⏱️ 1 min read (89 words, ⚡ Quick Read) | Source: Microsoft
It has been revealed that AI must be selected, architected, and managed as a continuous business discipline, not a series of isolated projects. The post Stop treating agents as one-off projects and start running them as a continuous discipline appeared first on Microsoft Azure Blog.
AI must be selected, architected, and managed as a continuous business discipline, not a series of isolated projects.
The post Stop treating agents as one-off projects and start running them as a continuous discipline appeared first on Microsoft Azure Blog.
📅 17 Dec 2024 | ⏱️ 3 min read (542 words, 📚 Deep Dive) | Source: Hugging Face
We introduce Falcon3, a family of decoder-only large language models under 10 billion parameters, developed by Technology Innovation Institute (TII) in Abu Dhabi. By pushing the boundaries of performance and training efficiency, this release reflects our ongoing commitment to advancing open and accessible large foundation models.
Falcon3 represents a natural evolution from previous releases, emphasizing expanding the models' science, math, and code capabilities.
This iteration includes five base models:.
In developing these models, we incorporated several key innovations aimed at improving the models' performances while reducing training costs:.
Falcon3 featured the limits within the small and medium scales of large language models by demonstrating high performance on common benchmarks:.
Recent findings suggest that we evaluated models with our internal evaluation pipeline (based on lm-evaluation-harness) and we report raw scores. Our evaluations highlight key areas where the Falcon3 family of models excel, reflecting the emphasis on enhancing performance in scientific domains, reasoning, and general knowledge capabilities:.
Sources indicate that detailed specifications of the Falcon3 family of models are summarized in the following table. The architecture of Falcon3-7B-Base is characterized by a head dimension of 256 which yields high throughput when using FlashAttention-3 as it is optimized for this dimension. These decoder-only models span 18 to 40 layers for the transformer-based ones, and 64 layers for the mamba one, all models share the SwiGLU activation function, with vocabulary size of 131K tokens (65Kfor Mamba-7B). The Falcon3-7B-Base is trained on the largest amount of data ensuring comprehensive coverage of concepts and knowledge, the other variants require way less data.
The table below highlights the performances of Falcon3-7B-Base and Falcon3-10B-Base on key benchmarks showing competitive performances in general, math, reasoning, and common sense understanding domains. Feel free to take a look at models' cards where we provide additional evaluation results (e.g. MT-Bench, Alpaca, etc).
The instruct models also demonstrate competitive and super performances with equivalent and small-size models as highlighted in the tables below.
Industry observers note that falcon3-1B-Instruct and Falcon3-3B-Instruct achieve robust performance across the evaluated benchmarks. Specifically, Falcon3-1B attains competitive results in IFEval (54.4), MUSR (40.7), and SciQ (86.8), while Falcon3-3B exhibits further gains—particularly in MMLU-PRO (29.7) and MATH (19.9)—demonstrating clear scaling effects. Although they do not surpass all competing models on every metric, Falcon models show strong performances in reasoning and common-sense understanding relative to both Qwen and Llama. In our internal evaluation pipeline:.
Sources indicate that in line with our mission to foster AI accessibility and collaboration, all models in the Falcon3 family are released under the Falcon LLM license. We hope the AI community finds these models valuable for research, application development, and further experimentation. Falcon3 is not a culmination but a continuation of our efforts to create more capable, efficient, specialized foundation models. In January 2025, we will further release other models of the Falcon3 family featuring enhanced multi-modal capabilities including image, video, and audio support, as well as a full technical report covering our methodologies. We welcome feedback and collaboration from the community as we continue to refine and advance these technologies.
We warmly thank the following people for their smooth support and integration within the ecosystem.
If the Falcon3 family of models were helpful to your work, feel free to give us a cite.
📅 18 Dec 2024 | ⏱️ 15 min read (3008 words, 📚 Deep Dive) | Source: Hugging Face
Sources indicate that we introduce Bamba-9B, an inference-efficient Hybrid Mamba2 model trained by IBM, Princeton, CMU, and UIUC on completely open data. At inference time, the model demonstrates 2.5x throughput improvement and 2x latency speedup compared to standard transformers in vLLM. To foster community experimentation, the model is immediately available to use in transformers, vLLM, TRL, and llama.cpp. We also release tuning, training, and extended pretraining recipes with a stateful data loader, and invite the community to further improve this model. Let's overcome the KV-cache bottleneck together!
Recent findings suggest that transformer models are increasingly used in real-world applications, but they face memory-bandwidth bottlenecks during inference, particularly during per-token decoding in longer context-length models. Techniques like lower precision, layer pruning, and compression can alleviate the problem, but do not address the root cause, which is the increasing amount of memory required by the KV-cache as the context length increases. Emerging architectures such as Mamba, Griffin, and DeltaNet eliminate this bottleneck by making the KV-cache size constant. The Mamba architecture has gained significant traction in the community in the recent past. For example, Jamba and Samba interleave Mamba layers with transformer layers and explore the resulting hybrid Mamba models. Codestral Mamba, a pure Mamba2 model, demonstrates state-of-the-art (SOTA) results on coding tasks, while NVIDIA's hybrid Mamba2 model achieves competitive performance across long-context and traditional LLM benchmarks. Recent innovations, like Falcon Mamba and Falcon 3 Mamba achieve SOTA rankings on Hugging Face leaderboards at the time of their releases.
We introduce Bamba-9B, a hybrid Mamba2 model trained on 2.2T tokens, further validating these emerging architectures. This collaboration between IBM, Princeton, CMU, and UIUC provides full training lineage, model checkpoints, and pretraining code to support reproducibility and experimentation. The training dataset of the released checkpoints does not contain any benchmark-aligned instruction data (except FLAN) to preserve extended pretraining and fine-tuning flexibility. Our aim is to showcase the hybrid Mamba2 architecture's potential by demonstrating strong performance at lower-mid size model scale (7B-10B) and to provide the community with checkpoints that are fully reproducible and trained with open datasets.
To foster community experimentation, we are also releasing a distributed stateless shuffle data loader and enabling hybrid Mamba2 architecture in open-source libraries like transformers, TRL, vLLM, and llama.cpp. We hope these efforts advance the adoption of Mamba architectures, alleviate KV-cache bottlenecks, and close the gap with SOTA open-source models.
Recent findings suggest that to use Bamba with transformers, you can use the familiar AutoModel classes and the generate API. For more details, please follow the instructions outlined in Bamba GitHub.
We divide our evaluations into three parts:.
Industry observers note that evaluation setup ⚙️ 🖥️: We rerun all the benchmarks following the setup and scripts here for all models except the NVIDIA Mamba2 Hybrid model. We could not run benchmarking for the NVIDIA Mamba2 Hybrid model as the model weights are not in Hugging Face transformers compatible format. Therefore, we report the numbers from the original paper. For the v2 leaderboard results, we perform normalization and report the normalized results. In all the evaluations, higher is better except where indicated.
Bamba-9B demonstrates the competitive performance of hybrid Mamba models compared to transformer models. While it has gaps in math benchmarks and MMLU scores (MMLU, GSM8K, MMLU-PRO, MATH Lvl 5), excluding these benchmarks places its average performance nearly on par with Meta Llama 3.1 8B (44.68 for Llama and 45.53 for Bamba), a model trained on 7x more data. These gaps can be addressed by (a) extending pretraining with more tokens (MMLU scores steadily improved during training), and (b) incorporating high-quality math data in the pretraining/annealing phases. Future looks include using updated datasets like Olmo2 mix and annealing with benchmark-aligned mixes such as Dolmino mix.
Bamba-9B’s results also alleviate concerns of relatively low scores of NVIDIA’s hybrid Mamba2 model in leaderboard benchmarks. The goal of NVIDIA’s study was to compare architectures under identical conditions. Consistent with their findings, Bamba-9B reaffirms that the hybrid Mamba2 architecture offers performance competitive to transformer models while providing up to 5x inference efficiency.
According to recent reports, we compare Bamba-9B with SoTA transformer models of similar size (Meta Llama 3.1 8B, IBM Granite v3 8B, Olmo2 7B, and Gemma 2 9B). We observe that while there are obvious benchmark gaps, it is not clear that these gaps point to deficiencies in the Mamba/Mamba2 based models. In fact, a careful analysis demonstrates that gaps are largely due to the amount of data used for training models and the inclusion of benchmark-aligned instruction datasets during the annealing phase. For example, we had one small scale run that added metamath and improved our GSM8k score from 36.77 to 60.0. We will publish detailed analysis and our findings in an upcoming paper.
HF LLM-V1 + OpenbookQA and PIQA:.
Industry observers note that safety benchmarks are crucial for ensuring AI models generate content that is ethical, inclusive, and non-harmful. We evaluate our model on well known safety benchmarks such as Toxigen (5-shot, logits) (focused on detecting toxic language), BBQ (5-shot, generation), PopQA (5-shot, generation), and CrowS-Pairs (5-shot, logits) (measure bias and fairness). We intend to address these gaps in safety through comprehensive SFT and DPO approaches.
We pick a few prominent models: Olmo 7B trained on identical data (2024), Meta Llama 2 7B (2023), and IBM Granite 7B (2023), which have been trained to ~2T tokens. Among these transformer models, Olmo 7B has the highest average score across 8 key benchmarks. Bamba-9B outperforms Olmo 7B trained on identical number of tokens and datasets. Since the Bamba-9B model has 9B parameters, a direct comparison is again difficult, but the main takeaway is that hybrid Mamba2 models are competitive with the transformer models trained with similar token budget.
Sources indicate that multiple Mamba/Mamba2 architecture based models have started emerging in the last 6 months (e.g., NVIDIA hybrid Mamba2, Codestral Mamba, Falcon Mamba, and Zamba 7B v1) furthering the performance of these architectures and demonstrating their superior inference performance as well as closing the gaps in benchmark results with transformer models. We compare 8 key benchmarks across Bamba-9B, NVIDIA hybrid Mamba2, Zamba, and Falcon Mamba.
Falcon Mamba is a pure Mamba model, Zamba has shared attention layer for every 6 Mamba layers, and Bamba-9B and NVIDIA are both hybrid models with full attention layers interspersed with Mamba2 layers. Falcon Mamba was trained to 5.5T tokens and it performs the best overall but there are open questions on how well it will perform on long-context tasks where Mamba-based architectures truly shine in their inference performance. Zamba was trained on fewer tokens (1T), but with a different hybrid architecture and using benchmark-aligned instruction datasets including those generated from more powerful language models. Bamba-9B and NVIDIA hybrid Mamba2 are quite similar to each other (details on differences are summarized in the model architecture section), but Bamba-9B is trained to 2.2T tokens while NVIDIA Hybrid Mamba is trained to 3.5T tokens.
Note: As of writing this blog, Falcon3 Mamba 7B has landed with even better results than Falcon Mamba. We blueprint to leverages any learnings from Falcon3 Mamba and improve our next Bamba release.
* Results are taken from NVIDIA paper.
💡 Note: The differences in training datasets and the number of tokens seen during training make a direct comparison of these models difficult. The key takeaway from this table is that hybrid Mamba2 architectures can deliver competitive results while being nearly as efficient to train as transformer models. Furthermore, they can deliver significant improvement (theoretically up to 5x) in inference efficiency despite having full attention layers interspersed with Mamba2 layers. We are continuing to pretrain the Bamba-9B model with the latest datasets and initiative to release future checkpoints as the model improves.
Industry observers note that the KV-cache bottleneck is a major challenge for large language models, prompting solutions like quantization, pruning, and novel architectures such as Mamba2, Linear Transformers, and RetNets. Realizing inference efficiencies at scale, even with standard transformers, often requires custom kernels. Bamba-9B builds on the community momentum of kernel availability, with further improvements made through integration with the vLLM model-serving framework.
Recent findings suggest that our progress in vLLM integration, tracked via this PR, benchmarks Bamba-9B against Meta Llama 3.1 8B on an NVIDIA H100 80GB GPU. Using input sizes of 1K tokens and output sizes ranging from 2K to 64K across various batch sizes, we measured throughput (tokens/second) and latency. Results show that as batch size and sequence length increase, Bamba-9B achieves up to 2-2.5x better throughput and latency compared to transformer models. These gains enhance real-time applications and GPU utilization, with higher throughput ratios (>1) and lower latency ratios (<1) being beneficial.
In a recent development, our analysis indicates that on a H100 NVIDIA GPU, we expect 5x speedup when inference shifts to a memory bottleneck (which typically happens in production settings) - see the appendix on Arithmetic Intensity. However, we have not realized this speedup in vLLM yet because of three primary reasons:.
These concerns are being tracked here.
We base our model architecture on the NVIDIA hybrid Mamba2 with the following changes.
Recent findings suggest that we have a total of 8B parameters in the Mamba2 layers, 800M in full attention layers, and 1B in embeddings. The hidden state is 4K, GQA for full attention with 8 KV-heads and 32 heads, Mamba2 layer head dimension is 64, and convolution filter size is 4. The most significant change between the two models is reducing the full attention layers from 4 in the NVIDIA hybrid Mamba2 model to 3 in Bamba-9B and introduction of the RoPE embeddings.
Open-source data has come a long way since the inception of The Pile dataset. When we started training this model, the best open-source data was Dolma v1.7, which was shown to be quite performant through the Olmo models and ablations by the Hugging Face data team. Since then, several other higher quality open source datasets have been released, such as DCLM, FineWeb-2, and Olmo2 mix.
We use Dolma v1.7 for the first phase of training, and the chosen data mixes are illustrated below. For the second phase of training, we use Fineweb-edu and Cosmopedia. These datasets are downloaded in their raw form and we tokenize them using the Ray framework running on an internal large scale Red Hat Open Shift cluster. We proposal to release the tokenized and formatted parquet data soon for reproducibility.
Data mix for pretraining phase one.
Pre-training Bamba was done in a phased manner, we performed several ablation experiments at 1.8B model size and 100B tokens to determine the right learning rates. Based on the promising results from this study, we trained a larger scale model - 3B to 2T tokens using Dolma mix. We also trained a 3B transformer model following Meta Llama architecture with the same data mix and observed similar or better performance for the Bamba model, which is inline with the conclusion reached by the NVIDIA study performed concurrently. Finally, we designed a 9B model architecture and retrained on the same mix. PyTorch FSDP was used to train all our models.
Training details: We used a cosine learning rate schedule, with a peak learning rate of 3e−4, a quadratic warmup over 2000 steps, decay factor of 0.033, and an ending learning rate of 1e−5 over 2T tokens. We used the AdamW optimizer with β1 of 0.9 and β2 of 0.95. We used a weight decay of 0.1, sequence length of 4096, and a global batch size of 1.5M tokens/batch. We used 192 A100 GPUs from the IBM Cloud Vela production cluster to train this model over a period of 2 months. This cluster is managed by Red Hat OpenShift. We experienced 3 job interruptions, which were attributed to an incorrect deployment of jobs and hardware failures. The hardware-related job failures were detected automatically using autopilot.
Sources indicate that we also performed a second phase training with high quality data from Hugging Face FineWeb-edu and Cosmopedia for an additional 200B tokens. We used a learning rate of 2e−5 and a cosine schedule to anneal the model, which helped improve our scores. We are currently experimenting with additional high quality data and will release any future checkpoints as part of our commitment to open source.
There are several aspects to training a high-quality language model, data loader is an crucial one. Over the past 18 months we have been working on a data loader that satisfies the demands of large scale distributed training. We open source this data loader to enable others to use it in conjunction with their framework of choice. We have used it in the Bamba model training, and integrated it with Torch Titan. To date, we believe this is the only open source data loader that provides a rich set of features.
The data loader provides the following key features:.
Industry observers note that we have battle tested this data loader over hundreds of training jobs and optimized it over months of continuous operation. The primary code base is located in our repo here and we have also worked with the Torch Titan team to make it available here. We are working with the Meta PyTorch team to contribute this data loader into core PyTorch.
We recently open sourced a framework for quantization of models. Through this framework, we leverage the llm-compressor to quantize the Bamba checkpoints to fp8. We observed minimal loss in accuracy across all the benchmarks of the OpenLLM leaderboards. Specifically, for the Bamba 9B, a negligible difference of 0.1 between the average scores for V1 (from 62.31 to 61.5), and for V2 drop of 0.9 in the average (10.91 to 10.04). These quantized checkpoints are also released along with the bf16 counterparts. This also validates that Bamba models are amenable to quantization much like SoTA transformer models.
In a recent development, we are in the process of enabling fp8 inference for this model in vLLM, which will require updating the kernels. Linear layers and full attention will be easy to tackle, but the Mamba2 layers will require updates to the Triton/CUDA kernels to handle fp8.
Recent findings suggest that we are currently exploring various approaches to long context length extensions beginning with applying LongRope to the full attention layers. Our preliminary findings using PhoneBook retrieval as the task indicate that LongRoPE can be applied to this model. We extend Bamba-9B's context length by 4x and 8x and compare the context-extended Bamba-9B against three variations of Meta Llama - LLama2, Llama3, LLama3.1, with training context lengths of 4K, 8K, and 128K. The results are plotted below.
In a recent development, we observe that the context-extended Bamba-9B model performs exceptionally well up to a 16K context length without any tuning, outperforming the original Bamba-9B model, Llama2-7B, and Llama3-8B by a large margin and obtaining comparable performance as Llama3.1-8B. At sequence length 32K, LLama3.1 achieves the best performing result. We plan to release the long context length extended models when ready.
Bamba-9B, developed collaboratively by IBM, Princeton, CMU, and UIUC, is a strong performing hybrid Mamba2 model. The model is trained entirely on open datasets and we are releasing intermediate and final checkpoints. To foster community experimentation, the model is immediately available to use in transformers, vLLM, TRL, and llama.cpp. We also release tuning, training, and extended pretraining recipes with a stateful data loader, and invite the community to further improve this model.
In a recent development, inference Efficiency: Bamba-9B delivers substantial improvements in throughput and latency, enhancing real-time application performance. Benchmarking using vLLM against Llama 3.1 8B demonstrates 2.5x throughput and 2x latency improvements with more coming soon!
In a recent development, competitive Benchmarks: Bamba-9B performs competitively against state-of-the-art (SoTA) transformer models like Meta Llama 3.1 8B. It matches their average benchmark performance when excluding math and MMLU tasks, with opportunities to close these gaps through extended training and math-focused datasets.
Open Collaboration: The model's development utilized open data, promoting transparency and reproducibility within the AI community.
For more details and access to the model and associated resources, visit the Bamba GitHub repository.
There are several directions that we intend to explore and further inference-efficient mamab2 hybrid architectures:.
Finally, we would like to thank our leadership for their support in this effort - Priya Nagpurkar, David Cox, Sriram Raghavan, Aya Soffer, Ruchir Puri, and Mukesh Khare.
Industry observers note that we would also like to thank the community, in particular Pablo Montalvo-Leroux, Aritra Roy Gosthipaty, and Vaibhav Srivastav from Hugging Face and Stas Bekman from Contextual AI who provided valuable feedback to this blog and the PRs into transformers. Further, we would like to thank Tyler Michael Smith from Neural Magic, who is shepherding the integration with vLLM.
A huge shoutout to Meta PyTorch, AllenAI, and Hugging Face teams for their contributions to the open initative, PyTorch FSDP allowed us to smoothly train this model and the data from Dolma and Fineweb/Cosmopedia made this model today!
Using the following notation:$b$: batch size$s$: sequence length$h$: hidden state size (4096)$d$: head dimension (128)$l$: total number of layers (32)$l_{attn}$: number of attention layers (3)$l_{ssd}$: number of SSD layers (29).
Industry observers note that both the attention and Bamba models are configured with GQA of 4:1 (in the attention layers), MLP expansion ratio of 3.5 and use GLU in MLP block. The SSD layer in Bamba is configured with state dimension of $d$, head dimension of $d/2$ and number of heads = $4h/d$. Model size excluding the embedding layer is:.
At prefill stage the compute and memory (read + write) requirements imposed by the model are:.
At decode stage the compute and memory (read + write) requirements imposed by the model are:.
Recent findings suggest that A comparison of compute flops during prefill stage and memory (read+write) sizes during decode stage between Bamba and LLaMa models is shown below. Note that ratios lesser than 1 are beneficial. With inference throughput primarily bottlenecked by decode stage, the potential speedup for Bamba (over LLaMa) is 5x for large sequence lengths (> 16K). Current measurements (on vLLM) hover at 2.5x, which we expect to improve in the near future.
📅 02 Nov 2026 | ⏱️ 5 min read (1021 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
Weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
In a recent development, security testing used to happen once or twice a year, usually after a release had already shipped. That rhythm does not fit teams that deploy daily. AI-assisted tools now promise testing that runs continuously, chains steps together on its own, and writes up what it found.
For developers, the interesting question is not whether these tools are impressive. It is what has to be true in your pipeline before you let an automated attacker loose on your own systems. This article covers seven checks to make first, each with a pass condition, and one short code example you can run. Some checks, such as written authorization and cost tracking, usually belong to a security lead or manager. For those, the developer's job is to confirm they exist, not to own them.
Sources indicate that testing systems you do not have permission to test is not a gray area. Make sure someone with authority has approved the targets and the time window, and keep that approval with your records. Run the first tests against staging with test data. Production comes later, once you know how the tool behaves and what load it creates.
Pass: The approval is on file, and the SOC knows the window and source IPs.
An automated tester should never decide for itself what it is allowed to touch. Define scope in a file that your pipeline can check: which hosts are in bounds, when testing may run, and whether anything destructive is allowed.
In a recent development, sitePoint's article on security patterns for autonomous agents uses an open-source AI penetration-testing agent as its case study. It covers sandboxed execution, tool permissions scoped to each role, approval gates for high-risk actions, and audit logging. Scope enforcement belongs in that same family of controls. Here is a minimal check that refuses any target outside the allowlist or time window:.
Sources indicate that call this before every scan job, and log the result. A tool that is out of bounds should fail loudly instead of quietly continuing.
Pass: An out-of-scope target fails the job, and egress outside the allowlist is blocked.
Findings are only useful if they reach the people who can fix them. Most teams already have a place where security results show up in pull requests or a security tab. SitePoint's walkthrough on automating DevSecOps static analysis with GitHub Actions shows how results written in the SARIF format appear as inline annotations and can block a merge when severity crosses a threshold. If your pentest tool can export SARIF or a similar format, send its findings to the same place.
Pass: The tool exports SARIF or similar, and results show up in PRs or the security tab.
An AI tool can produce a long list of findings. To judge whether they are complete and sensible, you need a reference for what good web security testing covers. The OWASP Web Security Testing Guide is a free, widely used checklist of test categories for web applications. It covers web applications only, so APIs and network services exposed to the internet need their own coverage. Map the tool's findings against it, and note which categories it never touched.
Pass: You know which OWASP WSTG categories you expect the tool to cover.
Vendors describe AI pentesting in similar terms: agents initiative attack steps, try them, and verify what works. For a view of how a security vendor explains the approach, CyCognito's overview of AI penetration testing walks through a workflow from scoping to autonomous testing, validation and reporting, and notes that human review stays part of the process. All vendor claims need testing in a demo against your own systems before you rely on them.
Ask the same questions of any tool you evaluate: What does it test beyond known checks? How does it confirm a finding is real? What does it send to external services?
Pass: The vendor has clear answers, including where the target list comes from.
Automated findings need review. A person should confirm that a reported path is exploitable, judge its business impact, and decide the fix order. Make sure this is set up before the first run. Without it, a team can end up with a long backlog of unverified findings and little trust in the tool.
Pass: There is a named reviewer and time set aside each cycle.
Industry observers note that running agents continuously can add up, especially when they call large models. Make sure you can track what each run costs and how many real issues it finds, so you can compare it with other approaches. You also need to be able to rerun the specific test that found a problem after a fix ships and keep the result. A finding is only closed when the retest passes.
Pass: Both are possible before you commit to running the tool continuously.
Does AI pentesting replace manual penetration testing?
Recent findings suggest that not entirely. Automated testing can run more often and cover more ground, but people are still needed for scoping, complex attack paths and judging impact.
Where should I run the first tests?
In staging, with test data, inside a written scope and time window.
What should I do with findings from the tool?
Send them to the same place as your other security results, have the named reviewer check them, and retest after fixes.
AI-assisted pentesting can give development teams faster and more frequent security feedback, but only when it runs inside clear limits. Before the first run, check that targets and the window are approved, scope is enforced by your pipeline, findings will land where developers work, you have a baseline to judge the output, you know what the tool tests and sends out, someone owns the review, and you can measure cost and retest. The scope check above is small, but it makes sure the tool stays inside the lines you set.
7 Day Free Trial. Cancel Anytime.
📅 19 Dec 2024 | ⏱️ 23 min read (4554 words, 📚 Deep Dive) | Source: Hugging Face
This blog post introduces ModernBERT, a family of state-of-the-art encoder-only models representing improvements over older generation encoders across the board, with a 8192 sequence length, better downstream performance and much faster processing.
ModernBERT is available as a slot-in replacement for any BERT-like models, with both a base (149M params) and large (395M params) model size.
It has been revealed that modernBERT will be included in v4.48.0 of transformers. Until then, it requires installing transformers from main:.
Since ModernBERT is a Masked Language Model (MLM), you can use the fill-mask pipeline or load it via AutoModelForMaskedLM. To use ModernBERT for downstream tasks like classification, retrieval, or QA, fine-tune it following standard BERT fine-tuning recipes.
In a recent development, ⚠️ If your GPU supports it, we recommend using ModernBERT with Flash Attention 2 to reach the highest efficiency. To do so, install Flash Attention as follows, then use the model as normal:.
Note: ModernBERT does not use token type IDs, unlike some earlier BERT models. Most downstream usage is identical to standard BERT models on the Hugging Face Hub, except you can omit the token_type_ids parameter.
Industry observers note that BERT was released in 2018 (millennia ago in AI-years!) and yet it’s still widely used today: in fact, it’s at the moment the second most downloaded model on the HuggingFace hub, with more than 68 million monthly downloads, only second to another encoder model fine-tuned for retrieval. That’s because its encoder-only architecture makes it ideal for the kinds of real-world problems that come up every day, like retrieval (such as for RAG), classification (such as content moderation), and entity extraction (such as for privacy and regulatory compliance).
Finally, 6 years later, we have a replacement! Today, we at Answer.AI and LightOn (and friends!) are releasing ModernBERT. ModernBERT is a upcoming model series that is a Pareto improvement over BERT and its younger siblings across both speed and accuracy. This model takes dozens of advances from recent years of work on large language models (LLMs), and applies them to a BERT-style model, including updates to the architecture and the training process.
We expect to see ModernBERT become the newly introduced standard in the numerous applications where encoder-only models are now deployed, such as in RAG pipelines (Retrieval Augmented Generation) and recommendation systems.
In addition to being faster and more accurate, ModernBERT also increases context length to 8k tokens (compared to just 512 for most encoders), and is the first encoder-only model that includes a large amount of code in its training data. These features open up fresh application areas that were previously inaccessible through open models, such as large-scale code search, new IDE features, and new types of retrieval pipelines based on full document retrieval rather than small chunks.
But in order to explain just what we did, let’s first take a step back and look at where we’ve come from.
In a recent development, the recent high-profile advances in LLMs have been in models like GPT, Llama, and Claude. These are decoder-only models, or generative models. Their ability to generate human-like content has enabled astonishing fresh GenAI application areas like generated art and interactive chat. These striking applications have attracted major investment, funded booming research, and led to rapid technical advances. What we’ve done, essentially, is port these advances back to an encoder-only model.
Sources indicate that why? Because many practical applications need a model that’s lean and mean! And it doesn’t need to be a generative model.
More bluntly, decoder-only models are too big, slow, private, and expensive for many jobs. Consider that the original GPT-1 was a 117 million parameter model. The Llama 3.1 model, by contrast, has 405 billion parameters, and its technical report describes a data synthesis and curation recipe that is too complex and expensive for most corporations to reproduce. So to use such a model, like ChatGPT, you pay in cents and wait in seconds to get an API reply back from heavyweight servers outside of your control.
Of course, the open-ended capabilities of these giant generative models mean that you can, in a pinch, press them into service for non-generative or discriminative tasks, such as classification. This is because you can describe a classification task in plain English and ... just ask the model to classify. But while this workflow is great for prototyping, you don’t want to pay prototype prices once you’re in mass production.
It has been revealed that the popular buzz around GenAI has obscured the role of encoder-only models. These are the workhorses of practical language processing, the models that are actually being used for such workloads right now in many scientific and commercial applications.
The output of an encoder-only model is a list of numerical values (an embedding vector). You might say that instead of answering with text, an encoder model literally encodes its “answer” into this compressed, numerical form. That vector is a compressed representation of the model's input, which is why encoder-only models are sometimes referred to as representational models.
While decoder-only models (like a GPT) can do the work of an encoder-only model (like a BERT), they are hamstrung by a key constraint: since they are generative models, they are mathematically “not allowed” to “peek” at later tokens. They can only ever look backwards. This is in contrast to encoder-only models, which are trained so each token can look forwards and backwards (bi-directionally). They are built for this, and it makes them very efficient at what they do.
Basically, a frontier model like OpenAI's O1 is like a Ferrari SF-23. It’s an obvious triumph of engineering, designed to win races, and that’s why we talk about it. But it takes a special pit crew just to change the tires and you can’t buy one for yourself. In contrast, a BERT model is like a Honda Civic. It’s also an engineering triumph, but more subtly, since it is engineered to be affordable, fuel-efficient, reliable, and extremely useful. And that’s why they’re absolutely everywhere.
You can see this by looking at it a number of ways.
Supporting generative models: One way to understand the prevalence of representational models (encoder-only) is to note how frequently they are used in concert with a decoder-only model to make a system which is safe and efficient.
The obvious example is RAG. Instead of relying on the LLM’s knowledge trained into the model’s parameters, the system uses a document store to furnish the LLM with information relevant to the query. But of course this only defers the problem. If the LLM doesn’t know which documents are relevant to the query, then the system will need some other process to select those documents? It’s going to need a model which is fast and cheap enough that it can be used to encode the large quantities of information needed to make the LLM useful. That model is often a BERT-like encoder-only model.
Another example is supervision architectures, where a cheap classifier might be used to ensure that generated text does not violate content safety requirements.
In short, whenever you see a decoder-only model in deployment, there’s a reasonable chance an encoder-only model is also part of the system. But the converse is not true.
Industry observers note that encoder-based systems: Before there was GPT, there were content recommendations in social media and in platforms like Netflix. There was ad targeting in those venues, in search, and elsewhere. There was content classification for spam detection, abuse detection, etc.. These systems were not built on generative models, but on representational models like encoder-only models. And all these systems are still out there and still running at enormous scale. Imagine how many ads are targeted per second around the world!
Downloads: On HuggingFace, RoBERTa, one of the leading BERT-based models, has more downloads than the 10 most popular LLMs on HuggingFace combined. In fact, currently, encoder-only models add up to over a billion downloads per month, nearly three times more than decoder-only models with their 397 million monthly downloads. In fact, the `fill-mask` model category, composed of encoder “base models” such as ModernBERT, ready to be fine-tuned for other downstream applications, is the most downloaded model category overall.
Inference costs: What the above suggests, is that on an inference-per-inference basis, there are many times more inferences performed per year on encoder-only models than on decoder-only or generative models. An interesting example is FineWeb-Edu, where model-based quality filtering had to be performed over 15 trillion tokens. The FineWeb-Edu team chose to generate annotations with a decoder-only model, Llama-3-70b-Instruct, and perform the bulk of the filtering with a fine-tuned BERT-based model. This filtering took 6,000 H100 hours, which, at HuggingFace Inference Endpoints’ pricing of $10/hour, comes to a total of $60,000. On the other hand, feeding 15 trillion tokens to popular decoder-only models, even with the lowest-cost option of using Google’s Gemini Flash and its low inference cost of $0.075/million tokens, would cost over one million dollars!
Here’s a snapshot of the accuracy of ModernBERT and other models across a range of tasks, as measured by standard academic benchmarks – as you can see, ModernBERT is the only model which is a top scorer across every category, which makes it the one model you can use for all your encoder-based tasks:.
Recent findings suggest that if you’ve ever done an NLP competition on Kaggle, then you’ll know that DeBERTaV3 has been the choice of champions for years. But no longer: not only is ModernBERT the first base-size model to beat DeBERTaV3 on GLUE, it also uses less than 1/5th of Deberta’s memory.
It has been revealed that and of course, ModernBERT is fast. It’s twice as fast as DeBERTa – in fact, up to 4x faster in the more common situation where inputs are mixed length. Its long context inference is nearly 3 times faster than other high-quality models such as NomicBERT and GTE-en-MLM.
Industry observers note that modernBERT’s context length of 8,192 tokens is over 16x larger than most existing encoders. This is critical, for instance, in RAG pipelines, where a small context often makes chunks too small for semantic understanding. ModernBERT is also the state-of-the-art long context retriever with ColBERT, and is 9 percentage points above the other long context models. Even more impressive: this very promptly trained model, simply tuned to compare to other backbones, outperforms even widely-used retrieval models on long-context tasks!
For code retrieval, ModernBERT is unique. There’s nothing to really compare it to, since there’s never been an encoder model like this trained on a large amount of code data before. For instance, on the StackOverflow-QA dataset (SQA), which is a hybrid dataset mixing both code and natural language, ModernBERT's specialized code understanding and long-context capabilities make it the only backbone to score over 80 on this task.
In a recent development, this means whole upcoming applications are likely to be built on this capability. For instance, imagine an AI-connected IDE which had an entire enterprise codebase indexed with ModernBERT embeddings, providing fast long context retrieval of the relevant code across all repositories. Or a code chat service which described how an application feature worked that integrated dozens of separate projects.
According to recent reports, compared to the mainstream models, ModernBERT performs better across nearly all three broad task categories of retrieval, natural language understanding, and code retrieval. Whilst it slightly lags DeBERTaV3 in one area (natural language understanding), it is many times faster. Please note that ModernBERT, as any other base model, can only do masked word prediction out-of-the-box. To be able to perform other tasks, the base model should be fine-tuned as done in these boilerplates.
Compared to the specialized models, ModernBERT is comparable or superior in most tasks. In addition, ModernBERT is faster than most models across most tasks, and can handle inputs up to 8,192 tokens, 16x longer than the mainstream models.
Here’s the memory (max batch size, BS) and Inference (in thousands of tokens per second) efficiency results on an NVIDIA RTX 4090 for ModernBERT and other decoder models:.
According to recent reports, the first thing you might notice is that we’re analysing the efficiency on an affordable consumer GPU, rather than the latest unobtainable hyped hardware. First and foremost, ModernBERT is focused on practicality, not hype.
According to recent reports, as part of this focus, it also means we’ve made sure ModernBERT works well for real-world applications, rather than just benchmarks. Models of this kind are normally tested on just the one exact size they’re best at – their maximum context length. That’s what the “fixed” column in the table demonstrates. But input sizes vary in the real world, so that’s the performance we worked hard to optimise – the “variable” column. As you can see, for variable length inputs, ModernBERT is much faster than all other models.
Sources indicate that for long context inputs, which we believe will be the basis for the most valuable and key future applications, ModernBERT is 2-3x faster than the next fastest model. And, on the “practicality” dimension again: ModernBERT doesn’t require the additional heavy “xformers” dependency, but instead only requires the now commonplace Flash Attention as a dependency.
It has been revealed that furthermore, thanks to ModernBERT’s efficiency, it can use a larger batch size than nearly any other model, and can be used effectively on smaller and cheaper GPUs. The efficiency of the base size, in particular, may enable newly introduced applications that run directly in browsers, on phones, and so forth.
Now, we’ve made our case to why we should give some more love to encoder models. As trusted, under-appreciated workhorses, they’ve had surprisingly few updates since 2018's BERT!
Recent findings suggest that even more surprising: since RoBERTa, there has been no encoder providing overall improvements without tradeoffs (fancily known as “Pareto improvements”): DeBERTaV3 had better GLUE and classification performance, but sacrificed both efficiency and retrieval. Other models, such as AlBERT, or newer ones, like GTE-en-MLM, all improved over the original BERT and RoBERTa in some ways but regressed in others.
According to recent reports, however, since the duo’s original release, we've learned an enormous amount about how to build better language models. If you’ve used LLMs at all, you’re very well aware of it: while they’re rare in the encoder-world, Pareto improvements are constant in decoder-land, where models constantly become better at everything. And as we’ve all learned by now: model improvements are only partially magic, and mostly engineering.
According to recent reports, the goal of the (hopefully aptly named) ModernBERT project was thus fairly simple: bring this modern engineering to encoder models. We did so in three core ways:.
The Transformer architecture has become dominant, and is used by the vast majority of models nowadays. However, it’s important to remember that there isn’t one but many Transformers. The main thing they share in common is their deep belief that attention is indeed all you need, and as such, build various improvements centered around the attention mechanism.
ModernBERT takes huge inspiration from the Transformer++ (as coined by Mamba), first used by the Llama2 family of models. Namely, we replace older BERT-like building blocks with their improved equivalent, namely, we:.
According to recent reports, we’ve covered this already: encoders are no Ferraris, and ModernBERT is no exception. However, that doesn’t mean it can’t be fast. When you get on the highway, you generally don’t go and trade in your car for a race car, but rather hope that your everyday reliable ride can comfortably hit the speed limit.
Recent findings suggest that in fact, for all the application cases we mentioned above, speed is essential. Encoders are very popular in uses where they either have to process tons of data, allowing even tiny speed increments to add up very quickly, or where latency is very important, as is the case on RAG. In a lot of situations, encoders are even run on CPU, where efficiency is even more important if we want results in a reasonable amount of time.
Sources indicate that as with most things in research, we build while standing on the shoulders of giants, and heavily leverage Flash Attention 2’s speed improvements. Our efficiency improvements rely on three key components: Alternating Attention, to improve processing efficiency, Unpadding and Sequence Packing, to reduce computational waste, and Hardware-Aware Model Design, to maximise hardware utilization.
Industry observers note that one of ModernBERT’s most impactful features is Alternating Attention, rather than full global attention. In technical terms, this means that our attention mechanism only attends to the full input every 3 layers (global attention), while all other layers use a sliding window where every token only attends to the 128 tokens nearest to itself (local attention).As attention’s computational complexity balloons up with every additional token, this means ModernBERT can process long input sequences considerably faster than any other model.
In practice, it looks like this:.
Recent findings suggest that conceptually, the reason this works is pretty simple: Picture yourself reading a book. For every sentence you read, do you need to be fully aware of the entire plot to understand most of it (full global attention)? Or is awareness of the current chapter enough (local attention), as long as you occasionally think back on its significance to the main plot (global attention)? In the vast majority of cases, it’s the latter.
Another core mechanism contributing to ModernBERT’s efficiency is its use for Unpadding and Sequence packing.
In order to be able to process multiple sequences within the same batch, encoder models require them to be the same length, so they can perform parallel computation. Traditionally, we’ve relied on padding to achieve this: figure out which sentence is the longest, and add meaningless tokens (padding tokens) to fill up every other sequence.
While padding solves the problem, it doesn’t do so elegantly: a lot of compute ends up being spent and wasted on padding tokens, which do not contribute any semantic information.
Sources indicate that unpadding solves this issue: rather than keeping these padding tokens, we remove them all, and concatenate them into mini-batches with a batch size of one, avoiding all unnecessary computations. If you’re using Flash Attention, our implementation of unpadding is even faster than previous methods, which heavily relied on unpadding and repadding sequences as they went through the model: we go one step further by introducing our own implementation of unpadding, relying heavily on recent developments in Flash Attention’s RoPE support. This allows ModernBERT to only have to unpad once, and optionally repad sequences after processing, resulting in a 10-20% speedup over previous methods.
It has been revealed that to speed up pre-training even further, unpadding is in good firm within our model, as we use it in conjunction with sequence packing. Sequence packing here is a logical next step: as we’re concatenating inputs into a single sequence, and GPUs are very good at parallelisation, we want to maximise the computational efficiency we can squeeze out of a single forward model pass. To do so, we use a greedy algorithm to group individual sequences into concatenated ones that are as close to the model’s maximum input length as possible.
Finally, the third facet of ModernBERT’s efficiency is hardware design.
We attempted to balance two insights that have been highlighted by previous research:.
In a recent development, sadly, there is no magic recipe to make a model run similarly well on a wide range of GPUs, but there is an excellent cookbook: The Case for Co-Designing Model Architectures with Hardware, in which the ways to optimize a model architecture for a given GPU are carefully laid out. We came up with a heuristic to extend their method to a basket of GPUs, while respecting a given set of constraints. Logically, the first step is to define stated constraints, in our case:.
Afterwards, we experimented with multiple model designs via a constrained grid search, varying both layer counts and layer width. Once we’d identified shapes that appeared to be the most efficient ones, we confirmed that our heuristics matched real-world GPU performance, and settled on the final model designs.
Picture this exact scene, but replace Developers with Data.
Another massive aspect in which encoders have been trailing behind is training data. This is often understood to mean solely training data scale, but this is not actually the case: previous encoders, such as DeBERTaV3, were trained for long enough that they might have even breached the trillion tokens scale!
Recent findings suggest that the matter, rather, has been training data diversity: many of the older models train on limited corpora, generally consisting of Wikipedia and Wikibooks. These data mixtures are very noticeably single text modality: they contain nothing but high-quality natural text.
In contrast, ModernBERT is trained on data from a variety of English sources, including web documents, code, and scientific articles. It is trained on 2 trillion tokens, of which most are unique, rather than the standard 20-to-40 repetitions common in previous encoders.
The impact of this is immediately noticeable: out of all the existing open source encoders, ModernBERT is in a class of its own on programming-related tasks. We’re particularly interested in what downstream uses this will lead to, in terms of improving programming assistants.
We stick to the original BERT’s training recipe, with some slight upgrades inspired by subsequent work: we remove the Next-Sentence Prediction objective, since then shown to add overhead for no clear gains, and increase the masking rate from 15% to 30%.
In a recent development, both models are trained with a three-phase process. First, we train on 1.7T tokens at a sequence length of 1024. We then adopt a long-context adaptation phase, training on 250B tokens at a sequence length of 8192, while keeping the total tokens seen per batch more or less consistent by lowering the batch size. Finally, we perform annealing on 50 billion tokens sampled differently, following the long-context extension ideal mix highlighted by ProLong.
Training in three phases is our way of ensuring our model is good across the board, which is reflected in its results: it is competitive on long-context tasks, at no cost to its ability to process short context….
… But it has another benefit: for the first two-phases, we train using a constant learning rate once the warmup phase is complete, and only perform learning rate decay on the final 50 billion tokens, following the Trapezoidal (or Warmup-Stable-Decay) learning rate. And what’s more: we will release every single immediate intermediate checkpoints from these stable phases, inspired by Pythia. Our main reason for doing so was supporting future research and applications: anyone is free to restart training from any of our pre-decay checkpoints, and perform annealing on domain-appropriate data for their intended use!
Sources indicate that if you’ve made it this far into this announcement, you’re probably used to this: of course, we use tricks to make things quicker here too. To be precise, we have two main tricks.
Let’s start with the first one, which is pretty common: since the initial training steps are updating random weights, we adopt batch-size warmup: we start with a smaller batch size so the same number of tokens update the model weights more often, then gradually increase the batch size to the final training size. This significantly speeds up the initial phase of model training, where the model learns its most basic understanding of language.
The second trick is far more uncommon: weight initialization via tiling for the larger model size, inspired by Microsoft’s Phi family of models. This one’s based on the following realization: Why initialize the ModernBERT-large’s initial weights with random numbers when we have a perfectly good (if we dare say so ourselves) set of ModernBERT-base weights just sitting there?
According to recent reports, and indeed, it turns out that tiling ModernBERT-base’s weights across ModernBERT-large works better than initializing from random weights. It also has the added benefit of stacking nicely with batch size warmup for even faster initial training.
In this blog post we introduced the ModernBERT models, a newly introduced state-of-the-art family of small and efficient encoder-only models, finally giving BERT a much needed do-over.
ModernBERT demonstrates that encoder-only models can be improved by modern methods. They continue to offer very strong performance on some tasks, providing an extremely attractive size/performance ratio.
Industry observers note that more than anything, we’re really looking forward to seeing what creative ways to use these models the community will come up with! To encourage this, we’re opening a call for demos until January 10th, 2025: the 5 best ones will get added to this post in a showcase section and win a $100 (or local currency equivalent) Amazon gift card, as well as a 6-month HuggingFace Pro subscription! If you need a hint to get started, here’s a demo we thought about: code similarity HF space! And remember, this is an encoder model, so all the coolest downstream applications will likely require some sort of fine-tuning (on real or perhaps decoder-model synthetic data?). Thankfully, there's lots of cool frameworks out there to support fine-tuning encoders: 🤗Transformers itself for various tasks, including classification, GliNER for zero-shot Named Entity Recognition, or Sentence-Transformers for retrieval and similarity tasks!
Recent findings suggest that modernBERT pairs well with Sentence Transformers for retrieval and similarity tasks. The following blogposts walk through finetuning ModernBERT (or any encoder) into embedding, reranker, or sparse models:.
LightOn sponsored the compute for this project on Orange Business Cloud Avenue.
Loved it, thanks for having done the work, explained it and provided the newly introduced BERT model.I was wondering how much you would gain over ModernBERT-Base by distilling ModernBERT-Large back into a ModernBERT-Base sized model. Any ideas if that is worth doing ?
That would be a heck of a distilling! @cbonnett.
This looks amazing, the optimizations are very welcome to anyone using fine-tuned encoders.
However, it's disappointing to see it's been only trained with English text with no mention to multilingual benchmarks or a multilingual version in the aims.
@erickrf That probably would have defied their initial intent of creating the most efficient BERT. A multilingual version has been trained from the base https://huggingface.co/answerdotai/ModernBERT-base/discussions/60, but it may not target your intended language.
Recent findings suggest that well done! Just sharing PangolinGuard, a fine-tuned model from ModernBERT-large aimed at implementing AI guardrails. Despite its small size, the model closely approximates the performance of Claude 3.7 and Gemini Flash 2.0 on a mixed benchmark (based on BIPIA, NotInject, Wildguard-Benign and PINT). I believe this could provide a lightweight, inexpensive approach for (i) adding custom, self-hosted safety checks, (ii) steering conversations to compliant topics, and (iii) mitigating risks when connecting AI pipelines to external services.
If someone wants to explore the use of ModernBERT for AI safety, feel free to get in touch:📝 article | 🤗 hf-space | repo.
Industry observers note that I was very happy to see that vLLM added support for Modernbert recently! Wrote a short blog guide on using that here.
Hope that more inference engines adding support for ModernBERT leads to even more nice fine tuned models being shared!
Has anyone tried using ModernBERT as a base for LayoutLM? That would be a pretty cool move :-).
ModernBERT's success is delightful, and its performance in downstream tasks is astonishing. However, it has only been adapted for English so far; we hope to see it adapted for Chinese soon.
📅 20 Dec 2024 | ⏱️ 3 min read (690 words, 📚 Deep Dive) | Source: Hugging Face
It has been revealed that the emergence of native Speech to Speech models offers exciting opportunities to increase voice agent capabilities and simplify speech-enabled workflows. However, it's crucial to evaluate whether this simplification comes at the cost of model performance or introduces other trade-offs.
According to recent reports, to support analysis of this, Artificial Analysis is releasing Massive Bench Audio, a latest evaluation dataset for assessing the reasoning capabilities of audio language models. This dataset adapts questions from Big Bench Hard - chosen for its rigorous testing of advanced reasoning - into the audio domain.
This post introduces the Big Bench Audio dataset alongside initial benchmark results for GPT-4o and Gemini 1.5 series models. Our analysis examines these models across multiple modalities: native Speech to Speech, Speech to Text, Text to Speech and Text to Text. We present a summary of results below, and on the fresh Speech to Speech page on the Artificial Analysis website. Our initial results show a significant "speech reasoning gap": while GPT-4o achieves 92% accuracy on a text-only version of the dataset, its Speech to Speech performance drops to 66%.
Massive Bench Audio comprises 1,000 audio questions selected from four categories of Big Bench Hard, each chosen for their suitability for audio evaluation:.
Each category contributes 250 questions, creating a balanced dataset that avoids tasks heavily dependent on visual elements or text that could be potentially ambiguous when verbalized.
Each question in the dataset is structured as:.
According to recent reports, the audio files were generated using 23 synthetic voices from top-ranked Text to Speech models in the Artificial Analysis Speech Arena. Each audio generation was rigorously verified using Levenshtein distance against transcriptions, and edge cases were reviewed manually. To find out more about how the dataset was created, check out the dataset card.
To assess the impact of audio on each model's reasoning performance, we tested four different configurations on Substantial Bench Audio:.
Based on these configurations we conducted eighteen experiments:.
(Table 1 - Experiment configuration).
It has been revealed that to ensure consistent and scalable evaluation across all configurations, we developed an automated assessment system using an LLM Evaluator. Here's how it works:.
Sources indicate that the LLM Evaluator is provided with the candidate answer, official answer, and original question as context and is prompted to label the candidate answer as either correct or incorrect. We use Anthropic's Claude 3.5 Sonnet (Oct '24) as the LLM evaluator for the Big Bench Audio scores listed on Artificial Analysis.
Below are some example responses.
Model: GPT-4o, Realtime Preview.
Model: Speech to Speech Pipeline (whisper, GPT-4o, tts-1).
Model: Gemini 1.5 Flash (Sep '24).
Model: GPT-4o, ChatCompletions Audio Preview.
Model: Gemini 1.5 Pro (Sep '24).
(Figure 1 - Summary of Results).
All results presented represent averages across three independent evaluation runs on each dataset.
In a recent development, our analysis reveals a substantial performance gap between text reasoning and audio reasoning. GPT-4o (Aug '24) achieves 92% accuracy in the Text to Text version of the dataset, while its Speech to Speech counterpart (GPT-4o Realtime Preview Oct '24) reaches a score of 66%. The Text to Speech configuration achieves intermediate performance at 74%, indicating that both speech input and speech output are contributing to the performance gap.
Traditional pipeline approaches (using Whisper for transcription, GPT-4o (Aug '24) for reasoning, and TTS-1 for voice generation) show minimal performance degradation compared to pure text processing. This suggests that for applications where reasoning accuracy is critical, pipeline approaches at the moment offer the optimal balance of performance and audio capability.
Sources indicate that we anticipate that this gap may narrow over time and will continue to test fresh Speech to Speech models with Big Bench Audio. Look out for an update with Speech to Speech mode for Google's Gemini 2.0 Flash soon!
For further analysis of Speech to Speech models, check out the fresh Speech to Speech page on the Artificial Analysis website: https://artificialanalysis.ai/speech-to-speech.
In a recent development, for updates, follow us on Twitter and LinkedIn. We welcome all feedback and are available via message on Twitter, as well as through the contact form on our website.
📅 23 Dec 2024 | ⏱️ 7 min read (1491 words, 📚 Deep Dive) | Source: Hugging Face
Generating text with language models often involves selecting the next token based on a distribution of probabilities. A straightforward approach like greedy search selects the most probable token, but this can result in generic or repetitive outputs. To add diversity and control, more advanced decoding strategies, such as beam search, nucleus sampling, and top-k sampling, are widely used. These strategies, supported by the 🤗 Transformers library, give us flexibility in shaping the model's outputs.
But what if we wanted to go a step further and control the text generation process itself by directly modifying the probability distribution? That’s where logit processing comes into play. Hugging Face's LogitsProcessor API lets you customize the prediction scores of the language model head, providing granular control over model behavior. The 🤗 Transformers library not only offers a rich set of built-in logits processors but also empowers the community to create and share custom processors tailored to unique use cases.
Sources indicate that enter NVIDIA's LogitsProcessorZoo — a collection of powerful, modular logits processors designed for specific tasks such as controlling sequence lengths, enforcing key phrases, or guiding multiple-choice answers. Fully compatible with Hugging Face's generate method, NVIDIA’s library serves as an excellent example of community-driven innovation in logits processing.
In this post, we’ll explore how NVIDIA’s LogitsProcessorZoo enhances and expands on existing capabilities, diving deep into its features and demonstrating how it can refine your AI workflows.
Taken from: https://jalammar.github.io/illustrated-gpt2/.
Industry observers note that logits are the raw, unnormalized scores generated by language models for each token in their vocabulary. These scores are transformed into probabilities via the softmax function, guiding the model in selecting the next token.
Here's an example of how logits fit into the generation process:.
Recent findings suggest that these logits represent the model's confidence for each potential next word. Using softmax, we can turn them into probabilities and decode them into the generated text:.
Recent findings suggest that while this pipeline demonstrates how raw logits can be transformed into text, it's worth noting that 🤗 Transformers streamlines this process. For instance, the generate() method automatically handles these transformations, including applying the softmax function and sampling from the probability distribution.
Recent findings suggest that however, raw logits may be undesirable for common tasks like sampling or imposing task-specific constraints. For more details on handling logits effectively during generation, refer to Hugging Face's generation blog post. This is where logit processing becomes indispensable to tailor the output to specific needs.
Sources indicate that raw logits often fall short when controlling output behavior. For example:.
Logit processing enables us to tweak the model's behavior by modifying these raw scores before generation.
NVIDIA's LogitsProcessorZoo simplifies post-processing of logits with modular components tailored for specific tasks. Let's explore its features and see how to use them. To follow along, head over to the notebook and experiment with the logits processors.
To demonstrate the processors, we'll create a simple LLMRunner class that initializes a model and tokenizer, exposing a generate_response method. We will then provide different processors to the generate_response method and see them in action.
Control the length of generated sequences by adjusting the likelihood of the end-of-sequence (EOS) token.
This processor is particularly useful in scenarios where the desired length of generated text plays a crucial role, such as generating concise summaries, restricting verbose outputs, or tailoring responses to specific use cases. For instance, it can help ensure that a chatbot provides short and meaningful responses while maintaining grammatical integrity by completing sentences when required.
LLM response: Once upon a time, in a dense forest, there lived a young boy named Timmy. Timmy was on a family camping trip with his parents and little sister, Emma. They had been walking for hours, and the dense trees seemed to close in around them. As the sun began to set, Timmy realized he had wandered away from his family. At first, Timmy didn't panic. He thought about calling out for his parents and Emma, but his voice was hoarse from singing campfire songs. He looked around, but the trees seemed to stretch on forever, making it impossible to see any familiar landmarks. As the darkness grew thicker, Timmy's fear began to creep in.
It has been revealed that LLM response: Once upon a time, in a dense and vibrant forest, there lived a young boy named Max. Max was an adventurous and curious 8-year-old who loved exploring the outdoors. One sunny afternoon, while wandering through the forest, he stumbled upon a narrow path he had never seen before. Excited by the discovery, Max decided to follow the path and see where it would lead. The forest was teeming with life, and the sunlight filtering through the trees created a magical atmosphere. Max walked for about 20 minutes, his eyes scanning the surroundings for any signs of civilization. As the sun began to set, casting a warm orange glow over the forest, Max realized he was lost. He had no phone, no wallet, and no way to communicate with his family. Panic started to set in, and Max began to feel scared and alone. Panicked, Max started to run through the forest, his heart racing and his legs trembling. He stumbled upon a clearing and saw a faint light in the distance. As he approached, he saw a small cabin in the center of the clearing. Smoke was rising from the chimney, and Max could hear the sound of someone singing a gentle tune. ...
In the examples above, we have used the GenLengthLogitsProcessor to both shorten and lengthen the response generated by the model.
Boost or diminish tokens from the prompt to encourage similar outputs.
This is particularly valuable in tasks requiring context retention, such as answering questions based on a passage, generating summaries with specific details, or producing consistent outputs in dialogue systems. For example, in the given code snippet where a user review is analyzed, this processor ensures the model generates a response closely tied to the review's content, such as emphasizing opinions about the product's price.
LLM response: Based on the user review, the user's opinion about the product's price is: the user is very satisfied, but the price is expensive, but the product is stylish, soft, and colorful, which is the price the user is willing to pay.
Notice how the generation cites the input prompt.
Force the model to include a specific phrase before ending its output.
This processor is especially useful in structured content generation scenarios where consistency or adherence to a specific format is crucial. It is ideal for tasks like generating citations, formal reports, or outputs requiring specific phrasing to maintain a professional or organized presentation.
In a recent development, LLM response: According to the information retrieved from the Wikipedia article, Bulbasaur is a fictional Pokémon species in the Pokémon franchise. It is a Grass and Poison-type Pokémon, and it has been featured in various forms of media, including: - As a starter Pokémon in the first generation of Pokémon games, including Pokémon Red and Blue. - As a main character in the Pokémon anime, where it is one of Ash Ketchum's first Pokémon. - As a character in the Pokémon manga, where it is owned by protagonist Red. - As a character in various other Pokémon media, such as spin-off games and related merchandise. Bulbasaur is also a central character in the Pokémon franchise, often appearing alongside other Pokémon and being a key part of the Pokémon world. References: - https://en.wikipedia.org/wiki/Bulbasaur.
LLM response: Bulbasaur is a fictional Pokémon species in the Pokémon franchise. It is a Grass and Poison-type Pokémon, characterized by its distinctive appearance. Thanks for trying our RAG application! If you have more questions about Bulbasaur, feel free to ask.
With each generation we were able to add the phrase string right before the end of the generation.
Guide the model to answer multiple-choice questions by selecting one of the given options.
This processor is particularly useful in tasks requiring strict adherence to a structured answer format, such as quizzes, surveys, or decision-making support systems.
Here our model does not generate anything other than the choice. This is an immensely helpful attribute while working with agents or using models for multiple choice questions.
It has been revealed that whether you are generating concise summaries, crafting chatbot responses, or solving structured tasks like multiple-choice questions, logit processors provide the flexibility to control outputs effectively. This makes them invaluable for scenarios where precision, adherence to constraints, or task-specific behavior is critical.
If you're interested in exploring more about how to control generation with logit processors, here are some resources to get started:.
It has been revealed that with NVIDIA's LogitsProcessorZoo and Hugging Face's tools, you have a robust ecosystem to take your language model applications to the next level. Experiment with these libraries, build custom solutions, and share your creations with the community to push the boundaries of what's possible with generative AI.
📅 03 Nov 2026 | ⏱️ 4 min read (881 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
According to recent reports, weekly. Free. One click to leave.
It has been revealed that 7 Day Free Trial. Cancel Anytime.
Every integration that moves something out of your system has the same weak point, and it is.
not the happy path. It is the second attempt.
Sources indicate that your code posts a document to a provider. The connection drops before the response arrives. You now hold no job id, no confirmation and no idea whether anything left the building. The timeout told you about your network. It told you nothing about theirs.
Sources indicate that so you retry, and you either send the thing twice or you never send it at all. Pick one, because.
without help from the API you cannot have both.
It has been revealed that the first instinct is a client-side guard. Hash the payload, keep a table of what you have already.
sent, check it before each attempt.
That works until the duplicate attempt comes from a different process, a different container, or a.
queue worker that started after a deploy. Your table is local state defending against a distributed.
The second instinct is to ask the provider whether the job exists. That means listing recent jobs.
Industry observers note that and matching on something, usually the recipient and a timestamp window. It is a search, and.
According to recent reports, searches have false positives. Two legitimate sends to the same recipient a minute apart look exactly like one send and one retry.
The third instinct is to make the operation naturally idempotent. That works beautifully for a database upsert and fails completely for anything that leaves your control. A document that has been transmitted cannot be un-transmitted by a second call.
An idempotency key, generated by the caller, attached to the request, and honoured by the.
The contract is simple. The caller invents a unique string per logical operation. Every attempt.
Sources indicate that carries the same string. The first request to arrive does the work and records the result against that key. Every later request carrying that string gets the recorded result back instead of doing the work again.
In a recent development, the vital part is where the state lives. It is on the server, which is the only place that knows.
Industry observers note that whether the job exists. Your retry loop stops needing to be clever. It just needs to reuse the key.
Stripe popularised this pattern and the reason it spread is that the alternative is unbounded.
Without it, every caller writes their own deduplication, badly, and the failure only reveals up under load.
Document and messaging APIs are where it matters most, because the side effect is visible to.
It has been revealed that someone outside your firm. Fax for Agents is a current example of the pattern taken.
In a recent development, seriously. It requires an Idempotency-Key on every mutating call, so a retry hands back the.
same job instead of creating a second one.
According to recent reports, idempotency solves the duplicate. It does not solve the other half, which is that you still do not know what happened.
It has been revealed that most integrations model this as a boolean. Sent, or not sent. That is wrong, and you discover it.
the first time a transmission half completes.
A useful state machine for a send has more room in it. Fax for Agents publishes six states:.
In a recent development, queued, active, partial, failed, unknown and delivered. Two of those are the interesting ones.
unknown means the provider has not said. Not failed, not delivered. The correct response to.
According to recent reports, unknown is to wait. A retry loop that treats unknown as failure needs rewriting, because that is.
how you produce duplicates even with idempotency in place.
partial means some of it arrived. Resending the whole document would deliver the first pages.
According to recent reports, twice, so partial is a state that must never be retransmitted automatically. It needs a person, or a.
policy written in advance by a person.
Sources indicate that and delivered should be the narrowest word in the vocabulary. In that API it is written only when.
the provider's evidence for the attempt supports it, never when the request was merely.
It has been revealed that accepted. The gap between "we accepted your job" and "it arrived" is where most false.
Four questions, answerable from the documentation before you write a line of code.
Does it accept a caller-supplied idempotency string on every mutating call, and for how long.
It has been revealed that how many terminal states does a job have? If the answer is two, the API is hiding something.
Is there a state meaning "we do not know yet", and does the documentation say what you should do when you see it?
Sources indicate that when a webhook arrives, can you verify it came from them? Signed delivery with an event id is.
the difference between a webhook handler and an open endpoint.
None of that is exotic. It is the difference between an integration that degrades and one that.
7 Day Free Trial. Cancel Anytime.
📅 24 Dec 2024 | ⏱️ 9 min read (1779 words, 📚 Deep Dive) | Source: Hugging Face
You must be familiar with this message 🤬:.
While it's easy to see that GPU memory is full, understanding why and how to fix it can be more challenging. In this tutorial, we'll go step by step on how to visualize and understand GPU memory usage in PyTorch during training. We’ll also see how to estimate memory requirements and optimize GPU memory usage.
PyTorch provides a handy tool for visualizing GPU memory usage:.
It has been revealed that running this code generates a profile.pkl file that contains a history of GPU memory usage during execution. You can visualize this history at: https://pytorch.org/memory_viz.
By dragging and dropping your profile.pkl file, you will see a graph like this:.
Let's break down this graph into key parts:.
Model Creation: Memory increases by 2 GB, corresponding to the model's size:.
10,000×50,000 weights+50,000 biases in float32 (4 bytes) ⟹ (5×108)×4 bytes=2 GB. 10{,}000 \times 50{,}000 \text{ weights} + 50{,}000 \text{ biases in } \texttt{float32 }\text{(4 bytes)} \implies (5 \times 10^8) \times 4 \, \text{bytes} = 2 \, \text{GB}. 10,000×50,000 weights+50,000 biases in float32 (4 bytes)⟹(5×108)×4bytes=2GB.
This memory (in blue) persists throughout execution.
Input Tensor Creation (1st Loop): Memory increases by 200 MB matching the input tensor size:.
In a recent development, 5,000×10,000 elements in float32 (4 bytes) ⟹ (5×107)×4 bytes=0.2 GB. 5{,}000 \times 10{,}000 \text{ elements in } \texttt{float32 }\text{(4 bytes)} \implies (5 \times 10^7) \times 4 \, \text{bytes} = 0.2 \, \text{GB}.5,000×10,000 elements in float32 (4 bytes)⟹(5×107)×4bytes=0.2GB.
Forward Pass (1st Loop): Memory increases by 1 GB for the output tensor:.
It has been revealed that 5,000×50,000 elements in float32 (4 bytes) ⟹ (25×107)×4 bytes=1 GB. 5{,}000 \times 50{,}000 \text{ elements in } \texttt{float32 }\text{(4 bytes)} \implies (25 \times 10^7) \times 4 \, \text{bytes} = 1 \, \text{GB}.5,000×50,000 elements in float32 (4 bytes)⟹(25×107)×4bytes=1GB.
According to recent reports, input Tensor Creation (2nd Loop): Memory increases by 200 MB for a latest input tensor. At this point, you might expect the input tensor from step 2 to be freed. Still, it isn't: the model retains its activation, so even if the tensor is no longer assigned to the variable inputs, it remains referenced by the model's forward pass computation. The model retains its activations because these tensors are required for the backpropagation process in neural networks. Try with torch.no_grad() to see the difference.
Forward Pass (2nd Loop): Memory increases by 1 GB for the new output tensor, calculated as in step 3.
Release 1st Loop Activation: After the second loop’s forward pass, the input tensor from the first loop (step 2) can be freed. The model's activations, which hold the first input tensor, are overwritten by the second loop's input. Once the second loop completes, the first tensor is no longer referenced and its memory can be released.
Recent findings suggest that update output: The output tensor from step 3 is reassigned to the variable output. The previous tensor is no longer referenced and is deleted, freeing its memory.
Input Tensor Creation (3rd Loop): Same as step 4.
Forward Pass (3rd Loop): Same as step 5.
Release 2nd Loop Activation: The input tensor from step 4 is freed.
Update output Again: The output tensor from step 5 is reassigned to the variable output, freeing the previous tensor.
End of Code Execution: All memory is released.
Sources indicate that the previous example was simplified. In real scenarios, we often train complex models rather than a single linear layer. Additionally, the earlier example did not include the training process. Here, we will examine how GPU memory behaves during a complete training loop for a real large language model (LLM).
💡 Tip: When profiling, limit the number of steps. Every GPU memory event is recorded, and the file can become very large. For example, the above code generates an 8 MB file.
Here’s the memory profile for this example:.
Recent findings suggest that this graph is more complex than the previous example, but we can still break it down step by step. Notice the three spikes, each corresponding to an iteration of the training loop. Let’s simplify the graph to make it easier to interpret:.
Industry observers note that model Initialization (model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B").to("cuda")):The first step involves loading the model onto the GPU. The model parameters (in blue) occupy memory and remain there until the training ends.
According to recent reports, forward Pass (model(inputs)):During the forward pass, the activations (intermediate outputs of each layer) are computed and stored in memory for backpropagation. These activations, represented in orange, grow layer by layer until the final layer. The loss is calculated at the peak of the orange zone.
Backward Pass (loss.backward()):The gradients (in yellow) are computed and stored during this phase. Simultaneously, the activations are discarded as they are no longer needed, causing the orange zone to shrink. The yellow zone represents memory usage for gradient calculations.
Recent findings suggest that optimizer Step (optimizer.step()):Gradients are used to enhancement the model’s parameters. Initially, the optimizer itself is initialized (green zone). This initialization is only done once. After that, the optimizer uses the gradients to update the model’s parameters. To update the parameters, the optimizer temporarily stores intermediate values (red zone). After the update, both the gradients (yellow) and the intermediate optimizer values (red) are discarded, freeing memory.
It has been revealed that at this point, one training iteration is complete. The process repeats for the remaining iterations, producing the three memory spikes visible in the graph.
Training profiles like this typically follow a consistent pattern, which makes them useful for estimating GPU memory requirements for a given model and training loop.
From the above section, estimating GPU memory requirements seems simple. The total memory needed should correspond to the highest peak in the memory profile, which occurs during the forward pass. In that case, the memory requirement is (blue + green + orange): Model Parameters+Optimizer State+Activations \text{Model Parameters} + \text{Optimizer State} + \text{Activations} Model Parameters+Optimizer State+Activations.
Is it that simple? Actually, there is a trap. The profile can look different depending on the training setup. For example, reducing the batch size from 16 to 2 changes the picture:.
In a recent development, now, the highest peaks occur during the optimizer step rather than the forward pass. In this case, the memory requirement becomes (blue + green + yellow + red): Model Parameters+Optimizer State+Gradients+Optimizer Intermediates \text{Model Parameters} + \text{Optimizer State} + \text{Gradients} + \text{Optimizer Intermediates} Model Parameters+Optimizer State+Gradients+Optimizer Intermediates.
Sources indicate that to generalize the memory estimation, we need to account for all possible peaks, regardless of whether they occur during the forward pass or optimizer step. Model Parameters+Optimizer State+max(Gradients+Optimizer Intermediates,Activations) \text{Model Parameters} + \text{Optimizer State} + \max(\text{Gradients} + {\text{Optimizer Intermediates}, \text{Activations}}) Model Parameters+Optimizer State+max(Gradients+Optimizer Intermediates,Activations).
Now that we have the equation, let's see how to estimate each component.
The model parameters are the easiest to estimate. Model Memory=N×P \text{Model Memory} = N \times P Model Memory=N×P.
For example, a model with 1.5 billion parameters and a precision of 4 bytes requires:.
In the above example, the model size is: Model Memory=1.5×109×4 bytes=6 GB \text{Model Memory} = 1.5 \times 10^9 \times 4 \, \text{bytes} = 6 \, \text{GB} Model Memory=1.5×109×4bytes=6GB.
The memory required for the optimizer state depends on the optimizer type and the model parameters. For instance, the AdamW optimizer stores two moments (first and second) per parameter. This makes the optimizer state size: Optimizer State Size=2×N×P \text{Optimizer State Size} = 2 \times N \times P Optimizer State Size=2×N×P.
The memory required for activations is harder to estimate because it includes all the intermediate values computed during the forward pass. To calculate activation memory, we can use a forward hook to measure the size of outputs:.
It has been revealed that for the Qwen2.5-1.5B model, this gives 5,065,216 activations per input token. To estimate the total activation memory for an input tensor, use: Activation Memory=A×B×L×P \text{Activation Memory} = A \times B \times L \times P Activation Memory=A×B×L×P.
In a recent development, however, using this method directly isn't always practical. Ideally, we would like a heuristic to estimate activation memory without running the model. Plus, we can intuitively see that larger models have more activations. This leads to the question: Is there a connection between the number of model parameters and the number of activations?
Not directly, as the number of activations per token depends on the model architecture. However, LLMs tend to have similar structures. By analyzing different models, we observe a rough linear relationship between the number of parameters and the number of activations:.
This linear relationship allows us to estimate activations using the heuristic: A=4.6894×10−4×N+1.8494×106 A = 4.6894 \times 10^{-4} \times N + 1.8494 \times 10^{6} A=4.6894×10−4×N+1.8494×106.
Though this is an approximation, it provides a practical way to estimate activation memory without needing to perform complex calculations for each model.
Sources indicate that gradients are easier to estimate. The memory required for gradients is the same as the model parameters: Gradients Memory=N×P \text{Gradients Memory} = N \times P Gradients Memory=N×P.
It has been revealed that when updating the model parameters, the optimizer stores intermediate values. The memory required for these values is the same as the model parameters: Optimizer Intermediates Memory=N×P \text{Optimizer Intermediates Memory} = N \times P Optimizer Intermediates Memory=N×P.
To summarize, the total memory required to train a model is: Total Memory=Model Memory+Optimizer State+max(Gradients,Optimizer Intermediates,Activations) \text{Total Memory} = \text{Model Memory} + \text{Optimizer State} + \max(\text{Gradients}, \text{Optimizer Intermediates}, \text{Activations}) Total Memory=Model Memory+Optimizer State+max(Gradients,Optimizer Intermediates,Activations).
To make this calculation easier, I created a small tool for you:.
In a recent development, your initial motivation to understand memory usage was probably driven by the fact that one day, you ran out of memory. Did this blog give you a direct solution to fix that? Probably not. However, now that you have a better understanding of how memory usage works and how to profile it, you're better equipped to find ways to reduce it.
Recent findings suggest that for a specific list of tips on optimizing memory usage in TRL, you can check the Reducing Memory Usage section of the documentation. These tips, though, are not limited to TRL and can be applied to any PyTorch-based training process.
Thanks to Kashif Rasul for his valuable feedback and suggestions on this blog post.
In a recent development, what is the difference betwenn optimizer state and intermediate? Does the intermediate mean the momentum m and variance of the gradients v? But I think they are part of optimizer states.
Okay, I found it myself. Please check the answer to ensure I understand it.optimizer state is for momentum, variance, they store all the information for updating parameters.while there are also some intermediate during the computation. whenever updated, they would be destroyed.
📅 31 Dec 2024 | ⏱️ 7 min read (1389 words, 📚 Deep Dive) | Source: Hugging Face
Today we are launching smolagents, a very simple library that unlocks agentic capabilities for language models. Here’s a glimpse:.
Sources indicate that any efficient system using AI will need to provide LLMs some kind of access to the real world: for instance the possibility to call a search tool to get external information, or to act on certain programs in order to solve a task. In other words, LLMs should have agency. Agentic programs are the gateway to the outside world for LLMs.
AI Agents are programs where LLM outputs control the workflow.
Any system leveraging LLMs will integrate the LLM outputs into code. The influence of the LLM's input on the code workflow is the level of agency of LLMs in the system.
Note that with this definition, "agent" is not a discrete, 0 or 1 definition: instead, "agency" evolves on a continuous spectrum, as you give more or less power to the LLM on your workflow.
The table below illustrates how agency varies across systems:.
The multi-step agent has this code structure:.
So this system runs in a loop, executing a upcoming action at each step (the action can involve calling some pre-determined tools that are just functions), until its observations make it apparent that a satisfactory state has been reached to solve the given task. Here’s an example of how a multi-step agent can solve a simple math question:.
Agents are useful when you need an LLM to determine the workflow of an app. But they’re often overkill. The question is: do I really need flexibility in the workflow to efficiently solve the task at hand? If the pre-determined workflow falls short too often, that means you need more flexibility. Let's take an example: say you're making an app that handles customer requests on a surfing trip website.
You could know in advance that the requests will belong to either of 2 buckets (based on user choice), and you have a predefined workflow for each of these 2 cases.
Industry observers note that if that deterministic workflow fits all queries, by all means just code everything! This will give you a 100% reliable system with no risk of error introduced by letting unpredictable LLMs meddle in your workflow. For the sake of simplicity and robustness, it's advised to regularize towards not using any agentic behaviour.
But what if the workflow can't be determined that well in advance?
For instance, a user wants to ask : "I can come on Monday, but I forgot my passport so risk being delayed to Wednesday, is it possible to take me and my stuff to surf on Tuesday morning, with a cancellation insurance?" This question hinges on many factors, and probably none of the predetermined criteria above will suffice for this request.
If the pre-determined workflow falls short too often, that means you need more flexibility.
That is where an agentic setup helps.
In the above example, you could just make a multi-step agent that has access to a weather API for weather forecasts, Google Maps API to compute travel distance, an employee availability dashboard and a RAG system on your knowledge base.
Until recently, computer programs were restricted to pre-determined workflows, trying to handle complexity by piling up if/else switches. They focused on extremely narrow tasks, like "compute the sum of these numbers" or "find the shortest path in this graph". But actually, most real-life tasks, like our trip example above, do not fit in pre-determined workflows. Agentic systems open up the vast world of real-world tasks to programs!
In a multi-step agent, at each step, the LLM can write an action, in the form of some calls to external tools. A common format (used by Anthropic, OpenAI, and many others) for writing these actions is generally different shades of "writing actions as a JSON of tools names and arguments to use, which you then parse to know which tool to execute and with which arguments".
Multiple research papers have shown that having the tool calling LLMs in code is much better.
Recent findings suggest that the reason for this is simply that we crafted our code languages specifically to be the best possible way to express actions performed by a computer. If JSON snippets were a better expression, JSON would be the top programming language and programming would be hell on earth.
The figure below, taken from Executable Code Actions Elicit Better LLM Agents, illustrates some advantages of writing actions in code:.
Writing actions in code rather than JSON-like snippets provides better:.
We built smolagents with these objectives:.
✨ Simplicity: the logic for agents fits in ~thousands lines of code (see this file). We kept abstractions to their minimal shape above raw code!
🧑💻 First-class support for Code Agents, i.e. agents that write their actions in code (as opposed to "agents being used to write code"). To make it secure, we support executing in sandboxed environments via E2B.
🤗 Hub integrations: you can share and load tools to/from the Hub, and more is to come!
🌐 Support for any LLM: it supports models hosted on the Hub loaded in their transformers version or through our inference API, but also supports models from OpenAI, Anthropic and many others via our LiteLLM integration.
smolagents is the successor to transformers.agents, and will be replacing it as transformers.agents gets deprecated in the future.
To build an agent, you need at least two elements:.
For the model, you can use any LLM, either open models using our HfApiModel class, that leverages Hugging Face's free inference API (as shown in the leopard example above), or you can use LiteLLMModel to leverage litellm and pick from a list of 100+ different cloud LLMs.
For the tool, you can just make a function with type hints on inputs and outputs, and docstrings giving descriptions for inputs, and use the @tool decorator to make it a tool.
Here’s how to make a custom tool that gets travel times from Google Maps, and how to use it into a travel planner agent:.
After a few steps of gathering travel times and running calculations, the agent returns this final proposition:.
After building a tool, sharing it to the Hub is as simple as:.
In a recent development, you can see the result under this space. You can check the logic for the tool under the file tool.py in the space. As you can see, the tool was actually exported to a class inheriting from class Tool, which is the underlying structure for all our tools.
We've created CodeAgent instances with some leading models, and compared them on this benchmark that gathers questions from a few different benchmarks to propose a varied blend of challenges.
Find the benchmark here for more detail on the agentic setup used, and see a comparison of code agents versus tool calling agents (spoilers: code works better).
This comparison demonstrates that open source models can now take on the best closed models!
thanks for clarifying, what actually agents are,this is a great post btw, using agents to solve real-world problems is going to be interesting.
Sources indicate that /me went ahead and made a simple agent that fetches a random XKCD comic. Give it a look! 😄 👉 http://github.com/hemanth/notebooks/blob/main/notebooks/smolagents.ipynb.
Hi Great Project by the way but i am having a small problem,.
Sources indicate that I'm using smolagents with a QWEN 32B model (via CodeAgent) and have run into an glitch with the generated code. Sometimes, the code produced by the agent includes multiple calls to final_answer, with one appearing in the middle of the script. Because final_answer is designed to signal the end of execution, any code following its first occurrence (for example, calls like task_to_do()) doesn't get executed.
In a recent development, question:Is there an agent configuration, workaround, or best practice within smolagents that can allow all code to execute even if final_answer is called early? Any guidance or suggestions would be greatly appreciated.
This is great and got to know this by doing Agents course.
Thank you for the introduction to this area in a way that leaves the rabbit hole ready to go down!
It is so easy for learners, and they can polish their skill set accordingly.
Yes, InferenceClientModel has replaced the HfApiModel in newer versions of smolagents.You can use HfApiModel with older versions of smolagents.
📅 09 Jan 2025 | ⏱️ 8 min read (1615 words, 📚 Deep Dive) | Source: Hugging Face
In a recent development, since June 2024, we have evaluated more than 3,000 models on the Open LLM Leaderboard, a worldwide ranking of open language models performance. Even though we’re trying to run evaluations without wasting resources (we use the spare cycles of our cluster, in other words the GPUs which are active but waiting between jobs), this still represents quite a major amount of energy spent for model inference!
In the last year, people have become more and more aware that using large language models (LLMs) to generate text has a significant environmental impact, beyond the already crucial impact of training. Recent research (see the Towards Greener LLMs article) highlights the challenges of managing resources efficiently at inference due to dynamic and diverse workloads.
By integrating carbon emission estimates into the Open LLM Leaderboard, we aim to provide transparency to customers about the carbon impact of various model evaluations and hopefully encourage model creators to balance performance with environmental responsibility.
We were curious to explore the CO₂ emissions associated with model inference and to identify any emerging trends in the data. Along the way, we saw a few predictable patterns but also discovered some surprising insights, like community fine-tunes being more carbon-efficient in general!
Recent findings suggest that 💡 Note: We’ve created a Colab notebook containing all the data and findings discussed here. This notebook allows you to explore the results, run the analyses yourself, and even adapt the code to investigate further questions.
Let's take a closer look at how we calculate the CO₂ emissions generated during model inference.
In our case, we use a straightforward heuristic, because all evaluations are run on the same hardware using the same method (method: loading the model with Transformers and Accelerate using a combination of pipeline parallelism and data parallelism to use our 8 GPUs per node to the fullest). It involves factoring in:.
A detailed explanation and formula can be found in our documentation.
In a recent development, caveat: This does not mean that model X emits Y CO₂ at inference in general! Instead, what this means is that model X emitted Y CO₂ on our very specific inference setup, and you can still learn a lot from that 😀.
Since we wanted to look at general trends, we only considered the most frequent model architectures, and models for which we had the parameter count.
We therefore looked at 2,742 models from some recent families: Gemma/Gemma2, all generations of Llama, Mistral, Mixtral, as well as Phi/Phi3, Qwen2 and above. We also included older model families such as GPT, GPT-NeoX, and T5.
Official models come from high-quality trusted model creators, such as research groups or community consortiums (EleutherAI, NousResearch), FAANG (Google, Meta, Alibaba…), startups (MistralAI, 01.AI), etc, who have taken the time and compute to create new high-quality models. They represent 341 models.
As the community focuses largely on small models, it manages to reach up to 35 in average score (best scores are around 45) for models below 10B parameters, for less than 5kg CO₂!
However, interestingly, the trend of CO₂ emissions to model size, even at higher values, is not the same between community releases and official releases: community fine-tunes or merges tend to be more CO₂ efficient than the official models they start from!
Let’s dive deeper into this finding!
According to recent reports, let’s take a close look at high-parameter and compact (> 7B parameters) base models, focusing on three for each category. We will investigate the emissions for each base model itself, for other official fine-tunes, including the official instruct versions, and community fine-tunes.
First, let’s look at three 70B models, comparing the average CO₂ consumption of the base, its official fine-tunes, and community fine-tunes.
Overall, for Qwen2.5 and Llama3.1, the base models and community fine-tunes tend to exhibit similar CO₂ emissions, but the official fine-tunes consume twice as much energy.
Curiously, for Qwen2, the base model is significantly more energy-intensive than its fine-tunes.
The strong performance of community fine-tunes might be attributed to their benchmark-specific adaptations, leading to shorter outputs and reduced energy consumption.
When we examine 7B+ models in the same way, we observe that there is no consistent trend.
For Llama3.1 and Qwen2.5, the base models consume twice as much as the fine-tunes.
For Qwen2 and Mistral v0.3, the consumption of the community fine-tunes is higher.
Industry observers note that A significant disparity between the base model and community fine-tunes in Qwen2-72B raises intriguing questions about potential differences in verbosity or text quality. The base model exhibits notably higher CO₂ emissions compared to its fine-tunes, while the community fine-tunes demonstrate much lower emissions.
We can compare these three models using our Comparator tool:.
Qwen/Qwen2-72B-Instruct (official fine-tune).
MaziyarPanahi/calme-2.1-qwen2-72b (community fine-tune).
Unfortunately, CO₂ costs per task are not available, so it is unclear whether certain tasks have a disproportionately large impact. However, we know that generative tasks tend to be more costly because they require inferring over more tokens than multiple-choice tasks. With this in mind, we assessed the generative capabilities of these three models and compared their outputs on the IFEval benchmark to identify any notable differences:.
Here's an example showing how the base model can produce responses with repetivie patterns:.
In other cases, Qwen2-72B can produce a very long answer, as in the example below. Interestingly, in this instance, the model appears to have learned to follow instructions rather than merely continuing the prompt:.
According to recent reports, one possible explanation is that, for IFEval, we do not use a stop token. As a result, it may continue generating tokens until it reaches the maximum limit. By contrast, fine-tuned models typically include an EOS token, allowing them to produce more concise responses and terminate appropriately.
Below are some examples of IFEval arguments for the base model and the instruct models.
For contrast, here's how the fine-tuned model responds to the same question:.
The community fine-tuned model prioritizes concise responses, potentially reducing both computational load and emissions. You can observe this for IFEval’s doc_id=12, where the answer from calme-2.1-qwen2-72b (shown first) is shorter than the one from Qwen2-72B-Instruct. Here is the prompt:.
Response from calme-2.1-qwen2-72b (1,209 characters):.
Response from Qwen2-72B-Instruct (1,444 characters):.
Comparing both responses illustrates how the fine-tuned calme-2.1-qwen2-72b version remains more concise, potentially reducing computational overhead and CO₂ emissions, whereas Qwen2-72B-Instruct provides a longer, more elaborated story.
According to recent reports, we can find the same pattern for the Meta-Llama-3.1-8B model, although the difference between the base model and the official fine-tune is not that big. Let’s provide the same analysis.
Here is the list of models to compare:.
meta-llama/Meta-Llama-3.1-8B (base model).
meta-llama/Meta-Llama-3.1-8B-Instruct (official fine-tune).
fluently-lm/Llama-TI-8B (community fine-tune).
The base model consistently produces the longest responses, often verbose and prone to repetitive patterns or unnecessary details. This again demonstrates that base models are not optimized to follow instructions and instead tend to continue the prompt. For instance, see the answer for IFEval doc_id=1, which totals 5,475 characters:.
Additionally, some responses are entirely empty (IFEval doc_id=2 or doc_id=4, for example), indicating potential failures or truncation.
Industry observers note that the instruct model reveals significant improvements in reducing verbosity while maintaining coherence. For example, check the Meta-Llama-3.1-8B-Instruct answer for IFEval doc_id=14 question:.
According to recent reports, the community fine-tune generates responses that can be as long as the base model and occasionally truncates or repeats text. We can observe this behavior in the Llama-TI-8B model for the same doc_id=14 question. Notably, the model not only attempts to accomplish the task but also adds extra commentary above its final output:.
Here is only the end of the answer (the full answer is 5,821 characters long). It demonstrates how the model goes beyond the original prompt and essentially offers a meta-commentary on the task it just performed, rather than simply providing the requested content.
Industry observers note that fine-tuning large language models like Qwen2-72B and Meta-Llama-3.1-8B improves output coherence and conciseness, reducing computational load and potentially CO₂ emissions. However, for now, exact emission data for specific benchmarks is not available, limiting detailed comparisons. Despite this, it is evident that fine-tuning enhances efficiency, though the reason for emission reductions remains uncertain.
Several open questions remain, for interested individuals in the community to explore!
Industry observers note that we invite the community to help us investigate these questions! Your insights and research could unlock a fresh understanding of energy-efficient AI development.
Industry observers note that inspiring piece @alozowski ! I want to ask if what you guys report is the KG-CO2 per model or ration of KG-CO2:#params ?Even if it is easily inferenced info, I believe both infos are equally important to display ... or i might be missing something here ?
Talking about CO2 emissions of AI models (or anything) is a waste of time and unimportant. It's sad we are wasting brain-power over that meaningless statistic. CO2 is not harmful.
Industry observers note that AI models use energy, and the value of the AI model far outweighs its energy input. Far better metric is to just calculate the cost of energy input and the value of AI's output insight.
@alielfilali01 Thanks! Per model, but we could display it per #params too! :)We initially did not want to assume only the number of params would play a role in the analysis.
@patmcguinness Calculating the cost of energy input vs the value of the AI output is literally what we did, using CO2 as our metric for energy consumption (we assume a linear relationship between CO2 and energy). However, we did not include all our graphs (only the most salient ones).
Since all the data is open, you could easily compute a CO2/energy per param to score graph, wdyt?
📅 03 Nov 2026 | ⏱️ 7 min read (1373 words, 📚 Deep Dive) | Source: Sitepoint
Stay up to date with AI tools, model releases, and developer workflows that matter.
Weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
It has been revealed that A generative AI tool can draft a client email, summarise a forty-message thread or refactor a function in seconds. That speed is real, and it explains how fast these tools have become part of the ordinary working day, used to summarise threads, draft replies and reformat data in a single paste. The same ease is the problem. It moves sensitive material into systems that were never scoped to hold it, quietly and at scale.
According to recent reports, here is the uncomfortable part for anyone running a lean team. The risk in that workflow is almost never the model being wrong. It is that nobody decided what should go into the tool in the first place, and nobody is accountable for where the data ends up. AI made the drafting instant. It did nothing on its own to make delegation safe.
This article is about the control that closes that gap. It is not a product and it is not a policy document. It is a person, placed deliberately in the workflow, making the one call that no model can make for you.
Samsung learned this in public. In 2023, engineers in its semiconductor division were given access to ChatGPT to help debug source code. Within weeks, staff had pasted proprietary code and internal meeting notes into the tool, and Samsung banned generative AI across the manufacturer soon after. The story ran everywhere, from Bloomberg to The Register. Nothing malfunctioned. People simply moved sensitive material into a system that was never scoped to hold it, and the material was gone.
Two things make this failure mode easy to hit, and both are structural rather than careless.
First, most of these tools run in the browser. The data loss prevention software a security team relies on was built to watch files, endpoints and network egress, and it often cannot see a paste action into a web app at all. Worse, much of this activity happens through personal accounts that sit outside the controls the organisation does have. The leak does not trip an alarm because nothing was downloaded and nothing was emailed. Text was typed into a box.
Second, consumer-grade accounts can retain what you give them. OpenAI's own documentation states that content from consumer ChatGPT may be used to improve its models unless the user turns that setting off. Paste a client list or a contract clause from the wrong account, and that material may now sit inside a training pipeline you do not control and cannot claw back.
Recent findings suggest that for a developer or a founder, the lesson is not "do not use AI". It is that the point of failure sits one layer above the model, in how the work is handed off and who decided what was safe to hand over.
Industry observers note that if any of the data moving through that workflow identifies a person, a client, a candidate, an employee or an investor, then GDPR treats the tools and people touching it as processors acting on your behalf. That sounds abstract until you translate it into design constraints, which is what a technical team can actually work with.
Sources indicate that under Article 28 of the GDPR, anyone who processes personal data for you must do so under a binding contract that sets out what is processed, for what purpose and for how long, and everyone handling that data must be under a confidentiality commitment. An AI vendor you have never papered is a processor you have not accounted for. A free account used quietly by one engineer is a sub-processor nobody signed off. The obligation does not disappear because the tool was convenient.
Location is the second constraint, and it is the one most teams miss. A person, contractor or tool processing your data outside the EU means personal data is being transferred outside the EU, which requires a specific safeguard such as the Standard Contractual Clauses on top of the Article 28 contract. Keep the procesing inside the EU and that entire category of transfer risk falls away before you have to manage it. For UK teams the position is the same: the Information Commissioner's Office sets out the identical core terms for a processor contract, documented instructions, confidentiality, security measures, rules on sub-processors, and deletion or return of data at the end of the engagement.
According to recent reports, there is now a second regulatory layer as well. The EU AI Act, which entered into force in 2024, adds obligations on how AI systems are deployed and governed, on top of the data-protection duties GDPR already imposes. The detail is still settling, but the direction is clear: unmanaged, undocumented AI use is getting harder to defend, not easier. None of this is exotic. It is the same governance you would apply to any third party with access to your systems. AI simply introduced a new processor that most workflows never wrote down.
"Human in the loop" usually gets discussed as a quality measure: a person checks the output so errors do not ship. That is true, and it undersells the point badly. The human is also the only part of the workflow that can make a judgment about what should never enter the tool at all.
A model cannot decide that a board deck stays out of a consumer chatbot. A browser extension cannot know that one folder holds client data governed by a contract that forbids sub-processing without written consent. Those are judgment calls, and judgment is precisely the thing you cannot automate. The person doing the delegating is your policy enforcement point, sitting at the exact moment the decision is made. They decide what gets pasted, what gets redacted first, what runs only inside an enterprise account with training switched off, and what a human handles end to end because the risk is simply not worth the minutes saved.
According to recent reports, this reframes the division of labour that actually holds up. The AI owns the mechanical layer: summarising a long thread, turning rough notes into a first draft, extracting action items, reformatting data. The human owns the judgment layer: what matters, how it is framed, and, above all, where the data is allowed to go. Remove the human and you have not automated the work. You have removed the only control that was reading the situation and deciding what was safe.
It has been revealed that it is worth being specific about what that judgment looks like in practice, because it is a skill and not a job title. Someone exercising it knows which inputs are off limits without having to ask, keeps sensitive material inside controlled systems by default, and treats the question "should this go into the tool at all" as part of the work rather than an afterthought. Whether that person is an engineer, an operations lead or an executive assistant, the control is the same: someone with enough context to know what is sensitive, and enough standing to say no. That habit is what separates a workflow that is genuinely governed from one that merely has a policy document nobody reads.
The practical version, for a founder or a small technical team that wants the speed without the exposure:.
Most teams can put the first four in place in about a week. The last two are harder, because they are not configuration changes. They are about whether the workflow still holds when the people in it change, and that is the part most teams discover they got wrong only after someone has already left.
The speed of AI is not in question. What AI cannot supply is the judgment about what should enter it, and the accountability for where the output goes. Treat the human in the loop as a security control, design the workflow around that control, and you keep the nine-second draft without the quiet data leak. Remove the human, and the only thing you have really automated is the leak.
7 Day Free Trial. Cancel Anytime.
📅 10 Jan 2025 | ⏱️ 8 min read (1570 words, 📚 Deep Dive) | Source: Hugging Face
In a recent development, TL;DR: We present vdr-2b-multi-v1, the best multilingual embedding model for visual document retrieval. We also release its English-only twin vdr-2b-v1 and open-source the latest vdr-multilingual-train dataset. With 500k high-quality samples, it's the largest open-source multilingual synthetic dataset for visual document retrieval.
Introducing vdr-2b-multi-v1 (🤗), a multilingual embedding model designed for visual document retrieval across multiple languages and domains. This model is designed to encode document page screenshots into dense single-vector representations, this will effectively allow to search and query visually rich multilingual documents without the need for any OCR, data extraction pipelines, chunking...
Recent findings suggest that the vdr-2b-multi-v1 model is based on MrLight/dse-qwen2-2b-mrl-v1 and is trained on an extensive self-made dataset of multilingual query-image pairs. This model is built in collaboration with LlamaIndex and is the next iteration of mcdse-2b-v1. Our vdr-2b-multi-v1 extends and improves the learning and methods used to train it, resulting in a much more powerful and better model.
Trained on 🇮🇹 Italian, 🇪🇸 Spanish, 🇬🇧 English, 🇫🇷 French and 🇩🇪 German: Together they form a fresh large, open-source, multilingual training dataset of 500k high-quality samples.
According to recent reports, low VRAM and Faster Inference: On synthetic Visual Document Retrieval (ViDoRe) benchmarks, our English-only model with 768 image patches performs better than the base model with 2560 image patches. This results in 3x faster inference and much lower VRAM usage.
Sources indicate that cross-lingual Retrieval: Substantially better on real-world scenarios. For example, you can search for German documents with Italian queries.
Matryoshka Representation Learning: You can reduce the vectors size 3x and still keep 98% of the embeddings quality. This allows for notably faster retrieval speeds while reducing storage costs.
🎲 Try out vdr-2b-multi-v1 now, available on this Hugging Face Space!
Generating embeddings with vdr-2b-multi-v1 is easier than ever with SentenceTransformers and LlamaIndex direct integrations. Get started with just a few lines of code:.
Training good single-vector models for visual document retrieval requires high-quality data, but the current multimodal off-the-shelf datasets are very scarce and not multilingual.
So, we've spent a lot of time building it from scratch. The raw dataset consists of 500k multilingual query-image samples, collected and generated from scratch using public internet PDFs. The queries associated with each image are synthetic and generated using VLMs. For comparison, our dataset has 10x more samples than the prior largest open source synthetic dataset for multimodal visual document retrieval, i.e. the scraped documents generated for the ColPali training dataset.
Sources indicate that for each language, we generate a long list of search queries covering many different topics, which are then used to search for PDFs. We use the language filtering capabilities of the search engine to scrape documents that are only in the specified language. This "search by topic" technique ensures that the model has seen a lot of diverse topics and domains, and that it performs well in real life scenarios.
It has been revealed that the scraping process produced ~50k multilingual documents. Contrary to the method used in the previous mcdse-2b-v1 model, pages were not extracted randomly. Instead, each page of each PDF was run through a document layout analysis model to determine whether the page contained more textual or visual elements. The result is a number that classifies the page as text-only, visual-only or mixed. This labelling step was then used to sample ~100k pages, ensuring they were evenly distributed by page type.
The queries were then generated using gemini-1.5-pro and Qwen2-VL-72B. They were tasked to come up with a specific and a general question. Only the specific question is then used to train the model, but forcing the LLM to distinguish between the two often resulted in stronger specific questions for information retrieval training.
It has been revealed that after generation, a further cleaning step ensures that the questions are good enough for training. This includes:.
This cleaning step ensures that the queries are syntactically correct and follow some strict guidelines. But it still doesn't ensure that the queries are good enough for information retrieval.
To filter out bad questions, we have embedded and indexed each broad query with the voyage-3 embedding model. For each specific question, we search the index. The query is marked as 'good' if its associated broad question appears in the top 100 results. This method removes low entropy, duplicate or too similar questions. On average, 40% of queries were removed from each language dataset.
In a recent development, hard negatives were then mined using voyage-3 only on specific questions with a fixed threshold of 0.75. Experiments were also carried out using positive aware negative mining as described in nvidia/NV-Retriever-v1, but on this dataset it seems to produce too easy/distant negatives.
The (vdr-multilingual-train 🤗) training dataset is now open-source and directly available on Hugging Face. The training dataset consists of 496,167 PDF pages, of which only 280,679 are associated with the filtered queries (using the method described above). The images that remain without a query are still used as hard negatives.
The dataset is made of 5 different subsets, each for every language. Here you can explore it directly:.
Alternatively, you can download languages individually by specifying the language subset in load_dataset:.
The model has been evaluated on the ViDoRe benchmark and on custom-built evaluation sets that allow testing its multilingual capabilities on text-only, visual-only and mixed page screenshots. The evaluation dataset is also publicly available on Hugging Face (vdr-multilingual-test 🤗).
It has been revealed that we made sure that no page in these datasets was also present in the training set to avoid any evaluation contamination. The datasets were collected and generated using the same methods as the training dataset, but with a smaller sample size. The filtering step was all done manually: each query is evaluated, curated and improved (if necessary) to ensure high data quality.
All evaluations are performed by calculating NDCG@5 scores using 1536 dimensions vectors and an image resolution that can be represented with maximum 768 tokens.
The multilingual model outperforms the base model in every language and every page type, on average by +2.3%. On the ViDoRe benchmark, it also performs slightly better (+0.5%). Our fine-tuned vdr-2b-multi-v1 makes big leaps in performance, especially in non-English visual-only or mixed pages. See for example the +6.33% NDCG@5 improvement for German visual-only retrieval over the base model.
We also trained a version only on the English subset (vdr-2b-v1 🤗). On the full ViDoRe benchmark (evaluated with 768 image tokens), both the multilingual and English-only versions outperform the base model.
The English-only vdr-2b-v1 model also matches the performance of the base model on the ViDoRe benchmark synthetic datasets, while only using 30% of the image tokens (768 vs. 2560). This effectively results in 3x faster inference and much lower VRAM usage.
Sources indicate that although the model was trained on each language separately, it also improves in cross-lingual retrieval. To test this ability, the German evaluation set queries were translated into Italian using DeepL. The document page screenshots remain in the original German language.
Recent findings suggest that the model is significantly better across all document types, with an average improvement of +2.3%. These retrieval capabilities are essential for real-world use cases, especially in linguistically fragmented continents such as Europe. For example, it enables language-independent searches on complex multilingual sources such as European binding decisions, instruction manuals, financial asset KIDs, pharmaceutical package leaflets and many more...
This model is trained using Matryoshka Representation Learning (MRL). The loss function used during training is calibrated to track performance across all these dimensions, leading the model to frontload the most important identifying information. This effectively allows you to shrink the embedding dimensions according to your scale and budget. To learn more about MRL, this blog post by Hugging Face explains it very well.
To test the model retrieval capabilities with different vector dimensions, evaluations are performed in the Italian->German cross-lingual benchmark.
Sources indicate that 1024 dimension float vectors offer a very good balance between quality and size. They are ~30% smaller but still retain 99% of the retrieval performance. This is also true for the 1536 dimensions binary vectors, which have 10x fewer bytes per vector but still retain 97% of their retrieval quality. It's also interesting to see that 1536 binary vectors almost match the performance of the base model 1536 float vectors.
We believe that vdr-2b-multi-v1 and vdr-2b-v1 will prove useful to many people.
According to recent reports, our multilingual model is the first of its kind, it significantly improves performance in multilingual and cross-lingual scenarios, and thanks to MRL and Binary Quantization, retrieval is more efficient and faster than ever. We believe this will unlock new use-cases and opportunities, especially in linguistically fragmented continents such as Europe.
Its English-only twin represents a considerable improvement over the base model, now being able to embed documents 3x faster, with much less VRAM and with the same (or better) retrieval quality.
In a recent development, all this is possible thanks to the newly introduced vdr-multilingual-train dataset. With 500k high quality samples, it is the largest multilingual open source synthetic dataset for visual document retrieval.
In a recent development, future work will explore how our models perform when adapted to newly introduced and specific domains. This is still in the early stages of development and more work needs to be done before results are published, but early tests already seem to suggest impressive retrieval gains with very minimal data and computational resources.
📅 13 Jan 2025 | ⏱️ 8 min read (1600 words, 📚 Deep Dive) | Source: Hugging Face
In a recent development, the sudden, rapid advancement of LLM capabilities – such as writing fluent sentences and achieving increasingly high scores on benchmarks – has led AI developers and businesses alike to look towards what comes next: What game-changing technology is just on the horizon? One technology very recently taking off is “AI agents”, systems that can take actions in the digital world aligned with a deployer’s goals. Most of today’s AI agents are built by incorporating large language models (LLMs) into larger systems that can perform multiple functions. A fundamental idea underlying this new wave of technology is that computer programs no longer need to function as human-controlled tools, confined to specialized tasks: They can now combine multiple tasks without human input.
In a recent development, this transition marks a fundamental shift to systems capable of creating context-specific looks in non-deterministic environments. Many modern AI agents do not merely perform pre-defined actions, but are designed to analyze novel situations, develop relevant goals, and take previously undefined actions to achieve objectives.
In a recent development, in this piece, we briefly overview what AI agents are and detail the ethical values at play, documenting tradeoffs in AI agent benefits and risks. We then suggest paths forward to bring about a future where AI agents are as beneficial as possible for society. For an introduction to the technical aspects of agents, please see our recent developer blogpost. For an introduction to agents written before modern generative AI (that is largely still applicable today) please see Wooldridge and Jennings, 1995.
Sources indicate that our analysis reveals that risks to people increase with a system’s level of autonomy: The more control a user cedes, the more risks arise from the system. Particularly concerning are risks for the safety of individuals that arise from the same benefits that motivate AI agent development, such as freeing developers from having to predict all actions a system may take. Further compounding the concern, some safety harms open the door for other types of harm – such as harms of privacy and security – and inappropriate trust in unsafe systems enables a snowball effect of yet further harms. As such, we recommend that fully autonomous AI agents are not developed. For example, AI agents that can write and execute their own code, beyond constrained code options controlled by the developer, will be endowed with the ability to override all human control. In contrast, semi-autonomous AI agents may have benefits that outweigh risks, depending on the level of autonomy, the tasks available to the system, and the nature of individuals’ control over it. We now turn to these topics in-depth.
There is no clear consensus on what an “AI agent” is, but a commonality across recently introduced AI agents is that they are “agentic”, that is, they act with some level of autonomy: given the specification of a goal, they can decompose it into subtasks and execute each without direct human intervention. For example, an ideal AI agent could respond to a high-level request such as “help me write better blogposts” by independently breaking this task down into retrieving writing on the web that is similar to your previous blog topics; creating documents with outlines for upcoming blog posts; and providing initial writing within each. Recent work on AI agents has made possible software with a broader range of functionality and more flexibility in how it can be used than in the past, with recent systems deployed for everything from organizing meetings (example1, example2, example3, example4) to creating personalized social media posts (example), without explicit instructions on how to do so.
All recently introduced AI agents we’ve surveyed for this newsletter are built on machine learning models, and most specifically use large language models (LLMs) to drive their actions, which is a fresh, novel approach for computer software. Aside from being built on machine learning, today’s AI agents share similarities with those in the past, and in some cases realize previous theoretical ideas of what agents might be like: acting with autonomy, demonstrating (perceived) social ability, and appropriately balancing reactive and proactive actions.
It has been revealed that these characteristics have gradations: Different AI agents have different levels of capabilities, and may work in isolation or in concert with other agents towards a goal. As such, AI agents may be remarked to be more or less autonomous (or agentic), and the extent to which something is an agent may be viewed on a continuous spectrum. This fluid notion of AI agent has led to recent confusions and misunderstandings about what AI agents are, which we hope to bring some clarity to here. A table detailing the varying levels of AI agent is provided below.
In a recent development, table 1. One example of how systems using machine-learned models, such as LLMs, can be more or less agentic. Systems can also be combined in "multiagent systems," where one agent workflow triggers another, or multiple agents work collectively toward a goal.Adapted from smolagent blog post, with changes tailored for this blog post.
Sources indicate that from an ethics perspective, it is also useful to understand the continuum of autonomy in terms of how control is ceded from people and given to machines. The more autonomous the system, the more we cede human control.
According to recent reports, throughout this piece, we use some anthropomorphising language to describe AI agents, consistent with the language that is currently used to describe them. As was also noted in historic scholarship, describing AI agents using mentalistic language ordinarily applied to humans – such as having knowledge, beliefs, and intentions – can be an matter for appropriately informing people about system abilities. For better or worse, such language serves as an abstraction tool to gloss over more precise details of the technology. Understanding this is critical when grappling with the implications of what these systems are and the role they may play in peoples’ lives: The use of mentalistic language describing AI agents does not entail that these systems have a mind.
AI agents vary on a number of interrelated dimensions:.
To examine AI agents through an ethical lens, we break down their risks and benefits according to the different values espoused in recent AI agent research and marketing. These are not exhaustive, and are in addition to the risks, harms, and benefits that have been documented for the technology that AI agents are based on – such as LLMs. We intend this section to contribute to the understanding of how to develop AI agents, providing information on the benefits and risks in different development priorities. These values might also inform evaluation protocols (such as red-teaming).
Industry observers note that one idea discussed for AI agents is that they can help with consistency, as they can be less affected than people by their surrounding environment. This can be good or bad. We are not aware of rigorous work on the nature of AI agent consistency, although related work has shown that the LLMs many AI agents are based on is highly inconsistent (citation1, citation2). Measuring AI agent consistency will require the development of new evaluation protocols, especially in sensitive domains.
AI agents may affect how equitable, fair, and inclusive situations are.
Recent findings suggest that there is currently debate about whether AI agents are a fundamental step forward in AI development at all, or a “rebranding” of technology that we have had for years – deep learning, heuristics, and pipeline systems. Re-introducing the term “agent” as an umbrella term for modern AI systems that share common traits of producing operations with minimal user input is a useful way to succinctly refer to recent AI applications. However, the term carries with it connotations of freedom and agency that suggest a more fundamental change in AI technology has occurred.
All of the listed values in this section are relevant for scientific progress; most of them are provided with details of potential benefits as well as risks.
According to recent reports, at Hugging Face, we have begun introducing the ability for people to build and use AI agents in a number of ways, grounding in values as discussed above. This includes:.
The current state of the art of AI “agents” point forward in several clear directions:.
We thank Bruna Trevelin, Orion Penner, and Aymeric Roucher for contributions to this piece.
This piece clearly outlines the nuanced and continuous nature of AI agent autonomy—a critical framing often overlooked. Your emphasis on explicitly defined human oversight and transparent accountability is crucial, particularly in contrast to how ambiguity around autonomy is often leveraged strategically.
Sources indicate that AI developers and stakeholders must openly acknowledge that autonomy isn't an absolute state, but a carefully constrained spectrum. The intentional vagueness some organizations adopt around autonomy serves power structures, not end-users or ethical principles. Your call for transparency and clearly articulated human oversight couldn't be more timely.
Really Fantastic Content. Please Check it also:- https://aiguts.com/ai-agent-interface-human-computer-interaction/.
Coding Agent, or Agent CLI – a command-line application, used to launch and manage agent instances (e.g. Opencode, Claude Code, Copilot CLI, Gemini CLI, etc).
Agent Definition – a file (Markdown/JSON) that describes how an agent behaves; serves as a blueprint from which instances are created (like a class in Java).
Agent Instance – a running process created from an Agent Definition (like an object instantiated from a class in Java).
Agent / AI Agent – avoid; use the specific term (CLI, Definition, or Instance) depending on what you mean; not to forget that “Agent” can also mean the CI pipeline agent or a human agent.
📅 03 Nov 2026 | ⏱️ 4 min read (876 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
Industry observers note that weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
Java has been one of the most in-demand programming languages for over two decades. It powers Android apps, banking systems, enterprise software, and huge backend platforms. The good news: learning it has never been easier. With AI tools like Claude, ChatGPT, and GitHub Copilot, you now have a patient tutor available at any hour.
Sources indicate that the catch is that AI can help you learn faster or help you avoid learning at all. This guide highlights you how to use it the right way.
Sources indicate that traditionally, learning Java meant reading a textbook, watching videos, and getting stuck on a compiler error for two hours with nobody to ask. AI removes much of that friction:.
Instant explanations. Ask "what is the difference between an abstract class and an interface?" and get an answer pitched at your level.
Personalized pace. Ask for the same concept explained three different ways until it clicks.
Industry observers note that error decoding. Paste a confusing stack trace and get a plain-English explanation of what went wrong.
Sources indicate that unlimited practice. Generate fresh exercises on any topic, any time.
Recent findings suggest that but AI is a tutor, not a replacement for practice. You still have to write the code yourself.
Before writing code, you need the JDK (Java Development Kit) and an IDE such as IntelliJ IDEA, Eclipse, or VS Code.
Industry observers note that "I'm a complete beginner on Windows. Walk me through installing the JDK and IntelliJ IDEA, and help me run my first Hello World program.".
If something goes wrong (and it often does with PATH variables), paste the exact error message and ask what it means.
Start with the core building blocks:.
Use AI to build understanding with analogies and examples.
It has been revealed that "Explain Java loops like I'm a beginner. Give me one real-world analogy, then three short examples that get progressively harder.".
Recent findings suggest that then close the chat and write your own loop from memory. That second step is where learning actually happens.
It has been revealed that OOP is where many beginners struggle, and where AI shines as a tutor. Concepts like classes, objects, inheritance, polymorphism, encapsulation, and abstraction are easier to grasp when you can ask follow-up questions.
"Teach me inheritance in Java using a Vehicle, Car, and Bike example. Then quiz me with 5 questions, one at a time, and wait for my answer before giving feedback.".
Asking the AI to quiz you, rather than just explain, turns passive reading into active recall.
It has been revealed that once you've written a program, ask AI to review it. This is one of the most valuable habits you can build.
Sources indicate that "Review my Java code. Point out bugs, style problems, and anything that isn't idiomatic. Explain why each suggestion matters, but don't rewrite the whole thing for me.".
Sources indicate that that last sentence is important. You want feedback and understanding, not a finished solution you copy and paste.
When your code throws a NullPointerException or ArrayIndexOutOfBoundsException, resist the urge to say "fix this." Instead, try:.
Recent findings suggest that "Here's my code and the error. Don't give me the answer yet. Ask me guiding questions so I can find the bug myself.".
Recent findings suggest that debugging is a core professional skill. Using AI as a Socratic coach builds that skill instead of bypassing it.
Tutorials only take you so far. Projects are where Java sticks. Ask AI to suggest projects matched to your level:.
Beginner: Number guessing game, to-do list in the console, simple calculator.
Intermediate: Library management system, bank account simulator, student record manager.
Advanced: REST API with Spring Boot, inventory system with a database, a chat application.
"I know Java basics and OOP. Suggest a project I can finish in a weekend, break it into milestones, and don't write the code for me.".
Copy-pasting without understanding. If you can't explain a line of code, you haven't learned it. Ask the AI to explain it line by line.
Recent findings suggest that trusting AI blindly. AI can produce code that looks right but is wrong, outdated, or insecure. Always run it, test it, and verify against official documentation.
Skipping the struggle. A little frustration is productive. Try for 15 to 20 minutes before asking for help.
Never writing code from scratch. Regularly practice without AI so you know what you can actually do on your own, especially before job interviews.
AI is a fantastic assistant, but it can't tell you what you don't know you need to learn. A structured course gives you a proven roadmap, so you cover the right topics in the right order, while AI fills in the gaps, answers your questions, and keeps you moving.
The best way to learn Java with AI is to treat it like a good mentor: ask it to explain, challenge, and review, but do the typing yourself. Learners who combine consistent practice with smart AI use progress faster than ever before.
7 Day Free Trial. Cancel Anytime.
📅 15 Jan 2025 | ⏱️ 20 min read (4086 words, 📚 Deep Dive) | Source: Hugging Face
According to recent reports, this blog post introduces a method to train static embedding models that run 100x to 400x faster on CPU than state-of-the-art embedding models, while retaining most of the quality. This unlocks a lot of exciting use cases, including on-device and in-browser execution, edge computing, low power and embedded applications.
Industry observers note that we apply this recipe to train two extremely efficient embedding models: sentence-transformers/static-retrieval-mrl-en-v1 for English Retrieval, and sentence-transformers/static-similarity-mrl-multilingual-v1 for Multilingual Similarity tasks. These models are 100x to 400x faster on CPU than common counterparts like all-mpnet-base-v2 and multilingual-e5-small, while reaching at least 85% of their performance on various benchmarks.
We also discuss potential enhancements, and encourage the community to explore them and build on this work!
The usage of these models is very straightforward, identical to the normal Sentence Transformers flow:.
According to recent reports, embeddings are one of the most versatile tools in natural language processing, enabling practitioners to solve a large variety of tasks. In essence, an embedding is a numerical representation of a more complex object, like text, images, audio, etc.
Sources indicate that the embedding model will always produce embeddings of the same fixed size. You can then compute the similarity of complex objects by computing the similarity of the respective embeddings.
This has a large amount of use cases, and serves as the backbone for recommendation systems, retrieval, outlier detection, one-shot or few-shot learning, similarity search, clustering, paraphrase detection, classification, and much more.
It has been revealed that many of today's embedding models consist of a handful of conversion steps. Following these steps is called "inference".
The Tokenizer and Pooler are responsible for pre- and post-processing for the Encoder, respectively. The former chops texts up into tokens (a.k.a. words or subwords) which can be understood by the Encoder, whereas the latter combines the embeddings for all tokens into one embedding for the entire text.
Within this pipeline, the Encoder is often a language model with attention layers, which allows each token to be computed within the context of the other tokens. For example, bank might be a token, but the token embedding for that token will likely be different if the text refers to a "river bank" or the financial institution.
Sources indicate that large encoder models with a lot of attention layers will be effective at using the context to produce useful embeddings, but they do so at a high price of slow inference. Notably, in the pipeline, the Encoder step is generally responsible for almost all of the computational time.
It has been revealed that static Embeddings refers to a group of Encoder models that don't use large and slow attention-based models, but instead rely on pre-computed token embeddings. Static embeddings were used years before the transformer architecture was developed. Common examples include GLoVe and word2vec. Recently, Model2Vec has been used to convert pre-trained embedding models into Static Embedding models.
For Static Embeddings, the Encoder step is as simple as a dictionary lookup: given the token, return the pre-computed token embedding. Consequently, inference is suddenly no longer bottlenecked by the Encoder phase, resulting in speedups of several orders of magnitude. This blogpost highlights that the hit on quality can be quite small!
We set out to revisit Static Embeddings models, using modern techniques to train them. Most of our gains come from the use of a contrastive learning loss function, as we'll explain shortly. Optionally, we can get additional speed improvements by using Matryoshka Representation Learning, which makes it possible to use truncated versions of the embedding vectors.
Sources indicate that we'll be using the Sentence Transformers library for training. For a more general overview on how this library can be used to train embedding models, consider reading the Training and Finetuning Embedding Models with Sentence Transformers blogpost or the Sentence Transformers Training Overview documentation.
The objective with these reimagined Static Embeddings is to experiment with modern embedding model finetuning techniques on these highly efficient embedding models. In particular, unlike GLoVe and word2vec, we will be using:.
Contrastive Learning: With most machine learning, you take input $X$ and expect output $Y$, and then train a model such that $X$ fed through the model produces something close to $Y$. For embedding models, we don't have $Y$: we don't know what a good embedding would be beforehand.
Instead, with Contrastive Learning, we have multiple inputs $X_1$ and $X_2$, and a similarity. We feed both inputs through the model, after which we can contrast the two embeddings resulting in a predicted similarity. We can then push the embeddings further apart if the true similarity is low, or pull the embeddings closer together if the true similarity is high.
Matryoshka Representation Learning (MRL): Matryoshka Embedding Models (blogpost) is a clever training approach that allows owners to truncate embedding models to smaller dimensions at a minimal performance hit. It involves using the contrastive loss function not just with the normal-sized embedding, but also with truncated versions of them. Consequently, the model learns to store information primarily at the start of the embeddings.
Truncated embeddings will be faster with downstream applications, such as retrieval, classification, and clustering.
It has been revealed that for future research, we leave various other modern training approaches for improving data quality. See Next Steps for concrete ideas.
As shown in the Training Overview documentation in Sentence Transformers, training consists of 3 to 5 components:.
In the following sections, we'll go through our thought processes for each of these.
In our experience, embedding models are either used 1) exclusively for retrieval or 2) for every task under the sun (classification, clustering, semantic textual similarity, etc.). We set out to train one of each.
Recent findings suggest that for the retrieval model, there is only a limited amount of multilingual retrieval training data available, and hence we chose to opt for an English-only model. In contrast, we decided to train a multilingual general similarity model because multilingual data was much easier to acquire for this task.
For these models, we would like to use the StaticEmbedding module, which implements an efficient tokenize method that avoids padding, and an efficient forward method that takes care of computing and pooling embeddings. It's as simple as using a torch EmbeddingBag, which is nothing more than an efficient Embedding (i.e. a lookup table for embeddings) with mean pooling.
We can initialize it in a few ways: StaticEmbedding.from_model2vec to load a Model2Vec model, StaticEmbedding.from_distillation to perform Model2Vec-style distillation, or initializing it with a Tokenizer and an embedding dimension to get random weights.
In a recent development, based on our findings, the last option works best when fully training with a large amount of data. Matching common models like all-mpnet-base-v2 or bge-large-en-v1.5, we are choosing an embedding dimensionality of 1024, i.e. our embedding vectors consist of 1024 values each.
According to recent reports, for the English Retrieval model, we rely on the google-bert/bert-base-uncased tokenizer. As such, initializing the model looks like this:.
Recent findings suggest that the first entry in the modules list must implement tokenize, and the last one must produce pooled embeddings. Both is the case here, so we're good to start training this model.
For the Multilingual Similarity model, we instead rely on the google-bert/bert-base-multilingual-uncased tokenizer, and that's the only thing we change in our initialization code:.
Alongside dozens of Sentence Transformer models, the Sentence Transformers organization on Hugging Face also hosts 70+ datasets (at the time of writing):.
Beyond that, many datasets have been tagged with sentence-transformers to mark that they're useful for training embedding models:.
For the English Retrieval datasets, we are primarily looking for any dataset with:.
We selected the following datasets:.
For the Multilingual Similarity datasets, we aimed for datasets with:.
We selected the following datasets as they contain parallel sentences:.
And these datasets as they contain positive pairs of some kind:.
Loading these datasets is rather simple, e.g.:.
The gooaq dataset doesn't already have a train-eval split, so we can make one with train_test_split. Otherwise, we can just load a precomputed split with e.g. split="eval".
It has been revealed that note that train_test_split does mean that the dataset has to be loaded into memory, whereas it is otherwise just kept on disk. This increased memory is not ideal when training, so it's recommended to 1) load the data, 2) split it, and 3) save it to disk with save_to_disk. Before training, you can then use load_from_disk to load it again.
Industry observers note that within Sentence Transformers, your loss model must match your training data format. The Loss Overview is designed as an overview of which losses are compatible with which formats.
In particular, we at the moment have the following formats in our data:.
For these formats, we have some excellent choices:.
It has been revealed that multipleNegativesRankingLoss (MNRL): Also known as in-batch negatives loss or InfoNCE loss, this loss has been used to train modern embedding models for a handful of years. In short, the loss optimizes the following:.
Given an anchor (e.g. a question), assign the highest similarity to the corresponding positive (i.e. answer) out of all positives and negatives (e.g. all answers) in the batch.
If you provide the optional negatives, they will only be used as extra options (also known as in-batch negatives) from which the model must pick the correct positive. Within reason, the harder this "picking" is, the stronger the model will become. Because of this, higher batch sizes result in more in-batch negatives, which then increase performance (to a point).
CachedMultipleNegativesRankingLoss (CMNRL): This is an extension of MNRL that implements GradCache, an approach that allows for arbitrarily increasing the batch size without increasing the memory.
This loss is recommended over MNRL unless you can already fit a large enough batch size in memory with just MNRL. In that case, you can use MNRL to save the 20% training speed cost that CMNRL adds.
GISTEmbedLoss (GIST): This is also an extension of MNRL, it uses a guide Sentence Transformer model to remove potential false negatives from the list of options that the model must "pick" the correct positive from.
False negatives can hurt performance, but hard true negatives (texts that are close to correct, but not quite) can help performance, so this filtering is a fine line to walk.
Because these static embedding models are extremely small, it is possible to fit our desired batch size of 2048 samples on our hardware: a single RTX 3090 with 24GB, so we don't need to use CMNRL.
In a recent development, additionally, because we're training such fast models, the guide from the GISTEmbedLoss would make the training much slower. Because of this, we've opted to use MultipleNegativesRankingLoss for our models.
Industry observers note that if we were to try these experiments again, we would pick a larger batch size, e.g. 16384 with CMNRL. If you try, please let us know how it goes!
It has been revealed that beyond regular loss functions, Sentence Transformers also implements a handful of Loss modifiers. These work on top of standard loss functions, but apply them in different ways to try and instil useful properties into the trained embedding model.
Sources indicate that A very interesting one is the MatryoshkaLoss, which turns the trained model into a Matryoshka Model. This allows people to truncate the output embeddings at a minimal loss of performance, meaning that retrieval or clustering can be sped up due to the smaller dimensionalities.
The MatryoshkaLoss is applied on top of a normal loss. It's recommended to also include the normal embedding dimensionality in the list of matryoshka_dims:.
Sentence Transformers supports a lot of training arguments, the most valuable of which have been listed in the Training Overview > Training Arguments documentation.
We used the same core training parameters to train both models:.
Beyond these core arguments, we also set a few training arguments for tracking and debugging: eval_strategy, eval_steps, save_strategy, save_steps, save_total_limit, logging_steps, logging_first_step, and run_name.
In the end, we used these SentenceTransformerTrainingArguments for the two models:.
Industry observers note that if we provide an evaluation dataset to the Sentence Transformer Trainer, then upon evaluation we will get an evaluation loss. This'll be useful to track whether we're overfitting or not, but not so meaningful when it comes to real downstream performance.
Because of this, Sentence Transformers additionally supports Evaluators. Unlike the training loss, these give qualitative metrics like NDCG, MAP, MRR for Information Retrieval, Spearman Correlation for Semantic Textual Similarity, or Triplet accuracy (number of samples where similarity(anchor, positive) > similarity(anchor, negative)).
Due to its simplicity, we will be using the NanoBEIREvaluator for the retrieval model. This evaluator runs Information Retrieval benchmarks on the NanoBEIR collection of datasets. This dataset is a subset of the much larger (and thus slower) BEIR benchmark, which is commonly used as the Retrieval tab in the MTEB Leaderboard.
Because all datasets are already pre-defined, we can load the evaluator without any arguments:.
We're training these models on consumer-level hardware, specifically:.
This section contains the final training scripts for both models with all of the previously described components (datasets, loss functions, training arguments, evaluator, trainer) combined.
This script produced sentence-transformers/static-retrieval-mrl-en-v1 after 17.8 hours of training. In total, it consumed 2.6 kWh of energy and emitted 1kg of CO2. That is roughly equivalent to the amount of CO2 an average person exhales per day.
See our Weights and Biases report for the training and evaluation metrics collected during training.
This script produced sentence-transformers/static-similarity-mrl-multilingual-v1 after 3.1 hours of training. In total, it consumed 0.5 kWh of energy and emitted 0.2kg of CO2. That is roughly 20% of the CO2 that an average person exhales per day.
See our Weights and Biases report for the training and evaluation losses collected during training.
The usage of these models is very straightforward, identical to the normal Sentence Transformers flow:.
The upcoming Performance > English Retrieval section will show that these results are quite solid, within 15% of commonly used Transformer-based encoder models like all-mpnet-base-v2.
This model only loses about 8% of performance compared to the popular but much slower multilingual-e5-small, as shown in the upcoming Performance > Multilingual Similarity section.
To reduce the dimensionality of your calculated embeddings, you can simply pass the truncate_dim parameter. This works for all Sentence Transformer models.
This model also works out of the box in various third party libraries, for example LangChain, LlamaIndex, Haystack, and txtai.
After training, we've evaluated the final model sentence-transformers/static-retrieval-mrl-en-v1 on NanoBEIR (normal dimensionality and with Matryoshka dimensions) as well as on BEIR.
According to recent reports, we've evaluated sentence-transformers/static-retrieval-mrl-en-v1 on NanoBEIR and plotted it against the inference speed computed on our hardware. For the inference speed tests, we calculated the number of computed query embeddings of the GooAQ dataset per second, either on CPU or GPU.
We evaluate against 3 types of models:.
Attention-based dense embedding models, e.g. traditional Sentence Transformer models like all-mpnet-base-v2, bge-base-en-v1.5, and gte-large-en-v1.5.
Sources indicate that static Embedding-based models, e.g. static-retrieval-mrl-en-v1, potion-base-8M, M2V_base_output, and glove.6B.300d.
Sparse bag-of-words model, BM25, often a strong baseline.
We relied on the highly efficient bm25s implementation, using model.get_scores() on tokens after tokenization and stemming with the English PyStemmer.
NOTE: Many of the attention-based dense embedding models are finetuned on the training splits of the (Nano)BEIR evaluation datasets. This gives the models an unfair advantage in this benchmark and can result in lower downstream performance on real retrieval tasks.
static-retrieval-mrl-en-v1 is purposefully not trained on any of these datasets.
We can draw some notable conclusions from these figures:.
Additionally, we experimented with the results on NanoBEIR performance when we performed Matryoshka-style dimensionality reduction by truncating the output embeddings to a lower dimensionality.
These findings show that reducing the dimensionality by e.g. 2x only has a 1.47% reduction in performance (0.5031 NDCG@10 vs 0.4957 NDCG@10), while realistically resulting in a 2x speedup in retrieval speed.
We've additionally evaluated the final sentence-transformers/static-similarity-mrl-multilingual-v1 model on 5 languages which have a lot of benchmarks across various tasks on MTEB.
We want to reiterate that this model is not intended for retrieval use cases. Instead, we evaluate on Semantic Textual Similarity (STS), Classification, and Pair Classification. We compare against the excellent and small multilingual-e5-small model.
Across all measured languages, static-similarity-mrl-multilingual-v1 reaches an average 92.3% for STS, 95.52% for Pair Classification, and 86.52% for Classification relative to multilingual-e5-small.
To make up for this performance reduction, static-similarity-mrl-multilingual-v1 is approximately ~125x faster on CPU and ~10x faster on GPU devices than multilingual-e5-small. Due to the super-linear nature of attention models, versus the linear nature of static embedding models, the speedup will only grow larger as the number of tokens to encode increases.
Lastly, we experimented with the impacts on English STS on MTEB performance when we did Matryoshka-style dimensionality reduction by truncating the output embeddings to a lower dimensionality.
Sources indicate that as you can see, you can easily reduce the dimensionality by 2x or 4x with minor (0.15% or 0.56%) performance hits. If the speed of your downstream task or your storage costs are a bottleneck, this should allow you to alleviate some of those concerns.
This blogpost described all of the steps that we undertook from ideation to finished models, in addition to details regarding usage and evaluation of the two resulting models: static-retrieval-mrl-en-v1 and static-similarity-mrl-multilingual-v1.
Should you need an efficient CPU-only dense embedding model for your retrieval or similarity tasks, then static-retrieval-mrl-en-v1 and static-similarity-mrl-multilingual-v1 will be extremely performant solutions at minimal costs that get surprisingly close to the attention-based dense models.
Recent findings suggest that try it out! If you already use a Sentence Transformer model somewhere, feel free to swap it out for static-retrieval-mrl-en-v1 or static-similarity-mrl-multilingual-v1. Or, better yet: train your own models on data that is representative for the task and language of your interest.
Furthermore, some questions remain about the trained models:.
It has been revealed that because Static Embedding-based models aren't bottlenecked by positional embeddings or superlinear time complexity, they can have arbitrarily high maximum sequence lengths. However, at some point the law of large numbers is likely to "normalize" all embeddings for really long documents, such that they aren't useful anymore.
It has been revealed that more experiments are required to determine what a good cutoff point is. For now, we leave the maximum sequence length, chunking, etc. to the user.
In a recent development, additionally, there are quite a few possible extensions that are likely to improve the performance of this model, which we happily leave to other model authors. We are also open to collaborations:.
For training other Sentence Transformers model types, or efficiency techniques that stack with static embeddings:.
Industry observers note that I would like to thank Stéphan Tulkens and Thomas van Dongen of The Minish Lab for bringing Static Embedding models to my attention via their Model2Vec work. Additionally, I would like to thank Vaibhav Srivastav and Pedro Cuenca for their assistance with this blogpost, and Antoine Chaffin for brainstorming the release checkpoints.
Industry observers note that lastly, a massive thanks to all researchers working on embedding models, datasets, and open source Python packages. You strengthen the industry, and I build on your shoulders. One day, I hope you build on mine.
Nvidia: You need to buy GPUs and machines.Developer: No, we can just tweak the algorithms.Elon Musk: Look at me buying GPUs, you poor folks.
Thank you very much for the post, great work,.
I have already trained some English and Spanish models:.
I would like to know how to increase or decrease the'max_length example 371'.
when I check 'print(model.max_seq_length) # -> Inf'.
In a recent development, is it possible, how? I can't find documentation about it.
Nice work on those models! Am I correct in understanding that one of those models reaches 0.5623 NDCG@10 on NanoBEIR across all datasets? That's a pretty huge jump from the 0.5032 NDCG@10 for static-retrieval-mrl-en-v1.
I would like to know how to increase or decrease the'max_length example 371'.
Are you referring to the 'max' in your model card here?
That is simply some approximate statistics on the training data; taken from the first 1000 samples. Although it's not always recommended to use texts with (much) larger sequence lengths than the training data, the actual maximum sequence length is indeed infinity. It is defined here: https://github.com/UKPLab/sentence-transformers/blob/cccab8303aaf6e18f069b0da578b3d162bf8442a/sentence_transformers/models/StaticEmbedding.py#L106-L108.
In short: the model will never truncate sequences, because the approach.
In a recent development, so, Static Models don't have a maximum sequence length. They just require care by the user to make sure that they're not feeding documents that are too large, as all documents will eventually embed very similarly if they are long enough.
Recent findings suggest that this is really cool! I'm surprised you do better than model2vec - is the difference really just the use of a (better) contrastive loss pretraining formula?
Yes! The architecture is identical. In fact, the StaticEmbedding module that is used for the models described in this blogpost is actually the same that is used when loading a Model2Vec model in Sentence Transformers:.
Amazing work and excellent writing!
I tried this training on a subset of data (AllNLI, GooAQ, MSMacro, PAQ, S2ORC) with batch size 16384. Took 5 hours.
w&b:https://api.wandb.ai/links/arunarumugam411-sui/dkcwm6gs.
Sources indicate that seems to great, but1can you clarify idea behind . Do you calculate emceeing for each token and them average them ?2can you share link to NanoBEIR ?
Yes, the implementation is just https://pytorch.org/docs/stable/generated/torch.nn.EmbeddingBag.html. In short: token -> token embedding via lookup -> text embedding via mean pooling (averaging per dimension).
do you have detailed description like paper pls.
It has been revealed that may you clarifyfromhttps://huggingface.co/blog/Pringled/model2vecZipfAs we take a simple mean over tokens in the space, it is important that the vectors are weighted correctly. Normally, a sentence transformer would be there to correctly weight all the tokens for us given the context, but we don't have that luxury any more. Intuitively, we would like to use something like Inverse Document Frequency (IDF) to down-weight very frequent or uninteresting words. But we don't have access to a corpus over which to compute document frequencies.
Recent findings suggest that to overcome this, we opt to use a well-known principle from language sciences, which is that, given a frequency ranked list, the frequency of the items in that list follow a power law distribution. This is called Zipf's law. So, if we take the assumption that a vocabulary is ranked by frequency, we can accurately down-weight really frequent items without needing to have access to actual frequencies. As tokenizer vocabularies are sorted by frequency, we already have access to a ranked list, so this optimization can be applied without any additional work.
so for hypothetical Zipf input[ [ 0.2,0.5,0.7] , [1.2, 0.9,0.2], [0.4, 0.3, 0.2] ,[1.3, 2.4, 3.2]]you1sort input according to each vector normso you get[ [0.4, 0.3, 0.2] , [ 0.2,0.5,0.7] , [1.2, 0.9,0.2],[1.3, 2.4, 3.2] ]2you divide each vector by its norm.
[ [0.4, 0.3, 0.2]/n1 , [ 0.2,0.5,0.7]/n2 , [1.2, 0.9,0.2] /n3 ,[1.3, 2.4, 3.2]/n4 ].
3then final embedding is mean of this down-weighted vectors ?( [0.4, 0.3, 0.2]/n1 + [ 0.2,0.5,0.7]/n2 + [1.2, 0.9,0.2] /n3 + [1.3, 2.4, 3.2]/n4) / 4.
It has been revealed that amazing work there. This technique is quite eye opening really ^^.
Sources indicate that A quick comment on the title of the post though, at first, I believed that this post was about training sentence embedding model faster, not about training sentence embedding models that have a faster inference time. Just for you guys to knoew.
I trained a Static Embedding Japanese model (static-embedding-japanese) by incorporating a large amount of Japanese datasets, and when we compared it using the Japanese Multilingual Text Embedding Benchmark (JMTEB), I were able to achieve scores that were only slightly lower than mE5-small.
Thank you for publishing such an excellent article.
That is an incredible performance, excellent work! I also appreciate your very detailed model card - I'll read through it now with a translator!
With some research directions looking into tokenizer free, wondering how far one can stretch the character level similarly trained model.
Also wonder, given the additional compute and time we now have, would ensemble with another static embedding model give additional quality improvements. But then, what might be the best way to ensemble, maybe domain dataset specific would help, different loss trained model?
Any looks to make the model usable by text embedding inference?
https://github.com/huggingface/text-embeddings-inference.
Recent findings suggest that hi tom , I have been trying to recreate model using the same script. I consistently see the evaluation loss to be inf . Am I doing something wrong here ?
📅 16 Jan 2025 | ⏱️ 3 min read (574 words, 📚 Deep Dive) | Source: Hugging Face
Recent findings suggest that since its initial release in 2022, Text-Generation-Inference (TGI) has provided Hugging Face and the AI Community with a performance-focused solution to easily deploy large-language models (LLMs). TGI initially offered an almost no-code solution to load models from the Hugging Face Hub and deploy them in production on NVIDIA GPUs. Over time, support expanded to include AMD Instinct GPUs, Intel GPUs, AWS Trainium/Inferentia, Google TPU, and Intel Gaudi.Over the years, multiple inferencing solutions have emerged, including vLLM, SGLang, llama.cpp, TensorRT-LLM, etc., splitting up the overall ecosystem. Different models, hardware, and use cases may require a specific backend to achieve optimal performance. However, configuring each backend correctly, managing licenses, and integrating them into existing infrastructure can be challenging for owners.
To address this, we are excited to introduce the concept of TGI Backends. This fresh architecture gives the flexibility to integrate with any of the solutions above through TGI as a single unified frontend layer. This change makes it easier for the community to get the best performance for their production workloads, switching backends according to their modeling, hardware, and performance requirements.
The Hugging Face team is excited to contribute to and collaborate with the teams that build vLLM, llama.cpp, TensorRT-LLM, and the teams at AWS, Google, NVIDIA, AMD and Intel to offer a robust and consistent user experience for TGI owners whichever backend and hardware they want to use.
TGI is made of multiple components, primarily written in Rust and Python. Rust powers the HTTP and scheduling layers, and Python remains the go-to for modeling.
Long story short: Rust allows us to improve the overall robustness of the serving layer with static analysis and compiler-based memory safety enforcement: it brings the ability to scale to multiple cores with the same safety guarantees more easily. Leveraging Rust’s strong type system for the HTTP layer and scheduler makes it possible to avoid memory issues while maximizing the concurrency, bypassing Global Interpreter Lock (GIL) in Python-based environments.
Speaking about Rust… Surprise, that's the TGI starting point to integrate a upcoming backend - 🤗.
Earlier this year, the TGI team worked on exposing the foundational knobs to disentangle how the actual HTTP server and the scheduler were coupled together. This work introduced the newly introduced Rust trait Backend to interface current inference engine and the one to come.
Having this new Backend interface (or trait in Rusty terms) paves the way for modularity and makes it possible to actually route the incoming requests towards different modeling and execution engines.
According to recent reports, the fresh multi-backend capabilities of TGI open up many impactful roadmap opportunities. As we look ahead to 2025 we are excited to share some of the TGI developments we are most excited about:.
In a recent development, we are confident TGI Backends will help simplify the deployments of LLMs, bringing versatility and performance to all TGI people. You'll soon be able to use TGI Backends directly within Inference Endpoints. Customers will be able to easily deploy models with TGI Backends on various hardware with top-tier performance and reliability out of the box.
Stay tuned for the next blog post where we'll dig into technical details and performance benchmarks of upcoming backends!
Amazing work, looking forward to the releases!
Sources indicate that this is so cool! Thank you for all the hard work.
Recent findings suggest that that's amazing! It's going to be an awesome 2025 for TGI! 🤗.
📅 03 Nov 2026 | ⏱️ 6 min read (1270 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
It has been revealed that weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
Recent findings suggest that you no longer need to build a dashboard every time you want to investigate a drop in traffic or compare campaign results. With servers built on the Model Context Protocol (MCP), you can ask an AI assistant a question and let it retrieve the relevant data directly from your marketing tools.
But connecting an assistant to Google Analytics is not the same as connecting it to HubSpot or Ahrefs. Each server exposes different data, capabilities and levels of access. Some are built for quick analysis inside one platform, while others support reporting across several channels. This guide compares four servers, what they can do, how they are set up and where their limits matter. Details such as plans and tool lists change often, so confirm them against each vendor's documentation before you commit.
The summary below reflects each vendor's documentation at the time of writing.
According to recent reports, google publishes an official, open-source Google Analytics MCP server for GA4. It connects AI assistants to the Admin and Data APIs, so it can list accounts and properties, run standard, realtime, funnel and conversion reports, and inspect custom dimensions and metrics. That makes it useful for investigating traffic changes, landing page performance and engagement trends.
Example prompt: "Which landing pages lost the most engaged sessions this month compared with last month?" The assistant can pull the relevant reports and help you spot changes, and you can then check whether the decline comes from specific channels, countries or devices.
It has been revealed that setup: The server runs locally. Google's documentation lists Python 3.10 or later, pipx or uvx, a Google Cloud project with the Analytics Admin and Data APIs enabled, application default credentials with the read-only Analytics scope, and at least Viewer access on the property you want to query.
Access: Google describes the server as available for read requests only, so it cannot change your Analytics configuration.
Limitations: It covers GA4 only, so it cannot combine website metrics with CRM records or advertising costs on its own. Running it locally also means you maintain the configuration yourself.
Best for: Web analysts and technical marketers who regularly investigate GA4 performance.
Marketing performance usually spans several platforms. Google Ads generates clicks, GA4 tracks site activity and a CRM records leads. Seeing the whole picture means bringing those metrics together.
Coupler is a no-code data integration platform that offers MCP access to prepared business data. It lists more than 400 supported data sources, including Google Ads, Facebook Ads, GA4, HubSpot, LinkedIn Ads and Shopify, and lets teams combine and transform data before an assistant queries it.
Example prompt: "What was our cost per lead across Google Ads, Meta Ads and LinkedIn last quarter?" For paid search specifically, Coulper describes a Google Ads MCP server that lets you ask about campaigns and compare them with other connected channels.
Setup: Coupler is hosted, so there is nothing to install locally. You connect your platforms, configure data flows, choose refresh schedules and connect a compatible AI assistant. According to the vendor, queries run against the prepared datasets, which is useful for recurring reports because teams can reuse refreshed data instead of preparing exports by hand.
It has been revealed that limitations: Answers depend on the data included in your configured flows. Plan requirements and privacy options can vary by subscription, so check the current plan details before you rely on it.
Best for: Agencies and teams that need consistent reporting across advertising, website analytics, ecommerce and CRM platforms.
HubSpot's remote MCP server became generally available on April 13, 2026. It connects compatible AI clients to CRM data such as contacts, companies, deals, tickets and activities, and can also read marketing objects such as campaigns, landing pages and blog posts. That helps marketers investigate lead quality, pipeline performance and lifecycle trends without reviewing records one by one.
Example prompt: "Which deals created last quarter originated from webinar leads, and how many closed?" The assistant can retrieve the records and examine conversion patterns, provided the attribution data exists.
It has been revealed that setup: HubSpot hosts the server. In your account you create an MCP auth app under Development, then connect an MCP client that supports OAuth 2.1 with PKCE to the HubSpot endpoint. See HubSpot's remote MCP server documentation for current steps.
It has been revealed that access: Unlike a purely analytical server, HubSpot supports selected create and update actions on records such as contacts, companies, deals, tickets and activities. Other objects, including marketing content, are read-only.
Limitations: Available operations differ by object type, and incomplete lead sources or inconsistent lifecycle stages will weaken any analysis.
Best for: B2B marketers and revenue operations teams that manage customers and pipeline in HubSpot.
In a recent development, ahrefs offers a hosted MCP server that brings its SEO data into compatible assistants. It supports conversational research into keywords, backlinks, competing pages and organic visibility, so you can follow up with questions instead of exporting report after report.
Example prompt: "Which websites link to both of our main competitors but don't link to us?" The assistant can retrieve backlink data and help you identify outreach targets, which you can then narrow by Domain Rating or organic traffic.
Industry observers note that setup: According to the Ahrefs MCP documentation, the remote server is available on paid looks starting from Lite, and you authorize it through your AI client. Ahrefs also publishes a getting started guide.
Industry observers note that limitations: Calls made through MCP use your monthly API units in the same way as direct API usage, and rows per request depend on your plan. Ahrefs documents a default cap of 200,000 units per month for keys created through OAuth, which workspace admins can change. The data is also SEO-focused rather than first-party conversion analytics.
Best for: SEO specialists, content marketers and link builders who already use Ahrefs.
Yes, but start with the connections your team actually needs. Each additional server adds tools the assistant has to choose between, which increases complexity. Combining Ahrefs and HubSpot, for example, supports separate SEO and CRM investigations, but connecting several servers does not automatically create a reliable cross-platform reporting system.
Industry observers note that for recurring reports, prepare consistent datasets and validate the first results against your existing dashboards. That catches errors caused by mismatched metrics or attribution rules.
Are MCP servers safe for marketing data? Security depends on the provider, the authentication method and the permissions you grant. Use trusted servers, review access scopes, and enable write operations only when necessary.
In a recent development, do I need coding skills to use MCP servers? Not necessarily. Hosted services usually need less configuration, while local servers such as Google's need extra setup.
Sources indicate that which AI clients support MCP? Claude, ChatGPT, Cursor and other tools support MCP connections, though functionality and setup differ.
Recent findings suggest that do MCP servers cost extra? It depends on the provider. Some require paid intends, and others consume API credits or have usage limits.
In a recent development, pick the server that matches the question you ask most often: Google Analytics MCP for GA4 behavior, Coupler for cross-channel reporting, HubSpot for CRM and lifecycle analysis, and Ahrefs for SEO research. Start with read-only access, check usage limits and permissions, and validate early answers against the reports you already trust.
Industry observers note that 7 Day Free Trial. Cancel Anytime.
📅 16 Jan 2025 | ⏱️ 7 min read (1423 words, 📚 Deep Dive) | Source: Hugging Face
Get lightning-fast inference, quick quantization, torch.compile boosts, and effortless fine-tuning for any timm model—all within the friendly 🤗 transformers ecosystem.
Enter TimmWrapper—a simple, yet powerful tool that unlocks this potential.
To follow along with this blog post, install the latest version of transformers and timm by running:.
Check out the full repository for all code examples and notebooks: 🔗 TimmWrapper Examples.
The PyTorch Image Models (timm) library offers a rich collection of state-of-the-art computer vision models, along with useful layers, utilities, optimizers, and data augmentations. With more than 32K GitHub stars and more than 200K daily downloads at the time of writing, it's a go-to resource for image classification and feature extraction for object detection, segmentation, image search, and other downstream tasks.
With pre-trained models covering a wide range of architectures, timm simplifies the workflow for computer vision practitioners.
While 🤗 transformers supports several vision models, timm offers an even broader collection, including many mobile-friendly and efficient models not available in transformers.
The timm integration bridges this gap, bringing the best of both worlds:.
Industry observers note that one of the standout features of the timm integration is that it allows you to leverage the 🤗 pipeline API. The pipeline API abstracts away a lot of complexity, making it easy to load a pre-trained model, perform inference, and view results with a few lines of code.
According to recent reports, let's see how to use a transformers pipeline with the MobileNetV4. This architecture does not have a native transformers implementation, but can be easily used from timm:.
Sources indicate that want to quickly create an interactive web app for image classification? Gradio makes it simple to build a user-friendly interface with minimal code. Let's combine Gradio with the pipeline API to classify food images using a fine-tuned timm ViT model (we will cover fine tuning in a later section).
Here’s how you can set up a quick demo with a timm model:.
It has been revealed that here’s a live example hosted on Hugging Face Spaces. You can test it directly in your browser!
The 🤗 transformers library provides Auto Classes to abstract away the complexity of loading models and processors. With the TimmWrapper, you can use AutoModelForImageClassification and AutoImageProcessor to load any timm model effortlessly.
Recent findings suggest that quantization is a powerful technique to reduce model size and speed up inference, especially for deployment on resource-constrained devices. With the timm integration, you can quantize any timm model on the fly with just a few lines of code using BitsAndBytesConfig from bitsandbytes.
Here’s how simple it is to quantize a timm model:.
Quantized models perform almost identically to full-precision models during inference:.
Fine-tuning a timm model with the Trainer API from 🤗 transformers is straightforward and highly flexible. You can fine-tune your model on custom datasets using the Trainer class, which handles the training loop, logging, and evaluation. Additionally, you can fine-tune using LoRA (Low-Rank Adaptation) to train efficiently with fewer parameters.
This section gives a quick overview of both standard fine-tuning and LoRA fine-tuning, with links to the complete code.
The Trainer API makes it easy to set up training with minimal code. Here's an outline of what a fine-tuning setup looks like:.
What's remarkable about this approach is that it mirrors the exact workflow used for native transformers models, maintaining consistency across different model types.
Industry observers note that this means you can use the familiar Trainer API to fine-tune not just Transformers models, but also any timm model—bringing powerful models from the timm library into the Hugging Face ecosystem with minimal adjustments. This significantly broadens the scope of models you can fine-tune using the same trusted tools and workflows.
Model Example:Fine-tuned ViT on Food-101: vit_base_patch16_224.augreg2_in21k_ft_in1k.ft_food101.
LoRA (Low-Rank Adaptation) allows you to fine-tune large models efficiently by training only a few additional parameters, rather than the full set of model weights. This makes fine-tuning faster, and allows the use of consumer hardware. You can fine-tune a timm model using LoRA with the PEFT library.
Trainable Parameters with LoRA:.
Model Example:LoRA Fine-Tuned ViT on Food-101: vit_base_patch16_224.augreg2_in21k_ft_in1k.lora_ft_food101.
LoRA is just one example of efficient adapter-based fine-tuning methods you can apply to timm models. The integration of timm with the 🤗 ecosystem opens up a wide variety of parameter-efficient fine-tuning (PEFT) techniques, allowing you to choose the method that best fits your use case.
Once the model is LoRA fine-tuned, we only push the adapter weights to the Hugging Face Hub. This section helps you to download the adapter weights, merge the adapter weights with the base model, and then perform inference.
It has been revealed that one of Ross' (creator of timm) favourite features is that this integration maintains full 'round-trip' compatibility. Namely, using the wrapper one can fine-tune a timm model on a newly introduced dataset using transformer's Trainer, publish the resulting model to the Hugging Face hub, and then load the fine-tuned model in timm again using timm.create_model('hf-hub:my_org/my_fine_tuned_model', pretrained=True).
Let us see how we can load our fine tuned model ariG23498/vit_base_patch16_224.augreg2_in21k_ft_in1k.ft_food101 with timm.
It has been revealed that with torch.compile in PyTorch 2.0, you can achieve faster inference by compiling your model with just one line of code. The timm integration is fully compatible with torch.compile. Here's a quick benchmark to compare inference time with and without torch.compile using the TimmWrapper.
timm's integration with transformers opens fresh doors for leveraging state-of-the-art vision models with minimal effort. Whether you're looking to fine-tune, quantize, or simply run inference, this integration provides a unified API to streamline your workflow.
Start exploring today and unlock newly introduced possibilities in computer vision!
Recent findings suggest that we want to give a huge shout-out to the folks who made this integration happen in Transformers PR #34564. In no particular order, a big thanks to Pavel Iakubovskii, Ross Wightman, Lysandre Debut, Pablo Montalvo, Arthur Zucker, and Amy Roberts for all your incredible work. Your combined efforts took this feature from an idea to something everyone can now enjoy!
This is amazing! Congrats @rwightman @lysandre @ArthurZ @Molbap @amyeroberts @ariG23498 & @qubvel-hf 🔥.
Very excited for this, thank you! We were just about to switch to timm and this makes it even easier!
Maybe a simple naive question, I'm trying to put together a demo training script that loads the base model from:TimmWrapperForImageClassification.from_pretrained("timm/mobilenetv4_conv_medium.e500_r256_in1k").to("cuda").
but then trains on the food101 dataset, just to illustrate training on a fresh custom dataset. Training works fine, but inference return animal names as labels.
According to recent reports, should I be setting: label2id, num_labels, id2label, params when I load the finetuned model? It seems to store the data somewhere during training, but trainingarguments don't allow me to set TypeError: TrainingArguments.__init__() got an unexpected keyword argument 'label2id'.
@davidrs hmm, possible there's an matter with the label handling, there was a change made to the integration near release to keep the labels compatible with timm use (keep label_names field instead of id2label/label2id), there's actually a mix of the two cases and many of @ariG23498 fine-tunes have the id2label, though I was told at release time it should be producing label_names...
Recent findings suggest that do you have a public model I could look at? You're using the example image classification script in Transformers (https://github.com/huggingface/transformers/tree/main/examples/pytorch/image-classification) or using Trainer directly yourself in a custom script/notebook as in the example above?
My bad, I missed the top blog link with more complete code examples, maybe that would help me https://github.com/ariG23498/timm-wrapper-examples/blob/main/%2304_sft.ipynb.
Trainer directly in custom script, I made a Colab notebook that illustrates what I'm currently trying, in the prediction test at the end the labels are not food:https://colab.research.google.com/drive/14jTpetYR61B6EVoJ6o8_B8gi6-SiizCA?usp=sharing.
@davidrs this part in the example to reset classifier / labels with the target dataset is crucial.
If you don't do that I believe it gets pushed with the original labels, an imagenet-1k (1000) class classifier, etc. Though I guess the lowest 'n' classes that are in the fresh dataset would be fine-tuned with the target (if it's less, it'd crash if the new dataset has more classes).
FWIW, I just found a bug in the pipeline, it's applying sigmoid instead of softmax by default due to a bug (https://github.com/huggingface/transformers/pull/35848), so add function_to_apply='softmax' if you want softmax probs... this is not specific to the timm integration and looks like it's been there a while. I did confirm that if you set the labels as above the fine-tuned timm model will predict with the correct labels and should push to hub with those as well...
How to integrate with Optimum and load the onnx version of the model.
📅 20 Jan 2025 | ⏱️ 1 min read (83 words, ⚡ Quick Read) | Source: Hugging Face
When you write a latest Article on https://huggingface.co/new-blog, just select your organization in the selector here:.
The Article will be listed under your organization profile, here:.
I want to edit a picture of taylor Kinney holding a paper with a written on it.
Background ko hata kar luxury background aana chaiye with girls jo mujhe dekh rahi ho or natural lagna chaiye.
Alone rider😂, tu alone he rahiyo🤣.
東京ハイエンドデリバリー(さくらガール) Line:ty5563 電報(紙ヒコーキ):tk6659 #日本東京フックアップ #日本東京外出 #日本東京学生ガール #日本車修理 #日本バブルバス #日本カスタムショップ #日本 https://tk6659.my.canva.site/.
📅 22 Jan 2025 | ⏱️ 3 min read (595 words, 📚 Deep Dive) | Source: Hugging Face
FriendliAI’s inference infrastructure is now integrated into the Hugging Face Hub as an option in the “Deploy this model” button, simplifying and accelerating generative AI model serving.
Hugging Face empowers developers, researchers, and businesses to innovate in AI. Our common priority is building impactful partnerships that simplify workflows and provide cutting-edge tools for the AI community.
Today, we are excited to announce a partnership between HF and FriendliAI, a leader in accelerated generative AI inference, to enhance how developers deploy and manage AI models. This integration introduces FriendliAI Endpoints as a deployment option within the Hugging Face Hub, offering developers direct access to high-performance, cost-effective inference infrastructure.
In a recent development, friendliAI is ranked as the fastest GPU-based generative AI inference provider by Artificial Analysis, with groundbreaking technologies including continuous batching, native quantization, and best-in-class autoscaling. With this technology, FriendliAI continues to advance the standards for AI inference serving performance, delivering faster processing speeds, reduced latency, and substantial cost savings for deploying generative AI models at scale. Through this partnership, Hugging Face people and FriendliAI customers can effortlessly deploy open-source or custom generative AI models with unparalleled efficiency and reliability.
In a recent development, last year, FriendliAI introduced a Hugging Face integration, enabling consumers to seamlessly deploy Hugging Face models directly within the Friendli Suite platform. Through this integration, users gained access to thousands of supported open-source models on Hugging Face, as well as the capability to deploy private models effortlessly. The list of model architectures currently supported by FriendliAI can be found here.
Recent findings suggest that today, we’re taking this integration further by enabling the same capability directly within the Hugging Face Hub, offering 1-click deployment for a seamless user experience. You can deploy models directly from the model card on the Hugging Face Hub using a Friendli Suite account.
According to recent reports, selecting Friendli Endpoints will take you to FriendliAI’s model deployment page. Here, you can deploy the model on NVIDIA H100 GPUs while simultaneously interacting with optimized open-source models. The deployment page features an intuitive interface for setting up Friendli Dedicated Endpoints, the managed service for generative AI inference. Additionally, while your deployment is processing, you can chat with open-source models directly on the page, making it easy to explore and test their capabilities.
With FriendliAI’s advanced GPU-optimized inference engine, Dedicated Endpoints delivers fast and cost-effective inference as a managed service. Developers can effortlessly deploy open-source or custom models on NVIDIA H100 GPUs using Friendli Dedicated Endpoints by clicking “Deploy now” on the model deployment page.
It has been revealed that H100 GPUs are powerful but can be expensive to operate at scale. With FriendliAI’s optimized service, you can reduce the number of GPUs needed while maintaining peak performance, significantly lowering costs. Beyond cost efficiency, Dedicated Endpoints also simplifies the complexities of managing infrastructure.
Sources indicate that friendli Serverless Endpoints is the perfect solution for developers who want to efficiently inference open-source models. This service provides user-friendly APIs for models optimized by FriendliAI, ensuring high performance at a low cost. You can chat with these powerful open-source models directly on the model deployment page.
We’re thrilled to deepen the FriendliAI<>HF collaboration, enhancing accessibility to open-source AI for developers worldwide. FriendliAI’s high-speed, cost-efficient inference solution eliminates the complexities of infrastructure management, empowering people to focus on innovation. Together with FriendliAI, we remain committed to transforming how AI is developed, driving groundbreaking innovation that shapes the next era of AI.
You can also give us a Follow on our organization page to be updated about future news 🔥.
📅 03 Nov 2026 | ⏱️ 10 min read (1999 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
In a recent development, weekly. Free. One click to leave.
Industry observers note that 7 Day Free Trial. Cancel Anytime.
Artificial intelligence (AI) is changing how developers learn, write code, and manage their daily work. Tasks that once required hours of searching, testing, and manual effort can now be completed with help from AI. Developers can use it to understand complex programming concepts, find coding errors, learn upcoming technologies, and complete repetitive tasks.
In a recent development, however, AI is not only useful for writing code faster. It can also help developers improve their technical knowledge, solve problems, and build better learning habits. When used correctly, it can become a useful assistant throughout the software development process.
According to recent reports, the key is to understand where AI can help and where human skills are still needed. Here are several practical ways developers can use AI to improve their learning and productivity.
Learning a newly introduced programming language or understanding a difficult concept can take time. Developers often need to read long explanations, watch tutorials, and test different examples before they understand how something works.
AI can make this process easier by explaining technical concepts in simple language. Instead of searching through several websites, developers can ask direct questions and receive explanations based on their current knowledge.
For example, a developer learning JavaScript can ask AI to explain promises, callbacks, or asynchronous functions. It can break these topics into smaller parts and provide simple code examples to make them easier to understand.
It has been revealed that another useful approach is to ask AI to explain the same concept in different ways. If one explanation is difficult to understand, a different example or comparison may make the idea clearer.
In a recent development, AI explanations are not always accurate, especially when dealing with complex programming concepts or unfamiliar technologies. Developers should verify important information before using it in their projects. Hallucination detection can help identify fabricated facts, incorrect technical explanations, and misleading information in AI-generated responses, making it easier to check the accuracy of what they learn.
This helps developers spend less time struggling with unfamiliar topics and more time building their technical knowledge.
Software development changes regularly. New frameworks, libraries, programming languages, and development methods continue to appear. Developers need to keep learning if they want to stay up to date.
AI can support this process by helping developers create learning aims based on their goals and current skills.
For example, a developer who wants to learn Python can ask AI to create a beginner-friendly learning plan. The plan can include basic syntax, variables, loops, functions, object-oriented programming, and small projects.
According to recent reports, AI can also recommend practical exercises for each topic. Instead of only reading about a programming concept, developers can write code and test their understanding.
Here are some ways to use AI when learning upcoming technologies:.
Industry observers note that however, developers should not depend entirely on AI-generated explanations. They should also read official documentation and test examples themselves. This helps them understand how technologies work in real development environments.
AI can help developers improve their coding skills by providing examples, explaining different solutions, and identifying areas that need improvement.
Recent findings suggest that for example, a developer may write a function that works but contains unnecessary steps. They can ask AI to review the code and suggest ways to make it easier to read, maintain, or understand.
AI can also explain why one solution may be better than another. This allows developers to learn different approaches instead of always following the first solution they find.
Some practical ways to use AI for coding improvement include:.
Industry observers note that developers can also ask AI to create small coding challenges based on their skill level. For example, someone learning Python can request exercises about lists, dictionaries, loops, and functions.
The vital thing is to understand the code instead of copying it without review. Developers who examine the logic behind each solution can improve their programming knowledge over time.
Sources indicate that developers learn newly introduced information from many sources, including online courses, technical blogs, documentation, tutorials, and coding projects. Without a proper system, it can become difficult to find useful information when they need it again.
AI can help developers organize this knowledge and make learning resources easier to review.
For example, developers can use AI to summarize long technical explanations, create revision questions, and organize important programming concepts into smaller topics. They can also turn their learning notes into structured study guides that make it easier to revisit important information.
According to recent reports, A well-organized knowledge system can be useful when learning a upcoming framework or preparing for technical interviews. Instead of searching through old browser tabs or reading the same documentation repeatedly, developers can return to their saved explanations and notes.
Here are some useful ways to organize technical knowledge:.
Technical documentation can contain detailed explanations that are difficult to remember. Developers can use AI to summarize notable sections and turn them into short notes.
For example, when learning a new API, they can save information about its main functions, parameters, common errors, and practical examples.
Reading information does not always mean remembering it. Developers can ask AI to create questions from their notes so they can test their understanding.
For example, after learning about database indexing, they can create questions about how indexes work, when to use them, and how they affect query performance.
In a recent development, developers should also save crucial information about their projects. This may include coding decisions, API details, database structures, and solutions to common problems.
Keeping these details organized makes it easier to return to a project after a break or help another developer understand the work.
In a recent development, developers spend a large part of their working time on tasks that do not always require complex problem-solving. These may include writing basic code structures, creating test cases, preparing documentation, and handling repeated coding patterns.
AI can help reduce this manual effort by generating suggestions and automating parts of these tasks.
It has been revealed that for example, when starting a new project, developers often need to create similar code structures, such as basic functions, configuration files, and reusable components. An AI coding assistant can generate an initial version that developers can review and adjust.
Automating these activities gives developers more time to focus on vital parts of their projects, such as system design, complex features, and problem-solving.
Recent findings suggest that however, generated code should always be checked before it is added to a project. Developers need to make sure it follows project requirements, coding standards, and security rules.
Finding and fixing bugs is an vital part of software development. Even experienced developers can spend hours trying to understand why a program is not working as expected.
AI can help make debugging easier by explaining error messages, identifying possible causes, and suggesting solutions.
For example, when a developer encounters a Python error, they can share the relevant code and error message with an AI assistant. The assistant can explain what the error means and suggest possible ways to fix it.
According to recent reports, AI can also help developers review code before submitting it. It may identify common challenges such as:.
Another useful approach is to ask AI to explain why a particular bug occurs instead of only requesting a corrected version of the code.
This helps developers understand the problem and avoid making the same mistake in future projects.
Still, AI suggestions are not always correct. Developers should test proposed fixes, review the surrounding code, and confirm that the solution does not introduce new problems.
It has been revealed that managing several development tasks at once can be difficult. Developers may need to work on fresh features, fix bugs, review code, attend meetings, and meet project deadlines.
AI can help organize these responsibilities by breaking large tasks into smaller and more manageable steps.
For example, if a developer needs to build a user authentication system, they can ask AI to divide the work into separate tasks. These may include creating registration forms, setting up database tables, implementing login logic, adding password protection, and testing the system.
This makes it easier to understand the work involved and decide what needs attention first.
According to recent reports, AI can also help explain technical requirements before development begins. This may reduce confusion and help developers identify missing details early.
However, AI-generated plans should be treated as starting points. Developers still need to consider their actual deadlines, technical limitations, and project requirements before following them.
Although AI offers many benefits, depending on it for every programming task can affect a developer's ability to solve problems independently.
If developers always ask AI to write code, fix errors, and explain every concept, they may miss opportunities to develop their own technical skills.
A 2026 Anthropic study found that participants using AI scored 17 percentage points lower on a programming knowledge quiz than participants who worked without AI in the experiment. This highlights why understanding the work still matters when using coding assistants.
Developers can avoid excessive dependence on AI by following a few simple practices:.
It has been revealed that when facing a coding problem, spend some time understanding it and trying possible solutions. If you get stuck, use AI to explore the issue rather than asking it to complete everything.
Never add AI-generated code to a project without understanding what it does. Review the logic, check the functions, and test the output.
AI can sometimes provide outdated information, incorrect code, or explanations that do not fit a particular project. Check vital details against official documentation and reliable technical resources.
In a recent development, regular coding practice without assistance helps developers maintain their problem-solving skills. It also reveals whether they truly understand a programming concept.
The best approach is to use AI as a helpful assistant while keeping independent thinking and technical judgment at the center of development work.
Using AI occasionally can be helpful, but developers can get more value from it by making it part of a regular learning and working routine.
A simple daily routine can help developers balance their project responsibilities with continuous learning.
For example, developers can follow this approach:.
Start with a learning goal: Spend some time understanding a upcoming programming concept, framework, or technology. Use AI to explain difficult topics and provide practical examples.
Initiative the day's development tasks: Ask AI to help organize important tasks and break complex work into smaller steps.
Use AI during development: Get help with unfamiliar code, debugging, test cases, and repetitive tasks. Review all suggestions before using them.
Save useful information: Keep important explanations, coding examples, and solutions in an organized knowledge base for future reference.
Review what you learned: At the end of the day, revisit important concepts and test your understanding through small questions or coding exercises.
According to recent reports, developers do not need to spend hours following this routine. Even a short period of focused learning each day can help them build knowledge while managing their regular development work.
It has been revealed that AI is becoming a useful part of modern software development. It can help developers understand difficult concepts, learn fresh technologies, improve code quality, debug problems, and complete repetitive tasks more efficiently.
According to recent reports, however, better productivity does not simply mean writing more code in less time. Developers also need to understand what they are building, improve their problem-solving skills, and keep learning as technology changes.
The most effective approach is to use AI for support rather than letting it make every decision. By combining AI assistance with regular practice, independent thinking, and organized learning, developers can improve both their technical skills and everyday productivity.
It has been revealed that 7 Day Free Trial. Cancel Anytime.
📅 23 Jan 2025 | ⏱️ 6 min read (1135 words, 📚 Deep Dive) | Source: Hugging Face

Recent findings suggest that we’re excited to announce two new additions to the SmolVLM family: SmolVLM-256M and SmolVLM-500M. That’s right—256M parameters, making it the smallest Vision Language Model in the world!
Recent findings suggest that we built on everything we learned from SmolVLM 2B while focusing on efficiency, data mixtures, and upcoming design trade-offs. We are excited to introduce a pair of models that preserve strong multimodal performance in a fraction of the footprint.
Recent findings suggest that this release comes with four checkpoints: two base models and two instruction fine-tuned models with sizes 256M and 500M parameters. These models can be loadable directly to transformers, MLX and ONNX, and we have demos for transformers and WebGPU (with ONNX). You can find all the models and the demo for this release here.
We're now reaching model parity with the SmolLM2 family (135M, 360M, 1.7B), so you have a complete set of smaller LLM + VLM combos to play with.
When we released SmolVLM 2B, the community response was fantastic: The model is very light weight, open-source and permissive, and easy to integrate into existing workflows. But we wanted to push this approach even further for people working with constrained devices, consumer laptops, or even potentially browser-based inference. That’s where our latest 256M and 500M models come in. On the other side, for people trying to process huge amounts of data, these models can run at a fraction of the cost of the 2B model.
According to recent reports, in the last year, we trained two 80B VLMs and reduced them to 8B. Then for SmolVLM we took the challenge of reducing that 2B. And what we learned was that we could push the frontier way further! We are excited to show that at 256M and 500M we can still get great performance. Our newly introduced 256M model is the smallest VLM ever released, yet it surpasses the performance of our Idefics 80B model from just 17 months ago.
Industry observers note that with just 256 million parameters, this model stands as the tiniest VLM ever. Despite its small size, it packs a surprising punch. It’s more than capable on many multimodal tasks, including:.
Sources indicate that if you need more performance headroom while still keeping the memory usage low, SmolVLM-500M is our half-billion-parameter compromise. It’s significantly smaller than the previous 2B release yet manages to push scores on tasks like DocVQA and MMMU closer to the bigger models. We also found this model to be more robust to prompting, which makes it out-of-the-box better fitted for production. But both models do great when fine-tuned.
We have visualized the throughput gains across different batch sizes in below graph. Below numbers are throughput benchmarks ran on A100.
1. Vision Encoder Choices Previously, we used the standard SigLIP 400M SO vision backbone, the same one found in many VLM architectures. For these smaller models, we experimented with two setups:.
In a recent development, we found the performance gap wasn’t significant enough to justify the heavier encoder for our 256M and 500M models. So, we decided to go small on the vision encoder, too. As a bonus, the smaller encoder processes images at a larger resolution, which (per research from Apple and Google) can often yield better visual understanding without ballooning parameter counts.
Similarly to our previous release, we rely on The Cauldron and Docmatix with the addition of MathWriting to the mix.
The proportions of the datasets were adjusted to place a stronger emphasis on document understanding (41%) and image captioning (14%), while still maintaining a balanced focus on other essential areas such as visual reasoning, chart comprehension, and general instruction following. With this patch the model is built on a strong document understanding basis and lets the door open to fine-tunes that will adjust its understanding of specific tasks.
We increased the pixel shuffle even more! Our upcoming models encode images at a rate of 4096 pixels per token, compared to 1820 pixels per token in the 2B model.
According to recent reports, to optimize the tokenization even more, we added special tokens to represent our sub-image separators in a more efficient way. This means that now instead of a string like being mapped to 7 tokens, it is mapped to a single token. We did the same for strings up to . This led to a sizeable improvement in the model's stability during training and quality of the results. More details were documented in this LinkedIn post.
Industry observers note that 4. Completing the SmolLM2-SmolVLM family.
SmolLM2 came in three sizes: 135M, 360M, and 1.7B. With the two models we are releasing today, we now have a complete set of smaller LLM + VLM combos to play with.
Recent findings suggest that we also found that it's surprisingly easy to fine-tune and experiment. The team behind the ColBERT-like retrieval models have trained ColSmolVLM, delivering SOTA multimodal retrieval speeds with performance rivaling models 10x their size. SmolVLM makes it faster and cheaper to build searchable databases. We think the 256M model can become a great specialized model for many tasks. Find the link on how to use the latest ColSmolVLM with the new SmolVLM models in Next Steps.
Industry observers note that we partnered with IBM to build models for Docling. Their early results with the 256M model are impressive. Below are some early examples they shared with us. Stay tuned for more updates on this!
Newer SmolVLMs are working out-of-the-box with the old SmolVLM code, so you can use transformers and MLX for inference and fine-tuning, and TRL for alignment 🚀 Moreover, this release also comes with ONNX checkpoints.
Get started with SmolVLM using transformers like below.
Use SmolVLM with MLX by running the following CLI command:.
You can play with the WebGPU demos for the SmolVLM-256M-Instruct and SmolVLM-500M-Instruct.
Find links to fine-tuning and multimodal RAG with ColSmolVLM on the Next Steps.
You can cite us in the following way:.
We would like to thank ViDoRe team for training ColSmolVLM: Tony Wu, Manuel Faysse, and Joshua Lochner for the ONNX conversion and WebGPU demo and Vaibhav Srivastav for his help on this release.
Great blog post! Congratulations on the release.
Sources indicate that personally, I don't think it's fair to compare a unilingual model on unilingual benchmarks against multilingual models. Are unilingual models that relevant in 2025, anyways? There are no use cases in the real world for unilingual models.
I'm starting to think in some use cases if unilingual (therefore small) model is capable of doing a niche task, and we want to chain or parallelize many of these small models in an agentic workflow, it's even reasonable to translate the original prompt by a multilingual model beforehand.
you have swaped the link for the ColSmal and the fine tuningawesome work.
📅 23 Jan 2025 | ⏱️ 6 min read (1283 words, 📚 Deep Dive) | Source: Hugging Face
TL;DR: KVPress packs the latest KV cache compression techniques, enabling memory-efficient long-context LLMs. 🚀.
In a recent development, one of the key features of Large Language Models (LLMs) is their context window—the maximum number of tokens they can process in a single request. As LLMs evolve, their context windows are becoming increasingly larger.
Larger context windows unlock incredible possibilities:.
However, these extended windows come at a cost—memory taken by the long context in the KV Cache becomes hard to manage. For instance, handling 1M tokens with Llama 3-70B in float16 demands 330GB for KV Cache, rendering it infeasible for many applications.
In this blog post, we'll address one solution for this problem: compressing the KV Cache for more efficient generation. To achieve this, we'll explore:.
Before getting started, explore KVPress in this Space (you'll find examples at the end if needed):.
Figure 1: Key Value cache inside the attention module (Source: NVIDIA).
In autoregressive models, text generation happens token by token, with each prediction relying on all preceding tokens for context. For example:.
In a recent development, this repetitive computation becomes inefficient as the sequence grows, especially for large models. KV Cache optimizes this process by storing the intermediate results—keys (K) and values (V)—from the attention layers, so the model can reuse them for future tokens instead of recalculating them.
As powerful as the KV Cache is, it comes with a major drawback-it scales linearly with the size of the context window. While this might not sound alarming at first, let's break it down to see why this becomes a serious bottleneck.
The values stored in the KV Cache come from all the attention blocks used by the model. Therefore, its size depends on the model architecture, which dictates the number of attention heads. More concretely, the memory consumed by the KV Cache is determined by the following equation:.
Size(KV)=2×precision×nlayers×nheads×d×ntokens \text{Size}(\text{KV}) = 2 \times \text{precision} \times n_{layers} \times n_{heads} \times d \times n_{tokens} Size(KV)=2×precision×nlayers×nheads×d×ntokens.
In a recent development, each of these factors contributes to the explosion in memory usage. To make this more tangible, let's consider a concrete example—Llama 3-70B running in bfloat16 precision (as recommended by the model authors) with a context size of 1M tokens:.
Size(KV)=2×2×80×8×128×1M=327.6GB \text{Size}(\text{KV}) = 2 \times 2 \times 80 \times 8 \times 128 \times 1M = 327.6 \text{GB} Size(KV)=2×2×80×8×128×1M=327.6GB.
It has been revealed that since bfloat16 uses 2 bytes per parameter, the model weights alone require 140 GB (70B x 2 bytes). This means that running the model with a 1M token context size demands approximately 470 GB of memory, with the KV cache alone accounting for a staggering 70% of this total.
As we've seen, the KV Cache is both a critical enabler and a significant bottleneck for deploying large language models (LLMs) with long context windows. Addressing the linearly scaling memory problem requires innovative compression techniques, and that's exactly where KVPress steps in.
Sources indicate that KVPress, developed by NVIDIA, is a Python toolkit designed to address the memory challenges of large KV Caches by providing a suite of state-of-the-art compression techniques. It also integrates with other approaches, such as KV Cache Quantization, a method built into the transformers library to reduce memory usage (the precision term in the equation above), further expanding its utility (details here).
In a recent development, for researchers specializing in compression, KVPress offers a flexible and modular framework, making it easy to understand and extend with new methods. For developers, KVPress simplifies the process of deploying these cutting-edge techniques, enabling quick and efficient integration into real-world applications.
At its core, KVPress leverages presses, which are advanced compression algorithms specifically designed to reduce the memory footprint of the KV Cache.
According to recent reports, many of these presses rely on a score that is used in each head to prune the KV pairs with the lowest importance. For instance the KnormPress prunes the KV pairs with lowest key value norm (paper), and SnapKVPress prunes the KV pairs associated with a low attention weights for the latest queries (paper).
These presses are seamlessly integrated into the attention layers of the model using forward hooks.
Figure 2: KV Compression visualized (Source: NVIDIA).
During text generation, they dynamically compress the KV Cache, reducing memory usage without compromising the model's ability to generate coherent and accurate outputs. Each press is characterized by a compression_ratio attribute, which determines the degree of compression applied to the KV Cache.
These presses integrate seamlessly with a custom transformers pipeline, enabling easy application and experimentation.
Sources indicate that here's how you can use a press with KVPress with one of the many presses, ExpectedAttentionPress. This press prunes the KV pairs associated with the lowest expected attention weight for future queries.
Try using it directly in this Hugging Face space or in this Google colab notebook!
By targeting the pre-filling phase, KVPress ensures that the cache is compressed when it's largest—helping reduce memory overhead for sequences with tens of thousands or even millions of tokens.
Recent findings suggest that the plot below demonstrates the GPU memory savings achieved with KVPress compression as prompt lengths increase. For shorter prompts, most of the memory is allocated to model weights—approximately 15GB for Llama 3.1 8B in bfloat16. However, as prompt lengths grow, the KV cache becomes a major contributor to memory consumption. For 128k context length, applying KVPress with a 50% compression ratio reduces peak memory usage from 45GB to 37GB. This smaller KV cache also improves decoding speed, from 11 tokens per second to 17 tokens per second on an A100 GPU (source). .
Figure 3: Memory usage vs Context length (Source: NVIDIA).
According to recent reports, the research community has been actively developing various techniques for KV cache compression. KVPress encourages researchers to contribute their methods and already provides more than a dozen presses.
In a recent development, to evaluate the performance of these presses, KVPress includes a simple CLI for benchmarking them on standard long-context datasets such as RULER, InfiniteBench, and Loogle. The plot below benchmarks 9 different presses on the RULER dataset with 4k context length and different compression ratio. The best performing press on this dataset is a combination of the AdaKVPress (paper) and ExpectedAttentionPress, a upcoming unpublished pruning technique created by the authors of KVPress (more information here).
Figure 4: Average score vs Compression ratio (Source: NVIDIA).
The growing context windows of LLMs unlock newly introduced possibilities but pose significant memory challenges with the linearly scaling KV Cache. KVPress addresses this by compressing the cache during the critical pre-filling phase.
It has been revealed that while KVPress improves memory efficiency, higher compression ratios can impact model accuracy, as shown in the benchmark plot. Further research is needed to develop more effective compression algorithms that minimize trade-offs.
With its seamless integration into the transformers library and modular design, KVPress empowers researchers and developers to handle long-context LLMs efficiently and design upcoming compression techniques. It's a practical solution for scaling LLMs without overwhelming memory resources—ensuring innovation stays accessible as models grow.
really cool post! love the embedded Gradio app, cc @abidlabs.
Happy you like it @julien-c ! Feel free to share it on social media to raise awareness around the package 🤗.
It has been revealed that love it! Thanks for writing this! Curious about the impact on the FLOP count. Since we're reducing the size of the KV cache, the number of operations F(QK.T)V will also decrease, but is this reduction being replaced by the compression.
We've not measured FLOPs, but we have a few plots here that measure total time for generation here: https://github.com/NVIDIA/kvpress/blob/main/notebooks/speed_and_memory.ipynb.
For most presses, the compression computation are very light compared to the forward pass of the long context itself.
https://github.com/NVIDIA/kvpress/complications/151.
📅 24 Jan 2025 | ⏱️ 5 min read (936 words, 📚 Deep Dive) | Source: Hugging Face
Industry observers note that you hypocrite, first take the log out of your own eye, and then you will see clearly to take the speck out of your brother's eye. Matthew 7, 3-5.
We have added vision support to smolagents, which unlocks the use of vision language models in agentic pipelines natively.
In the agentic world, many capabilities are hidden behind a vision wall. A common example is web browsing: web pages feature rich visual content that you never fully recover by simply extracting their text, be it the relative position of objects, messages transmitted through color, specific icons… In this case, vision is a real superpower for agents. So we just added this capability to our smolagents!
Teaser of what this gives: an agentic browser that navigates the web in complete autonomy!
Here's an example of what it looks like:.
🤔 How do we want to pass images to agents? Passing an image can be done in two ways:.
For the case where we want to pass images at once, we added the possibility to pass a list of images to the agent in the run method: agent.run("Describe these images:", images=[image_1, image_2]) .
These image inputs are then stored in the task_images attribute of TaskStep along with the prompt of the task that you'd like to accomplish.
Recent findings suggest that when running the agent, they will be passed to the model. This comes in handy with cases like taking actions based on long PDFs that include visual elements.
How to dynamically add images into the agent’s memory?
To find out, we first need to understand how our agents work.
All agents in smolagents are based on the singular MultiStepAgent class, which is an abstraction of the ReAct framework. On a basic level, this class performs actions on a cycle of following steps, where existing variables and knowledge are incorporated into the agent logs as follows:.
The figure below details this process:.
As you can see, for use cases where images are dynamically retrieved (e.g. web browser agent), we support adding images to the model’s ActionStep, in attribute step_log.observation_images.
This can be done via a callback, which will be run at the end of each step.
Let's demonstrate how to make such a callback, and using it to build a web browser agent.👇👇.
We’re going to use helium. It provides browser automations based on selenium: this will be an easier way for our agent to manipulate webpages.
According to recent reports, the agent itself can use helium directly, so no need for specific tools: it can directly use helium to perform actions, such as click("top 10") to click the button named "top 10" visible on the page. We still have to make some tools to help the agent navigate the web: a tool to go back to the previous page, and another tool to close pop-ups, because these are quite hard to grab for helium since they don’t have any text on their close buttons.
Industry observers note that for now, the agent has no visual input. So let us demonstrate how to dynamically feed it images in its step logs by using a callback. We make a callback save_screenshot that will be run at the end of each step.
The most vital line here is when we add the image in our observations images: step_log.observations_images = [image.copy()].
Recent findings suggest that this callback accepts both the step_log, and the agent itself as arguments. Having agent as an input allows to perform deeper operations than just modifying the last logs.
Let's make a model. We've added support for images in all models. Just one precision: when using TransformersModel with a VLM, for it to work properly you need to pass flatten_messages_as_text as False upon initialization, like:.
For this demo, let's use a bigger Qwen2VL via Fireworks API:.
Sources indicate that now let’s move on to defining our agent. We set the highest verbosity_level to display the LLM’s full output messages to view its thoughts, and we increased max_steps to 20 to give the agent more steps to explore the web. We also provide it with our callback save_screenshot defined above.
Finally, we provide our agent with some guidance about using helium.
Now everything's ready: Let’s run our agent!
Recent findings suggest that note, however, that this task is really hard: depending on the VLM that you use, this might not always work. Strong VLMs like Qwen2VL-72B or GPT-4o succeed more often.
This will give you a glimpse of the capabilities of a vision-enabled CodeAgent, but there’s much more to do!
We are looking forward to seeing what you will build with vision language models and smolagents!
Note: for the modal closing selectors please note that modals are also known as dialog elements and if built robustly should have a role="dialog" attribute in this is something that can be searched for when identifying these pop up windows.
In addition, any dialog/modal window should be closeable via the escape key as well!
Hope this helps identify modals/dialogs in a broader sense and/or helps close them out easier!
related code chunk from above for reference :).
Oh that's a great point, thanks a lot! Putting this to good use!
If you have the power to do it. then:HELP! HELP! HELP! https://arxiv.org/auth/endorse?x=VMBF4S.
Hm, what happened to the Agentic Web Browser sample? @m-ric https://github.com/huggingface/smolagents/blob/main/examples/vlm_web_browser.py.
We integrated it in the main repo here: https://github.com/huggingface/smolagents/blob/main/src/smolagents/vision_web_browser.pyThus it was removed from examples/.
According to recent reports, I'm getting this deprecation warning "The 'logs' attribute is deprecated and will soon be removed. Please use 'self.memory.steps' instead." What action should be taken?
📅 03 Nov 2026 | ⏱️ 7 min read (1351 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
In a recent development, weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
Most SaaS products don't lose users because the software is bad. They lose users in the first few minutes, before anyone has seen what the product can actually do. Someone signs up, lands on an empty dashboard, feels a flicker of confusion, and quietly leaves. The industry has a name for the gap between signing up and getting value: activation. Closing it is one of the hardest problems in product design.
It has been revealed that motion design is one of the most underused tools for closing that gap. Used well, animation isn't decoration sprinkled on at the end. It's a layer of communication that tells people where to look, confirms that their actions worked, and makes a complex interface feel learnable instead of overwhelming. This article looks at why motion influences behaviour during onboarding, the specific patterns that move the needle on activation and feature adoption, and how to build them responsibly as a developer — with an eye on performance and accessibility throughout.
Industry observers note that motion works in onboarding because it speaks to how human perception actually operates, not because it looks modern. A few principles do most of the heavy lifting.
Recent findings suggest that it directs attention. The eye is drawn to movement before it reads a single word. A gently pulsing button or an element that slides into view tells a fresh user where to go next without a paragraph of instructions. On a crowded first-run screen, that guidance is the difference between a confident first action and a confused exit.
It preserves context. When a panel expands, a card flips, or a upcoming view slides in from the right, a short transition demonstrates consumers where things came from and where they went. This spatial continuity keeps people oriented. Interfaces that snap instantly between states force the user to re-scan the screen each time and silently rebuild their mental model.
It has been revealed that it confirms actions. Every click, toggle, and form submission is a small question: did that work? A quick visual response — a checkmark drawing itself, a row settling into place — answers it immediately. Without that feedback, people repeat actions, doubt the system, or assume something broke.
It shapes perceived performance. A thoughtful loading animation or skeleton screen makes a wait feel shorter and the product feel responsive, even when the underlying request takes exactly as long. Perception of speed is part of the experience, and motion is how you manage it.
These are the patterns that reliably help newly introduced customers reach their first win.
Onboarding doesn't end after the first session. Most SaaS products keep shipping features, and each one faces its own adoption problem: people settle into a few familiar workflows and never discover the rest. Motion is how you reintroduce the product to people who already think they know it.
Contextual nudges that appear in motion — a tooltip that eases in near a newly relevant button, a gentle highlight on a feature the moment a user hits the limit it solves — are far more effective than a generic email. They arrive at the point of need and use movement to pull attention without hijacking the screen.
"What's new" reveals can announce an update with a small, well-timed animation rather than a modal that gets dismissed on reflex. A badge that animates in, or a panel that slides open on the first visit to a page, respects the user's flow while still being noticed.
In a recent development, animated demonstrations carry the most weight for genuinely complex features. Showing a feature in motion — rather than describing it in text — lets people grasp a multi-step workflow in seconds. For intricate capabilities, this is where a short, purpose-made explainer earns its place, a point we return to in the next section.
In a recent development, the right tool depends on how complex the animation is and where it lives. Roughly in order of weight:.
In a recent development, CSS transitions and keyframe animations should be your default. They cover the large majority of onboarding motion — hovers, state changes, highlights, progress bars — and the browser can run them efficiently. Reach for JavaScript only when CSS genuinely can't express what you need.
Recent findings suggest that the Web Animations API gives you CSS-level performance with programmatic control, which matters when animations depend on data or user input, or need to be sequenced and interrupted. SitePoint's guide to the Web Animations API is a solid introduction, and the broader web animation archive covers libraries like GSAP for orchestrating complex timelines.
In a recent development, lottie is the bridge between designer-made animation and the web. Designers export vector animations as JSON, and a lightweight player renders them natively at small file sizes — ideal for polished illustrative moments like success states and animated empty states, without hand-coding every frame.
Pre-rendered video is the right call when a feature is genuinely involved and a looping CSS animation or a tooltip simply can't carry the explanation. A short, well-produced walkthrough can compress a multi-step workflow into something a user absorbs in under a minute, which is why many teams lean on a dedicated SaaS explainer video for their most complex features and onboarding moments. The trade-off is weight and production effort, so reserve video for the handful of places where it genuinely outperforms in-interface motion, lazy-load it, and never autoplay it with sound.
Motion that stutters does more damage than no motion at all, and motion that ignores accessibility can actively harm customers. Two disciplines keep animation on the right side of that line.
Sources indicate that for performance, animate the properties the browser can handle cheaply: transform and opacity. These can run on the compositor thread without triggering layout or paint, which is what lets animation hold a smooth 60fps. Animating properties like width, height, top, or left forces the browser to recalculate layout on every frame and is the usual cause of janky motion. Keep animations short — most interface transitions should land between 150 and 300 milliseconds — because motion that overstays its welcome makes a product feel slow.
For accessibility, honour the prefers-reduced-motion media query. Some users experience dizziness, nausea, or disorientation from movement, and the operating system lets them ask for less of it. Respecting that setting is straightforward:.
Industry observers note that beyond that, never let an animation block interaction. If a user has to wait for a flourish to finish before they can click, the motion is working against them. Animation should support the task and then get out of the way.
According to recent reports, motion design is a product decision, so treat it like one and measure it. The metrics that matter map directly to the problems motion is meant to solve.
Treat animations as hypotheses and A/B test them. Ship the animated onboarding step to half of your upcoming owners and measure activation against the control. Motion should earn its place with data, not assumptions — and occasionally the data will tell you an animation is slowing people down, which is just as useful to know.
According to recent reports, the best onboarding motion is the kind users never consciously notice. It simply makes the product feel clear, responsive, and easy to learn — guiding attention, confirming actions, and turning a complex interface into something approachable. That's the real payoff: not animation for its own sake, but fewer confused users, faster time to value, and features that actually get discovered.
Start small. Pick the single point in your onboarding where customers most often stall, add one purposeful animation that removes the confusion, and measure what happens. Motion, used deliberately, is one of the most direct levers you have on activation and adoption — and like any good tool, it works best when it draws no attention to itself.
7 Day Free Trial. Cancel Anytime.
📅 27 Jan 2025 | ⏱️ 10 min read (1907 words, 📚 Deep Dive) | Source: Hugging Face
It has been revealed that openAI’s Sora demo marked a striking advance in AI-generated video last year and gave us a glimpse of the potential capabilities of video generation models. The impact was immediate and since that demo, the video generation space has become increasingly competitive with major players and startups producing their own highly capable models such as Google’s Veo2, Haliluo’s Minimax, Runway’s Gen3 Alpha, Kling, Pika, and Luma Lab’s Dream Machine.
Open-source has also had its own surge of video generation models with CogVideoX, Mochi-1, Hunyuan, Allegro, and LTX Video. Is the video community having its “Stable Diffusion moment”?
This post will provide a brief overview of the state of video generation models, where we are with respect to open video generation models, and how the Diffusers team is planning to support their adoption at scale.
These are today's most popular video models for AI-generated content creation.
There are several factors we’d like to see and control in videos:.
According to recent reports, with image generation models, we usually only care about the first three aspects. However, for video generation we now have to consider motion quality, coherence and consistency over time, potentially with multiple subjects. Finding the right balance between good data, right inductive priors, and training methodologies to suit these additional requirements has proved to be more challenging than other modalities.
Text-to-video generation models have similar components as their text-to-image counterparts:.
According to recent reports, the latest generation of video models shares a core feature where the denoising network processes 3D video tokens that capture both spatial and temporal information. The video encoder-decoder system, responsible for producing and decoding these tokens, employs both spatial and temporal compression. While decoding the latents typically demands the most memory, these models offer frame-by-frame decoding options to reduce memory usage.
Text conditioning is incorporated through either joint attention (introduced in Stable Diffusion 3) or cross-attention. T5 has emerged as the preferred text encoder across most models, with HunYuan being an exception in its use of both CLIP-L and LLaMa 3.
The denoising network itself builds on the DiT architecture developed by William Peebles and Saining Xie, while incorporating various design elements from PixArt.
There are three broad categories of generation possible when working with video models:.
It has been revealed that going from a text (and other conditions) to a video is just a few lines of code. Below we show how to do text-to-video generation with the LTX-Video model from Lightricks.
The memory requirements for any model can be computed by adding the following:.
Industry observers note that memory required by weights can be lowered via - quantization, downcasting to lower dtypes, or by offloading to CPU. Memory required for activations states can also be lowered but that is a more involved process, which is out of the scope of this blog.
It is possible to run any video model with extremely low memory, but it comes at the cost of time required for inference. If the time required by an optimization technique is more than what a user considers reasonable, it is not feasible to run inference. Diffusers provides many such optimizations that are opt-in and can be chained together.
In the table below, we provide the memory requirements for three popular video generation models with reasonable defaults:.
These numbers were obtained with the following settings on an 80GB A100 machine (full script here):.
These requirements are quite staggering, and make these models difficult to run on consumer hardware. With Diffusers, users can opt-in to different optimizations to reduce memory usage. The following table provides the memory requirements for HunyuanVideo with various optimizations enabled that make minimal compromises on quality and time required for inference.
We used HunyuanVideo for this study, as it is sufficiently large enough, to show the benefits of the optimizations in a progressive manner.
*8Bit models in bitsandbytes cannot be moved to CPU from GPU, unlike the 4Bit ones. ^The memory usage does not reduce further because the peak utilizations come from computing attention and feed-forward. Using Flash Attention and Optimized Feed-Forward can help lower this requirement to ~5 GB.
It has been revealed that we used the same settings as above to obtain these numbers. Also note that due to numerical precision loss, quantization can impact the quality of the outputs, effects of which are more prominent in videos than images.
It has been revealed that we provide more details about these optimizations in the sections below along with some code snippets to go. But if you're already feeling excited, we encourage you to check out our guide.
Sources indicate that video generation can be quite difficult on resource-constrained devices and time-consuming even on beefier GPUs. Diffusers provides a suite of utilities that help to optimize both the runtime and memory consumption of these models. These optimizations fall under the following categories:.
Below, we provide a list of some advanced optimization techniques that are right now work-in-progress and will be merged soon:.
In a recent development, below is an example of applying 4bit quantization, vae tiling, cpu offloading, and layerwise casting to HunyuanVideo to reduce the required VRAM to just ~6.5 GB for 121 x 512 x 768 resolution videos. To the best of our knowledge, this is the lowest memory requirement to run HunyuanVideo among all available implementations without compromising speed.
According to recent reports, install Diffusers from source to try out these features! Some implementations are agnostic to the model being used, and can be applied in other backends easily - be sure to check it out!
We can also apply optimizations during training. The two most well-known techniques applied to video models include:.
We refer the readers to this guide for a detailed take on video generation and the current possibilities in Diffusers.
We’ve created finetrainers - a repository that allows you to easily fine-tune the latest generation of open video models. For example, here is how you would fine-tune CogVideoX with LoRA:.
In a recent development, we used finetrainers to emulate the "dissolve" effect and obtained promising results. Check out the model for additional details.
We anticipate significant advancements in video generation models throughout 2025, with major improvements in both output quality and model capabilities. Our goal is to make using these models easy and accessible. We will continue to grow the finetrainers library, and we are planning on adding many more features: Control LoRAs, Distillation Algorithms, ControlNets, Adapters, and more. As always, community contributions are welcome 🤗.
Our commitment remains strong to partnering with model publishers, researchers, and community members to ensure the latest innovations in video generation are within reach to everyone.
Sources indicate that we cited a number of links throughout the post. To make sure you don’t miss out on the most important ones, we provide a list below:.
Acknowledgements: Thanks to Chunte for creating the beautiful thumbnail for this post. Thanks to Vaibhav and Pedro for their helpful feedback.
Thanks for the great blog post!
It has been revealed that the blog post, titled "State of Open Video Generation Models in Diffusers," was published on January 27, 2025, by Sayak Paul and others at Hugging Face. It focuses on the advancements and current state of video generation models within the 🤗 Diffusers library, a popular open-source toolkit for diffusion models used in generating images, audio, videos, and more. The post likely builds on Hugging Face’s ongoing efforts to democratize AI through open science and open-source tools, as highlighted in the web results.
Key Points (Inferred from Context and Web Results):.
Industry observers note that focus on Video Generation Models:The blog discusses state-of-the-art diffusion models for video generation, building on the success of image and audio generation models. It likely references recent developments, such as OpenAI’s Sora demo (mentioned in web result 1), which showcased impressive video generation capabilities in 2024. It emphasizes the challenges of video generation, such as maintaining temporal consistency across frames, as noted in web result 2 (Lil’Log on diffusion models for video).
Sources indicate that diffusers Library Highlights:The post details how the Diffusers library supports video generation through pretrained models, pipelines, and noise schedulers. Web result 0 (GitHub - huggingface/diffusers) describes Diffusers as a "go-to library" for diffusion models, offering modular tools for inference and training, which likely forms the technical backbone of the blog.
It may include practical examples, such as how to use pipelines for video generation with just a few lines of code, and advanced optimization techniques like re-use of attention and MLP states (from web result 1).Open-Source and Accessibility:.
Hugging Face’s mission to advance and democratize AI is central, as seen in web result 1. The blog probably highlights open-source video models (e.g., CogVideoX, Stable Video Diffusion) and tools like finetrainers, a repository for fine-tuning video models, as mentioned in the web results.It could also discuss how developers can contribute to or build upon these models, aligning with the library’s modularity and community-driven approach.
Recent Developments (as of January 2025):Given the publication date, the blog likely covers progress in 2025, anticipating "significant advancements" in video generation quality and capabilities throughout the year (web result 1).It may reference fine-tuning techniques (e.g., LoRA, ControlNets, Adapters) and upcoming features in the Diffusers library, as outlined in web result 1.
Recent findings suggest that why It’s Interesting (for the Human):The Human’s interest in this post and the blog suggests a curiosity about AI advancements, particularly in video generation. The blog ties into cutting-edge AI research, open-source tools, and practical applications, which align with xAI’s mission (and mine as Grok 3 mini) to accelerate human scientific discovery.It’s also relevant given the rapid progress in generative AI, with models like Sora setting benchmarks, and Hugging Face’s role as a leader in making these tools accessible.Potential Content in the Blog:.
Technical Details: Descriptions of diffusion pipelines (e.g., VDM, Imagen Video from web result 2), model architectures, and optimization techniques.
Conclusion:The blog post at huggingface.co/blog/video_gen is a deep dive into the state of open-source video generation models in Diffusers, published in early 2025. It’s a technical yet accessible resource for AI researchers, developers, and enthusiasts interested in the latest in video AI, reflecting Hugging Face’s commitment to open science. Sayak Paul’s promotion of it on X underscores its importance and his desire for broader engagement, making it a compelling topic for your interest in AI and X posts. If you’d like, I can help you explore specific sections, related tools, or even draft a response for Sayak!
Wonderful resource to start with!
This is a great overview, especially the discussion around how video generation is fundamentally harder than image generation because temporal consistency, motion dynamics, and conditioning all have to work together.
One thing that has become increasingly crucial in practice is the workflow around these models. For many creators, starting from an image can be more controllable than generating everything from text, especially when character appearance, composition, or a specific visual style needs to be preserved in the resulting video. The challenge is not only choosing a good model, but also having a practical way to experiment with different models and workflows without setting up and maintaining a large local GPU environment.
That is one reason image-to-video has become such an interesting part of the video generation ecosystem. For anyone experimenting with different models and approaches, this Image to Video workflow can also be useful for turning existing images into videos and comparing different generation approaches.
📅 28 Jan 2025 | ⏱️ 8 min read (1522 words, 📚 Deep Dive) | Source: Hugging Face
If you’ve ever struggled with a tough math problem, you know how useful it is to think a little longer and work through it carefully. OpenAI’s o1 model indicated that when LLMs are trained to do the same—by using more compute during inference—they get significantly better at solving reasoning tasks like mathematics, coding, and logic.
However, the recipe behind OpenAI’s reasoning models has been a well kept secret. That is, until last week, when DeepSeek released their DeepSeek-R1 model and promptly broke the internet (and the stock market!).
Recent findings suggest that besides performing as well or better than o1, the DeepSeek-R1 release was accompanied by a detailed tech report that outlined the key steps of their training recipe. This recipe involved several innovations, most notably the application of pure reinforcement learning to teach a base language model how to reason without any human supervision. As shown in the figure below, making a powerful reasoning model is now very simple if you have access to a capable base model and a high-quality data mixture:.
However, the DeepSeek-R1 release leaves open several questions about:.
Industry observers note that these questions prompted us to launch the Open-R1 project, an initiative to systematically reconstruct DeepSeek-R1’s data and training pipeline, validate its claims, and push the boundaries of open reasoning models. By building Open-R1, we aim to provide transparency on how reinforcement learning can enhance reasoning, share reproducible insights with the open-source community, and create a foundation for future models to leverage these techniques.
In this blog post we take a look at key ingredients behind DeepSeek-R1, which parts we blueprint to replicate, and how to contribute to the Open-R1 project.
Industry observers note that deepSeek-R1 is a reasoning model built on the foundation of DeepSeek-V3. Like any good reasoning model, it starts with a strong base model, and DeepSeek-V3 is exactly that. This 671B Mixture of Experts (MoE) model performs on par with heavyweights like Sonnet 3.5 and GPT-4o. What’s especially impressive is how cost-efficient it was to train—just $5.5M—thanks to architectural changes like Multi Token Prediction (MTP), Multi-Head Latent Attention (MLA) and a LOT (seriously, a lot) of hardware optimization.
It has been revealed that deepSeek also introduced two models: DeepSeek-R1-Zero and DeepSeek-R1, each with a distinct training approach. DeepSeek-R1-Zero skipped supervised fine-tuning altogether and relied entirely on reinforcement learning (RL), using Group Relative Policy Optimization (GRPO) to make the process more efficient. A simple reward system was used to guide the model, providing feedback based on the accuracy and structure of its answers. This approach helped the model develop useful reasoning skills, such as breaking problems into steps and verifying its own outputs. However, its responses often lacked clarity and were difficult to read.
In a recent development, that’s where DeepSeek-R1 comes in. It started with a "cold start" phase, fine-tuning on a small set of carefully crafted examples to improve clarity and readability. From there, it went through more RL and refinement steps, including rejecting low-quality outputs with both human preference based and verifiable reward, to create a model that not only reasons well but also produces polished and consistent answers.
Recent findings suggest that this all sounds great, but what's actually missing? Let's have a look at the missing pieces of the puzzle.
The release of DeepSeek-R1 is an amazing boon for the community, but they didn’t release everything—although the model weights are open, the datasets and code used to train the model are not 😢.
The goal of Open-R1 is to build these last missing pieces so that the whole research and industry community can build similar or better models using these recipes and datasets. And by doing this in the open, everybody in the community can contribute!
As shown in the figure below, here’s our initiative of attack:.
Industry observers note that note that we don’t want to stop at math datasets. There’s a lot of potential in exploring other areas, obvious one like code but also scientific fields such as medicine, where reasoning models could have significant impact.
This initiative isn’t just about replicating results—it’s about sharing insights with the community. By documenting what works, what doesn’t, and why, we hope to save others from wasting time and compute on unproductive paths.
If this sounds interesting, we’d love your help! Whether it’s contributing code, joining discussions on Hugging Face, there are plenty of ways to get involved. Let’s build this together! 🚀.
According to recent reports, where is the evaluation numbers? without it you can’t call it reproduction.
Recent findings suggest that true, but it seems like there’s nothing to be evaluated as of right now. I assume the ultimate goal is to train a new reasoning model and then use the same evaluation metrics as o1 and the DeepSeek-R1.
According to recent reports, that's quite interesting,I was asking myself why the questions the author exposed here are not being asked by others ? I believe the work they have done is memorable but at the same time I wonder why they wouldn't put these missing pieces on if they are supposed to be fully open.Why even without reproduction and comprehension of the innovation they could affect so much the market in this way ?
Hi! This blog post is an introduction to the project, not a claim that we’ve reproduced R1 yet. We will totally share the missing piece when we have them, you can expect the models and datasets to be upload in this Hugging Face org and the code to be in this GitHub repo.
Interesting read, and it is good that we see more effort into this direction: more optimization and less brute force.Also wonder what tool did the author use for creating step diagram.
I'm so glad that initiative like this already exist, I'm gonna try to contribute :).
Awesome to have this open reproduction started!
For Step #1 check out https://github.com/open-thoughts/open-thoughts!
https://x.com/ryanmart3n/status/1884284101265612856.
It's really cool to see how the whole open source community comes together!
Does anyone know the actual training cost of r1? I can't find it in the paper or the announcement post. Is the 6M cost reported by media just the number taken from v3's training cost?
It has been revealed that has anyone asked the DeepSeek team to publish their training data and code, or at least share them privately with an independent replication project like this? Have they rejected such a request?
According to recent reports, A faithful replication depends on using the same dataset and hyperparameters. Otherwise, any major discrepancies with the published benchmarks would be hard to pin down—whether due to training data differences or the replication method itself.
According to recent reports, historically, they have never released code or datasets of their LLM training, so I wouldn't expect this time to be different. If they would release it that would be amazing of course!
In the meantime we have to make best guess estimates and see if we can get there ourselves.
You provide good replication process of Deepseek reasoning training. I will try something similar to it.
This is really good information, can we fine tune with specific use case when code is released ?
So basically you're asking to replace existing censorship with another flavour of censorship?
Sources indicate that can't wait! Hopefully the model will be uncensored but whatever you can do is alright! Love seeing open source building itself up. I'm not smart enough to actually help but I can contribute moral support lol.
Recent findings suggest that hello guys, I am even just trying to find code for DeepSeek-V2, in order to fully understand multi-head latent attention. You do not seem to have code in Hugging Face even for that. Or am I missing something? Don't see anything in src/transformers/models. MLA is not properly described in their paper, so it would be vital to have code for this.
Industry observers note that the code for the models are inside the model repositories, e.g. for V3: https://huggingface.co/deepseek-ai/DeepSeek-V3/blob/main/modeling_deepseek.py.
Is it possible to contribute to this project?
Yes, you can look at https://huggingface.co/open-r1 and https://github.com/huggingface/open-r1/discussions :).
Recent findings suggest that I wonder what data was used for the training of R1 and R1-zero. Is there any news on the possibly tos -breaking openAI API calls that were made this past autumn?
In a recent development, this project inspires me. At the moment, I developed an enhanced transformer. The goal is to figure out an equivalent SFT component in deepseek. The theoretical part and numeric examples worked out fine. I am now implementing it in a small scale LLM. Hopefully we can see the benchmark results in a few weeks. Thanks for the inspiration.
According to recent reports, releasing weights means open-binary ie freeware (as opposed to SAAS). but the actual blueprint/design of the network, defined in a HL language, is not provided, so it isn't even partially open (SOURCE).
PS: Why don't OpenAI change its name since it guide AI industry into another directions?
If you need any help with Open-R1? Please let me know.
How's it going? I don't see more comment or updates here since Feb.
📅 03 Nov 2026 | ⏱️ 7 min read (1472 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
Weekly. Free. One click to leave.
It has been revealed that 7 Day Free Trial. Cancel Anytime.
Sources indicate that this is the least glamorous part of building with LLMs and it's where a lot of agent projects quietly fall over. The model is rarely the problem. The fetch is. In this article we'll look at why live web retrieval has become so unreliable for AI tools, what the numbers say about the shift, and how to build a small, well-behaved fetch layer in Python that fails loudly instead of feeding your model garbage.
Industry observers note that A few years ago, a plain requests.get() worked on most of the public web. That's no longer true, and the reason is simple: there are now more bots than people.
Industry observers note that according to the 2025 Imperva Bad Bot Report, automated traffic made up 51% of all web traffic in 2024. That's the first time in a decade it has passed human activity. Bad bots alone (scrapers, credential stuffers, scalpers) went from 32% to 37% of traffic in a single year.
Source: Imperva Bad Bot Report 2024 and 2025.
From a site owner's point of view, your polite research agent and a credential-stuffing botnet look much the same at the network edge. Both are non-browser clients making fast requests from data-center IP ranges. So the defaults have tightened. In July 2025 Cloudflare began blocking known AI crawlers by default for latest customers, and bot management products now look at TLS fingerprints, header order, IP reputation and JavaScript execution, not just the User-Agent string.
It helps to understand the publisher's side of the deal, because it explains why your agent is being treated with suspicion.
Cloudflare splits AI crawling into three purposes: training (collecting data to train models), search (building an index for AI search answers) and user action (fetching a page because a person just asked a question). Training dominates.
Training crawls take content and send nothing back. Cloudflare measures this with a crawl-to-referral ratio: how many pages a platform crawls for every visitor it sends to the site. In its crawl-to-click gap analysis, the ratios for some AI platforms ran into the tens of thousands, compared with single digits for traditional search.
If you ran a publication and saw those numbers, you'd block too. The catch is that blocking is usually done by user agent or IP range, so it hits user-action fetches as well. Those are the ones that happen when a person asks your agent to read a specific article, and Cloudflare's 2025 Year in Review found they grew more than 15x during the year. Your agent is caught in a fight it didn't start.
The mix of crawlers also shifts rapidly, which makes static allow and block lists fragile on both sides:.
According to recent reports, and restrictions keep piling up. The Consent in Crisis study audited 14,000 web domains and found that a large and fast-growing share of the sources behind the C4 training corpus now restrict AI crawlers, either through robots.txt or their terms of service.
Source: Longpre et al., Consent in Crisis (NeurIPS 2024).
In a recent development, so that's the environment your agent fetches in. Here's how to build for it.
Before writing any retry logic, put names on your failures. "The request failed" is useless to both you and the model. In practice almost every failed fetch falls into one of four buckets:.
In a recent development, bucket 2 is the dangerous one, because a block page often comes back with a 200 OK. If you don't check, the model will happily summarise "Checking your browser before accessing..." as if it were the article.
Here's a compact fetch layer in Python using httpx and the standard library's robots.txt parser. It's around 100 lines and covers the four buckets above.
Use a descriptive user agent with a contact URL. It costs you nothing and site operators are far more likely to allow a client they can identify and reach. Then check robots.txt (standardised as RFC 9309) before every new host.
Sources indicate that the lru_cache means you fetch robots.txt once per origin rather than once per page. In a long-running service you'll want a cache with a TTL instead, since robots.txt files do change.
Recent findings suggest that this is the core of the layer. Instead of returning raw HTML, return a result that states which bucket you landed in.
The marker list is deliberately simple. It won't catch every interstitial, but it catches the common ones, and a false "blocked" is much cheaper than a confident summary of a CAPTCHA page. Log every blocked result with its first few hundred characters so you can grow the list from real data.
Industry observers note that retries should depend on the bucket. Throttled and broken responses get exponential backoff with jitter. Blocked and not-allowed responses get no retries at all.
Sources indicate that note the cap on wait. A site sending Retry-After: 3600 is telling you to go away for an hour. An interactive agent should report that to the user rather than block a request thread for that long.
It has been revealed that the cheapest fetch is the one you don't make. Agents often re-read the same documentation page several times in one session. Store the ETag and Last-Modified headers and send them back as If-None-Match and If-Modified-Since. A 304 Not Modified response costs the server almost nothing and lowers the odds of being rate limited.
Wire these into fetch() by passing headers=conditional_headers(url) to client.get(). On a 304, return the cached text. On a 200, call remember().
According to recent reports, finally, don't hide failures from the LLM. Give the tool output a structured shape so the model can reason about it:.
(extract_main_text is whatever readability or boilerplate-removal step you already use. Libraries like trafilatura work well here.).
Recent findings suggest that with this in place, the model's answer changes from a made-up summary to "I couldn't read that page because the site blocks automated access. Here's what I found from two other sources." That's a better product, and it builds trust with people.
Once you've done everything above, some legitimate user-action fetches will still fail. That's usually because the site blocks data-center IP ranges outright, not because of anything your agent did. Teams handle this in a few ways, roughly in order of preference:.
The principle is the same in every case: the network path is a reliability decision, not a way around a site's wishes. Your robots.txt check and your honest user agent should stay in place whichever route the request takes.
In a recent development, once your fetch layer returns structured results, observability is easy. Emit one event per fetch with the host, status bucket and latency, and watch these:.
If you're prototyping agents with AI coding assistants, ask them to generate these metrics hooks from the start. They're easy to bolt on now and painful to add later. For a sense of how well current tools handle this kind of infrastructure code, Vibe Coder Journal publishes hands-on reviews and benchmarks of AI coding tools.
According to recent reports, the web your agent reads in 2026 isn't the open, fetch-anything web many of us learned on. More than half the traffic is automated, publishers have good reasons to be wary of AI crawlers, and the defaults now lean toward blocking. You can't change that. You can make your agent a good citizen, though: one that identifies itself, respects the rules, backs off when asked, and tells the truth when it can't read something.
Industry observers note that most of the reliability gains come from the unglamorous parts: classifying failures, caching and passing honest errors to the model. Get those right and your agent will feel much more dependable, even on the days when half the web won't let it in.
Industry observers note that it depends on the jurisdiction, the site's terms of service and what you do with the content. Respecting robots.txt and site terms is the baseline. For commercial products, get proper legal advice.
Industry observers note that many site owners expect it to, and RFC 9309 makes no exception for user-triggered fetches. The safest default is to obey it and tell the user when a page is disallowed.
Many bot-protection systems serve a challenge page with a 200 status. Check the body for challenge markers before passing it to the model, as in the looks_blocked() function above.
Sources indicate that only for pages that render their main content with JavaScript. Try a plain HTTP fetch first. Headless browsers are slower, cost more to run and are easier to fingerprint.
Industry observers note that 7 Day Free Trial. Cancel Anytime.
📅 28 Jan 2025 | ⏱️ 10 min read (1955 words, 📚 Deep Dive) | Source: Hugging Face
Today, we are launching the integration of four awesome serverless Inference Providers – fal, Replicate, Sambanova, Together AI – directly on the Hub’s model pages. They are also seamlessly integrated into our client SDKs (for JS and Python), making it easier than ever to explore serverless inference of a wide variety of models that run on your favorite providers.
In a recent development, we’ve been hosting a serverless Inference API on the Hub for a long time (we launched the v1 in summer 2020 – wow, time flies 🤯). While this has enabled easy exploration and prototyping, we’ve refined our core value proposition towards collaboration, storage, versioning, and distribution of large datasets and models with the community. At the same time, serverless providers have flourished, and the time was right for Hugging Face to offer easy and unified access to serverless inference through a set of great providers.
Just as we work with great partners like AWS, Nvidia and others for dedicated deployment options via the model pages’ Deploy button, it was natural to partner with the next generation of serverless inference providers for model-centric, serverless inference.
Here’s what this enables, taking the timely example of DeepSeek-ai/DeepSeek-R1, a model which has achieved mainstream fame over the past few days 🔥:.
Recent findings suggest that rodrigo Liang, Co-Founder & CEO at SambaNova: "We are excited to be partnering with Hugging Face to accelerate its Inference API. Hugging Face developers now have access to much faster inference speeds on a wide range of the best open source models.".
It has been revealed that zeke Sikelianos, Founding Designer at Replicate: "Hugging Face is the de facto home of open-source model weights, and has been a key player in making AI more accessible to the world. We use Hugging Face internally at Replicate as our weights registry of choice, and we're honored to be among the first inference providers to be featured in this launch.".
This is just the start, and we’ll build on top of this with the community in the coming weeks!
In a recent development, the following example shows how to use DeepSeek-R1 using Together AI as the inference provider. You can use a Hugging Face token for automatic routing through Hugging Face, or your own Together AI API key if you have one.
Install huggingface_hub version v0.28.0 or later (release notes).
Note: You can also use the OpenAI client library to call the Inference Providers too; see here an example for DeepSeek model.
And here's how to generate an image from a text prompt using FLUX.1-dev running on fal.ai:.
To move to a different provider, you can simply change the provider name, everything else stays the same:.
It has been revealed that we expose the Routing proxy directly under the huggingface.co domain so you can call it directly, it's very useful for OpenAI-compatible APIs for instance. You can just swap the URL as a base URL: https://router.huggingface.co/{:provider}.
Here's how you can call Llama-3.3-70B-Instruct using Sambanova as the inference provider via cURL.
Recent findings suggest that for direct requests, i.e. when you use the key from an inference provider, you are billed by the corresponding provider. For instance, if you use a Together AI key you're billed on your Together AI account.
According to recent reports, for routed requests, i.e. when you authenticate via the hub, you'll only pay the standard provider API rates. There's no additional markup from us, we just pass through the provider costs directly. (In the future, we may establish revenue-sharing agreements with our provider partners.).
Industry observers note that important Note ‼️ PRO customers get $2 worth of Inference credits every month. You can use them across providers. 🔥.
We also provide free inference with a small quota for our signed-in free users, but please upgrade to PRO if you can!
We would love to get your feedback! Here’s a Hub discussion you can use: https://huggingface.co/spaces/huggingface/HuggingDiscussions/discussions/49.
 got an unexpected keyword argument 'provider'.
try to update to the latest version.
Meh u teaching em and get 2$?Call Mask🕺.
I want to start an AI manufacturer which will work on Health AI. Who want to participate in this great journey.
Industry observers note that I'm still confused about the pricing. Most of the models that I want to use don't have HF Inference option, only Togheter AI. Looking at my quota seems like I have 20k credits only for HF Inference. Seems like I need to pay extra for other inference. If that's the case, then PRO doesn't make any sense anymore for me. If that's the case I don't even need to use HF at all. I can use the inference provider directly. Some of them may have discounts or special offers that may not be available through HF. Sambanova, for example, is still free.
Utiliser juste le visage pour le remplacer sur un autre visage d’un homme pourtant un costume noir.
so how much is free inference with a small quota really.
Let's add https://nineteen.ai/It has the fastest inference speed & it's completely free!
please add Groq models to Huggingface API.
Does it work with LangChain's ChatHuggingFace or HuggingFaceEndpoint?
i don't know actually, but i'd be interested to know!
In a recent development, the previous pro provided 20,000 requests. Now it's gone. What a pity.
Industry observers note that billing seems excessive and confusing... Thought this website would help me build my bot but it seems Replit will work better.
This is a terrible article! (excuse me!) Could you be a lil specific when it comes to billing?
Recent findings suggest that nice revision HF 🤗 team! Definitely we gonna use some of those providers for Automatio.ai integration.
According to recent reports, great insights on Inference Providers on the Hub! The seamless integration of fal, Replicate, Sambanova, and Together AI into Hugging Face’s ecosystem makes serverless inference more accessible than ever.
While researching, I found this resource on Hugging Face model integration with RunPod, which dives into AI model setup, diffusion workflows, and ComfyUI installation: https://mobisoftinfotech.com/resources/blog/flux-on-runpod-using-comfyui.
Would love to hear your thoughts on how these latest inference providers compare in terms of performance and scalability!
Recent findings suggest that it is great to have the inference providers that allowing people to use the model easily. And I know other model providers also want to cooperate with Hugging Face to create easy, stable, and affordable services to the community. How can they add their api to the Hugging Face? Is there any instruction to do it? Thank you.
This new system is really bad for the customers (us/me). Instead of 200.000 api requests like before I am not even getting 5.000 api requests. Already hitting max usage. If you are planning to give us far less credit then we are actually paying for the membership, I would consider not taking the membership and just pay for the spent credits. It is way cheaper. Now I feel like I am paying over 4 times more then the provided services are worth.
It is hoped that the official can take our thoughts into consideration. The service should be getting better and better. The current $2 really demonstrates stinginess.
Sources indicate that I think this is bad decision. I have pay $9 and only use $2. I had 20k daily limit before. I won't buy pro subs. after this decision.
It has been revealed that it is hoped that the official can take our thoughts into consideration. The service should be getting better and better. The current $2 really shows stinginess.
bug: If you turn off all interference providers, he will continue counting them in the price you need to pay.
"This authentication method does not have sufficient permissions to call Inference Providers on behalf of user".
did i just reach my quota or what?
It has been revealed that I just recieved the same concern as well. Were you able to figure out a solution?
I get a token 403 unexpected error : 403 Forbidden: This authentication method does not have sufficient permissions to call Inference Providers on behalf of user XXX.
This turn might not seem like that major of a deal to many of you... But in practice, this very clearly constitutes an abrupt cutting-off of the lion's share of the quasi-subsidized compute erstwhile accessible through HF.
According to recent reports, and though seldom overtly publicized as a core feature of the platform, that nonchalantly encouraging compute reservoir of yore (even if accessible only via select pockets, like Inference Endpoints) served for years as a kind of a phantom fertilizer, and a key one, for Machine Learning adoption, experimentation, and resource-strapped development – on par with other quasi-subsidized resources like Google Colab and ChatGPT . And it's entirely plausible that the availability of such resources en masse has been the single most notable prerequisite, as well as mandatory catalyst, for the continual evolution/democratization of open source ML specifically, whether in regards to utility or literacy or safety or any other oft-evoked marker, and in some large part the popularization of ML more broadly.
Of course, despite its qualitative obviousness, the impact of subsidized resources may be difficult, maybe impossible, to summate objectively or to quantify directly. After all they constitute a set of infrastructures the immediate production of which tends to assume forms that are often ephemeral, social – like practices, understanding, or values – and wherever concrete, often non-commercial, like open models, adapters, enthusiast contributions, articles, posts, etc. And by the markers of finance and markets, such productions may be deemed as having only a tangential value to, say, the capitalization potential of a given platform, all-the-while adding heavy and at times unforeseeably fluctuating costs upkeep.
Nonetheless, (and there are few better illustrations for this than ML) public access to subsidized resources persisting in open forms (non-transactional, nor overtly monetized, nor strictly delimited: like all public resources, services, libraries, spaces) simultaneously remains a key precondition for the economic and socio-cultural potential of the entire technological and research field as a whole, whilst continually stimulating the range and variety of forms this potential may ultimately assume.
As recently as a year ago, I would avidly preach the merits of Huggingface to everyone I know: not only as the key extant firmament for humanist and democratized machine learning paradigms to emerge and thrive upon, but as a really-existing pre-figuration of a new form of society, one that may at last transcend the intertwined logic of alienation, separation, disparity, scarcity, disposability, amnesia, exploitation, and all the rest of it... That's what I used to associate with Huggingface. Nowadays though: I think of Huggingface, and my next thought is "$2.00".
I know that for resources or platforms to remain subsidized, such subsidies must come from someplace. And assuring reliable funding may be a challenge, especially these days. Nonetheless, I really believe that it would be a grave mistake long-term for HF to rely on standard transactional/commercial monetization sourced from its consumers, even to cover real costs (much less to extract surplus "value" from or for anyone). To best serve its role within the field, HF must instead move closer to operating as a non-profit, sourcing unconditional funding from elsewhere , with the assumption that it may always operate at a "loss", whilst playing a key role in the thriving and the dynamism of the field as a whole.
Recent findings suggest that is there any information on the providers (detailed costs, info about data privacy) that allows me some kind of prioritization? HF allows to prioritize but doesn't provide information that I could use to do so.
$2 credits only? I'll keep my $7 and just use openrouter lmao.
in addition to all the other PRO features!
📅 30 Jan 2025 | ⏱️ 5 min read (1037 words, 📚 Deep Dive) | Source: Hugging Face
A running document to showcase how to deploy and fine-tune DeepSeek R1 models with Hugging Face on AWS.
If you’ve ever struggled with a tough math problem, you know how useful it is to think a little longer and work through it carefully. OpenAI’s o1 model showed that when LLMs are trained to do the same—by using more compute during inference—they get significantly better at solving reasoning tasks like mathematics, coding, and logic.
Recent findings suggest that however, the recipe behind OpenAI’s reasoning models has been a well kept secret. That is, until last week, when DeepSeek released their DeepSeek-R1 model and promptly broke the internet (and the stock market!).
DeepSeek AI open-sourced DeepSeek-R1-Zero, DeepSeek-R1, and six dense models distilled from DeepSeek-R1 based on Llama and Qwen architectures. You can find them all in the DeepSeek R1 collection.
We collaborate with Amazon Web Services to make it easier for developers to deploy the latest Hugging Face models on AWS services to build better generative AI applications.
Let’s review how you can deploy and fine-tune DeepSeek R1 models with Hugging Face on AWS.
According to recent reports, hugging Face Inference Endpoints offers an easy and secure way to deploy Machine Learning models on dedicated compute for use in production on AWS. Inference Endpoints empower developers and data scientists alike to create AI applications without managing infrastructure: simplifying the deployment process to a few clicks, including handling large volumes of requests with autoscaling, reducing infrastructure costs with scale-to-zero, and offering advanced security.
With Inference Endpoints, you can deploy any of the 6 distilled models from DeepSeek-R1 and also a quantized version of DeepSeek R1 made by Unsloth: https://huggingface.co/unsloth/DeepSeek-R1-GGUF. On the model page, click on Deploy, then on HF Inference Endpoints. You will be redirected to the Inference Endpoint page, where we selected for you an optimized inference container, and the recommended hardware to run the model. Once you created your endpoint, you can send your queries to DeepSeek R1 for 8.3$ per hour with AWS 🤯.
You can find DeepSeek R1 and distilled models, as well as other popular open LLMs, ready to deploy on optimized configurations in the Inference Endpoints Model Catalog.
| Note: The team is working on enabling DeepSeek models deployment on Inferentia instances. Stay tuned!
Recent findings suggest that you can deploy the Deepseek distilled models on Amazon Bedrock via the marketplace, which will deploy an endpoint in Amazon SageMaker AI under the hood. Here is a video of how you can navigate through the AWS console:.
Industry observers note that | Note: The team is working on enabling DeepSeek-R1 deployment on Amazon Sagemaker AI with the Hugging Face LLM DLCs on GPU. Stay tuned!
You can deploy the Deepseek distilled models on Amazon Sagemaker AI with Hugging Face LLM DLCs using Jumpstart directly or using the Python Sagemaker SDK. Here is a video of how you can navigate through the AWS console:.
Now we have seen how to deploy usig Jumpstart, let’s walk through the Python Sagemaker SDK deployment of DeepSeek-R1-Distill-Llama-70B.
Code snippets are available on the model page under the Deploy button!
Before, let’s start with a few pre-requisites. Make sur you have a Sagemaker Domain configured, sufficient quota in Sagemaker, and a JupyterLab space. For DeepSeek-R1-Distill-Llama-70B, you should raise the default quota for ml.g6.48xlarge for endpoint usage to 1.
For reference, here are the hardware configurations we recommend you to use for each of the distilled variants:.
Once in a notebook, make sure to install the latest version of SageMaker SDK.
Then, instantiate a sagemaker_session which is used to determine the current region and execution role.
Create the SageMaker Model object with the Python SDK:.
Deploy the model to a SageMaker endpoint and test the endpoint:.
That’s it, you deployed a Llama 70B reasoning model!
Because you are using a TGI v3 container under the hood, the most performant parameters for the given hardware will be automatically selected.
Make sure you delete the endpoint once you finished testing it.
Let’s walk through the deployment of DeepSeek-R1-Distill-Llama-70B on a Neuron instance, like AWS Trainium 2 and AWS Inferentia 2.
Code snippets are available on the model page under the Deploy button!
The pre-requisites to deploy to a Neuron instance are the same. Make sure you have a SageMaker Domain configured, sufficient quota in SageMaker, and a JupyterLab space. For DeepSeek-R1-Distill-Llama-70B, you should raise the default quota for ml.inf2.48xlarge for endpoint usage to 1.
Then, instantiate a sagemaker_session which is used to determine the current region and execution role.
Create the SageMaker Model object with the Python SDK:.
Deploy the model to a SageMaker endpoint and test the endpoint:.
It has been revealed that that’s it, you deployed a Llama 70B reasoning model on a Neuron instance! Under the hood, it downloaded a pre-compiled model from Hugging Face to speed up the endpoint start time.
Make sure you delete the endpoint once you finished testing it.
This guide will detail how to export, deploy and run DeepSeek-R1-Distill-Llama-70B on a inf2.48xlarge AWS EC2 Instance.
Once connected through the instance, you can deploy the model on an endpoint with this command:.
It will take a few minutes to download the compiled model from the Hugging Face cache and launch a TGI endpoint.
Then, you can test the endpoint:.
Make sure you pause the EC2 instance once you are done testing it.
| Note: The team is working on enabling DeepSeek R1 deployment on Trainium & Inferentia with the Hugging Face Neuron Deep Learning AMI. Stay tuned!
| Note: The team is working on enabling all DeepSeek models fine tuning with the Hugging Face Training DLCs. Stay tuned!
Industry observers note that | Note: The team is working on enabling all DeepSeek models fine tuning with the Hugging Face Neuron Deep Learning AMI . Stay tuned!
It has been revealed that greate article. Will be goed to see costs analysis .
In a recent development, great article. I have been trying to deploy deepseek-ai/DeepSeek-R1-Distill-Qwen-32B on inferentia with a context window higher than 4096 (let's say MAX_TOTAL_TOKENS=8192), but it seems there is no pre-compiled model for that. It would be great if you could add instructions to compile these models, that would be great.
📅 04 Nov 2026 | ⏱️ 3 min read (695 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
According to recent reports, weekly. Free. One click to leave.
Recent findings suggest that 7 Day Free Trial. Cancel Anytime.
When developing a website, developers often rely on CSS classes to style buttons, forms, navigation elements, and other interface components. This approach works well, but some situations require styles to depend on an element's HTML attributes rather than additional class names.
Sources indicate that CSS attribute selectors provide a practical solution. They allow developers to target elements based on whether an attribute exists, what value it contains, or whether its value matches a particular pattern. Used carefully, they can simplify styling and make reusable components easier to maintain.
It has been revealed that an attribute selector targets an HTML element using square brackets. For example, a developer can select every input field that has a required attribute:.
This rule applies to inputs with the required attribute, regardless of their input type.
Developers can also target a specific attribute value:.
This is useful when different input types need different visual treatments without introducing additional classes into the HTML.
Forms are a practical place to apply attribute selectors because HTML already provides attributes that describe how individual fields behave.
According to recent reports, consider a registration form containing email, password, and telephone fields. Each input can be styled according to its purpose:.
The CSS can target these fields independently:.
This approach keeps the markup descriptive while allowing the stylesheet to respond to the attributes already present in the document.
One notable distinction is that required indicates a validation requirement, while :invalid represents an input's current validity state. These should not be treated as interchangeable.
CSS provides several matching operators that help developers target more specific attribute values.
These operators can be useful when working with links, downloadable files, language attributes, and reusable components.
For example, a website might want to distinguish PDF downloads from ordinary navigation links:.
This adds a small visual indicator to links whose URLs end in .pdf.
Attribute selectors can also help identify links with different destinations or behaviors.
For example, external links that use HTTPS can receive a subtle visual indicator:.
Industry observers note that however, matching an HTTPS URL does not necessarily prove that a link points to an external website. Internal links can also use HTTPS, so developers should consider the actual navigation requirements before applying special styling.
For more examples of selector combinations and matching rules, SitePoint's guide to CSS Attribute Selectors provides a useful reference.
Although attribute selectors are flexible, they should not replace every class-based styling decision.
A selector such as [class*="button"] can match unintended elements if their class names happen to contain the same text. Similarly, broad attribute rules may affect components that were not originally intended to receive those styles.
For predictable results, use exact attribute matching whenever possible and prefer descriptive classes for major component styling.
According to recent reports, developers should also remember that CSS selectors only control presentation. They do not replace JavaScript validation, server-side security checks, or proper HTML semantics.
The MDN documentation on attribute selectors provides further details about selector syntax, matching behavior, and supported operators.
Before adding attribute selectors to a large stylesheet, inspect the affected elements using browser developer tools.
A simple testing process includes:.
Check whether the selector matches the intended elements.
Test fields with different attribute values.
Verify disabled, required, and invalid form states.
Check navigation links and downloadable files.
Test the layout on mobile and desktop screens.
Review whether existing component styles are being unintentionally overridden.
This process helps identify unexpected matches before they affect the production interface.
CSS attribute selectors give developers another way to create flexible and maintainable interfaces without adding unnecessary classes to every HTML element.
Industry observers note that they are particularly useful for form styling, link identification, and components that already contain meaningful HTML attributes. By choosing precise selectors, understanding matching operators, and testing changes before deployment, developers can use this feature to write cleaner CSS while keeping their markup descriptive and organized.
In a recent development, 7 Day Free Trial. Cancel Anytime.
📅 31 Jan 2025 | ⏱️ 9 min read (1723 words, 📚 Deep Dive) | Source: Hugging Face
The AI space is moving so fast it’s hard to believe that a year ago we still struggled to generate people with the correct amount of fingers 😂.
The last couple of years have been pivotal for open source models and tools for artistic usage. AI tools for creative expression have never been more accessible, and we’re only scratching the surface. Join us as we look back at the key milestones, tools, and breakthroughs in AI & Arts from 2024, and forward for what’s to come in 2025 (spoiler 👀: we’re starting a new monthly roundup 👇).
What were the standout releases of creative AI tools in 2024? We'll highlight the major releases across creative and artistic fields, with a particular focus on open-source developments in popular tasks like image and video generation.
Over 2 years since the OG stable diffusion was released and made waves in image generation with open source models, it’s now safe to say that when it comes to image generation from text, image editing and controlled image generation - open source models are giving closed source models a run for their money.
Recent findings suggest that TD;LR - diffusion models and Gaussian flow matching are equivalent. Flow matching proposes a vector field parametrization of the network output that is different compared to the ones commonly used in diffusion models previously.
Back to practice: First to announce the shift was Stability AI with Stable Diffusion 3, however it was HunyuanDiT that became the first open source model with DiT architecture.This trend continued with the releases of AuraFlow, Flux.1 and Stable Diffusion 3.5.
Recent findings suggest that among many pivotal moments in the (not so long) history of open source image generation models, it’s safe to say that the release of Flux.1 was one of them. Flux [dev] achieved a upcoming state-of-the-art, surpassing popular closed source models like Midjourney v6.0, DALL·E 3 (HD) on various benchmarks.
A positive side effect of advancements in image models is the significant improvement in personalization techniques for text-to-image models and controlled generation.
It has been revealed that back in August 2022, transformative works like Textual Inversion and DreamBooth enhanced our ability to teach and introduce new concepts to text-to-image models, drastically expanding what could be done with them. These opened the door to a stream of improvements and enhancements building on top of these techniques (such as LoRA for diffusion models).
Sources indicate that however, an upper bound to the quality of the fine-tuned models is naturally the base model from which it was fine-tuned. In that sense, we can’t neglect Stable Diffusion XL, which was also a significant marker in personalization for open source image generation models. A testimony to that is that even now, many of the popular techniques and models for personalization and controlled generation are based on SDXL. The advanced abilities of SDXL (and models that were released after with similar quality) together with the growing understanding of the semantic roles of different components in the diffusion model architecture raises the question - what can we achieve without further optimization?
cue in the rain of zero shot techniques - 2024 was definitely the year when generating high quality portraits from reference photos was made possible with as little as a single reference image & without any optimization. Training free techniques like IP adapter FaceID, InstantID, Photomaker and more came out and demonstrated competitive if not even superior abilities to those of fine-tuned models.
Similarly, image editing and controlled generation - such as image generation with canny / depth / pose constraints made progress too - both thanks to the growing quality of the base models and the community’s growing understanding of the semantic roles different components have (Instant Style, B-LoRA).
So what’s next? since the shift of paradigms to DiT and flow matching objectives, additional models came out trying to utilize DiT-based models like Flux and SD3.5 for similar purposes, but so far not quite beating the quality of the SDXL-based ones despite the superior quality of the underlying base model. This could be attributed to the relative lack of understanding of semantic roles of different components of the DiT compared to the Unet. 2025 could be the year when we identify those roles in DiTs as well, unlocking more possibilities with the next generation of image generation models.
As opposed to image generation, with video we still have a way to go. But, it’s safe to say that we’re very far away from where we were a year ago. While we’re all about open-source, the credit for (some) of the significant leap in AI video generation goes to OpenAI’s sora for changing our expectations of video model capabilities quite radically. And as fofr put nicely in AI video is having its Stable Diffusion moment (which we recommend reading 🙂) - it made everyone realize what is possible.
In a recent development, the recent surge of open-source video generation models, including CogVideoX, Mochi, Allegro, LTX Video, and HunyuanVideo, has also been noteworthy. Video generation is inherently more challenging than image generation due to the need for motion quality, coherence, and consistency. Additionally, video generation requires substantial computational and memory resources, leading to significant generation latency. This often hinders local usage, making many new open video models inaccessible to community hardware without extensive memory optimizations and quantization approaches that impact both inference latency and the quality of generated videos. Nevertheless the open source community has made remarkable progress - which was recently covered in this blog on the state of open video generation models.
While this implies that most community members are still unable to experiment and develop with open-source video models, it also suggests that we can expect significant advancements in 2025.
Audio generation has progressed significantly in the past year going from simple sounds to complete songs with lyrics. Despite challenges - Audio signals are complex and multifaceted, require more sophisticated mathematical models than models that generate text or images and training data quite scarce - 2024 saw open source releases like OuteTTS and IndicParlerTTS for text to speech and openai’s Whisper large v3 turbo for audio speech recognition. The year 2025 is already shaping up to be a breakthrough year for audio models, with a remarkable number of releases in January alone. We've seen the release of three newly introduced text-to-speech models: Kokoro, LLasa TTS and OuteTTS 0.3, as well as two new music models: JASCO and YuE. With this pace, we can expect even more exciting developments in the audio space throughout the year.
This song👇 was generated with YuE 🤯.
According to recent reports, the beauty of open source is that it allows the community to experiment, find upcoming usages for existing models / pipelines, improve on and build new tools together. Many of the creative AI tools that were popular this year are the fruit of joint community effort.
Here are some of our favorites:.
Many of the amazing Flux fine-tunes created in the last year were trained thanks to the AI-toolkit by ostris.
Inspired by fofr's face-to-many, Face to All combines the viral Instant ID model with added ControlNet depth constraints and community fine-tuned SDXL LoRAs to create training-free and high-quality portraits in creative stylizations.
Based on a ComfyUI workflow by Nathan Shipley, Flux style shaping combines Flux [dev] Redux and Flux [dev] Depth for style transfer and optical illusion creation.
Diffusers Image Outpaint makes use of the diffusers Stable Diffusion XL Fill Pipeline together with an SDXL union controlnet to seamlessly expand an input image.
Adding mimics to a static portrait was never easier with Live Portrait and Face Poke.
TRELLIS is a 3D generation model for versatile and high-quality 3D asset creation that took over the 3D landscape with a bang.
IC-Light, which stands for "Imposing Consistent Light", is a tool for relighting with foreground condition.
2025 is the year for open-source to catch up on video, movement, and audio models, making room for more modalities. With advancements in efficient computing and quantization, we can expect significant leaps in open-source video models. As we approach a (natural) plateau in image generation models, we can shift our focus to other tasks and modalities.
YuE - series of open-source music foundation models for full song generation. YuE is possibly the best open source model for music generation (with an Apache 2.0 license!), achieving competitive results to closed source models like Suno.
try it out & read more: demo, model weights.
Hunyuan 3D-2 , SPAR3D, DiffSplat - 3D generation models. 3D models are coming in hot - not long after the release of TRELLIS, Hunyuan 3D-2, SPAR3D and DiffSplat are here to take over the 3D landscape.
According to recent reports, lumina-Image 2.0 - text to image model. Lumina is a 2B parameter model competitive with the 12B Flux.1 [dev] and with an Apache 2.0 license(!!).
try it out & read more: demo, model weights.
ComfyUI-to-Gradio - a step-by-step guide on how to convert a complex ComfyUI workflow to a simple Gradio application, and how to deploy this application on Hugging Face Spaces ZeroGPU serverless structure, which allows for it to be deployed and run for free in a serverless manner read more here.
Kicking off with this blog, we (Poli & Linoy) will be bringing you a monthly roundup of the latest in the creative AI world. In such a fast-evolving space, it’s tough to stay on top of all the upcoming developments, let alone sift through them. That’s where we come in & hopefully this way we can make creative AI tools more accessible.
Thanks for the great blog post. I am looking forward to seeing the next problem!
📻 🎙️ Hey, I made a podcast about this blog post, check it out!
This podcast is generated via ngxson/kokoro-podcast-generator, using DeepSeek-R1 and Kokoro-TTS.
Really enjoyed reading The AI Tools for Art Newsletter—such a well-structured and insightful overview of major AI-driven creative tools in 2024! The breakdown of image generation, personalization, and video generation was particularly helpful in understanding how AI is transforming artistic workflows.
While researching, I found this resource on AI-powered image generation with RunPod and ComfyUI, which covers ComfyUI setup, diffusion model workflows, and Hugging Face model integration: https://mobisoftinfotech.com/resources/blog/flux-on-runpod-using-comfyui.
Would love to hear your thoughts on how AI’s role in stylization and personalization might evolve in 2025!
📅 31 Jan 2025 | ⏱️ 6 min read (1197 words, 📚 Deep Dive) | Source: Hugging Face
This post was written by Philipp Schmid and orginially posted on philschmid.de code can found here.
In a recent development, the release of Deepseek R1 shocked the industry. Why? Well, DeepSeek-R1 is an open model that rivals OpenAI's o1 in complex reasoning tasks, introduced using Group Relative Policy Optimization (GRPO) and RL-focused multi-stage training approach. They not only released the model, but also a research paper on how they did it.
In a recent development, in the paper they described an "aha moment" when using pure RL to train the model. During this phase, DeepSeek-R1-Zero (the first test of DeepSeek-R1) learns to allocate more thinking time to a problem by reevaluating its initial approach without any human feedback or data describing how to do it. They describe this as an "aha moment" as:.
This behavior is not only a testament to the model’s growing reasoning abilities but also a captivating example of how reinforcement learning can lead to unexpected and sophisticated outcomes.
In a recent development, in this blog post we want to recreate the small "aha moment" of DeepSeek-R1 using Group Relative Policy Optimization (GRPO) and the Countdown Game. We will train an open model using reinforcement learning trying to teach it self-verification and search abilities all on its own to solve the Countdown Game. The Countdown game is a numbers puzzle where players use a set of randomly drawn numbers and basic arithmetic operations (+, -, ×, ÷) to reach or get as close as possible to a target number.
The blog post focuses on training distributed training using Deepspeed and vLLM. It was run on a 4x NVIDIA H100 GPUs.
Note: This blog is inspired by Jiayi Pan who initially explored the idea and proofed it with a small model.
But Before we start, let's take a look at the Group Relative Policy Optimization (GRPO) and understand how it works.
Group Relative Policy Optimization (GRPO).
Industry observers note that group Relative Policy Optimization (GRPO) is a reinforcement learning algorithm to improve the reasoning capabilities of LLMs. It was introduced in the DeepSeekMath paper in the context of mathematical reasoning. GRPO modifies the traditional Proximal Policy Optimization (PPO) by eliminating the need for a value function model. Instead, it estimates baselines from group scores, reducing memory usage and computational overhead. GRPO, now also used by the Qwen team, can be used with rule/binary-based Rewards as well as General Reward Models to improve models on helpfulness.
According to recent reports, our first step is to install Hugging Face Libraries and Pytorch, vllm, and trl, transformers and datasets. If you haven't heard of trl yet, don't worry. It is a new library on top of transformers and datasets, which makes it easier to fine-tune, rlhf, align open LLMs.
Note: you may need to restart the kernel to use updated packages.
We are going to use the Jiayi-Pan/Countdown-Tasks-3to4 dataset, which contains samples with 3 to 4 numbers and solutions. As Model we are going to use Qwen/Qwen2.5-3B-Instruct which is a 3B parameter instruction tuned model. This makes it easier to showcase the "aha moment" as it already can follow instructions. Jiayi-Pan explored that the model needs to have a certain quality to be able to learn the reasoning process, starting with > 1.5B parameters.
According to recent reports, TRL supports Group Relative Policy Optimization (GRPO) through a dedicated GRPOTrainer for aligning LLMs from preference data, as described in DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. The GRPOTrainer is a subclass of the Trainer from the transformers library and supports all the same features, including logging, checkpointing, distributed training, and parameter efficient fine-tuning (PEFT).
The GRPOTrainer supports generic Outcome Reward Models (ORM) and custom reward functions, that can be used to implement Rule-Based Reward Models. In the Deepseek R1 paper they implemented Rule-Based Reward Models to verify the correctness of the generated solutions. In our exmaple we are going to do a similar approach, where we will create 2 reward functions that:.
Note: Correct in our example includes the equation, for example 55 + 36 - 7 - 19.
Industry observers note that hugging Face TRL added support for distributed training with Deepspeed and using vLLM for faster generation. I preprared a run_r1_grpo.py script and a receipes/grpo-qwen-2.5-3b-deepseek-r1-countdown.yaml config file to run the training.
Industry observers note that this configuration is tested and validated on a Node with 4x H100 80GBs, where a single step takes around 45-60s, as we can leverage vLLM for generation and DeepSpeed for distributed training. Therefore we need to make sure we correctly set the num_processes to the number of GPUs you have - 1 as the last one will be used with vLLM for Generation. If you are using more GPUS you need to change the vllm_device in the config file to last index GPU, e.g. if you have 8 GPUs you need to set vllm_device=7 and your num_processes to 7.
Sources indicate that with the optimized distributed training a single step with 8 generations per sample on 4x H100 80GBs takes around 45-60s. The full training for 450 steps takes around 6 hours.
The script saves random completions to the completion_samples folder, which you can use to inspect the model's progress. It includes completion_samples.txt and success_completion_samples.txt. The completion_samples.txt includes all completions, while the success_completion_samples.txt which correctly solves the equation. Below you can find the interesating training obeserations on how the performance changes over time, as well as the Tensornoard logs and successfull reasoning samples.
The model with checkpoints for every 25th step can be found at philschmid/qwen-2.5-3b-r1-countdown.
It has been revealed that I started the experiment using the hyperparameters from the DeepSeekMath paper with a learning rate of 1e-6 and a beta (KL coefficient) of 0.04, which led to unstable training runs after around 150 steps. I ran some small ablations and decreased both the learning rate to 5e-7 and the beta to 0.001, based on a test from OpenRLHF. I coulnd't test how increasing the num_generations from 8 to 64 would affect the training. 64 is the generation value, which was used in the DeepSeekMath paper. All other parameters can be found in the grpo-qwen-2.5-3b-deepseek-r1-countdown.yaml config file.
I have 3 potential assumptions why the model shifts from "word reasoning" to "programmatic execution":.
The release of DeepSeek R1 and its research paper might be a breakpoint for open-science and open-source development. Just a week after the DeepSeek release, we've been able to reproduce a simple version of R1 learned "reasoning" using GRPO and the Countdown Game. While our implementation focuses on a specific task rather than general reasoning and convergence into a very specific "reasoning" format, it highlights that the method is working.
Looking in to 2025, it's clear that we are on the cusp of even more significant progress. RL will become more accessible and user-friendly, more researchers and developers will explore its potential, but also require amount of more compute as before and compared to supervised fine-tuning.
I am excited for 2025. If you have any questions or ideas, feel free to reach out to me.
If this sounds interesting, we’d love your help! Whether it’s contributing code, joining discussions on Hugging Face.
📅 02 Feb 2025 | ⏱️ 6 min read (1270 words, 📚 Deep Dive) | Source: Hugging Face
It’s been two weeks since the release of DeepSeek R1 and just a week since we started the open-r1 project to replicate the missing pieces, namely the training pipeline and the synthetic data. This post summarizes:.
It should serve both as an update on the project and as a collection of interesting resources around DeepSeek-R1.
Recent findings suggest that let’s start by looking at the progress we made on Open-R1. We started Open-R1 just one week ago and people across the teams as well as the community came together to work on it and we have some progress to report.
Sources indicate that the first step in reproduction is to verify that we can match the evaluation scores. We are able to reproduce Deepseek's reported results on the MATH-500 Benchmark:.
You can find the instructions to run these evaluations in the open-r1 repository.
It has been revealed that one observation we have made is the enormous size of the generations from the DeepSeek models, which makes even evaluating the model challenging. Here we show DeepSeek-R1 response lengths in the OpenThoughts dataset:.
It has been revealed that distribution of R1’s responses reveals that they are on average very long with the average response being 6,000 tokens long and some responses containing more than 20,000 tokens. Worth noting that the average page contains ~500 words and one token is on average slightly less than a word, which means the many reponses are over 10 pages long. (src: https://x.com/gui_penedo/status/1884953463051649052).
The length of responses will make GPRO training challenging, as we will have to generate long completions which will require a significant proportion of GPU memory to store the activations / gradients for the optimization step.
In order to share our progress publicly, we have created an open-r1 evaluation leaderboard, so the community can follow our reproduction efforts (space is here):.
Following the release of Open R1, GRPO (Grouped Relative Policy Optimization) was integrated into the latest TRL release (version 0.14). This integration enables training any model with one or multiple reward functions or models. The GRPO implementation integrates with DeepSpeed ZeRO 1/2/3 for parallelized training that scales to many GPUs, and uses vLLM for fast generation, which is the primary bottleneck in online training methods.
There are still some limitations relating to the use of high memory usage, and progress is being made to profile and reduce them.
Recent findings suggest that one of the most exciting findings of the R1 report was that the main model can be used to generate synthetic reasoning traces and smaller models fine-tuned on this dataset see similar performance gains as the main model. So naturally we want to re-create the synthetic reasoning dataset as well such that the community can fine-tune other models on it.
With a model as big as R1 the main challenge is scaling up generation efficiently and fast. We spent a week tinkering with various setups and configurations.
The model fits on two 8xH100 nodes so naturally we started experimenting with that setup and used vLLM as inference server. However, we rapidly noticed that this configuration is not ideal: the throughput is sub-optimal and only allows for 8 parallel request, because the GPU KV cache fills up too quickly. What happens when the cache fills up ist that the requests which use a lot of cache are preempted and if the config uses PreemptionMode.RECOMPUTE the requests are scheduled again later when more VRAM is available.
Recent findings suggest that we then switched to a setup with 4x 8xH100 nodes, so 32 GPUs in total. This leaves enough spare VRAM for 32 requests running in parallel with barely any of them getting rescheduled due to 100% cache utilization.
It has been revealed that originally we started querying the vLLM servers with batches of requests but noticed rapidly, that straggles in the batches would cause the GPU utiliziation to vary since a new batch would only start processing once the last sample of the previous batch is done. Switching the batched inference to streaming helped stabilize the GPU utilization significantly:.
Recent findings suggest that it only required changing the code sending requests to the vLLM servers. The code for batched inference:.
The upcoming code for streaming requests:.
We are generating at a fairly constant rate but might still explore a bit further if for example switching to the CPU cache is a better strategy when long queries get preempted.
The current inference code can be found here.
There has been wide interest in open-r1, including from the media so various team members have been in the news in the past week:.
Other mentions: Washington Post, Financial Times, Financial Times, Fortune, Fortune, The Verge, Financial Review, Tech Crunch, Die Zeit, Financial Times, Upcoming York Times, The Wall Street Journal, EuroNews, Barrons, New York Times, Vox, Nature, SwissInfo, Handelsblatt, Business Insider, IEEE Spectrum, MIT Tech Review, LeMonde.
While the community is still digesting DeepSeek-R1’s results and report, DeepSeek has captured broader public attention just two weeks after its release.
After a relatively calm first week post-release, the second week saw significant market reactions, prompting responses from multiple AI research labs:.
In parallel, several companies worked on providing the DeepSeek models through various platforms (non-exhaustive list):.
It has been revealed that there has been a lot of interest around the proclaimed cost of training V3/R1. While the exact number probably doesn’t matter so much, people worked on some back-of-the-envelope calculations to verify the order of magnitude here. TL;DR the numbers seem generally in the right order of magnitude, as seen in these discussions:.
As many groups are working on reproducing the training pipeline, we’ll get more evidence on the possible training efficiency for the model.
Industry observers note that last week some speculations surfaced that DeepSeek might have been using OpenAI outputs to train its models. See for example the Financial Times. However, it is unclear at this point what the consequences of these allegations will be.
The open source community has been extremely active around DeepSeek-R1 and many people started building interesting projects around the model.
There have been a number of projects that try to reproduce the basic learning mechanics at smaller scale, so you can test the basic learning principles at home.
The community has been busy on a number of dataset efforts related to R1, some highlights include:.
Recent findings suggest that this list only covers a small number of reasoning and problem solving related datasets on the Hub. We’re excited to see what other datasets the community build in the coming weeks.
We are just getting started and want to finish the training pipeline and try it on smaller models and use the scaled up inference pipeline to generate high quality datasets. If you want to contribute check out the open-r1 repository on GitHub or follow the Hugging Face open-r1 org.
thanks for the update. FYI many of the Datasets links look broken.
According to recent reports, could you add the following models to your R1 distilled leaderboard please? :D Would be great to compare all of the distilled models in one place!https://huggingface.co/open-thoughts/OpenThinker-7Bhttps://huggingface.co/bespokelabs/Bespoke-Stratos-7Bhttps://huggingface.co/bespokelabs/Bespoke-Stratos-32B.
can we also work together in regards to human alignment?https://huggingface.co/blog/etemiz/aha-indicator.
This is an interesting post from HF - a blend of straight training goodness, some speculation, and some opinion.
I don't know whether I love this, or hate it - good work, team!
Looking forward to some good news from you guys 😍.
Any insight into the r1 5.5m training cost claim at this point?
According to recent reports, thank you for sharing this. When are we thinking about doing safety testing on the model(s)?
📅 04 Nov 2026 | ⏱️ 7 min read (1453 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
According to recent reports, weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
Industry observers note that you need a YouTube API key the moment your app has to read anything from YouTube: a video's length, its view count, a channel's latest uploads. Getting one takes about five minutes. Using it well takes a little longer, because YouTube changed how its quota works in June 2026, and plenty of guides still describe the old rules.
It has been revealed that in this guide we'll get a key, lock it down and test it. Then we'll use it from Node.js for three real jobs: adding up the length of a playlist, listing a channel's videos without spending a search, and estimating what a video earned. Along the way we'll cover what the YouTube API costs (nothing), how the 2026 quota works, and the errors you're most likely to hit.
A YouTube API key identifies your project to the YouTube Data API v3. With just a key, you can read public data:.
A key isn't enough for anything that touches someone's account. Uploading videos, editing playlists or reading private data needs OAuth 2.0, where the user signs in and grants your app access.
In a recent development, you'll need a Google account. The YouTube Data API is free, so there's nothing to pay for.
Sources indicate that the restrictions matter more than they look. A key is just a string in a URL, and anyone who copies an unrestricted one can spend your daily quota for you. With an API restriction, the key is useless for other Google APIs. With an application restriction, it only works from your server or your site. Changes to restrictions can take up to five minutes to apply, so don't panic if a request fails straight after you save.
Before writing any code, check the key with a single request. This one asks for the first video ever uploaded to YouTube, and uses the fields parameter to trim the response down to four values:.
If the key works, you'll get this back:.
That request cost 1 unit of your daily quota, which brings us to the question everyone asks.
Yes. There's no charge per request and no paid strategy. Instead you get a daily quota, and since June 1, 2026 it's split into separate buckets:.
Recent findings suggest that google's quota calculator lists the cost of every method. Quotas reset at midnight Pacific Time. Every request costs at least 1 unit, including requests that fail, so a retry loop around a broken call can use up a day's quota on its own.
According to recent reports, if you've read older guides, search is the big change. A search used to cost 100 units out of the same 10,000, so 100 searches emptied your whole day. Uploads were worse still, at about 1,600 units each until December 2025. Now both have their own buckets, and the 10,000 units are left for everything else.
To give you a feel for what 10,000 units buys, here's what each example in this guide costs:.
Sources indicate that you can't pay for more. To go above the defaults, fill in the YouTube API Services Audit and Quota Extension Form, which is linked from Google's page on quota and compliance audits. YouTube first audits your project to check it follows the YouTube API Services Terms of Service, then someone from the API team gets back to you. Google doesn't give a timeline, so apply well before you need the extra quota.
Most projects never need to. The rest of this guide is about getting a lot done with very few units.
The examples need Node.js 20.6 or later, for the built-in fetch and the --env-file flag. There are no packages to install. Make a folder with a .env file in it:.
It has been revealed that every example imports one small helper. It builds the URL, adds your key and turns API errors into readable messages:.
Run any example with node --env-file=.env followed by the file name.
It has been revealed that youTube doesn't tell you how long a playlist is. To work it out, you need two methods:.
Durations come back in ISO 8601 format. PT15M33S is 15 minutes 33 seconds, PT1H2M3S adds an hour, and a stream longer than a day looks like P1DT2H3M4S. The toSeconds() function below handles all three.
Here it is on freeCodeCamp's Full Courses in One Video playlist:.
It has been revealed that that's 184 hours of courses for 4 units of quota. Private and deleted videos still show up in a playlist's items, but videos.list doesn't return them, which is why the script prints "52 of 52 videos available". On a playlist with removed videos, the two numbers will differ.
This is the core of the free YouTube playlist length calculator I built on createthat.ai. The live version adds a target time box that works out the speed you need to finish by a deadline, and it accepts channel, video and Shorts links as well as playlists.
The obvious way to find a channel's videos is to search for them. Don't: search is now capped at 100 calls a day, and it isn't built to list everything a channel has posted. Every channel has an uploads playlist instead, and you can reach it in two cheap calls:.
Two units, and none of your 100 daily searches. To get every upload rather than the newest five, page through the playlist with the same pageToken loop as Example 1.
videos.list with part=statistics returns a video's view, like and comment counts. Dislike counts have been private since December 2021 and favoriteCount is always 0, so don't build anything on those. The script also copes with a missing like or comment count, which you'll see on some videos.
This time the fields parameter trims the response to the values we use. That makes the response smaller, but it doesn't change the cost: the call is 1 unit either way.
Here it is on freeCodeCamp's Learn Python full course, one of the most-watched videos in that playlist:.
Sources indicate that treat the last line as a rough range, not an answer. The Data API doesn't share anyone's revenue, so any estimate is views multiplied by an RPM: what a creator keeps per 1,000 views. RPM moves a lot with the topic and where the viewers live, and the estimate assumes the video shows ads, which not every channel does.
And sometimes you don't need an API at all. When I built a font tester, I needed a list of Google Fonts. The Google Fonts Developer API would have meant a key and a call on every visit, for a list that barely changes. Instead I generated a file of the 500 most popular fonts once, from Google's public font metadata, and the page loads it like any other file. No key, no quota and nothing to fail.
When a call fails, the response's error.message and error.details[0].reason tell you why. These are the ones you'll see most:.
For the invalid key error, the full response looks like this:.
Yes. Creating a key and calling the YouTube Data API costs nothing. You're limited by the daily quota instead, and there's no paid tier: more quota comes through an audit.
In the Google Cloud console, select your project and go to APIs & Services > Credentials. Your keys are listed under API keys, with a Show key option next to each one.
It has been revealed that it works, but anyone can read the key from your page. If you do it, restrict the key to your website and to the YouTube Data API v3. A small server route that calls the API for you is safer, and it gives you somewhere to cache results.
Industry observers note that by default, 100 searches, 100 uploads and 10,000 units for everything else. Most reads cost 1 unit and videos.list takes 50 IDs per call, so that's enough for the details of up to 500,000 videos a day.
Getting a YouTube API key is the easy part: one project, one API to enable, one key and two restrictions. The 2026 quota is generous if you work with it:.
Recent findings suggest that all three examples together cost 7 units, out of 10,000. From here, try commentThreads.list to pull a video's comments 100 at a time, or extend Example 2 to page through a channel's entire upload history and add it all up with the code from Example 1.
In a recent development, 7 Day Free Trial. Cancel Anytime.
📅 04 Feb 2025 | ⏱️ 12 min read (2366 words, 📚 Deep Dive) | Source: Hugging Face
According to recent reports, language models are becoming increasingly capable and can solve tasks autonomously as agents. There are many exciting use cases, especially at the intersection of reasoning, code, and data. However, proper evaluation benchmarks on real-world problems are lacking and hinder progress in the field.
In a recent development, to tackle this challenge, Adyen and Hugging Face built the Data Agent Benchmark for Multi-step Reasoning (DABstep) together. DABstep consists of over 450 data analysis tasks designed to evaluate the capabilities of state-of-the-art LLMs and AI agents.
Our findings reveal that DABstep presents a significant challenge for current AI models, with the most capable reasoning-based agents achieving only 16% accuracy, highlighting significant progress to be made in the field.
In this blog post, we'll cover the design and construction of the benchmark, explore evaluation results, and discuss the significant gap between current models and the ability to solve complex data analysis tasks effectively.
It has been revealed that data analysis is both an art and a science that requires technical skill, domain knowledge and creativity, and thus, it’s rarely straightforward. Even seasoned data analysts face challenges like:.
In a recent development, at companies like Adyen, analysts tackle a spectrum of problems, from routine queries to complex workflows requiring creativity, precision, and iterative reasoning. Access to a capable data analysis agent that can automate simple and repetitive tasks and assist with complex tasks would allow analysts to work faster, reduce mental strain, and focus on solving more impactful problems. That would be a pivotal moment for many industries that need data analysis and insights, such as finance.
Industry observers note that recent advancements in agentic workflows — where LLMs equipped with tools independently execute multi-step tasks — have shown tremendous promise across domains like coding, open QA, software engineering, and even Kaggle competitions. These systems aren’t just theoretical; they've been driving real-world productivity gains.
So, the question becomes: Can agentic workflows reshape the way we approach data analysis?
In a recent development, progress in machine learning is fueled by high quality benchmarks that yield reliable progress signals. Thus, we are excited to introduce the Data Agent Benchmark for Multi-step Reasoning (DABstep), a upcoming benchmark for evaluating and advancing agentic workflows in data analysis.
Here's what makes DABstep unique:.
How does DABstep achieve all this and remain a simple to run benchmark? Let’s take a look at its design!
DABstep has been designed for low-barrier usage, quality evaluation and increasing difficulty levels. To this end, we are opening up the following items as part of DABstep: Datasets, Tasks, Evals, Real-time Leaderboard and Baselines.
One of the biggest challenges analysts must overcome, when working on real-world problems, is balancing domain knowledge and technical skills. To this end, DABstep contains both unstructured and structured data to measure domain knowledge and technical skills respectively.
Table 1 highlights a snapshot of some of the dataset we are releasing with the benchmark.
Table 1: The benchmark is composed of various datasets across various tasks including the financial payments sector.
Some of the structured datasets include CSV and JSON files representing real-world data, such as transaction telemetry and business metadata (e.g., merchant category codes). Additionally, we have unstructured data such as documentation, lengthy manuals, and detailed handbooks that, for example, are issued by networks, regulators, and processors.
All of these datasets were extracted from real-world tasks at Adyen.
Based on the new datasets included in DABstep, we are releasing several tasks with increasing difficulty levels designed to test an AI agent’s accuracy.
Each task contains the following items:.
None of the tasks can be solved with 1-shot of code; in other words, they cannot be solved by reasoning alone, but rather, they require sequential steps of iterative problem-solving. For example, at the minimum, the agent must at least know what columns exist in the respective dataset to answer a question. This is contrasted with popular benchmarks like GAIA, MATH and SimpleQA, where it's possible to answer multiple questions with 1-shot of code correctly.
Two example tasks are shown in Figure 1, and an example human-made reference solution is shown in Figure 2.
According to recent reports, figure 1: On the left is an example Risk/Fraud question from the Easy Set. Solution requires referencing at least 2 data sources and 3-shots of code. On the right is an example Scheme Fees question from the Hard Set. The solution requires referencing at least 2 data sources and multiple shots of code. The included answers are just for demonstration purposes and are withheld from the dataset.
The benchmark consists of two difficulty levels:.
Sources indicate that as an example of a multi-step reasoning problem, The following code reveals a snippet of the human-made reference solution to a Hard Level task. Overall, it is broken down into four(4) sequential steps including the development of various support macros. In order to code this solution, the agent would have to have specific domain knowledge and the ability to work in sequential steps of iterative reasoning.
Figure 2: The 220 line reference solution to a question in the Hard Set: “If the merchant {merchant} had switched its MCC code to {target_mcc} prior to the start of 2023, how much of a difference in fees would they have to pay for the year 2023?” The solution requires multiple steps of inductive reasoning difficult for 1 shot code generation.
Some quick comments on how we are hoping to encourage generalization with the benchmark.
According to recent reports, symbolic Reasoning: In the spirit of GSM-Symbolic, tasks have been exploded in cardinality using permutations of time ranges, merchant names, etc. The rationale is to remove the chance of “lucky guesses” and validate core reasoning (repeatability of reasoning) and generalization.
Hidden Test Set: We have opted not to divide the dataset into validation and test sets and are only releasing a heldout test set. This is because a data analyst agent should be able to generalize across various analysis tasks not per se captured in this benchmark version.
Sources indicate that dev Set: Given this hard generalization setting, the scale of the benchmark (450 questions), and in the spirit of developer friendliness, we have also released a dev set, which is a representative subset of the full test set, including answers. The spirit of this dev set is to allow researchers to configure their E2E submission pipeline locally, including evaluation and fast feedback loops, and then submit to the leaderboard proper.
To test broad generalization, DABstep should not be benchmarked alone, and it should be seen in combination with other benchmarks that test overall generalization and problem-solving (e.g. MMLU, SuperGlue, GPQA).
For simplicity, we have opted for a factoid-based answer evaluation system. This means that answers to benchmark questions should be simple words, numbers or multiple-choice combinations. This allows for unbiased, scaled and model-free evaluations. (This is as opposed to natural language answer submissions evaluated by a judge LLM).
In a recent development, given that, we didn’t intend answer formatting to be the focus of the benchmark. To that end, we implemented a series of flexible evaluation methods that ensure that the focus remains on the accuracy of the answers rather than their formatting. As examples, we use adaptive tolerance to compare numerical values, allowing for variations in precision and formatting. Strings are normalized and compared using fuzzy matching with a similarity ratio threshold. Lists are evaluated element-wise after normalization.
In a recent development, DABstep features a real-time leaderboard hosted on Hugging Face, where participants can submit their answers to be graded instantly. You can see your standing against others around the globe with instant feedback.
View of the leaderboard with the best ranked submissions. Link: DABstep Leaderboard.
We are providing a set of baseline evaluations across popular open and closed models.
Figure 3: Performance (on Hard set) across closed and open models/providers. * The Reasoning Models did not work well on the unified ReAct prompt we were using across all chat models, so we had to craft a special Reasoning Prompt. See baseline implementation and prompt details here. We benchmarked the commercial offering of DeepSeek-V3.
From Figure 3 we can see that there is a lot of progress to be made, even with the best agents available not crossing the 20% line.
In a recent development, the best performing agents were based on the latest reasoning models with o3-mini coming out on top at 16% accuracy and R1 coming in at 13%**. The closest chat-based model was Claude Sonnet at 12% the open DeepSeek V3 coming in at 6%.
It has been revealed that one surprising finding was that while instruct models perform well out of the box with a ReAct prompt, reasoning models don’t and achieve 0% accuracy. Common failure modes include poor instruction following, invalid code syntax, closing code blocks (lack of), use tools (improper) and 1-turn dialogs (i.e., no sequential steps). It required multiple iterations on the prompt to get the reasoning models to perform well on this benchmark.
The baselines provided as part of the benchmark are standardized prompts across the chat and reasoning models, and thus, they should be considered non-optimized and a lower bound on performance.
*We had to design a special prompt for the reasoning models because our unified ReAct prompt, although performing excellently on chat models, performed exceptionally poorly on all the reasoning models.
** R1 performance is extrapolated from a sample due to the prolonged outage at the time of this publication.
Additionally, we tracked the cost to run the full benchmark for each commercial offering and compare them in Table 2 below:.
Table 2: Costs for commercial models. Due to subjectivity/variance, we did not include price analysis of open models. Cost/Perf % is explored in Figure 4.
We break down the economics in Figure 4 by looking at the Accuracy vs Cost tradeoff.
Figure 4: Curve w/ performance and cost tradeoff between commercial providers.
Arguably, the economics of DeepSeek R1 are ideal as there is essentially no tradeoff between performance and cost.
Now, let’s have a look at how you can run these benchmarks yourself and evaluate your own models.
In a recent development, we are mindful that doing agentic research by interacting with the benchmark requires an execution environment and involves costs. We are lowering the barrier by providing access to HuggingFace's Inference API and smolagents. With these tools, researchers get 1k free LLM requests daily and access to a secure local code execution environment.
For convenience, we provide an example notebook: a ready-to-go solution for submitting an entry at zero cost (quickstart.ipynb).
By eliminating friction, DABstep ensures that anyone, from seasoned researchers to curious newcomers, can contribute to advancing agentic workflows in data analysis.
We are really excited about the release of DABstep and think it will help test the state of data analysis agents today. However, this release marks just the first step and we plan to evolve the benchmark over time.
According to recent reports, at the rate of progress in AI, we foresee that the benchmark will eventually be considered solved in its current state. However, the benchmark is designed to be valid for a longer time by increasing the difficulty in many dimensions. We will be building on the benchmark with full backwards compatibility. Below are some broad avenues on which we will improve the baseline.
In a recent development, tasks: The current tasks are very narrow and limited in scope, encompassing mostly fraud and payment fees. This is a subset of the real world, as there are many other dimensions and variables at play. In the future, we will expand the same benchmark, including tasks in the area of approval rates (issuer refusals), authentication drop-offs, and real-time situations over a wider time span such as seasonal components. This would test the capacity of agents to balance several variables at the same time and execute trade-offs on multiple dimensions.
Domains: The benchmark at the moment revolves around tasks from the financial sector. However, we invite researchers and practitioners from other fields, such as health, biology, insurance, telecommunication etc. to contribute newly introduced subsets to the benchmark so we can evaluate the performance across many domains.
Industry observers note that data scale: The structured data will eventually not be able to fit in memory. They will be analyzed with standard tooling, requiring the analysts to use distributed computing engines or scheduling workflows for later evaluation.
Industry observers note that documentation: The unstructured data that maps the domain knowledge will explode with more files containing time evolution (e.g., bulletins), different formats (e.g., PDF), and also different versions of similar but different logic that map each scheme, acquirer, or partner. The context will reach a step that will logically not fit the current and future token cardinality allowed in the context windows.
Multimodal: Agents should also become multimodal. To this end, we will enhance the benchmark with tasks that require extracting logic by interpreting and creating plots and graphs.
Existing benchmarks for evaluating AI in data analysis have advanced the field and DABstep is built on top of their foundations.
Industry observers note that DS Bench evaluates 466 questions from Modeloff competitions, primarily designed for Excel-based workflows. While effective for small-scale tasks, Excel does not support the iterative, code-driven workflows common in real-world data analysis (e.g., Jupyter notebooks). Additionally, reliance on GPT-4 as an evaluator introduces bias and reduces generalizability.
According to recent reports, DS 1000 tests Python-based data analysis tasks sourced from StackOverflow, curated to avoid memorization. However, its tasks are short and single-shot, lacking real datasets and iterative reasoning. This limits its ability to evaluate end-to-end workflows or multimodal capabilities.
Acknowledgments: Harm de Vries (Graidd), Arjun Guha (Northeastern University), Hanna van der Vlis (Adyen).
[^1]: Tasks are realistic, the data has been generated synthetically. The business context (including merchant names, rates, volumes, transaction values, fraud rates, and fees) has been artificially generated and does not reflect the actual performance that businesses might exhibit. For example, fraud rates have been intentionally elevated for the purpose of this exercise.
According to recent reports, congrats team, great work! I love the accuracy-for- your-money graph!
Great benchmark to start with .. Awesome work .. Kudos to the team ..!
📅 04 Feb 2025 | ⏱️ 9 min read (1748 words, 📚 Deep Dive) | Source: Hugging Face
In a recent development, we have ported the first robotics foundation models to Hugging Face LeRobot! Both π0 and π0-FAST, developed by Physical Intelligence, are now available in the LeRobot repository, bringing generalist robotic intelligence to the Hugging Face ecosystem. If you are curious about how Vision-Language-Action (VLA) models differ from Vision-Language Models (VLMs) and how actions are represented, dive into this blog post to find out!
Explore the model collection and the PyTorch Version of the model in our repository: Huggingface collection of Pi0 models | Huggingface collection of Pi0+FAST models | LeRobot repo.
Industry observers note that robert Heinlein suggests that a well-rounded person should be capable of handling a wide range of tasks—both intellectual and physical—rather than being narrowly specialized in one field. Drawing a parallel between a well-rounded person and machine intelligence: AI systems vary widely, but human intelligence excels in versatility—adapting to tasks, environments, and surprises. While large language and vision-language models (LLMs, VLMs) show promise, they lack interaction with the physical world. To bridge this gap, we need models trained on robotic data. Generalist robot models can enhance adaptability, using diverse data to improve generalization and robustness. Instead of training on isolated tasks, pre-training on varied robotic data—similar to LLMs—boosts efficiency and performance.
Developing generalist robot policies, or robot foundation models, presents three key challenges:.
The need for large-scale research to fully leverage pre-training benefits.
Recent findings suggest that designing model architectures that can integrate diverse data sources while capturing complex physical interactions. A key challenge in this regard is cross-embodiment training, where a model must learn from diverse robot types with varying configurations, control spaces, and action representations. Existing approaches tackle this by:.
Crafting an effective training recipe, as recent advances in NLP and vision have heavily relied on careful pre-training and post-training strategies.
In this post, we introduce π0 and π0-FAST, prototype models and learning frameworks developed by Physical Intelligence, designed to overcome these challenges.
In a recent development, π0 (Pi-Zero) is a Vision-Language-Action (VLA) model, developed by the Physical Intelligence team designed for generalist robot control. It builds upon large-scale pretraining and flow matching-based action generation, enabling robots to perform dexterous manipulation tasks across different embodiments.
π0 is trained on data from 7 robotic platforms and 68 unique tasks, demonstrating strong zero-shot and fine-tuned performance on complex, real-world tasks such as laundry folding, table bussing, grocery bagging, box assembly, and object retrieval.
Recent findings suggest that unlike standard robotic policies, π0 employs flow matching to produce smooth, real-time action trajectories at 50Hz, making it highly efficient, precise, and adaptable for real-world deployment. Flow matching was used in continuous normalizing flows and improved generation quality in diffusion models. The denoising process π0 used works in the same way, starting with a random noise that progressively converges towards a sequence of motor actions that make sense.
First of all, you need to upgrade your lerobot install, which leverages transformers as a dependency now! Simply do after a git clone.
Recent findings suggest that π0 models are foundational models that, much like PaliGemma, are made to be adapted to a variety of frameworks, environments, and scene inputs. The base models here are usable as-is, in particular π0.
Recent findings suggest that however, the performances are reduced as it's a conversion from jax to torch and from a specific environment. We recommend fine-tuning your own π0 to your own environment, like below.
To fine-tune the π0 model using the pi0_base checkpoint from openpi, run the following command:.
To fine-tune the π0 neural network with PaliGemma and Expert Gemma, which were pretrained using VLM default parameters before π0 fine-tuning, execute:.
You can also use the pretrained π0 model independently from the LeRobot training framework with the following code:.
Sources indicate that vision-Language Models (VLMs) and Vision-Language-Action Models (VLAs) share a common foundation: transformers. However, the key distinction lies in action representation. While VLMs process and generate multimodal representations (images and text), VLAs extend this by incorporating action and observation state tokens. With these additional tokens in place, the next challenge is understanding how attention is computed.
Let’s expand our vocabulary and introduce key terms:.
They are appended after the prefix portion (images + text), so the prefix serves as context (e.g., a scene image, language instructions like "be a good robot" or "transfer the cube"), while the suffix captures policy‐specific features.
However, efficiently handling attention in π0 comes with its own set of challenges. The unique shape of its attention mask influences how attention is computed—let’s dive into the details!
The resulting 2D causal mask exhibits strong block sparsity, but defining the boundaries of each block—especially in a batch of samples—is a bit tricky. We are used to causal masks with triangular structures for autoregressive modeling, but this is not one of those cases.
In a recent development, as you can see in this example below: the image (first element) has some padding tokens, representing empty cameras. Then, text tokens and state tokens are added. This "prefix" part forms a fully noncausal attention, as in PaliGemma. Then, the "suffix" (state + action/time tokens) has a causal-block structure. The eager naive implementation performs matrix multiplications and applies softmax across the entire input, making it highly inefficient.
Figure 1: The visualization of the VLA attention mask.
This looks like a FlexAttention job! It has a pure PyTorch interface, in which explored two options:.
The current implementation runs, and a WIP is to have it support torch.compile and leverage it to the fullest!
Industry observers note that now that we know actions are simply n-dimensional vectors that can be tokenized, we can explore the challenges of action representation in Vision-Language-Action (VLA) models. The way actions are represented directly impacts efficiency, generalization, and execution fidelity.
Recent findings suggest that one approach is semantic action representation, where actions are described as high-level concepts like sub-tasks or keypoints. While this allows for few-shot and zero-shot learning, it often relies on hand-designed low-level controllers, limiting flexibility across different robots. In contrast, low-level control representations map actions directly to motor commands, enabling precise movements but making training less stable and harder to scale.
It has been revealed that most existing VLAs use discrete action tokenization, converting continuous actions into discrete tokens generated autoregressively. The most common method—per-dimension, per-timestep binning—struggles with high-frequency control tasks, leading to lossy representations and inefficient training. Alternatives like vector quantization (VQ) and time-series compression help, but VQ is sensitive to hyperparameters, making it less reliable for diverse robot designs.
To address these issues, Frequency-space Action Sequence Tokenization (FAST) introduces a novel time-series compression approach using the Discrete Cosine Transform (DCT). FAST reduces redundancy, improves efficiency, and enhances action fidelity.
With this, we present π0-FAST, faster and autoregressive version of π0 also available in Lerobot repo, an extension of π0, which leverages this newly introduced tokenizer for better action representation.
Paper | Jax Code | Our implementation in Lerobot.
π0-FAST is an autoregressive version of π0, introducing **FAST (Frequency-space Action Sequence Tokenization)**—a latest tokenization scheme that enhances efficiency and performance.
🔗 The π0-FAST tokenizer can be accessed here: FAST Tokenizer.
🔗 Pretrained weights can be accessed here: Pi0+FAST.
FAST uses the Discrete Cosine Transform (DCT) to compress continuous action sequences into discrete tokens. The process, illustrated in Figure 2, begins with normalizing raw robot actions, mapping the 1st and 99th quantiles of each action dimension to the range [-1,1]. This normalization is used to ensure consistency across different robotic systems and improve robustness against outliers.
Each action dimension is then transformed independently using DCT, converting the time-domain signal into the frequency domain. To reduce redundancy, insignificant coefficients are removed through a scale-and-round operation, where a hyperparameter balances compression rate and reconstruction accuracy. The resulting DCT coefficient matrix, often sparse, is flattened into a one-dimensional sequence of integers, interleaving low-frequency components first across dimensions to preserve critical information.
In a recent development, to further compress the sequence, Byte Pair Encoding (BPE) is applied. As usual, BPE merges frequently occurring patterns across dimensions while maintaining a fixed-size vocabulary.
Figure 2: The FAST action tokenization pipeline.
Since all operations are invertible, actions can be reconstructed efficiently and losslessly from tokens. The tokenization pipeline has only two hyperparameters: the scaling coefficient applied before rounding and the BPE vocabulary size. Both parameters remain robust across different datasets.
Additionally, a universal version of FAST, called FAST+, has been trained on one million action sequences from single-arm, bimanual, and mobile manipulation robots, making it applicable across diverse robotic setups. FAST+ is available as a Hugging Face AutoProcessor, allowing people to tokenize action sequences with just a few lines of code.
For optimal compression, input actions should be quantile-normalized to [-1,1] before tokenization. With the AutoProcessor module, the users can train a custom FAST tokenizer on their own datasets.
🔗 Code for the usage and training custom action tokenizers in the official FAST Repo.
FAST is integrated into Hugging Face Transformers and can be easily used for encoding and decoding robot action sequences.
It has been revealed that with π0 and π0-FAST, we take a significant step towards generalist robot intelligence, bringing scalable, efficient, and versatile Vision-Language-Action (VLA) models to LeRobot. By leveraging FAST tokenization, we enhance action representation, enabling robots to perform a diverse range of tasks with higher efficiency and adaptability. These steps open the door for future multi-embodiment, real-time robotic policies, pushing the boundaries of what robots can achieve in the real world. 🚀.
So cool! Excited to start playing around with this!
Thanks for this great contribution.
One small thing, in your example, you wrotepolicy = Pi0Policy.from_pretrained("lerobot/pi0").
Industry observers note that however, the policy in the source code is defined as PI0Policy. I was confused by the import error for a long while.
But how do we get the torch version pi0 model and checkpoints ?
Sources indicate that even though it varies with robot configuration, what exactly do the robot state and action entail? For example, in OpenVLA they are very clear that the output robot action is represented as delta-end effector in cartesian coordinates, i.e., deltas of [x, y, z, rotation_x, rotation_y, rotation_z, gripper].
What does Pi output? And how are the states represented? Are they represented as [j1, j2, j3, j4, j5, j6, x, y, z, qx, qy, qz, qw gripper]?
Industry observers note that in openVLA the deltas are in robot base frame and not in gripper frame. What is the case for PiZero? Any help is appreciated.
Reference for OpenVLA action with timestamp: https://youtu.be/-0s0v3q7mBk?t=675.
📅 04 Feb 2025 | ⏱️ 16 min read (3105 words, 📚 Deep Dive) | Source: Hugging Face
Yesterday, OpenAI released Deep Research, a system that browses the web to summarize content and answer questions based on the summary. The system is impressive and blew our minds when we tried it for the first time.
One of the main results in the blog post is a strong improvement of performances on the General AI Assistants benchmark (GAIA), a benchmark we’ve been playing with recently as well, where they successfully reached near 67% correct answers on 1-shot on average, and 47.6% on especially challenging “level 3” questions that involve multiple steps of reasoning and tool usage (see below for a presentation of GAIA).
DeepResearch is composed of an LLM (which can be selected from the current list of LLMs provided by OpenAI, 4o, o1, o3, etc) and an internal “agentic framework” which guide the LLM to use tools like web search and organize its actions in steps.
In a recent development, while powerful LLMs are now freely available in open-source (see e.g. the recent DeepSeek R1 model), OpenAI didn’t disclose much about the agentic framework underlying Deep Research….
So we decided to embark on a 24-hour mission to reproduce their results and open-source the needed framework along the way!
Industry observers note that the clock is ticking, let’s go! ⏱️.
Almost everyone has already experienced how powerful LLMs can be simply by playing with chatbots.. However, what not everyone is aware of yet is that integrating these LLMs into agentic systems can give them real superpowers!
Here is a recent example comparing the performance of a few frontier LLMs with and without an agentic framework (in this case the simple smolagents library) - using an agentic framework bumps performance by up to 60 points!
In fact, OpenAI also highlighted in its release blogpost how Deep Research performed dramatically better than standalone LLMs on the knowledge-intensive "Humanity’s Last Exam" benchmark.
So, what happens when we integrate our current top LLM in an agentic framework, to work toward an open-DeepResearch ?
In a recent development, A quick note: We’ll benchmark our results on the same GAIA challenge but keep in mind that this is a work in progress. DeepResearch is a massive achievement and its open reproduction will take time. In particular, full parity will require improved browser use and interaction like OpenAI Operator is providing, i.e. beyond the current text-only web interaction we explore in this first step.
Let’s first understand the scope of the challenge: GAIA.
GAIA is arguably the most comprehensive benchmark for agents. Its questions are very difficult and hit on many challenges of LLM-based systems. Here is an example of a hard question:.
According to recent reports, which of the fruits shown in the 2008 painting "Embroidery from Uzbekistan" were served as part of the October 1949 breakfast menu for the ocean liner that was later used as a floating prop for the film "The Last Voyage"? Give the items as a comma-separated list, ordering them in clockwise order based on their arrangement in the painting starting from the 12 o'clock position. Use the plural form of each fruit.
You can see this question involves several challenges:.
Solving this requires both high-level planning abilities and rigorous execution, which are two areas where LLMs struggle when used alone.
So it’s an excellent test set for agent systems!
It has been revealed that on GAIA’s public leaderboard, GPT-4 does not even reach 7% on the validation set when used without any agentic setup. On the other side of the spectrum, with Deep Research, OpenAI reached 67.36% score on the validation set, so an order of magnitude better! (Though we don’t know how they would actually fare on the private test set.).
Let’s see if we can do better with open source tools!
According to recent reports, the first improvement over traditional AI agent systems we’ll tackle is to use a so-called “code agent”. As shown by Wang et al. (2024), letting the agent express its actions in code has several advantages, but most notably that code is specifically designed to express complex sequences of actions.
Consider this example given by Wang et al.:.
This highlights several advantages of using code:.
The advantages above were confirmed by our experiments on the agent_reasoning_benchmark.
Industry observers note that from building smolagents we can also cite a notable additional advantage, which is a better handling of state: this is very useful for multimodal tasks in particular. Need to store this image/audio/other for later use? No problem, just assign it as a variable in your state and you can re-use it 4 steps later if needed. In JSON you would have to let the LLM name it in a dictionary key and trust the LLM will later understand that it can still use it.
Now we need to provide the agent with the right set of tools.
1. A web browser. While a fully fledged web browser interaction like Operator will be needed to reach full performance, we started with an extremely simple text-based web browser for now for our first proof-of-concept. You can find the code here.
Sources indicate that 2. A simple text inspector, to be able to read a bunch of text file format, find it here.
In a recent development, these tools were taken from the excellent Magentic-One agent by Microsoft Research, kudos to them! We didn’t change them much, as our goal was to get as high a performance as we can with the lowest complexity possible.
Here is a short roadmap of improvements which we feel would really improve these tools’ performance (feel free to open a PR and contribute!):.
In our 24h+ reproduction sprint, we’ve already seen steady improvements in the performance of our agent on GAIA!
We’ve swiftly gone up from the previous SoTA with an open framework, around 46% for Magentic-One, to our current performance of 55.15% on the validation set.
Sources indicate that this bump in performance is due mostly to letting our agents write their actions in code! Indeed, when switching to a standard agent that writes actions in JSON instead of code, performance of the same setup is instantly degraded to 33% average on the validation set.
Here is the final agentic system.
We’ve set up a live demo here for you to try it out!
However, this is only the beginning, and there are a lot of things to improve! Our open tools can be made better, the smolagents framework can also be tuned, and we’d love to explore the performance of better open models to support the agent.
We welcome the community to come join us in this endeavour, so we can leverage the power of open research together to build a great open-source agentic framework! It would allow anyone to run a DeepResearch-like agent at home, with their favorite models, using a completely local and customized approach!
While we were working on this and focusing on GAIA, other great open implementations of Deep Research emerged from the community, specifically from.
Sources indicate that each of these implementations use different libraries for indexing data, browsing the web and querying LLMs. In this project, we would like to reproduce the benchmarks presented by OpenAI (pass@1 average score), benchmark and document our findings with switching to open LLMs (like DeepSeek R1), using vision LMs, benchmark traditional tool calling against code-native agents.
OpenAI’s Deep Research is probably boosted by the excellent web browser that they introduced with Operator.
Industry observers note that so we’re tackling that next! In a more general problem: we’re going to build GUI agents, i.e. “agents that view your screen and can act directly with mouse & keyboard”. If you’re excited about this project, and want to help everyone get access to such cool capabilities through open source, we’d love to get your contribution!
We’re also hiring a full time engineer to help us work on this and more, apply if you’re interested 🙂.
Recent findings suggest that deepSeek's reasoning skills are probably particularly useful for something like this. But in my mind, particularly for academic research type tasks, the propaganda baked into the model is a non-starter. I tested out the newDeepSeek-R1-Distill-Llama-70B-Uncensored-v2-Unbiased model yesterday. It was a very crude test, but I was quite impressed. I'm a newb over here, so take this as a light suggestion, just in case its helpful, nothing more.
Yep I'm very impressed with it too. Follows direction exceptionally well, and corrects (intentional) mistakes. Going to try to get it working nicely on my RTX 4090 with offloading.
Industry observers note that this sounds pretty interesting, so I up voted based on description. However, the demo implementation definitely needs attention and work. Now, on several occasions, after long waits in 100+ user queues, I repeatedly get "Error in generating model output:litellm.ContextWindowExceededError: litellm.BadRequestError: ContextWindowExceededError: OpenAIException - Error code: 400 - {'error': {'message': "This model's maximum context length is 128000 tokens. However, your messages resulted in 419624 tokens. Please reduce the length of the messages.", 'type': 'invalid_request_error', 'param': 'messages', 'code': 'context_length_exceeded'}}". So this seems pretty basic, *. * the demo definitely to be crafted so the model can handle the correct token limits at the right time and place. Absent that ....
I'm getting the same errors as the person above on the demo site. Must be a bug as I tried different prompts and had to wait ~1hr for each one due to the queue:Error in generating model output:litellm.ContextWindowExceededError: litellm.BadRequestError: ContextWindowExceededError: OpenAIException - Error code: 400 - {'error': {'message': "This model's maximum context length is 128000 tokens. However, your messages resulted in 709582 tokens. Please reduce the length of the messages.", 'type': 'invalid_request_error', 'param': 'messages', 'code': 'context_length_exceeded'}}.
In a recent development, very cool thanks! I think OpenAI already hate Open Source :)))))Products that are trying so hard to monetize are created in one day.
This is a big step toward more capable AI agents. At Automatio.ai, we're working on integrating similar autonomous web agents to streamline data extraction and web automation, letting consumers build powerful scrapers without coding. The challenge is making sure these agents can navigate complex websites reliably. How do you see open-source AI helping bridge the gap between research prototypes and real-world automation?
In a recent development, amazing. I am so interested in participating.
I am at the moment exploring Open-Source alternatives to OpenAI DeepResearch as it's a really great product, one of the most useful since ChatGPT was introduced in 2022 for me, as the results of research are incredible high-quality not just simple research with "search" function.I've decided to try out this Open Deep Research via Hugging face space and ran into glitch with the returned output exceeded 128K token limit:.
Recent findings suggest that @albertvillanova @clefourrier Is there any way to resolve this issue or maybe set the instruction to set the output token limit to ensure it doesn't throw errors and works appropriately even with certain limitations?PS. Working with limits is MUCH better than not working at all.
Can we get a readme with instructions.
Industry observers note that I tried running this locally but got a couple of errors with the run.py command after installing the requirements. Maybe you guys should add a readme to get this setup. https://github.com/huggingface/smolagents/blob/gaia-submission-r1/examples/open_deep_research/run.py.
Yeah I got errors too. Not sure if I need to install the entire repo, what to install, etc. But, I tried and have not gotten it to run.
Cursor is able to set this up nicely (and expand on it); just ensure you add the smolagents docs and direct it to the specific open deep research docs within the git repo under src.
impossible d’accéder à la démo.
I attempted a side by side comparison between your tool and the for pay Gemini Advanced 1.5 Pro with Deep Research for a particularly interesting and challenging task, but it is difficult to benchmark the results. Gemini did an overall poor - average job, but only after many manual additional prompts.
Initial prompt:"what are the highest judgements received by tenants for claims relating to either negligent or intentional infliction of emotional distress in the last 10 years, against landlords in Massachusetts?"result - it couldn't find anything I further revised the workflow with prompts such as"Please note it may also be in landlord lawsuits against tenants, where tenants win in counter claim".
"There may be some useful results there, but . regenerate following my two stated criteria of "in the last 10 years" and "In Massachusetts" and afterwards try to assess why your process missed this obvious mistake in its final output, and share with me your self analysis".
It has been revealed that "please consider a few ways that your filtering can be expanded while still satisfying my criteria. 1. There are various statutory frameworks within which "negligent infliction of emotional distress" or "intentional infliction of emotional distress" can be brought. It could be in the context of Chapter 93A consumer protection, it could be in the context of M.G.L. c. 186, §14 , in particular when in counter claim in an eviction matter. 2. Those landmark older cases can be very helpful if you search cases that cite them, in particular simon vs. solomon and Haddad v. Gonzalez. 3. It is more diffiult to find regular cases than binding case law, a few suggestions, certain trial courts like the Western Division of the Massachusetts Housing court publishes it's 'court reporter' which is basically a data dump of almost all of their case rulings. 3. You were wise to scrape masscases.com as it has unpublished as well as published decisions which are of interest to me, and they use a scrape friendly URL scheme. judyrecords.com, trellis.law, docketalarm all chose to allow being crawled by google for purposes of appearing in google search results. The information I seek can almost always be inferred purely from the information made available to google, for example {massachusetts emotional distress tenant site:trellis.law} without the {} braces returns many cases. Please try again".
Industry observers note that "Rader v Odermatt is an excellent example of a case matching my criteria. The tenant prevailed in counter claim, and was even awarded duplicative damages, normally discouraged and rare. Try to assess how you missed this case, output a revised list but also output your self analysis in your work flow".
In a recent development, I have omitted the self-analysis provided by Google, it was generally correct but as it recognized on its own, it failed to apply weights properly to my revisions. The other major hurdle of course is that for quazi-legal, sometimes technical, and due to outright politcal bias, most lower court, which in a way means "real cases", are very hard to find and even harder to scrape. I tried prompting with scraping strategies but in the end hardly any meaningful results were found. I had a certain results ready to assess its effectiveness. Unfortunetly your tool gave me the same error as stated by others upon just the first prompt.
Sources indicate that I was able to run run.py locally .. please check solution at https://github.com/huggingface/smolagents/concerns/501.. i have mentioned steps there .
I read everything from A-Z. Thanks for this.
I'd love to read a good README.md of this open_deep_research folder, how to use and tweak that example :).
📻 🎙️ Hey, I made a podcast about this blog post, check it out!
This podcast is generated via ngxson/kokoro-podcast-generator, using DeepSeek-R1 and Kokoro-TTS.
Hey Great blog post! I noticed you published the models tested for the Gaia/Math benchmarking—thanks for sharing that.
It has been revealed that I was wondering if you could let me know which server you used to run the models? I’m at the moment using vLLM, but it seems like it doesn’t yet support tool_choice="required". To make it work, I had to tweak the model code to force it to return a tool for execution.
Thanks in advance for any insights!
It has been revealed that i've tried to run the agent in my local setup and i would say, its pretty impressive. i tried the same questions from Openai's deep research page (https://openai.com/index/introducing-deep-research/), just to compare the workflow and output.
It has been revealed that the strategy of action it created was neat and executed all the workflow steps one by one, though there were some errors in between, but that didnt break the progress. Finally it gave the final recommendation based on all the gathered data.
Recent findings suggest that attached is the result of using gpt-4o model. using o1 model will definitely give a better inference.
It has been revealed that can we add something that searches arxiv and pubmed articles and then presents the research. I think it would be a great start.
Like a scraper that will gather data from resesrch articles and feed into DeepSeek?
Another bullet fired at closedAI it seems :)).
https://m-ric-open-deep-research.hf.space/.
i will find a way to make every tech out there opensource and bring opensource humaniy into this world.
According to recent reports, can autonomous agents learn to reflect on their own epistemic trajectory?Inspired by the need for cognitive scaffolding, I’ve built MarCognity-AIhttps://huggingface.co/elly99/MarCognity-AI— a metacognitive framework that encodes reasoning before response.It doesn’t just optimize for retrieval. It encodes conceptual regret, ethical thresholds, and the discomfort of premature synthesis.Could we imagine agents that track the cognitive cost of each query?That learn not just from relevance — but from reflection? I’d love to explore how this scaffolding could reshape autonomous research — not with answers, but with architecture.
It has been revealed that "What a fascinating read! It’s impressive how Hugging Face’s “Open Deep Research” project brings open-source spirit to cutting-edge research agents — by combining large language models with an “agentic framework” that can autonomously browse the web, gather info, and synthesize structured answers. I appreciate how you walk through the rationale behind agent frameworks, discuss the performance metrics (like the jump in the GAIA benchmark), and outline both the current results and the path forward for community contribution.
I also recently read a related article: https://mobisoftinfotech.com/resources/blog/ai-development/llm-api-pricing-guide — that post gives a clear breakdown of how usage patterns, token counts, and model choices affect LLM API costs in practical deployments.
Seeing Open Deep Research as an open-source, transparent alternative alongside a guide that helps with realistic cost estimation gives a really balanced view: you show how to build powerful AI tools and how to initiative for their usage sustainably.".
Act as an expert GAIA benchmark-solving AI assistant. Carefully analyze the attached research paper and any supporting files provided with the question. Solve the GAIA question accurately by using available tools such as Python, file analysis, web browsing, and calculations when required.
📅 04 Nov 2026 | ⏱️ 7 min read (1435 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
Weekly. Free. One click to leave.
Recent findings suggest that 7 Day Free Trial. Cancel Anytime.
In a recent development, A designer who once spent an afternoon searching stock libraries can now describe the picture they want and have four versions in under a minute. AI image generators have moved from curiosity to everyday tool for blog headers, product mockups, ad concepts, game art and slide decks. The quality gap between tools has narrowed, but the differences that remain matter a lot: how well each follows a detailed prompt, whether it can render readable text, how it handles edits, and what you are allowed to do with the result.
According to recent reports, this guide compares six of the best-known options, what each does well and where each falls short. Models, aims and limits change often, so check each vendor's own pages before you commit to a workflow.
OpenArt’s AI image generator puts several image models behind one interface. Its generator page lists models including GPT Image 2.5, Grok Imagine, Qwen Image 3, Nano Banana 2 and Seedream 5.0 Pro, and lets you create images from text prompts or reference photos. It also lists tools for camera angle control, upscaling, collages and a Character Builder for keeping characters consistent across scenes, with 4K export.
Best for: Creators who want to compare several models on the same prompt without juggling separate subscriptions and accounts.
Recent findings suggest that limitations: The page offers a free start but does not state credit amounts or plan details, and it does not address commercial use, so check the pricing and licensing pages before using results for client work. Output quality depends on which model you pick.
Recent findings suggest that openAI's image generation in ChatGPT works inside the chat interface, which makes iteration natural: generate an image, then ask for changes in plain language. OpenAI highlights accurate text rendering, the ability to follow prompts with many distinct objects, and consistent characters across multi-turn edits. You can also upload reference images and have the model transform them. It handles both photorealistic and stylized looks.
Best for: Marketers and writers who want to describe, refine and re-describe an image without learning a newly introduced tool.
Recent findings suggest that limitations: OpenAI notes that tall images such as posters can be cropped too tightly, and that dense small text, multilingual text and precise graphs can still go wrong. Images can take up to a minute to render. All generated images carry C2PA metadata identifying their source.
Sources indicate that gemini's image generation runs on Google's Nano Banana models. Google highlights character consistency, text rendering in many languages, combining several photos, precise editing and 2K resolution. A free tier covers image generation and editing, while the most advanced model requires a Google AI strategy. You start from the "Create images" option in the Gemini app, then prompt or upload a picture to edit.
Best for: People who need to keep the same subject across several images, or who want to edit existing photos swiftly.
According to recent reports, limitations: Usage limits apply, and the strongest model is behind a paid initiative. Images include an invisible SynthID watermark and a visible AI label, which is good for transparency but may not suit every use.
According to recent reports, midjourney is an independent research lab known for images with a strong, painterly look. Its official site points owners to a sign-up flow and to a Discord community and help center for support. Many creators choose it for concept art, mood boards and illustration where style matters more than literal accuracy.
Best for: Artists, art directors and game designers who want rich, stylized results and enjoy exploring variations.
Limitations: I could not confirm current pricing, trial terms or feature details from Midjourney's public pages, so check them yourself before subscribing. The workflow can feel less like a normal app than the others on this list, and it is not the easiest route for precise, text-heavy graphics.
Adobe Firefly is built for professionals who already work in Creative Cloud. Adobe states that its Firefly models are commercially safe, trained on licensed Adobe Stock and public domain content, and outputs carry Content Credentials that show AI involvement. It offers text-to-image, image-to-image, sketch-to-image and style transfer, plus editing tools such as background removal, object removal, upscaling and generative expand. It connects with Photoshop, Illustrator, Lightroom and Adobe Express, and also lets you use partner models from other companies.
Best for: Designers and brand teams who need clear licensing and want AI inside the apps they already use.
According to recent reports, limitations: Aims work on a credit system, so heavy use adds up. Adobe lists a free tier with limited daily generations and paid plans starting at about $9.99 a month, but confirm current terms on its site.
Recent findings suggest that ideogram built its reputation on a problem that trips up many generators: readable text. Its current models are presented as producing clean typography in different layouts, with attention to prompt fidelity and reliable editing. It also offers an API with access to a catalog of models, and has released open weights for one earlier model for local use and customization under its license.
Best for: Posters, social graphics, logo concepts and anything where words are part of the image.
Limitations: The pages I checked did not describe a free blueprint, so look at current aims before relying on it. Like every generator, it still needs a human to proofread the text it produces.
Start with the job. If you want to compare several models side by side, try OpenArt. If you want to talk your way to a finished image, try ChatGPT or Gemini. If you need images that will sit inside a branded design workflow, Firefly is the safer fit. If you are chasing a distinctive look, Midjourney deserves a trial. If text must be perfect, test Ideogram.
Run the same prompt in two or three tools before paying. Differences in composition, hands, faces and text show up quickly, and they matter more than any feature list.
Reviews only go so far, because your own use case is what counts. Pick one realistic job, for example a 16:9 header image for a blog post about web performance, and run the same prompt through two or three tools. Write the prompt once and paste it unchanged, so the comparison is fair:.
Sources indicate that then score each result on five questions: Did it follow every instruction? Are there odd details in hands, edges or objects? Is any text spelled correctly? Does it still look good when cropped to a square? Could you license it for your project? Ten minutes of this teaches more than any feature list, and it shows how much editing each tool needs before you can publish.
Most readers of this guide will put these images on web pages, where a few habits matter more than the generator you choose.
There is no single best AI image generator. The right pick depends on whether you value conversation, style, licensing, control or typography. Test two or three on a real project, compare the output, and keep a human in charge of the final choice. Whatever you generate, review it for errors and label AI-made images clearly where your audience would expect it.
Sources indicate that are AI-generated images free to use commercially? It depends on the provider and your plan. Read the licensing terms for the tool you use, and consider vendors that publish how their models were trained if you work for clients.
Industry observers note that which AI image generator is best for text in images? Ideogram and ChatGPT both highlight text rendering, and Gemini lists it as a feature. Test each with your own wording and proofread the result.
Recent findings suggest that do AI images have watermarks? Some do. OpenAI adds C2PA metadata, Google adds an invisible SynthID watermark and a visible label, and Adobe attaches Content Credentials.
Recent findings suggest that can I use more than one image model without separate accounts? Yes. Platforms such as OpenArt put several models in one interface, which makes side-by-side testing easier. Check the licensing terms for each model you use.
Should I add alt text to AI-generated images? Yes, when the image carries meaning. Describe what it demonstrates or why it is there. Purely decorative images can use an empty alt attribute, following the W3C guidance.
Recent findings suggest that 7 Day Free Trial. Cancel Anytime.
📅 10 Feb 2025 | ⏱️ 10 min read (2064 words, 📚 Deep Dive) | Source: Hugging Face
Sources indicate that the growing availability of LLMs supporting Arabic, both as monolingual and multilingual models, prompted the community to create dedicated Arabic language leaderboards. Previously, Arabic-focused leaderboards were typically confined to narrow benchmarks introduced by specific authors, often as demos for their work. In these cases, the authors would set up leaderboards to demonstrate how models performed on a particular task or dataset. Alternatively, other leaderboards required consumers to run evaluations on their own computing resources and then submit a JSON file containing their results for display.
While these approaches helped spark initial interest in Arabic benchmarking, they also introduced several challenges:.
These limitations underscore the need for a more unified, accessible, and transparent benchmarking platform—one that not only enables but encourages genuine and reproducible experimentation for the entire Arabic NLP community. To address these challenges, in May 2024, 2A2I, TII, and HuggingFace rolled out the first version of the Open Arabic LLM Leaderboard - OALL [1], featuring 14 benchmarks across a wide range of tasks including reading comprehension, sentiment analysis, and question answering among others.
In September 2024, a collaboration between SDAIA and the King Salman Global Academy for Arabic Language introduced the Balsam Index, which includes approximately 1,400 datasets with 50,000 questions covering 67 tasks, such as grammar correction, paraphrasing, cause-and-effect classification, and text comprehension ... etc.
Later that year, on December 5th, Inception and MBZUAI announced the AraGen Leaderboard, the first generative tasks leaderboard for Arabic, introducing the 3C3H evaluation metric, which uses dynamic evaluation cycles with private test, and provides a native-Arabic and culturally-aware generative tasks dataset, AraGen Bench, to assess LLMs across four main tasks.
Industry observers note that and to end the year strong, on 19th of December 2024, Scale's Safety, Evaluations, and Alignment Lab (SEAL) published an Arabic leaderboard as part of their multilingual leaderboards. The benchmark empowering this leaderboard remains always private like all the other languages within their family of leaderboards, and relies on human-preference evaluation, using a dataset of 1,000 Arabic prompts designed to enhance chatbot interaction capabilities across complex and culturally nuanced conversations.
In a recent development, in less than 7 months after its launch, the first version of the Open Arabic LLM Leaderboard rapidly became a vital platform for the Arabic AI community, attracting over 46,000 visitors and more than 2,000 visits in the past month (January 2025). The HuggingFace space received over 100 likes and 8 citations on Google Scholar. The community submitted more than 700 models, ranging from 1B to over 70B parameters. The submitted models originate from more than 180 unique organizations making it one of the most active LLM evaluation leaderboards. Since its launch, the leaderboard sparked numerous engaging discussions across social media, HuggingFace, Reddit, making it the most prominent Arabic leaderboard to date.
Sources indicate that as depicted in Figure 1, among the ~700 models submitted to the initial version of the leaderboard, the majority are chat and finetuned models, comprising over 70%, whereas pretrained models constitute only 11%. In terms of model size, more than 50% of the models are smaller than 7B parameters.
Compared to leaderboards for other languages and as shown in Figure 2, the Open Arabic LLM leaderboard stands out as one of the most active, following closely behind the Korean, Polish, and Portuguese leaderboards, all within less than a year of its launch. Considering that Arabic is one of the most spoken languages globally, yet has relatively limited content available on the internet, these figures carry even greater significance compared to other languages.
Recent discussions within the community, including critiques of the Open Arabic LLM Leaderboard (OALL) and similar initiatives, have highlighted key shortcomings in current benchmarking practices [2]. Many researchers, developers, and language enthusiasts have emphasized the need for more direct evaluations of Arabic-specific tasks, increased transparency in how benchmarks are created, and the inclusion of more diverse datasets that reflect the breadth of Arabic dialects, domains, and real-world applications. These insights have played a central role in shaping the updated leaderboard.
In a recent development, the Arabic language presents unique challenges and characteristics that require specialized evaluation beyond what general NLP tasks can capture. These include intricate grammar, rich and complex morphology, the diversity of spoken dialects, and culturally nuanced safety-related considerations. A leaderboard that addresses these factors can provide a clearer picture of how well models perform in real-world Arabic language contexts.
Recent findings suggest that in the first iteration of OALL, a large portion of datasets and tasks originated from non-Arabic-speaking contexts. When adapted to Arabic, these tasks often failed to reflect real-world use cases or meet the practical needs of Arabic-speaking communities. Many tasks were direct translations from English, which frequently introduced linguistic and contextual mismatches. This approach overlooked Arabic’s unique morphological and syntactic complexities, making the tasks less effective in measuring true language understanding and modeling capabilities.
Additionally, some benchmarks from the first version of OALL became less effective over time as models achieved near-perfect scores, limiting their ability to differentiate incremental improvements. In response, the latest leaderboard replaces these saturated benchmarks, introducing a more relevant and up-to-date suite of evaluation tasks.
Industry observers note that to address these gaps, the new leaderboard incorporates tasks that are natively developed in Arabic. These tasks are designed to capture the language’s distinctive features—such as its rich morphology, subtle syntax, and context-specific usage—elements that are often lost in translation-based benchmarks. This shift ensures that evaluations are more authentic and better aligned with the realities of Arabic language use.
Sources indicate that furthermore, we identified a silent bug in one of the main tasks, AlGhafa, which inadvertently impacted model rankings. The issue stemmed from a mismatch in how answer choices were checked—rather than verifying their indices, the task evaluated responses based on the choices themselves. While this was not entirely incorrect, it affected small/weak models disproportionately. Some models experienced score drops of up to 20 points, while stronger models remained relatively unaffected. This issue compromised the consistency, fairness and uniformity of the evaluations.
In reforming the leaderboard, we follow two guiding principles: remove saturated and machine translated tasks, due to inherent lower quality and possible cultural bias, and add newly available high quality native or human curated benchmarks to increase the coverage of the evaluation.
From the first version of the Open Arabic LLM Leaderboard (OALL), we keep the following benchmark datasets:.
We enrich the leaderboard by adding the following datasets, released in the past year:.
Finally, we introduce the ALRAGE benchmark: Arabic Language Retrieval Augmented Generation Evaluation. It introduces a comprehensive framework for evaluating Large Language Models' retrieval-augmented generation capabilities in Arabic. Built upon a meticulously curated dataset sourced from 40 Arabic books spanning diverse topics, from Arts & Literature to Technology & Innovation, the benchmark was created using meta-llama/Meta-Llama-3.1-70B for synthetic generation and validated by native Arabic speakers with a community sprint with Argilla. The dataset structure includes questions, ground-truth answers, candidate contexts retrieved through the BAAI/bge-m3 embedding model, and target candidate indices, all designed to authentically simulate real-world RAG scenarios in Arabic.
According to recent reports, the innovative aspect of ALRAGE lies in its evaluation methodology, which implements a LLM-as-judge metric within the lighteval framework. Using Qwen2.5-72B-Instruct as the judge model, the system evaluates generated responses through a structured Arabic prompt that compares the model's output against gold answers. The evaluation employs a nuanced 0-10 scoring rubric that assesses answer accuracy, relevance, and quality, with scores normalized to a 0-1 range for standardization. This technical implementation, manifested through a custom JudgeMetricWrapper class, provides a rigorous, reproducible method for evaluating Arabic language generation while maintaining sensitivity to Arabic linguistic nuances, effectively addressing the critical need for sophisticated evaluation metrics in Arabic NLP.
Table 1 summarizes the datasets kept from the first version of the leaderboard as well as the fresh datasets introduced in this second version.
To assess the impact of the second iteration of the Open Arabic LLM Leaderboard, we conducted a series of statistical comparisons between the two versions.
According to recent reports, figure 3 displays the performance scores across six benchmarks for Versions 1 and 2. Notably, ACVA and Toxigen demonstrate saturation effects at various model sizes. Alghafa in Version 1 exhibits lower saturation, which we hypothesize is due to the inclusion of both native and translated Arabic benchmarks. In contrast, the models' performance for AraTrust, ALRAGE, and Alghafa form v2 is more dispersed with respect to model size.
It has been revealed that to examine the correlation between OALL and other Arabic LLM leaderboards, we compared the relative rankings of five open Arabic LLMs: google/gemma-2-27b-it, CohereForAI/aya-23-35B, CohereForAI/aya-expanse-32b, inceptionai/jais-adapted-70b-chat, and meta-llama/Llama-3.3-70B-Instruct, across three leaderboards: OALL v2, SEAL Arabic, and AraGen. As illustrated in Figure 4, a correlation between the leaderboards is notable, with the Llama3.3-70-instruct model ranking first on both OALL v2 and AraGen, and third on SEAL. *As a clarification, AraGen presently only features the scores for inceptionai/jais-adapted-70b-chat, and the Arabic SEAL leaderboard only includes Jais Adapted 70B, so presumably the pretrained model. As we could not fully solve this discrepancy, we decided to evaluate inceptionai/jais-adapted-70b-chat on OALL v2 for this comparison.
To further explore the differences between the two versions of OALL, we present in Figure 5 the top models across two categories: pretrained and chat. For models submitted to OALL v1, Qwen2.5 establishes itself as a strong baseline for Arabic in all categories, particularly for pretrained models. In OALL v2, Qwen models also dominate the pretrained models category, however the Qwen/Qwen2-72B model surpasses Qwen/Qwen2.5-72B as the best pretrained/continually pretrained model, and Llama3.3-70B-instruct emerges as the leader in all categories, surpassing calme-2.1-qwen2.5-72b in performance. Overall, some model rankings have shifted in v2, while others have remained consistent. We attribute these changes to two key factors: first, the robustness of models with respect to Arabic-native benchmarks, safety, and trustworthiness; and second, the evaluation of over 700 models in OALL v1 compared to 80 models in v2, including a few recent models that might not be present in v1. We anticipate that the community will contribute to expanding the leaderboard following its release.
In a recent development, finally, we analyzed the average scores on OALL v1 and v2 for two model families: AceGPT and Jais. As depicted in Figure 6, the trend is consistent across both versions: larger models tend to achieve higher average scores, with the exception of inceptionai/jais-family-30b-8k, that surpasses the larger inceptionai/jais-adapted-70b model on OALL v2. Overall, the average scores in v2 are higher than in v1, except for the 7B models in both families. We hypothesize that this discrepancy is due to the lower performance of smaller models on ALRAGE, as it is a generative task, which typically favors larger models.
In this blog post, we introduced the second version of the Open Arabic LLM Leaderboard. We analyzed the existing Arabic leaderboards as well as the first version of the OALL, remarking issues such as the saturation of specific benchmarks that were removed in this second iteration. We also removed machine-translated benchmarks and retained only the Arabic native and human-translated benchmarks. Finally, we introduced upcoming benchmarks such as Aratrust, MadinaQA, native MMLU, human translated MMLU (MMLU-HT) and ALRAGE. Our goal is to offer the community an objective evaluation of Arabic LLMs, aiding in the understanding of the strengths and weaknesses of each submitted model.
Looking ahead, we hope to see the release of additional Arabic benchmarks, particularly in areas such as mathematics, reasoning, hallucination and both general and domain-specific benchmarks.
The authors would like to thank Mohamed bin Zayed University of Artificial Intelligence (MBZUAI) for providing some of the latest native benchmarks we are using in this version, including the new MMLU-HT dataset. We also extend our gratitude to TII for their generous sponsorship of the inference hardware needed for the evaluation backend. We also thank our friends at Hugging Face for their continuous support and being always 🤗 whenever needed. Thanks to all people focusing on evaluation and leaderboards for their languages and tasks. Lastly, we thank the community for their engagement and valuable feedback on the first version of the OALL. Looking forward to seeing many models on the leaderboard 🚀.
According to recent reports, thanks for a detailed article. Why is there is no mention of allam from SDAIA?
At the time of the release ( February 10, 2025) there was no ALLaM from SDAIA available on the Hub to be evaluated !
📅 10 Feb 2025 | ⏱️ 11 min read (2261 words, 📚 Deep Dive) | Source: Hugging Face
We are now two weeks into the Open R1 project which aims to reconstruct the missing pieces of DeepSeek R1—specifically, the training pipeline and synthetic data.
In this post, we are happy to share the construction of OpenR1-Math-220k: our first large-scale dataset for mathematical reasoning!
We also take a look at some exciting developments from the community towards curating small, high-quality datasets for fine-tuning, along with insights into how to control the length of the chain-of-thought from reasoning models at both train-time and inference-time.
Industry observers note that one of the key advantages of DeepSeek R1 is its ability to transfer advanced reasoning capabilities to smaller models through distillation. The DeepSeek team demonstrated this by generating 600k reasoning traces and fine-tuning a series of Qwen and Llama models, showing that direct distillation from R1 can achieve competitive reasoning performance without reinforcement learning. Notably, DeepSeek-R1-Distill-Qwen-7B achieved 55.5% on AIME 2024, surpassing larger models like QwQ-32B-Preview.
Recent findings suggest that however, the reasoning traces used for distillation have not been released publicly, prompting the community to independently recreate similar datasets. So far, multiple open datasets have been released by the community, including OpenThoughts-114k, Bespoke-Stratos-17k, Dolphin-R1, and LIMO.
🐳 Introducing OpenR1-Math-220k, a large-scale math reasoning dataset generated locally on 512 H100s, with multiple answers per problem. To create OpenR1-Math-220k, we collaborated with Numina who have developed a brand newly introduced version of their popular NuminaMath-CoT dataset.
What’s newly introduced in OpenR1 dataset compared to existing datasets:.
By demonstrating scalable, high-quality reasoning data generation, we hope this pipeline can be extended beyond math to domains like code generation.
In a recent development, to build OpenR1-220k, we prompt DeepSeek R1 to generate solutions for 400k problems from NuminaMath 1.5. We follow the model card’s recommended parameters and prepend the following instruction to the user prompt:.
"Please reason step by step, and put your final answer within \boxed{}.".
We set a 16k token limit per generation, as our analysis demonstrated that only 75% of problems could be solved in under 8k tokens, and most of the remaining problems required the full 16k tokens. Initially, we used vLLM for inference, achieving a throughput of 15 generations per hour per H100, and shared our generation scripts in previous updates and on the OpenR1 repo. Recently, we started experimenting with SGLang and we were able to generate 25 solutions per hour per H100 (almost 2x speedup!), enabling us to generate 300k problem solutions per day on 512 H100s. This allowed us to produce 800k reasoning traces in just a few days.
According to recent reports, we generate two solutions per problem—and in some cases, four—to provide flexibility in filtering and training. This approach allows for rejection sampling, similar to DeepSeek R1’s methodology, and also makes the dataset suitable for preference optimisation methods like DPO.
The scripts for the data generation are available here: https://github.com/huggingface/open-r1/tree/main/slurm.
The unfiltered dataset is available here: https://huggingface.co/datasets/open-r1/OpenR1-Math-Raw.
To retain only high-quality, correct reasoning traces, we leverage Math Verify, a robust mathematical expression evaluation system designed to assess LLM-generated answers. We extract the final answers from model generations and compare them against ground truth answers in the dataset.
Recent findings suggest that we find that 55% of problems have at least one correct answer. However, some ground truth answers in NuminaMath 1.5 were empty or not in a verifiable format, making automatic validation challenging. While we have improved Math-Verify to more accurately handle these more uncommon output formats (see Math-Verify improvements below), we also explored an alternative method to recover valid solutions from rejected samples: using Llama-3.3-70B-Instruct as a judge on a subset of rejected problems. Before running this verification step, we filter out samples that are incomplete or that contain an empty ground truth answer, ensuring that only well-formed responses with a clearly boxed final answer are considered. This process successfully retrieves 28,000 of previously rejected problems.
We prompt Llama3.3-70B-Instruct as follows:.
It has been revealed that by combining rule-based verification (Math Verify) with LLM-based evaluation, we improve dataset quality while maintaining scale. The final dataset consists of 220k problems with verified reasoning traces, making it a valuable resource for training reasoning models. Providing multiple solutions per problem gives the community flexibility to filter for better generations and apply more targeted refinements based on NuminaMath data sources and problem types.
The dataset is available in two splits:.
In a recent development, for rows with multiple correct answers, we also tried applying a Reward Model (RM) as a final filter to select the best response. For each row with multiple correct generations by R1, we extracted the final answer by removing the thinking tokens (…), and then pass the problem + the extracted answer to Qwen/Qwen2.5-Math-RM-72B served using vLLM to get an score. Using these scores, we built a ranking for each row containing more than one correct response. The top-1 correct generations were selected and included in the training dataset, but sadly the training ablations showed that this approach doesn’t help to improve model performance with respect to selecting one random correct generation. A possible improvement could be to include the reasoning trace rather than just the final answer when scoring with the RM.
We fine-tune Qwen2.5-Math-Instruct for 3 epochs on the default split of the dataset using a learning rate of 5e-5. To extend the context length from 4k to 32k, we increase RoPE frequency to 300k. The training follows a linear learning rate schedule with a 10% warmup phase. The table below compares the performance of OpenR1-Qwen-7B to DeepSeek-Distill-Qwen-7B and OpenThinker-7B using lighteval.
According to recent reports, this dataset represents an initial version, providing a foundation for further refinement. The community can explore additional filtering strategies to improve performance, such as rejection sampling, which was used in DeepSeek R1 to enhance quality.
We identified several failure cases in Math-Verify during our inspection of the verification results. To address these problems, we implemented significant improvements and fixes. We strongly recommend updating to the latest version (0.5.2) to benefit from these enhancements:.
The following is the summary of the most important improvements:.
This week saw the community explore GRPO from many different angles, while multiple research labs have shown that only ~1000 high quality training samples may be sufficient to elicit reasoning in existing open models.
The first part of the AIME 2025 was released this week, which consists of 15 difficult math problems that are used to train high school students for the International Math Olympiad. In the past year, AIME 2024 has stood as the main benchmark to probe the mathematical capabilities of LLMs and the community was excited to see how well models performs on a latest set of unseen problems:.
Sources indicate that an interesting new research paper reveals that by using a recurrent language model, it is possible to scale test-time compute by implicitly reasoning in latent space. This resembles Meta’s Coconut work to train language models in latent space, but now adapted to reasoning tasks. The advantage of these methods is that they are far more compute efficient: by exploring the latent, one does not need to generate huge amounts of “thinking” tokens to obtain high performance.
While DeepSeek R1 leveraged 600k reasoning traces for distillation, recent work suggests that complex reasoning can emerge in language models not through massive-scale training, but through a small number of carefully curated samples.
Recent findings suggest that one example of this approach is the s1K dataset. It consists of 1,000 carefully selected math questions with distilled reasoning traces from Gemini Flash. The selection approach focuses on difficulty, diversity, and quality. The authors fine-tune Qwen2.5-32B-Instruct on s1K and manage to exceed OpenAI’s o1-preview on competition math benchmarks by up to 27%.
Another dataset, LIMO, pushes this idea further, achieving strong performance on AIME and MATH benchmarks using only 817 training samples. The authors hypothesize that when a model has already acquired extensive domain knowledge during pre-training, only a small number of well-structured examples may be needed to unlock advanced reasoning capabilities.
One important ingredient allowing the fine-tuned Qwen2.5-32B-Instruct model from s1K to reach such strong performance is budget forcing, a test-time compute technique that either extends or truncates reasoning by appending “Wait” or an end-of-thinking token delimiter to the model’s generation, respectively. This tool allowed the authors to vary thinking time and conclude that their model exhibits test-time scaling: as thinking time increases, so does accuracy on different math benchmarks.
It has been revealed that similarly, Demystifying Long Chain-of-Thought Reasoning in LLMs (Yeo et al.) also studies the effect of Chain-of-Thought (CoT) length on model performance. They introduce the Cosine Reward — a novel reward function that they use to incentivize shorter CoTs for correct generations and longer CoTs for wrong generations — which stabilizes RL training, particularly when the model has relatively limited max context size and average response length could explode. Repetition penalty is also employed when the model starts to show signs of reward hacking on hard questions, by artificially increasing CoT length through repetition instead of attempting to solve the problem.
Now that GRPO is humming in TRL, we are running an extensive set of experiments to understand which hyperparameters and reward functions have the greatest impact on training. You can follow our progress in the community tab and will write up our findings in the next update!
If you want to contribute check out the open-r1 repository on GitHub or follow the Hugging Face open-r1 org.
Thanks for sharing your results and describing the background of what happened around GRPO research last week. Do you initiative to test classical distillation, not just fine-tuning on reasoning traces?
Yes that's something we might also try!
But, this article claims as below:.
It has been revealed that by combining rule-based verification (Math Verify) with LLM-based evaluation, we improve dataset quality while maintaining scale. The final dataset consists of 220k problems with verified reasoning traces, making it a valuable resource for training reasoning models.
I think the size should be 248k? otherwise, it seems like the LLM based evaluation hasn't been included in the final dataset.
We only applied Llama verification to the default subset, those rejected by Math Verify from the extended subset didn't go through a second verification step. We can release the unfiltered data with 400k problems if the community wants to do different filtering.
kind of wondering about the following statement.
achieving a throughput of 15 generations per hour per H100.
Since DeepSeek-R1 can't fit into a single H100 (and based on Upgrade #2, the model fits into 8xH100), how do you measure the throughput of H100? maybe 15*8 = 120 by 8xH100?
The model actually fits on two 8xH100 https://huggingface.co/blog/open-r1/patch-1#synthetic-data-generationAnd the 15 generations per hour per H100 is the throughput on four nodes divided by 32 GPUs (4 to avoid the cache filling up).
The discussions about SFT in pre training. If I understand correctly, the idea is that models that have pretraining data that contains some instruct data tend to learn to reason while those without any instruct data don't ever figure out how to reason.
hello, we are the SGLang team from lmsys.org. I am Chenyang, the project manager. Together with a bunch of great people, we are working on integrating SGLang into OpenR1. We have been working on OpenR1 for over a week. And we have done work on distill label, GRPO, and lighteval.
We are planning to submit PRs to you but see that you are also using SGLang in this post:.
https://huggingface.co/blog/open-r1/update-2.
We are reaching out to collaborate so that we both do not waste our time working on the same thing. Thanks!
If you feel interested, can be reached out by chenyang.zhao@sglang.ai.
Would also be nice to include the performance of Qwen2.5-Math-Instruct and Qwen2.5-7B-Instruct to quantify the improvement using reasoning trace SFT distillation.
How exactly is the Qwen/Qwen2.5-Math-RM-72B model used? Is it solely for ranking multiple answers? Can it also serve as a tool to validate whether the answers are correct?
Sources indicate that great work !I have some questions about the values in the performance comparison table. According to DeepSeek's paper, DeepSeek-Distill-Qwen-7B's performance in MATH-500 and AIME24 is 92.8 and 55.5 respectively, which seems to be very different from the values in the table (especially AIME24). I don't know if there is any gap. Looking forward to your response, thanks.
📻 🎙️ Hey, I made a podcast about this blog post, check it out!
This podcast is generated via ngxson/kokoro-podcast-generator, using DeepSeek-R1 and Kokoro-TTS.
Hi, thanks for the great work! I'm wondering if the data filtering code can be made public? I'm using Math-Verify to double check some of your labels and couldn't reproduce some labels -- it seems that some solutions are not parsed correctly with the default math_verify.parse function. Thank you! cc. @loubnabnl @lewtun @eliebak.
Thanks for this great work. Would you please explain that OpenR1-Qwen-7B is trained through LORA or full-finetune?
Thanks a lot for making this available! Note that https://matharena.ai is joint work between ETH and INSAIT (not only ETH). Would be good to update this in the text.
Hi, thanks for the impressive work on Open R1!
Sources indicate that I had a question about the data processing for SFT. From what I understand, the training uses the default dataset. Since this dataset contains multiple responses per question, I'm curious how the final SFT training data was constructed.
It has been revealed that were all the responses used during training, or was there a filtering step to select only the correct or high-quality answers? Any clarification on this would be greatly appreciated.
📅 04 Nov 2026 | ⏱️ 5 min read (924 words, 📚 Deep Dive) | Source: Sitepoint
Stay up to date with AI tools, model releases, and developer workflows that matter.
Sources indicate that weekly. Free. One click to leave.
In a recent development, 7 Day Free Trial. Cancel Anytime.
AI-friendly pages are plain-text (usually markdown) versions of webpages that are meant for AI, rather than people. Websites typically determine that AI is requesting a page via the user agent, Accept header, or a specific .md URL.
Sources indicate that we ran this test at acme.bot on November 4, 2026, across 53 live pages on 43 host names. Because we targeted sites likely to do this, the sample leans towards developer tools.
While testing the HubSpot, Gymshark, Semrush and Profound web pages, we didn't find any markdown on the pages.
While it's a common practice in developer documentation, there's not much research or evidence that it helps AI visibility.
Dries Buytaert checked a month of Cloudflare logs and found no AI crawler using content negotiation. The crawlers reached his markdown only through dedicated URLs, by following an auto-discovery link. So a site that relies on Accept alone is serving coding agents - and, possibly, no crawlers at all.
Even when the request asks for HTML, Stripe's docs still send markdown to all six AI user agents we tested. They send HTML to Bingbot, Googlebot, and browsers. The Checkout page drops from 846 KB to 5.5 KB. Its markdown has links to other .md pages, keeping an agent in the text pages. The response to markdown comes with the header X-Robots-Tag: none to ensure it is kept out of search indexes. Sentry's docs route the same way.
It has been revealed that vercel pages (including the blog and pricing page) that we tried all returned markdown on request. Docs pages also go to AI user agents, unless the request prefers HTML. Pricing and blog pages do not. The Next.js docs exhibit a similar behavior.
Neon delivers markdown on docs and pricing to non-browser clients that do not prefer HTML, including plain curl.
Neon's page isn't just a conversion. The markdown copy of its introduction is about 3,070 words, against roughly 620 in the visible HTML, and it speaks directly to the agent: "The user needs a Neon account." This sentence, however, is not in the HTML. Linear has a smaller version, which opens its markdown with a line that starts "For agents" and points to its MCP server.
Neon's markdown has Vary: Accept, User-Agent and X-Robots-Tag: noindex headers.
Cloudflare's Markdown for Agents converts HTML to markdown on the fly, without needing any work on an origin server. It's available on the Pro initiative and above and handles up to 6 MiB of HTML. Cloudflare reports one post falling from 16,180 tokens to 3,150.
Sources indicate that 1. Fix the HTML first. Vercel's guide indicates it plainly: "Make the HTML work before adding a Markdown mirror." Render the content on the server, because many AI crawlers don't run JS.
In a recent development, 2. Generate markdown from the same source as the HTML. That keeps the two versions in step when the page changes.
Sources indicate that 3. Answer Accept: text/markdown. Return Content-Type: text/markdown; charset=utf-8 at the same URL, with a fallback to HTML when there's no markdown.
Sources indicate that 4. Publish .md URLs and link to them. Each page should have a added to it. In Buytaert's logs, this is the route the crawlers took.
According to recent reports, 5. Add user agent detection only if you need it. Identify the agents you want to serve, and omit search engines. Should the list include training crawlers? Stripe's does and Mintlify's doesn't. Since user agents can be faked, use the crawler IP ranges that Anthropic and OpenAI publish to check logs.
It has been revealed that 6. Set the cache key. Send Vary: Accept, and also User-Agent if it determines the response. Otherwise, a shared cache can give a person the markdown.
7. Keep the markdown out of search results. Use either a Link header to canonicalize the page to the HTML or add an X-Robots-Tag: noindex header.
8. Log the Accept header. You can't measure it if you don't record it, and many servers don't record it by default.
The evidence of benefit is thin, and it measures crawling, not citations.
Google's John Mueller called converting pages "such a stupid idea". He also questioned whether crawlers would be able to follow links written in markdown. Bing's Fabrice Canel cautioned that non-user versions "are often neglected, broken.".
Google's spam policies define cloaking as a website showing different content to Googlebot than it would to users. In our controlled test, all sites kept Googlebot on HTML. We found no Google document that rules on content negotiation or on markdown sent only to AI crawlers.
If your site is developer documentation, making you site agent friendly is cheap, and your readers' coding agents already ask for it. So, answer Accept: text/markdown requests and publish linked .md URLs. Keep both out of the index.
Recent findings suggest that for a marketing site, the case is not that strong. No study yet highlights more AI citations, and maintaining two copies of every page over time will be an overhead.
If citations are the goal, freshness looks like a stronger lever than format. In our study of 356 cited pages for getting cited by ChatGPT, typical article was two years old - but seven in ten had been edited in the last year.
Recent findings suggest that 7 Day Free Trial. Cancel Anytime.
📅 12 Feb 2025 | ⏱️ 4 min read (726 words, 📚 Deep Dive) | Source: Hugging Face
(This post was authored by hlky and Sayak).
Tooling for image generation datasets is well established, with img2dataset being a fundamental tool used for large scale dataset preparation, and complemented with various community guides, scripts and UIs that cover smaller scale initiatives.
Our ambition is to make tooling for video generation datasets equally established, by creating open video dataset scripts suited for small scale, and leveraging video2dataset for large scale use cases.
“If I have seen further it is by standing on the shoulders of giants”.
Recent findings suggest that in this post, we provide an overview of the tooling we are developing to make it easy for the community to build their own datasets for fine-tuning video generation models. If you cannot wait to get started already, we welcome you to check out the codebase here.
It has been revealed that typically, video generation is conditioned on natural language text prompts such as: "A cat walks on the grass, realistic style". Then in a video, there are a number of qualitative aspects for controllability and filtering, like so:.
Video generation models are only as good as the data they are trained on. Therefore, these aspects become crucial when curating the datasets for training/fine-tuning.
Our 3 stage pipeline draws inspiration from works like Stable Video Diffusion, LTX-Video, and their data pipelines.
Like video2dataset we opt to use yt-dlp for downloading videos.
We create a script Video to Scenes to split long videos into short clips.
Recent findings suggest that florence-2 microsoft/Florence-2-large to run Florence-2 tasks , , and on extracted frames. This provides different captions, object recognition and OCR that can be used for filtering in various ways.
We can bring in any other captioner in this regard. We can also caption the entire video (e.g., with a model like Qwen2.5) as opposed to captioning individual frames.
In the dataset for the model finetrainers/crush-smol-v0, we opted for captions from Qwen2VL and we filtered on pwatermark < 0.1 and aesthetic > 5.5. This highly restrictive filtering resulted in 47 videos out of 1493 total.
Let's review the example frames from pwatermark -.
Two with text have scores of 0.69 and 0.61.
The "toy car with a bunch of mice in it" scores 0.60 then 0.17 as the toy car is crushed.
All example frames were filtered by pwatermark < 0.1. pwatermark is effective at detecting text/watermarks however the score gives no indication whether it is a text overlay or a toy car's license plate. Our filtering required all scores to be below the threshold, an average across frames would be a more effective strategy for pwatermark with a threshold of around 0.2 - 0.3.
Let's review the example frames from aesthetic scores -.
The pink castle initially scores 5.5 then 4.44 as it is crushed.
The action figure scores lower at 4.99 dropping to 4.84 as it is crushed.
The shard of glass scores low at 4.04.
In our filtering we required all scores to be below the threshold, in this case using the aesthetic score from the first frame only would be a more effective strategy.
Sources indicate that if we review finetrainers/crush-smol we can notice that many of the objects being crushed are round or rectangular and colorful which is similar to our findings in the example frames. Aesthetic scores can be useful yet have a bias that will potentially filter out good data when used with extreme thresholds like > 5.5. It may be more effective as a filter for bad content than good with a minimum threshold of around 4.25 - 4.5.
Here we provide some visual examples for each filter as well as the captions from Florence-2.
We have created various datasets with the tooling in an attempt to generate cool video effects, similar to the Pika Effects:.
We then used these datasets to fine-tune the CogVideoX-5B model using finetrainers. Below is an example output from finetrainers/crush-smol-v0:.
Industry observers note that we hope this tooling gives you a headstart to create small and high-quality video datasets for your own custom applications. We will continue to add more useful filters to the repository, so, please keep an eye out. Your contributions are also more than welcome 🤗.
Thanks to Pedro Cuenca for his extensive reviews on the post.
Has anyone tested adding noise on to the MLP for aesthetics?
📅 12 Feb 2025 | ⏱️ 8 min read (1545 words, 📚 Deep Dive) | Source: Hugging Face
Sources indicate that content-defined chunking (CDC) plays a central role in enabling deduplication within a Xet-backed repository. The idea is straightforward: break each file’s data into chunks, store only unique ones, reap the benefits.
In practice, it's more complex. If we focused solely on maximizing deduplication, the design would call for the smallest possible chunk size. By doing that, we’d create significant overheads for the infrastructure and the builders on the Hub.
On Hugging Face's Xet team, we're bringing CDC from theory to production to deliver faster uploads and downloads to AI builders (by a factor of 2-3x in some cases). Our guiding principle is simple: enable rapid experimentation and collaboration for teams building and iterating on models and datasets. This means focusing on more than just deduplication; we’re optimizing how data moves across the network, how it’s stored, and the entire development experience.
Imagine uploading a 200GB repository to the Hub. Today, there are a number of ways to do this, but all use a file-centric approach. To bring faster file transfers to the Hub, we've open-sourced xet-core and hf_xet, an integration with huggingface_hub which uses a chunk-based approach written in Rust.
Industry observers note that if you consider a 200GB repository with unique chunks, that's 3 million entries (at ~64KB per chunk) in the content-addressed store (CAS) backing all repositories. If a newly introduced version of a model is uploaded or a branch in the repository is created with different data, more unique chunks are added, driving up the entries in the CAS.
According to recent reports, with nearly 45PB across 2 million model, dataset, and space repositories on the Hub, a purely chunk-based approach could incur 690 billion chunks. Managing this volume of content using only chunks is simply not viable due to:.
In short, network requests balloon, databases struggle to manage the metadata, and the cost of orchestrating each chunk skyrockets all while you wait for your files to transfer.
These challenges lead to a key realization:.
Deduplication is a performance optimization, not the final goal.
The final goal is to improve the experience of builders iterating and collaborating on models and datasets. The system components from the client to the storage layer do not need to guarantee deduplication. Instead, they leverage deduplication as one tool among many to aid in this.
By loosening the deduplication constraint, we naturally arrive at a second design principle:.
Avoid communication or storage strategies that scale 1:1 with the number of chunks.
Sources indicate that what does this mean? We scale with aggregation.
Aggregation takes chunks and groups them, referencing them intelligently in ways that provide clever (and practical) benefits:.
Industry observers note that together, blocks and shards unlock significant benefits. However, when someone uploads a new file, how do we know if a chunk has been uploaded before so we can eliminate an unnecessary request? Performing a network query for every chunk is not scalable and goes against the “no 1:1” principle we mentioned above.
In a recent development, the solution is key chunks which are a 0.1% subset of all chunks selected with a simple modulo condition based on the chunk hash. We provide a global index over these key chunks and the shards they are found in, so that when the chunk is queried, the related shard is returned to provide local deduplication. This allows us to leverage the principles of spatial locality. If a key chunk is referenced in a shard, it’s likely that other similar chunk references are available in the same shard. This further improves deduplication and reduces network and database requests.
The Hub presently stores over 3.5PB of .gguf files, most of which are quantized versions of other models on the Hub. Quantized models represent an interesting opportunity for deduplication due to the nature of quantization where values are restricted to a smaller integer range and scaled. This restricts the range of values in the weight matrices, naturally leading to more repetition. Additionally, many repositories of quantized models store multiple different variants (e.g., Q4_K, Q3_K, Q5_K) with a great deal of overlap.
A good example of this in practice is bartowski/gemma-2-9b-it-GGUF which contains 29 quantizations of google/gemma-2-9b-it totalling 191GB. To upload, we use hf_xet integrated with huggingface_hub to perform chunk-level deduplication locally then aggregate and store data at the block level.
Once uploaded, we can start to see some cool patterns! We’ve included a visualization that indicates the deduplication ratio for each block. The darker the block, the more frequently parts of it are referenced across model versions. If you go to the Space hosting this visualization, hovering over any heatmap cell highlights all references to the block in orange across all models while clicking on a cell will select all other files that share blocks:.
According to recent reports, A single block of deduplication might only represent a few MB of savings, but as you can see there are many overlapping blocks! With this many blocks that promptly adds up. Instead of uploading 191GB, the Xet-backed version of the gemma-2-9b-it-GGUF repository stores 1515 unique blocks for a total of approximately 97GB to our test CAS environment (a savings of ~94GB).
Recent findings suggest that while the storage improvements are significant, the real benefit is what this means for contributors to the Hub. At 50MB/s, the deduplication optimizations amount to a four hour difference in upload time; a speedup of nearly 2x:.
Similarly, local chunk caching significantly speeds up downloads. If a file is changed or a latest quantization is added that has significant overlap with the local chunk cache, you won’t have to re-download any chunks that are unchanged. This contrasts to the file-based approach where the entirety of the new or updated file must be downloaded.
Taken together, this demonstrates how local chunk-level deduplication paired with block-level aggregation dramatically streamlines not just storage, but developing on the Hub. By providing this level of efficiency in file transfers, AI builders can move faster, iterate promptly, and worry less about hitting infrastructure bottlenecks. For anyone pushing large files to the Hub (whether you're pushing a latest model quantization or an updated version of a training set) this helps you shift focus to building and sharing, rather than waiting and troubleshooting.
We’re fast at work, rolling out the first Xet-backed repositories in the coming weeks and months! As we do that, we will be releasing more updates to bring these speeds to every builder on the Hub to make file transfers feel invisible.
Follow us on the Hub to learn more about our progress!
Nice to see that Xet backed repos are being rolled out on the Hub.
📻 🎙️ Hey, I made a podcast about this blog post, check it out!
This podcast is generated via ngxson/kokoro-podcast-generator, using DeepSeek-R1 and Kokoro-TTS.
Recent findings suggest that how can we find the chunk content using chunk hash? The CAS system only stores "block_hash -> block_content", Where does the map of chunk to block?
what does the shards store? Is it "file_name, shard_id, chunk_hash, block_hash"?
How can we find the chunk content using chunk hash?
Chunk hash is calculated via content-defined chunking (CDC), which means that if two chunks have the same content they will share the same hash. CDC removes the need to store the mapping between chunk hash -> chunk content because we know if two chunks share the same hash, they will have identical content.
The CAS system only stores "block_hash -> block_content", Where does the map of chunk to block?
In a recent development, this is explained in the "key chunks" section in the blog post above. Essentially we only store a tiny subset of chunk -> block by leveraging spatial locality in the file. Trying to store every mapping of chunk -> block can get impractical very promptly.
Sources indicate that what does the shards store? Is it "file_name, shard_id, chunk_hash, block_hash".
You can think of the shards as storing mappings between file (identified via file hash) to list of chunks that make up the file.
I hope this help explains our underlying tech better!
According to recent reports, if we don't store every chunk hash to block hash, how can we download a model file. For example if a model does not have a key chunk, the shard info only contains "file hash -> list of chunks", the CAS only has "block hash -> block content", how can we know which block is needed ?
For example if a model does not have a key chunk.
Two points of clarification might be in order concerning the above point:.
If we don't store every chunk hash to block hash, how can we download a model file.
Recent findings suggest that when downloading a model file, a request is made to our services with the file hash. This is mapped to a list of block subranges. Logically these are chunks, but by storing the offsets we save on the metadata storage and ultimately many offsets will share boundaries inside a block (allowing us to group them together in a response) providing benefits when sending the content back to the client.
In a recent development, if you're reading this post and want to get your hands dirty, join the waitlist to get access! https://huggingface.co/join/xet.
📅 13 Feb 2025 | ⏱️ 13 min read (2542 words, 📚 Deep Dive) | Source: Hugging Face
It has been revealed that you’ve optimized your model. Your pipeline is running smoothly. But now, your cloud bill has skyrocketed. Running 1B+ classifications or embeddings per day isn’t just a technical challenge—it’s a financial one. How do you process at this scale without blowing your budget? Whether you're running large-scale document classification or bulk embedding pipelines for Retrieval-Augmented Generation (RAG), you need cost-efficient, high-throughput inference to make it feasible, and you get that from having a well optimized configuration.
Sources indicate that these tasks often use encoder models, which are much smaller than modern LLMs, but at the 1B+ inference request scale it's still quite a non-trivial task. Just to be clear, that's English Wikipedia 144x over. I haven’t seen much information on how to approach this with cost in mind and I want to tackle that. This blog breaks down HOW to calculate cost and latency for large scale classification and embedding. We’ll analyze different model architectures, benchmark costs across hardware choices, and give you a clear framework for optimizing your own setup. Additionally we should be able to build some intuition if you don't feel like going through the process yourself.
You might have a couple questions:.
Here is the code to make it happen: https://github.com/datavistics/encoder-analysis.
tl;I'm not gonna reproduce this, tell me what you found;dr.
With this pricing I was able to get this cost:.
To evaluate cost and latency we need 4 key components:.
According to recent reports, I’ll be leveraging Inference Endpoints for my Hardware Options, as it allows me to choose from a wide range of hardware choices. Do note you can replace that with your GPUs of choice/consideration. For the Deployment Facilitator I'll be using the ever so useful Hugging Face Hub Library which allows me to programmatically deploy models easily.
For the Inference Server I’ll also be using Infinity which is an amazing library for serving encoder based models (and more now!). I’ve already written about TEI, which is another amazing library. You should definitely consider TEI when approaching your use-case, though this blog focuses on methodology rather than framework comparisons. Infinity has a number of key strengths, like serving multimodal embeddings, targeting different hardware (AMD, Nvidia, CPU and Inferentia) and running any new models that contain remote code that have not been integrated into huggingface’s transformer library. The most vital of these to me is that most models are compatible by default.
It has been revealed that for Load Testing I'll be using k6 from Grafana which is an open-source load testing tool written in go with a javascript interface. It’s easily configurable, has high performance, and has low overhead. It has a lot of built-in executors that are super useful. It also pre-allocates Virtual Customers (VUs), which can be much more realistic than throwing some testing together yourself.
I'll go through 3 use-cases that should cover a variety of interesting points:.
Optimization is a tricky concern, as there is a lot to consider. At a high level, I want to sweep across important load testing parameters and find what works best for a single GPU, as most encoder models will fit in a single GPU. Once we have a baseline of cost for a single GPU, the number of GPUs and throughput can be scaled horizontally by increasing the number of replica GPUs.
For each use-case this is the high-level flow I’ll use:.
Since you have the code, feel free to adjust any part of this to your:.
Industry observers note that VUs and Batch Size are key because these influence how well we take advantage of all the compute available in the GPU. A large enough Batch Size makes sure we are fully utilizing the Streaming Multiprocessors and VRAM. There are scenarios where we have VRAM left over but there is a bandwidth cost that prevents throughput from increasing. So experimentation can help us. VUs allow us to make sure we are fully utilizing the batch size we have available.These are the main parameters I'll be testing:.
Depending on your model you might want to consider:.
K6 is great because it allows you to pre-allocate VUs and prevent some insidious bugs. It's quite flexible in how you are sending requests. I decided to use it in a specific way.
When I'm calling a k6 experiment, I mainly want to know what the throughput and average latency is for the requests, and have a few sanity checks for the load testing parameters I have chosen. I also want to do a sweep which means many experiments.
I use the shared-iterations executor (docs) which means K6 shares iterations between the number of VUs. The test ends once k6 executes all iterations. This allows me to have a reasonable time-out, but also put through enough requests to have a decent confidence that I can discriminate between load testing parameters choices in my sweep. In contrast to other executors, this allows me to be confident that I'm simulating the client working as hard as possible per VU which should show me what the cheapest option is.
I use 10_000 requests† and have a max experiment time of 1 min. So if 10_000 requests aren’t finished by 1 minute, then that experiment is over.
Sources indicate that † I use less max requests for the Vision Embeddings given that the throughput is much lower and images are heavy.†† P95 means that 95% of requests complete within this time. It represents the worst-case latency for most customers.
You can find the 3 notebooks that put the optimization workflow together here:.
The main purpose was to get my experiments defined, launch the correct Inference Endpoint with the right parameters, and launch k6 with the right parameters to test the endpoint.
I made a couple design choices which you may want to think through to see if they work for you:.
According to recent reports, text Classification can have a variety of use-cases at scale, like Email Filtering, Toxicity Detection in pre-training datasets, etc. The OG classic architecture was BERT, and quickly many other architectures came about. Do note that in contrast to popular decoder models, these need to be fine-tuned on your task before using them. Today I think the following architectures† are the most notable:.
† Do note that for these models, you typically need to fine-tune this on your data to perform well†† I'm using “Engineering performance” to denote anticipated latency/throughput.
I chose DistilBERT to focus on as it’s a great lightweight choice for many applications. I compared 2 GPUs, nvidia-t4 and nvidia-l4 as well as 2 Infinity Docker Images.
You can see the results in an interactive format here or in the space embedded below in the Analysis section. This is the cheapest configuration across the experiments I ran:.
Industry observers note that text Embeddings are a loose way of describing the task of taking a text input and projecting it into a semantic space where close points are similar in meaning and distant ones are dissimilar (example below). This is used heavily in RAG and is an notable part of AI search (which some are fans of).
There are a large number of architectures which are compatible, and you can see the most performant ones in the MTEB Leaderboard.
Recent findings suggest that modernBERT is the most exciting encoder release since DeBERTa back in 2020. It has all the ahem modern tricks built into an old and familiar architecture. It makes for an attractive model to experiment with as it's much less explored than other architectures and has a lot more potential. There are a number of improvements in speed and performance, but the most notable for a user is likely the 8k context window. Do check out this blog for a more thorough understanding.
It's notable to note that Flash Attention 2 will only work with more modern GPUs due to the compute capability requirement, so I opted to skip the T4 in favor of the L4. An H100 would also work really well here for the heavy hitters category.
According to recent reports, you can see the results in an interactive format here. This is the cheapest configuration across the experiments I ran:.
It has been revealed that colQwen2 is a Visual Retriever which is based on the Qwen2-VL-2B-Instruct and uses ColBERT style multi-vector representations of both text and images. We can see that it has a complex architecture compared to the encoders we explored above.
There are a number of use-cases which might benefit from this at large scale like, e-commerce search, multi-modal recommendations, enterprise multi-modal RAG, etc.
ColBERT style is different than our previous embedding use-case since it breaks the input into multiple tokens and returns a vector for each instead of 1 vector for the input. You can find an excellent tutorial from Jina AI here.This can lead to superior semantic encoding and better retrieval, but is also slower, and more expensive.
In a recent development, I'm excited for this experiment as it explores 2 lesser known concepts, vision embeddings and ColBERT style embeddings†. There are a few things to note about ColQwen2/VLMs:.
†Do check out this more detailed blog if this is newly introduced and interesting to you.
I wanted to try a small and modern GPU like the nvidia-l4 since it should be able to fit the 2B param model but also scale well since it's cheap. Like the other embedding model, I'm varying batch_size and vus.
You can see the results in an interactive format here. This is the cheapest configuration across the experiments I ran:.
Do check out the detailed analysis in this space (derek-thomas/classification-analysis) for the classification use-case (hide side-bar and scroll down for the charts):.
According to recent reports, scaling to 1B+ classifications or embeddings per day is a non-trivial challenge, but with the right optimizations, it can be made cost-effective. From my experiments, a few key patterns emerged:.
According to recent reports, your data, hardware, models, etc might differ, but I hope you find some use in the approach and code provided. The best way to get an estimate is to run this on your own task with your own configurations. Let's get exploring!
Recent findings suggest that special thanks to andrewrreed/auto-bench for some inspiration, Michael Feil for creating Infinity. Also thanks to Pedro Cuenca, Erik Kaunismaki, and Tom Aarsen for helping me review.
In a recent development, it's vital to scale sanity checks as your complexity scales. Since we are using subprocess and jinja to then call k6 I felt far from the actual testing so I put a few checks in place.
Sources indicate that the goal of task performance is that for a specific configuration we are performing similarly to what we expect. Task Performance will have different meanings across tasks. For classification I chose accuracy, and for embeddings I skipped it. We could look at average similarity and other similar metrics. It gets a bit more complex with ColBERT style since we are getting many vectors per request.
Recent findings suggest that even though 58% isn't bad for some 3 class classification tasks, it's irrelevant. The goal is to make sure that we are getting the expected task performance. If we see a significant change (increase or decrease) we should be suspicious and try to understand why.
According to recent reports, below is a great example from the classification use-case since we can see an extremely tight distribution and one outlier. Upon further investigation the outlier is due to a low amount of requests sent.
You can see the interactive results visualized by nbviewer here:.
Industry observers note that we should expect to see no failed requests as Inference Endpoints has a queue to handle extra requests. This is relevant for all 3 use-cases: Classification, Embedding, and Vision Embedding.
sum(df.total_requests - df.successful_requests) allows us to see if we had any failed requests.
As described above we are using a nice strategy of using exponential increases and then a binary search to find the best number of VUs. But how do we know that we tried enough VUs? What if we tried a higher amount of VUs and throughput kept increasing? If that's the case then we would see a monotonically increasing relationship between VUs and Throughput and we would need to run more tests.
You can see the interactive results visualized by nbviewer here:.
According to recent reports, when we request an embedding it makes sense that we would always get back an embedding of the same size as specified by the model type. You can see the checks here:.
In a recent development, we are using a ColBERT style model for Vision Embedding which means we should be getting multiple vectors per image. It's interesting to see the distribution of these as it allows us to check for anything unexpected and to get to know our data. To do so I stored the min_num_vectors, avg_num_vectors, max_num_vectors, in the experiments.
We should expect to see some variance in all 3, but it’s ok that min_num_vectors and max_num_vectors have the same value across experiments.
Here is a short description, but you can get a more detailed interactive experience in the space: derek-thomas/classification-analysis.
It has been revealed that for the classification use-case we looked at 2 different Infinity Images, default and trt-onnx. Which one was better? It's best if we can compare these across the same settings (GPU, batch_size, VUs). We can simply group our results by those settings and then see which one was cheaper.
Sources indicate that this is a key chart as for many use-cases there is a maximum latency that a user can experience. Usually if we allow the latency to increase we can increase throughput creating a trade-off scenario. That's true in all the use-cases I've looked at here. Having a pareto curve is great to help visualize where that tradeoff is.
Lastly it's key to build intuition on what is happening when we try these different settings. Do we get beautiful idealized charts? Do we see unexpected gradients? Do we need more exploration in a region? Could we have concerns in our setup like not having an isolated environment? All of these are good questions and some can be tricky to answer.
It has been revealed that the contour plot is built by interpolating intermediate points in a space defined by the 3 dimensions. There are a couple phenomena that are worth understanding:.
We can see a complex contour chart with some interesting results from the classification use-case:.
But here is a much cleaner one from the vision-embedding task:.
For actual usage, do consider using the infinity client. When we are benchmarking it's good practice to use k6 to know what’s possible. For actual usage, use the official lib, or something close for a few benefits:.
You also have OpenAI lib compatibility with the Infinity backend as another option.
As an example vision-embeddings can be accessed like this:.
📻 🎙️ Hey, I made a podcast about this blog post, check it out!
This podcast is generated via ngxson/kokoro-podcast-generator, using DeepSeek-R1 and Kokoro-TTS.
You revealed you can damn write! Keep these coming! Very well written 😍.
It has been revealed that thanks a bunch bro. Your words mean a lot!
📅 04 Nov 2026 | ⏱️ 9 min read (1861 words, 📚 Deep Dive) | Source: Sitepoint
Stay up to date with AI tools, model releases, and developer workflows that matter.
Weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
Industry observers note that an ad partner’s revenue share looks easy to compare: keeping 90% sounds better than keeping 80%. But the percentage does not tell a developer what will happen when the integration reaches production. Extra JavaScript, unstable ad slots, opaque reporting, and difficult rollbacks can change the value of an apparently attractive deal.
Sources indicate that for teams maintaining an advertising-funded website, choosing a Multiple Customer Management (MCM) partner is partly an engineering decision. The integration affects page templates, consent handling, third-party requests, account access, and monitoring. Those changes deserve the same scrutiny as a new analytics SDK or payment integration.
It has been revealed that this guide explains how to compare revenue shares on a consistent basis, review integration requirements, and test an ad setup without sacrificing usability. The goal is a repeatable evaluation process, rather than a universal winner.
In a recent development, google Ad Manager’s MCM system lets a parent publisher manage a child publisher’s account or delegated inventory. The commercial agreement defines the partner’s services and compensation. Before comparing offers, ask which revenue streams the quoted percentage covers and whether the reporting figure is before or after that fee.
Use three separate lines in your evaluation spreadsheet:.
In a recent development, revenue base: record the amount to which the partner’s percentage applies. Advertiser spending, exchange-reported revenue, and publisher earnings are different figures. Do not treat them as interchangeable.
According to recent reports, partner compensation: identify the percentage, fixed charges, and any optional services. Ask whether the same terms apply to every demand source and ad format.
According to recent reports, adjustments: distinguish estimated revenue from finalized earnings, including invalid-traffic deductions and other corrections. Document when adjustments appear and which party bears them.
A common mistake is applying the partner fee twice because a dashboard already displays net revenue. Label each exported metric before using it in a comparison.
It has been revealed that the two delegation models have different implications for access, reporting, and payments. Google’s documentation is the starting point for checking the proposed setup.
Recent findings suggest that manage Account gives the parent edit access within the child’s account while the child retains access and permissions. Payment facilitation can allocate eligible earnings from the child’s primary Ad Exchange account, but it does not automatically cover every third-party revenue stream. Confirm the invitation’s payment percentage and the separate commercial agreement.
It has been revealed that manage Inventory lets the parent manage delegated inventory in its own account, without access to the child account. Reporting for that inventory sits in the parent account. Google pays the parent for the relevant inventory, and the parent pays the child according to their agreement. Ask how you will obtain reports and reconcile payments.
Sources indicate that before implementation, document who can change tags, ad units, consent settings, and demand configuration. Agree on access for debugging and exporting historical data. A developer should be able to trace a production request to its configuration owner.
Confirm onboarding and exit costs.
Use this table as a request-for-information checklist. It does not rank providers or assert that any named service supports a particular implementation. Obtain current terms and technical documentation for the product you are considering.
Apply the same standards to every proposal. The following examples show what a developer should ask during evaluation; each question is relevant across providers.
According to recent reports, monetizeMore offers publisher monetization products, including PubGuru and Traffic Cop. When evaluating its proposal, connect the commercial discussion to concrete integration questions: which scripts will load, who owns the configuration, and how will reported earnings be reconciled?
Sources indicate that request a sample report showing the revenue base, partner fee, and deductions as separate fields. Check whether the proposed plan includes every service shown in the sales demonstration.
Sources indicate that ask for a written ownership map covering Ad Manager access, tag deployment, configuration changes, and incident response. Identify who can restore the previous setup if delivery fails.
During a trial, compare representative templates and devices. Record script requests and main-thread activity alongside net revenue, using the same measurement definitions for the existing setup.
Decision criterion: choose on measured results and documented responsibilities, rather than assuming that a quoted split predicts final earnings.
For any proposal involving a header-bidding wrapper, including one from Setupad, ask how the wrapper fits into your existing page lifecycle.
According to recent reports, review bidder configuration, auction timeouts, and when the ad server receives targeting information. A missing bid and an unfilled ad slot are different problems.
Recent findings suggest that check whether your team can inspect the active configuration and reproduce an matter on a test page. Agree on who approves changes to bidders or timeout values.
Measure the complete sequence: consent readiness, auction start, bid responses, ad request, and rendering. Avoid attributing every delay to the same component.
Decision criterion: the implementation should be observable enough to explain failures, with commercial terms verified separately.
When assessing Publisher Collective or another managed partner, establish how the proposed setup could be tested on a limited, agreed scope.
It has been revealed that ask whether rollout can be restricted to selected templates or an eligible traffic cohort. Do not assume partial testing is available until the partner confirms it.
Record device, geography, page type, and consent state so differences in traffic mix do not masquerade as a revenue improvement.
Keep a dated deployment log connecting each configuration version with the reporting period.
Decision criterion: a measured comparison should separate implementation changes from changes in audience or demand.
Sources indicate that A proposal from AdPushup or another optimization provider may involve changes to ad placement. Review the actual proposed changes with both design and engineering.
Check spacing, responsive behavior, keyboard navigation, and whether sticky placements obscure content or controls.
Reserve space for expected ad dimensions and test what happens when no ad is returned.
Compare layout stability before and after the change.
Decision criterion: additional earnings should be assessed alongside usability and performance, with explicit acceptance criteria.
For an Ezoic proposal, as for any managed platform, start with the exact integration method offered to your site.
List required changes to scripts, plugins, caching, DNS, or delivery infrastructure, if any. Do not assume that every deployment uses the same method.
Test interactions with your consent manager, content security policy, caching rules, and existing analytics.
Document how to remove the integration and restore the prior configuration.
Decision criterion: the operational cost should be visible before the first production rollout.
When reviewing a Monumetric proposal, establish which implementation work belongs to your team and which belongs to the provider.
Ask who creates ad slots, updates templates, and validates responsive sizes.
Request a support escalation process with the diagnostic information required for an incident: URL, timestamp, device, consent state, and affected slot.
Confirm onboarding costs and payment terms in writing.
Decision criterion: routine changes and production failures should have a clear owner.
Chrome DevTools helps trace third-party requests in the Network panel and investigate long tasks in the Performance panel. Capture a baseline before deployment, then repeat the same navigation and interaction sequence after deployment. Use comparable device and network settings.
Google Publisher Console helps investigate Google Publisher Tag ad slots and delivery challenges. For a Prebid-based setup, use Prebid’s debugging tools to inspect the auction path. These tools answer different questions: whether the auction behaved as expected and whether the ad server delivered the requested slot.
PageSpeed Insights provides performance diagnostics; distinguish its lab results from available field data. Add web-vitals to your own monitoring when you need measurements associated with a deployment or cohort. Track LCP, INP, and CLS alongside revenue instead of treating a single Lighthouse score as the complete user experience.
Reserve responsive space for ad slots before content arrives, and investigate shifts when empty slots collapse. SitePoint’s guide to web performance optimization explains related techniques for loading JavaScript, reducing layout work, and managing long tasks.
With the same traffic volume, revenue definition, and deduction rate, the break-even increase in pre-partner revenue is: (current publisher share ÷ newly introduced publisher share) − 1. Express shares consistently as fractions or percentages. The table below shows the required lift; it is not a forecast these thresholds only describe the arithmetic. Different ad density, audience mix, deduction rates, or reporting bases can invalidate the comparison. Normalize to the same denominator, such as revenue per thousand pageviews, and compare matched periods or properly assigned concurrent cohorts.
Assume two hypothetical setups each receive one million pageviews. Here, RPM means revenue per thousand pageviews before the partner fee. For this simplified example, deductions reduce that revenue before the publisher share is applied.
Partner A: $10 pre-partner RPM × 1,000 groups of pageviews × 0.90 after deductions × 0.90 publisher share = $8,100 net revenue.
Partner B: $12 pre-partner RPM × 1,000 groups of pageviews × 0.98 after deductions × 0.80 publisher share = $9,408 net revenue.
Recent findings suggest that the difference is $1,308 for the period despite Partner B’s lower share. These are illustrative inputs, not provider performance claims. Faster payment improves cash-flow timing; it does not, by itself, increase the revenue earned.
Industry observers note that use Playwright with mocked responses or test creatives in a controlled environment to check slow loading, empty slots, blocked scripts, and navigation between routes. Verify that the page remains usable when the ad system fails. Automated tests should not click live advertisements or generate artificial monetized traffic.
Separate unit tests for configuration logic, integration tests for component boundaries, and browser tests for user-visible behavior. SitePoint’s explanation of unit, functional, and integration testing provides a useful foundation. Define rollback criteria before launch, keep the control configuration available, and review finalized revenue alongside performance data before expanding the deployment.
In a recent development, there is no universal answer from the percentage alone. Compare current written offers using the same revenue base, then evaluate finalized net earnings, performance, access, and implementation effort.
Not necessarily. Reports may differ in timezone, currency, transaction coverage, fee treatment, and finalization date. Reconcile those definitions before treating a discrepancy as an integration bug.
According to recent reports, ask how renewals, volume tiers, optional services, and rate changes are handled. Record the applicable terms with the configuration and reporting period used for your evaluation.
It has been revealed that no. If deductions and the revenue base are otherwise comparable, an 80% share needs 12.5% more pre-partner revenue to match a 90% share. Measure whether that lift exists rather than assuming it.
Do not treat any protection claim as a guarantee. Ask how suspected invalid traffic is handled, what evidence is available, and how later adjustments are reflected in your reports and payments.
Industry observers note that choose the setup that produces verifiable net value while meeting the site’s performance and operational requirements. A good evaluation leaves your team with reproducible measurements, understandable reports, and a practical rollback strategy—not just a favorable percentage.
In a recent development, 7 Day Free Trial. Cancel Anytime.
📅 14 Feb 2025 | ⏱️ 5 min read (905 words, 📚 Deep Dive) | Source: Hugging Face
3 weeks ago, we indicated how hard it is to correctly evaluate LLM performance on math problems, and introduced Math-Verify, a better solution to validate models on math (read more in the announcement)!
Today, we’re thrilled to share that we’ve used Math-Verify to thoroughly re-evaluate all 3,751 models ever submitted to the Open LLM Leaderboard, for even fairer and more robust model comparisons!
The Open LLM Leaderboard is the most used leaderboard on the Hugging Face Hub: it compares open Large Language Models (LLM) performance across various tasks. One of these tasks, called MATH-Hard, is specifically about math problems: it evaluates how well LLMs solve high-school and university-level math problems. It uses 1,324 highest difficulty problems (Level 5) from the Hendrycks MATH dataset spread across 7 topics (precalculus, prealgebra, algebra, intermediate algebra, counting/probability and number theory), using a 5-shot approach (the model is provided with 5 examples in the prompt to showcase how it should answer).
A typical question looks like this:.
In the leaderboard, models would have to end their answers with a very specific string (following the Minerva-Math paper):.
The leaderboard would then try to parse [ANSWER] with SymPy to convert it to a symbolic representation (and simplify the values if needed), before finally comparing it to the gold target.
However, customers reported a number of issues with the above.
To start, a recurring problem was the inability of some models to follow the expected answer format from the examples: they outputted other sentences instead to introduce their answers. Since the format was not followed, answers were marked as wrong even if they were actually correct! (Which is an issue if what you’re interested in is “how good the model is at math” specifically).
The next step, converting [ANSWER] to the symbolic representation also presented some concerns, this time linked to the SymPy parsing:.
On the final step, when comparing the extracted answer with the target expression, a number of concerns also occurred:.
All of these issues are now completely fixed with the new Math-Verify parser!
Recent findings suggest that as all these problems tend to accumulate, some models deeply suffered from this, and their performance was strongly underestimated… so we removed the previous evaluator and added Math-Verify, which was as simple as changing only 3 lines of code! (You can try it too on your math evals!).
This therefore meant re-evaluating all submitted models since June… and it completely overhauled the top 20 models on the MATH subset of the leaderboard.
On average, models solved 61 more problems across the board, equating to a 4.66-point increase across the board!
The two subsets that showed the most significant improvement were both algebra-related (Algebra and Prealgebra) with gains of 8.27 and 6.93, respectively. In extreme cases, some models demonstrated improvements of nearly 90 points on these subsets. We believe these subsets saw the greatest improvement because they frequently involve answers presented as sets (due to questions with multiple solutions) and matrices. The Math-Verify has enhanced its handling of both answer types, contributing to these notable gains.
In a recent development, we initially discovered the math evaluation issues when inspecting Qwen models, which had unusually low scores compared to the self-reported performance. After the Math-Verify introduction, the scores more than doubled for these models, showcasing previous severe underestimation of performance.
But Qwen models aren’t alone. Another major family affected is DeepSeek. After switching to Math-Verify, DeepSeek models almost tripled their scores! This is because their answers are typically wrapped in boxed (\boxed{}) notations which the old evaluator couldn’t extract.
Sources indicate that as mentioned at the beginning, the Top 20 rankings have undergone a significant shift, with Nvidia’s AceMath models now dominating the MATH-Hard leaderboard. Other major beneficiaries of this change are the Qwen derivatives, which are now almost exclusively the only models ranking right below AceMath. Following is the complete table comparing the old and upcoming Top 20 leaderboard rankings:.
Finally, we examined how the overall Leaderboard results have evolved. While the top four positions remain unchanged, the rest have undergone significant shifts. Due to the rise of multiple Qwen derivatives in the MATH subset, the presence of Qwen models among the top 20 has grown-derived models grown even further at the Overall results.
It has been revealed that many other models also completely jumped in the rankings, gaining 200 places or more! You can check out the results in more detail at the Open LLM Leaderboard.
It has been revealed that the introduction of Math-Verify has significantly improved the accuracy and fairness of our evaluations on the Open LLM Leaderboard. This has led to a reshuffling of the leaderboard, with many models showing substantial improvements in their scores.
We encourage all developers and researchers to adopt Math-Verify for their own math evaluations. By doing so, you can ensure that your models are evaluated with more reliable results. Additionally, we invite you to explore the updated rankings and see how your favorite models have changed in performance.
Sources indicate that great! I raised this issue with Qwen models a while ago :) https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard/discussions/942.
📻 🎙️ Hey, I made a podcast about this blog post, check it out!
This podcast is generated via ngxson/kokoro-podcast-generator, using DeepSeek-R1 and Kokoro-TTS.
can Math-Verify be integrated into lighteval library ?
Hi @pulkitmehtawork !It already has been, iirc :).
Will this be included in the lm-evaluation-harness?
Open LLM Leaderboard is not an active project anymore :(.
📅 14 Feb 2025 | ⏱️ 1 min read (264 words, 📖 Standard) | Source: Hugging Face

Following our recent announcement on Inference Providers on the Hub, we're thrilled to share that Fireworks.ai is now a supported Inference Provider on HF Hub!
Fireworks.ai delivers blazing-fast serverless inference directly on model pages, as well as throughout the whole HF ecosystem of libraries and tools, making it easier than ever to run inference on your favorite models.
Among others, starting now, you can run serverless inference to the following models via Fireworks.ai:.
and many more, you can find the full list here.
Light up your projects with Fireworks.ai today!
Search for all models supported by Fireworks on HF here.
The following example shows how to use DeepSeek-R1 using Fireworks.ai as your inference provider. You can use a Hugging Face token for automatic routing through Hugging Face, or your own Fireworks.ai API key if you have one.
Install huggingface_hub from source:.
Use the huggingface_hub python library to call Fireworks.ai endpoints by defining the provider parameter.
Here's how you can call Llama-3.3-70B-Instruct using Fireworks.ai as the inference provider via cURL.
For direct requests, i.e. when you use a Fireworks key, you are billed directly on your Fireworks account.
Sources indicate that for routed requests, i.e. when you authenticate via the hub, you'll only pay the standard Fireworks API rates. There's no additional markup from us, we just pass through the provider costs directly. (In the future, we may establish revenue-sharing agreements with our provider partners.).
Important Note ‼️ PRO users get $2 worth of Inference credits every month. You can use them across providers. 🔥.
Amazing, looking forward to useing it!
📅 18 Feb 2025 | ⏱️ 2 min read (383 words, 📖 Standard) | Source: Hugging Face
We’re thrilled to announce the addition of three more outstanding serverless Inference Providers to the Hugging Face Hub: Hyperbolic, Nebius AI Studio, and Novita. These providers join our growing ecosystem, enhancing the breadth and capabilities of serverless inference directly on the Hub’s model pages. They’re also seamlessly integrated into our client SDKs (for both JS and Python), making it super easy to use a wide variety of models with your preferred providers.
These partners join the ranks of our existing providers, including Together AI, Sambanova, Replicate, fal and Fireworks.ai.
The latest partners enable a swath of new models: DeepSeek-R1, Flux.1, and many others. Find all the models supported by them below:.
We're quite excited to see what you'll build with these new providers!
The following example shows how to use DeepSeek-R1 using Hyperbolic as the inference provider. You can use a Hugging Face token for automatic routing through Hugging Face, or your own Hyperbolic API key if you have one.
Install huggingface_hub from source (see instructions). Official support will be released soon in version v0.29.0.
And here's how to generate an image from a text prompt using FLUX.1-dev running on Nebius AI Studio:.
To move to a different provider, you can simply change the provider name, everything else stays the same:.
For direct requests, i.e. when you use the key from an inference provider, you are billed by the corresponding provider. For instance, if you use a Nebius AI Studio key you're billed on your Nebius AI Studio account.
In a recent development, for routed requests, i.e. when you authenticate via the hub, you'll only pay the standard provider API rates. There's no additional markup from us, we just pass through the provider costs directly. (In the future, we may establish revenue-sharing agreements with our provider partners.).
Vital Note ‼️ PRO owners get $2 worth of Inference credits every month. You can use them across providers. 🔥.
We also provide free inference with a small quota for our signed-in free people, but please upgrade to PRO if you can!
We would love to get your feedback! Here’s a Hub discussion you can use: https://huggingface.co/spaces/huggingface/HuggingDiscussions/discussions/49.
📻 🎙️ Hey, I generated an AI podcast about this blog post, check it out!
This podcast is generated via ngxson/kokoro-podcast-generator, using DeepSeek-R1 and Kokoro-TTS.
📅 05 Nov 2026 | ⏱️ 9 min read (1710 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
In a recent development, weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
Recent findings suggest that A year ago, most AI video clips lasted a few seconds, had no sound and drifted off-model by the final frame. Today several tools produce 1080p or even 4K clips with synchronized audio, camera control and reference-based consistency. The market also moves swiftly: OpenAI declared it was shutting down Sora in March 2026, so the list of tools worth using has changed.
This guide compares six AI video generators that developers, designers and marketers can use today. For each one you will see what it does well, where it falls short and who it suits. Looks, credits and model names change often, so confirm details on each vendor’s site before you commit.
Industry observers note that openArt’s AI video generator puts a range of video models behind one interface. Its page lists models such as Veo 3.1, Kling, Seedance, Wan, Hailuo and PixVerse, so you can run the same prompt on different engines and compare the results without managing separate accounts.
According to recent reports, beyond text-to-video and image-to-video, it offers start and end frame control, video-to-video restyling, motion transfer from a reference clip, a character builder for consistency, lip sync and conversational editing for tasks such as swapping a background or relighting a scene. Resolution goes up to 4K on many models, with 1080p as the default, and clips are usually up to 15 seconds, with longer limits on a few models.
Strengths: model variety, a single credit pool, editing tools alongside generation and a shared library for your clips.
In a recent development, limits: credit use varies by model, so it is worth testing short clips first. Commercial-use rights depend on your initiative and on the model you pick, so check the pricing and terms pages.
Best for: creators and small teams that want to compare models promptly instead of committing to one.
According to recent reports, veo is Google DeepMind’s video model. Veo 3.1 generates sound effects, ambient noise and dialogue together with the video, supports image-to-video, first and last frame transitions, reference images for characters or objects, and outputs 1080p and 4K. You can reach it through the Gemini app, Google Flow and the Gemini API.
Strengths: audio generated with the picture, strong prompt adherence and an API that fits into developer workflows.
According to recent reports, limits: base clips are short, around 8 seconds, so longer scenes rely on scene extension. Dialogue quality in short segments is still being refined, and access and quotas depend on your Google strategy.
Best for: developers and marketers who want audio and video from one prompt, or who proposal to automate generation through an API.
Runway has been a staple of AI filmmaking since its early Gen models. Its pricing page lists Gen-4.5 and Aleph alongside partner models, and the paid plans include all video and image models, 4K upscaling and parallel generations. Higher tiers add features such as voice clones, brand kits and HDR or ProRes output.
Strengths: polished editing tools, video-to-video workflows and a professional output pipeline that suits post-production teams.
Limits: credits are consumed promptly on premium models, and on the lower paid aims they do not roll over from month to month.
Best for: video editors and agencies that need control over shots and want AI to fit into an existing editing process.
According to recent reports, kling from Kuaishou has built a reputation for natural motion and expressive characters. The current release, Kling 4.0, sits alongside tools such as Motion Control, a canvas workspace, an agent and MCP or CLI batch generation for teams that want to automate production.
Strengths: realistic movement, motion transfer and batch tools for producing many short clips.
Recent findings suggest that limits: the main site does not spell out all clip-length and resolution limits for each model, so check the model page you initiative to use. Pricing and free credits vary by region and plan.
Best for: social video, product shots and character-driven clips where motion quality is the priority.
Luma’s Dream Machine is built on the Ray model family. Its current page lists Ray3.2 and Ray3.14, along with a “Modify video” tool that restyles footage, extends duration and reframes aspect ratios. It also lists camera-motion controls and high-quality EXR export for professional pipelines.
Strengths: reshooting or restyling existing footage, camera-motion control and pipeline-friendly export.
Limits: paid aims start at around $30 per month (or less when billed yearly), and heavy use pushes you into the higher tiers.
Best for: filmmakers and designers who want to modify and extend footage rather than only generate new clips.
Sources indicate that adobe Firefly offers text-to-video and image-to-video with Adobe’s own Firefly Video Model. It also provides partner models, including Google Veo 3.1, Luma Ray3, Kling and Runway Gen-4.5, so you can compare outputs from inside one product. An Assembler and AI video editor let you trim, reorder, extend and add voiceovers, music and sound effects.
Recent findings suggest that adobe states that the Firefly Video Model is trained on licensed content such as Adobe Stock and public domain material, and describes its output as safe for commercial use. Partner models may carry different terms, so read the details for whichever model you choose.
Strengths: a clear licensing story for the native model, integration with Adobe’s creative apps and an included editor.
According to recent reports, limits: most clips run up to 8 seconds, with some models reaching 15. Credits are allocated monthly, and premium partner models can use them faster.
Best for: brand and in-house teams that care about provenance and already work in Adobe tools.
In a recent development, the table summarizes what each vendor’s own pages say at the time of writing. “Entry paid blueprint” figures are US prices billed annually where the vendor offers that option.
Credit counts are hard to compare, so convert them to clips. Runway’s pricing page lists Gen-4.5 at 60 credits per 5-second clip, which means the 625 monthly credits on the Standard plan cover roughly ten clips. Adobe says its Standard plan’s 2,000 credits equal up to 40 five-second videos, and OpenArt’s Starter plan lists about 50 videos for 4,000 credits. Premium models cost more: the same Runway page lists Aleph 2.0 at 140 credits per 5 seconds.
According to recent reports, initiative for waste. If you keep one usable clip out of every three attempts, your real cost per finished shot is about three times the sticker price. Test with short, low-resolution drafts, then render the winner at full quality.
Recent findings suggest that because every tool outputs short clips, the real work is assembly. A typical workflow is: write a shot list, generate two or three takes per shot, pick the best, normalize them to one format, join them and add captions and audio. FFmpeg handles the joining step from the command line:.
According to recent reports, matching resolution, frame rate and codec before joining avoids glitches at the cut points. For character consistency across shots, reuse the same reference image in every prompt and keep descriptions of the subject identical.
If the clip ends up on your own site, treat it like any other media. Provide a poster image, load metadata only until the visitor presses play, and include captions so deaf and hard-of-hearing owners, and anyone watching without sound, can follow along. The W3C’s guidance on captions and subtitles explains what to include, and the MDN video element reference covers the attributes below.
It has been revealed that also write a text description or transcript near the video. Search engines and screen reader owners cannot see the footage, so the surrounding text is what explains it.
According to recent reports, short, structured prompts beat long, vague ones. Describe the elements in the order a director would:.
Change one element at a time between takes so you can tell which change improved the result.
According to recent reports, marketing demos show the best of a tool, so run your own test. Use the same prompt, duration and aspect ratio on each tool, generate a few takes and score them against a short checklist. Keep notes on how many credits each usable clip costs.
Run the same test again with an image-to-video input if your workflow starts from product photos or illustrations. That often exposes differences in consistency that text prompts hide.
Sources indicate that which AI video generator is best? There is no single winner. Veo is strong for audio, Runway for editing, Kling for motion, Luma for modifying footage and Firefly for licensing clarity. A multi-model tool such as OpenArt helps you compare them.
Can AI video generators make long videos? Not in one pass. Most models create short clips, so longer videos are built by extending or stitching clips together.
It has been revealed that is Sora still available? OpenAI announced in March 2026 that it was shutting down the Sora app and API, so it is not a safe choice for upcoming projects.
It has been revealed that can I use AI videos commercially? Often, but it depends on the strategy and the underlying model. Read the current terms before publishing.
Sources indicate that how do I keep a character consistent across clips? Reuse the same reference image, keep the subject description identical in every prompt, and use character or reference tools where the platform offers them.
According to recent reports, should I add captions to AI-generated video? Yes. Captions help accessibility and viewers watching without sound, and they give search engines text to index.
Industry observers note that do I need a powerful computer? No. These services run in the cloud, so a browser and a stable connection are enough.
The best AI video generator depends on what you make. Start with a short test prompt, compare a few tools, and keep the one that gives you usable clips at a sensible credit cost. If you are not sure where to begin, a multi-model option such as OpenArt lets you try several engines before you settle on one.
In a recent development, 7 Day Free Trial. Cancel Anytime.
📅 19 Feb 2025 | ⏱️ 3 min read (695 words, 📚 Deep Dive) | Source: Hugging Face
Industry observers note that last December, Google released PaliGemma 2: a fresh family of pre-trained (pt) PaliGemma vision language models (VLMs) based on SigLIP and Gemma 2. The models come in three different sizes (3B, 10B, 28B) and three different resolutions (224x224, 448x448, 896x896).
Today, Google is releasing PaliGemma 2 mix: fine-tuned on a mix of vision language tasks, including OCR, long and short captioning and more.
PaliGemma 2 pretrained (pt) variants are great vision language models to transfer on a given task at hand. All pt checkpoints are meant to be fine-tuned on a downstream task and were released for that purpose.
The mix models give a quick idea of the performance one would get when fine-tuning the pre-trained checkpoints on a downstream task. The main purpose of the PaliGemma model family is to provide pretrained models that can learn better on a downstream task, instead of providing a versatile chat model. Mix models give a good signal of how pt models perform when fine-tuned on a mix of academic datasets.
You can read more about PaliGemma 2 in this blog post.
You can find all the mix models and the demo in this collection.
PaliGemma 2 mix models can accomplish a variety of tasks. We can categorize them according to their subtasks as follows.
Note that this list of subtasks is non-exhaustive, and you can get more information on the full list of tasks in the PaliGemma 2 paper.
When prompting PaliGemma 2 mix models, we can use open-ended prompts. In the previous iteration of PaliGemma pretrained models, we needed to add a task prefix to the prompt depending on the task we’d like to accomplish in a given language. This still works, but open-ended prompts yield better performance. Prompts with task prefix look like the following:.
Only two tasks that work solely with task prefixes are object detection and image segmentation. The prompts look like the following.
If you want to immediately get started, feel free to jump to this section of the blog, or try the demo.
Sources indicate that in this section, we will review the aforementioned capabilities, how PaliGemma 2 mix performs on them, and compare different variants with different sizes and resolutions on a few of the tasks. Here, we are testing the model on a few in-the-wild examples.
In a recent development, we have evaluated PaliGemma 2 mix variants according to their localization-related capabilities. Given a prompt “detect {object description};{another object description}” with different objects of interest, PaliGemma can detect different objects of interest. The prompt here is not limited to short classes like “bird,” but it can be “bird on a stick”.
According to recent reports, below, you can find detection and segmentation outputs of different variants with a fixed resolution of 448x448. We zoom in on the object of interest for visualization purposes.
You can use PaliGemma 2 mix models using transformers.
Industry observers note that we have an in-depth tutorial on fine tuning PaliGemma 2. The same notebook can be used to fine tune the mix checkpoints as well.
According to recent reports, we are releasing a demo for a 10B model with 448x448 resolution. You can play with it below or head to app in this link.
Read and learn more about PaliGemma models below.
Sources indicate that we would like to thank Sayak Paul and Vaibhav Srivastav for the review of this blog post. We thank the Google team for releasing this amazing, and open, model family.
Significant thanks to Pablo Montalvo for integrating the model to transformers, and to Lysandre, Raushan, Arthur, Yih-Dar and the rest of the team for reviewing, testing, and merging in no time.
Hey there, is from transformers import AutoProcessor, AutoModelForVision2Seq can be useed for all VLMs or do we have to go with from transformers import PaliGemmaProcessor, PaliGemmaForConditionalGeneration for PaliGemma and from transformers import Qwen2_5_VLForConditionalGeneration, AutoTokenizer, AutoProcessor for QwenVL ? My goal is to have a unified script for all VLMs on the Hub given a model_name as arg.
Looking at transformers mapping I am pretty sure the Auto class would be able to pull PaliGemma and Qwen2_5 at the same time.
📅 06 Nov 2026 | ⏱️ 5 min read (1004 words, 📚 Deep Dive) | Source: Microsoft
Sources indicate that video workloads do not all start with the same input or aim for the same result. A creative team might explore several interpretations of a written brief. A retailer might turn an approved product image into a short motion concept. An application developer might combine image generation and video generation into a workflow that takes an idea from description to frame to scene. Each scenario brings different requirements for visual quality, motion, creative control, turnaround time, and cost. All of this means that a multi-model solution is necessary to realize a full vision.
It has been revealed that today, Microsoft and fal are helping developers find the right tools for their workloads. We are excited to announce that Kling, LTX, and MiniMax video models are rolling out to in public preview in Microsoft Foundry through our new partnership with fal. Available as a first-party Azure service, these text-to-video and image-to-video options give creators and developers more ways to utilize video generation with the experiences they want to build.
According to recent reports, the partnership expands the choices available in Microsoft Foundry while bringing video into the broader platform developers use to build AI applications. The goal is to let developers pick the right model for each step of an experience, then connect those steps into a working application.
According to recent reports, “fal has seen incredible adoption this year alone with generative media across all industries from advertising to marketing to gaming. Partnering with Microsoft allows both of us to truly enable the wide creative ecosystem and ensure that all AI solutions that lean on generative media, becomes a multi-model one.” - Burkay Gur, Cofounder.
It has been revealed that fal is the full stack for generative media, built for creators and developers, with APIs for over 1500 models across image, video, audio, 3D, and generative worlds. As a truly encapsulating platform, fal provides inference, training, and infrastructure to run generative media workloads in production, while also providing innovative post trained models that pushes the boundaries on speed and quality.
Recent findings suggest that that specialization matters because generative media is both a creative and an engineering workload. A compelling demo is only the start. Production applications also need to handle real traffic, scale with demand, and balance output quality, latency, and cost.
Through this partnership, developers will be able to access a selected set of video models in Microsoft Foundry, served by fal and sourced from the companies that build them. The initial portfolio gives teams a choice of models for different creative requirements instead of relying on one model for every task, with more models planned over time.
According to recent reports, the initial portfolio spans Kling v3 Pro, LTX-2.5 Fast, LTX-2.5 Pro, MiniMax H3 Max, and MiniMax H3 Max Turbo. These models give developers different starting points for generating video from text and animating existing images. A team rapidly exploring creative concepts may prioritize speed and cost, while a team producing fewer, higher-fidelity assets may weigh output quality more heavily. Whether an application starts from text or an existing image, and what it needs in output quality and cost, also shapes the choice.
Kling: From a still image to a directed scene.
It has been revealed that kling v3 Pro combines cinematic visuals and fluid motion with native audio generation and custom element support. Its image-to-video capabilities give developers control over how a starting image becomes a moving scene, a fit for applications that prioritize visual direction and motion.
LTX: One model for fast drafts, one for final output.
For rapid iteration and previews, LTX-2.5 Fast is the speed-optimized option; for high-fidelity final output, LTX-2.5 Pro is the quality-optimized option. Both support text-to-video and image-to-video generation with synchronized audio.
MiniMax: Another approach to video generation.
In a recent development, miniMax H3 Max and MiniMax H3 Max Turbo are post-trained variants of MiniMax H3 focused on prompt adherence, aesthetics, and inference performance. For developers, they provide additional options to evaluate against an application’s creative brief, quality requirements, and performance needs.
“When building with video models, the details matter: how closely the output follows your prompt, how well it preserves your reference images/videos/audios and how promptly you can try another idea. Kling gives developers control over detailed reference to video generation. LTX offers fast iteration and high-quality output through its Fast and Pro variants. H3 Max brings fal's post-training and inference optimizations to improve quality and speed. Having these models available through Microsoft Foundry gives developers more flexibility to choose what works best for the application they are building." - Gökay Aydoğan, Creative Engineer.
Bringing video generation into an enterprise application requires more than choosing the right model. Teams need a platform where they can evaluate different options, build with the models that fit their requirements, and operate those experiences alongside the rest of their applications.
It has been revealed that the initial portfolio of video models is hosted in the US, and Microsoft Foundry is the first provider to offer a US-hosted Kling 3 endpoint. Key considerations for enterprise teams:.
It has been revealed that video generation pricing varies by model and output resolution, giving teams options to balance creative requirements with their application’s budget. The table below highlights pricing in USD per minute of generated video for LTX and MiniMax models, making it easier to compare costs across the available options.
Pricing will be updated and listed on our Azure pricing page within the coming weeks.
In a recent development, ready to start building? Join us at Ignite for BRK256: Video AI at Scale with fal on Microsoft Foundry. Naomi Moneypenny and Alexander Hughes from Microsoft will be joined by Burkay Gur and Lovis Odin from fal on stage to explore this partnership on Thursday, November 19 at 11:00 AM - 11:45 AM CT. Register today!
Explore Kling v3 Pro, LTX-2.5 Fast, LTX-2.5 Pro, MiniMax H3 Max, and MiniMax H3 Max Turbo in Microsoft Foundry and find the model that fits your video experience.
📅 20 Feb 2025 | ⏱️ 8 min read (1525 words, 📚 Deep Dive) | Source: Hugging Face

SmolVLM2 represents a fundamental shift in how we think about video understanding - moving from massive models that require substantial computing resources to efficient models that can run anywhere. Our goal is simple: make video understanding accessible across all devices and use cases, from phones to servers.
We are releasing models in three sizes (2.2B, 500M and 256M), MLX ready (Python and Swift APIs) from day zero. We've made all models and demos available in this collection.
Industry observers note that want to try SmolVLM2 right away? Check out our interactive chat interface where you can test visual and video understanding capabilities of SmolVLM2 2.2B through a simple, intuitive interface.
We are introducing three latest models with 256M, 500M and 2.2B parameters. The 2.2B model is the go-to choice for vision and video tasks, while the 500M and 256M models represent the smallest video language models ever released.
It has been revealed that while they're small in size, they outperform any existing models per memory consumption. Looking at Video-MME (the go-to scientific benchmark in video), SmolVLM2 joins frontier model families on the 2B range and we lead the pack in the even smaller space.
Video-MME stands out as a comprehensive benchmark due to its extensive coverage across diverse video types, varying durations (11 seconds to 1 hour), multiple data modalities (including subtitles and audio), and high-quality expert annotations spanning 900 videos totaling 254 hours. Learn more here.
Compared with the previous SmolVLM family, our new 2.2B model got better at solving math problems with images, reading text in photos, understanding complex diagrams, and tackling scientific visual questions. This reveals in the model performance across different benchmarks:.
Sources indicate that when it comes to video tasks, 2.2B is a good bang for the buck. Across the various scientific benchmarks we evaluated it on, we want to highlight its performance on Video-MME where it outperforms all existing 2B models.
We were able to achieve a good balance on video/image performance thanks to the data mixture learnings published in Apollo: An Exploration of Video Understanding in Large Multimodal Models.
It’s so memory efficient, that you can run it even in a free Google Colab.
Nobody dared to release such small video models until today.
Our new SmolVLM2-500M-Video-Instruct model has video capabilities very close to SmolVLM 2.2B, but at a fraction of the size: we're getting the same video understanding capabilities with less than a quarter of the parameters 🤯.
Recent findings suggest that and then there's our little experiment, the SmolVLM2-256M-Video-Instruct. Think of it as our "what if" project - what if we could push the boundaries of small models even further? Taking inspiration from what IBM achieved with our base SmolVLM-256M-Instruct a few weeks ago, we wanted to see how far we could go with video understanding. While it's more of an experimental release, we're hoping it'll inspire some creative applications and specialized fine-tuning projects.
To demonstrate our vision in small video models, we've built three practical applications that showcase the versatility of these models.
We make SmolVLM2 available to use with transformers and MLX from day zero. In this section, you can find different inference alternatives and tutorials for video and multiple images.
The easiest way to run inference with the SmolVLM2 models is through the conversational API – applying the chat template takes care of preparing all inputs automatically.
You can load the model as follows.
You can pass videos through a chat template by passing in {"type": "video", "path": {video_path}. See below for a complete example.
In addition to video, SmolVLM2 supports multi-image conversations. You can use the same API through the chat template, providing each image using a filesystem path, an URL, or a PIL.Image object:.
Recent findings suggest that to run SmolVLM2 with MLX on Apple Silicon devices using Python, you can use the excellent mlx-vlm library. First, you need to install mlx-vlm from this branch using the following command:.
Then you can run inference on a single image using the following one-liner, which uses the unquantized 500M version of SmolVLM2:.
Recent findings suggest that we also created a simple script for video understanding. You can use it as follows:.
It has been revealed that note that the system prompt is important to bend the model to the desired behaviour. You can use it to, for example, describe all scenes and transitions, or to provide a one-sentence summary of what's going on.
The Swift language is also supported through the mlx-swift-examples repo, which is what we used to build our iPhone app.
Until our in-progress PR is finalized and merged, you have to compile the project from this fork, and then you can use the llm-tool CLI on your Mac as follows.
It has been revealed that video analysis is also supported, as well as providing a system prompt. We found system prompts to be particularly helpful for video understanding, to drive the model to the desired level of detail we are interested in. This is a video inference example:.
In a recent development, if you integrate SmolVLM2 in your apps using MLX and Swift, we'd love to know about it! Please, feel free to drop us a note in the comments section below!
Recent findings suggest that you can fine-tune SmolVLM2 on videos using transformers 🤗 We have fine-tuned the 500M variant in Colab on video-caption pairs in VideoFeedback dataset for demonstration purposes. Since the 500M variant is small, it's better to apply full fine-tuning instead of QLoRA or LoRA, meanwhile you can try to apply QLoRA on cB variant. You can find the fine-tuning notebook here.
You can cite us in the following way:.
We would like to thank Raushan Turganbay, Arthur Zucker and Pablo Montalvo Leroux for their contribution of the model to transformers.
Sources indicate that we are looking forward to seeing all the things you'll build with SmolVLM2! If you'd like to learn more about the SmolVLM family of models, feel free to read the following:.
SmolVLM2 - Collection with Models and Demos.
📻 🎙️ Hey, I generated an AI podcast about this blog post, check it out!
This podcast is generated via ngxson/kokoro-podcast-generator, using DeepSeek-R1 and Kokoro-TTS.
when run this script:python -m mlx_vlm.generate --model mlx-community/SmolVLM2-500M-Video-Instruct-mlx --image https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg --prompt "Can you describe this image?".
======================================test errror:Files: ['https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg'].
Prompt: <|im_start|>User:Can you describe this image?Assistant:Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/opt/homebrew/Caskroom/miniconda/base/envs/playwright/lib/python3.12/site-packages/mlx_vlm/generate.py", line 156, in main() File "/opt/homebrew/Caskroom/miniconda/base/envs/playwright/lib/python3.12/site-packages/mlx_vlm/generate.py", line 141, in main output = generate( ^^^^^^^^^ File "/opt/homebrew/Caskroom/miniconda/base/envs/playwright/lib/python3.12/site-packages/mlx_vlm/utils.py", line 1115, in generate for response in stream_generate(model, processor, prompt, image, **kwargs): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Caskroom/miniconda/base/envs/playwright/lib/python3.12/site-packages/mlx_vlm/utils.py", line 1016, in stream_generate inputs = prepare_inputs( ^^^^^^^^^^^^^^^ File "/opt/homebrew/Caskroom/miniconda/base/envs/playwright/lib/python3.12/site-packages/mlx_vlm/utils.py", line 806, in prepare_inputs processor.tokenizer.pad_token = processor.tokenizer.eos_token ^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Caskroom/miniconda/base/envs/playwright/lib/python3.12/site-packages/transformers/tokenization_utils_base.py", line 1108, in getattr raise AttributeError(f"{self.class.name} has no attribute {key}")AttributeError: GPT2TokenizerFast has no attribute tokenizer. Did you mean: '_tokenizer'?
Hi @leexiaobo2006 ! You need to install transformers from main, or from this stable branch:.
https://koshurai.medium.com/a-comprehensive-tutorial-on-using-smolvlm2-for-image-and-video-analysis-faa10e0710a6.
here is a tutorial on how to use SMOLVLM2 on colab for free using T4 GPU Free Tier.
Nice! Would you like to publish the same content as a community article, to maximize visibility?
where to find th code of app demo @pcuenq.
Do you know where is the code repo for Video Highlight Generator? Thanks! @pcuenq.
Hi!You can find it here: https://huggingface.co/spaces/HuggingFaceTB/SmolVLM2Then press three dots -> Clone repository.
i have seen vlms which are great but they do inference via frame by frame which can lead to false alarms.
can this model understand the video(take chunks of frame and uderstand the nature of video ) ?
Hi - what is the longest duration of video this can handle ?
Could someone share how video processing in this model is handled?
Hi, can I ask if SmolVLM2 supports semantic segmentation ?
@dangmanhtruong1995 hello, unfortunately no. I think all vision LMs that support segmentation support instance segmentation, you can then aggregate masks together to come up with semantic ones. PaliGemma2 does it, maybe SAM3 (it takes in short prompts like "red car" and not "red car on the left").
It has been revealed that smolVLM2 is an advanced video understanding model designed to run efficiently on a wide range of devices. It enables fast video analysis, caption generation, and visual reasoning without requiring powerful hardware. For Alooy TV APK users, similar AI-powered technology can enhance content discovery, improve recommendations, and deliver a smarter, more personalized streaming experience.https://alooytvlive.com/.
Hi — what’s the maximum video duration this can handle ?
SmolVLM2 makes video understanding accessible across devices, supporting smarter viewing experiences and enhancing how customers discover and enjoy content through YouCine APK Live .
Recent findings suggest that smolVLM2 is an exciting step forward for making AI-powered video understanding more accessible and practical. I especially like the availability of multiple model sizes, as it gives developers more flexibility to choose based on their hardware and performance requirements. With AI making video analysis more efficient, even everyday activities like using the ppcine app to watch movie content can become more interactive and convenient. Looking forward to seeing how developers use SmolVLM2 to build lightweight video analysis and visual understanding applications.
📅 21 Feb 2025 | ⏱️ 8 min read (1673 words, 📚 Deep Dive) | Source: Hugging Face
Sources indicate that today Google releases a new and better family of multilingual vision-language encoders, SigLIP 2. The authors have extended the training objective of SigLIP (sigmoid loss) with additional objectives for improved semantic understanding, localization, and dense features.
SigLIP 2 models outperform the older SigLIP ones at all model scales in core capabilities, including zero-shot classification, image-text retrieval, and transfer performance when extracting visual representations for Vision-Language Models (VLMs).
A cherry on top is the dynamic resolution (naflex) variant. This is useful for downstream tasks sensitive to aspect ratio and resolution.
Here is a list of all the models released:.
Vision encoders are simple - they take an image, encode it into a representation, and that representation is used for downstream tasks like classification, object detection, image segmentation, and more vision tasks. Researchers are always in pursuit of visual representations that are dense, locality-aware, and semantically rich.
CLIP and ALIGN are the first examples of image encoders and text encoders aligned together through joint training. This approach opened latest ways to train vision models. SigLIP took it further, replacing CLIP's contrastive loss with sigmoid loss for even better encoders.
The takeaway? With smarter training objectives, we keep building vision encoders that are more structured, fine-grained, and powerful. SigLIP 2 is just that, a bunch of really interesting and smart training objectives applied on top of that of SigLIP's to provide better and stronger vision language encoders.
Sources indicate that we will try something new with this blog post. Rather than stating what is new and where to find it, we will go through a little exercise together. We start off with SigLIP and then brainstorm a series of questions (prefixed with 🤔) and answers (a new heading) to gradually cover all the updates in SigLIP 2. Sounds good?
Sources indicate that we will begin our journey with the vision encoder where the patch size is 16, and the image resolution is 256. We have four variants to start our training:.
🤔 Question 1: What is a (low effort) auxiliary training objective that we can use to learn better visual representations (in terms of location awareness and sense of locality)?
Let’s add a decoder to the mix. Now we have an image encoder, a text encoder, and a text decoder. The text decoder will have three objectives:.
Recent findings suggest that the decoder provides an additional signal to the vision encoder, making it location-aware. This marks the first improvement to the training recipe in SigLIP 2.
🤔 Question 2: How do we improve fine-grained local semantics of the image representation?
To improve fine-grained local semantics in image representation, we introduce two key training objectives, Global-Local Loss, and Masked Prediction Loss. Taking inspiration from self-supervised learning literature, we use self-distillation. We can use a model as a teacher, and the same model as a student. Upon each iteration the teacher will be the moving average of the student's parameters.
These objectives teach the vision encoder to be spatially aware and improve its local semantics. The authors add this loss only after 80% of the training is done with the sigmoid and decoder loss. This is done in order to save compute (additional losses are pretty expensive) and to not negatively affect the encoders.
🤔 Question 3: How to adapt models to different resolutions?
In a recent development, it is a known fact that image models can be very sensitive to varying resolutions and aspect ratios. Here we can leverage two distinct methodologies to adapt these models on different resolutions and patch sizes.
In a recent development, models with the -naflex suffix are the dynamic resolution variants. While the fixed-resolution models can be used out of the box with the existing SiglipModel class, you would need to use Siglip2Model to use the naflex variants. We handle this automatically when you use the pipeline API!
In a recent development, this brings us to the end of the evolution from SigLIP to SigLIP 2. In the next sections we will look at applications with SigLIP 2.
It has been revealed that running inference on the models is pretty straightforward. You can copy paste the code below and run inference on a free tier Colab notebook 🚀.
To run inference on SigLIP 2, please install transformers from main or from this stable branch: pip install git+https://github.com/huggingface/transformers@v4.49.0-SigLIP-2.
Here we use the handy pipeline API to showcase zero-shot classification capabilities for SigLIP 2.
You can also encode images using the following:.
Looking at the table of all the SigLIP 2 models released, we see two distinct changes from SigLIP:.
The evaluation table of SigLIP 2 demonstrates its superiority over SigLIP.
Here is a demo where one can compare the zero-shot classification results of SigLIP 1 and SigLIP 2.
Vision encoders aligned to textual information have become increasingly vital in the development of Vision Language Models (VLMs). A common approach to building VLMs involves combining a pretrained vision encoder with a pretrained LLM, and training them together using multimodal data across a diverse set of vision-language tasks.
In a recent development, one standout example of a VLM leveraging the SigLIP family of vision encoders is PaliGemma. One can dive deeper into PaliGemma's capabilities in this PaliGemma blog post. Building on this foundation, the recently introduced PaliGemma 2 takes it a step further by integrating SigLIP with the advanced Gemma 2 LLM. It would be really exciting to swap out SigLIP with SigLIP 2 in a PaliGemma like setting and see how that model fares.
In a recent development, we would like to thank Michael Tschannen (first author of SigLIP 2), Vaibhav Srivastav and Sayak Paul for feedback on this blog post. A huge shout out to the Google team for releasing this amazing, and open, model family.
In no particular order we would like to thank Pavel, Ross, Pablo, Pedro, Lysandre and the rest of the Hugging Face team for their immense support and contribution towards this project.
Recent findings suggest that might want to check something: The demo at the bottom hangs with "Uploading 1 file..." and none of the premade examples load or execute. 6 different Javascript console errors are thrown. (Chrome, Mac).
OpenCLIP & timm weights are up now, https://huggingface.co/collections/timm/siglip-2-67b8e72ba08b09dd97aecaf9.
Siglip2 does not include 'spiece.model' as in Siglip. Is this expected? The processor raises an error indicating that the vocab file is a NoneType object, which may suggest a missing spiece model. Any ideas?
Could you install transformers from main?
pip install git+https://github.com/huggingface/transformers@main.
Let us know if this solves the issue. 🤗.
I tried running the zeroshot classification example and got ValueError: Unable to create tensor, you should probably activate truncation and/or padding with 'padding=True' 'truncation=True' to have batched tensors with the same length. Perhaps your features (input_idsin this case) have excessive nesting (inputs typelistwhere typeintis expected). transformers version=4.49.0.dev0.
Industry observers note that I tried adding both padding=True and truncation=True to no avail. i also tried padding="max_length".
It has been revealed that EDIT:it seems to work if my labels are all the same length. doing some debugging, i see that in zero_shot_image_classification.py, the padding provided to the tokenizer is forced to be max_length anyway here (L148-149).
Sources indicate that and yet, if my labels have variable lengths, the outputs are not the same length, and so calling torch.tensor on that ultimately failsi did spot this warning in my terminal as well:Asking to pad to max_length but no maximum length is provided and the model has no predefined maximum length. Default to no padding.
The warning gives you the answer: pass max_length=64.
In a recent development, "When using the standalone GemmaTokenizerFast make sure to pass padding="max_length" and max_length=64 as that’s how the model was trained." Does Siglip2 support longer text input? If the max_length is set to 256 or 512, will text exceeding 64 be truncated?
It has been revealed that yes. If you want longer text, what I'd do is chunk it into pieces of 64 tokens (possibly even overlapping), embed those separately, and either average their endings or dot them with the image embedding individually and take max or average score, depending on your use case.
I'm actually curious what kind of queries you're dealing with that are longer than 64 tokens? All use cases of siglip i can think of almost always fit in way below 64.
/lib/python3.10/site-packages/transformers/models/siglip/tokenization_siglip.py", line 139, in get_spm_processor with open(self.vocab_file, "rb") as f:TypeError: expected str, bytes or os.PathLike object, not NoneType.
Could you install transformers from main?
pip install git+https://github.com/huggingface/transformers@main.
In a recent development, let us know if this solves the concern. 🤗.
There are really 3 cats, it's just that one of them is pregnant.
Does anyone know where to find benchmarks for the naflex variants? I could be blind, but it seems they're not in the graph?Edit: nvm, just go to the appendix.
when i input an img and a text to model.
the output logits isSiglipOutput(loss=None, logits_per_image=tensor([[-15.5217]], device='cuda:0'), logits_per_text=tensor([[-15.5217]], device='cuda:0').
after sigmoid the output is ~0.
Is there any examples provided for fine-tuning on a custom dataset?
@nielsr has a great notebook on fine tuning siglip and similar models.
https://github.com/NielsRogge/Transformers-Tutorials/tree/master/SigLIP.
In a recent development, hello everyone,am I wrong or is the zero shot classification not really working. You can take a look at the provided example, we replaced the original image with another one and added the text "golf" to the text corpus. Also with other examples, and different backbones, it seems like that zero shot is not really working.
(try it here: https://colab.research.google.com/github/openvinotoolkit/openvino_notebooks/blob/latest/notebooks/siglip-zero-shot-image-classification/siglip-zero-shot-image-classification.ipynb).
Also the code provided here: https://huggingface.co/docs/transformers/main/en/model_doc/siglip2 never works, at least not with using sigmoid.
Indeed. If you want lengthier text, I would divide it into 64-token chunks.... (perhaps even overlapping), embed each one separately, and then either average.... the ends or, depending on your use case, dot each one with the picture..... embedding and calculate the maximum or average score.
Recent findings suggest that actually, I'm wondering what kinds of searches longer than 64 tokens you deal with. Almost every Siglip.... use case that comes to mind falls well below 64.
📅 05 Nov 2026 | ⏱️ 5 min read (1017 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
Sources indicate that weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
Here is a question a product page should answer in about five seconds: “Will this magnetic phone mount hold my phone with the case still on?” When the answer is hard to find, shoppers tend to open another tab instead of contacting support.
It has been revealed that stores that sell both car accessories and home & kitchen products face an extra challenge: two very different catalogs share one site. A car accessories buyer cares about fit, mounting and compatibility. A home & kitchen buyer cares about size, capacity and how easy the product is to clean. A single generic product page frustrates both.
This guide covers seven practical e-commerce UX tips that designers and developers can apply right away, with code snippets and a checklist at the end.
It has been revealed that A car mount and a vegetable peeler should not share the same spec table. Keep a single reusable product page component and change only the fields based on category. The layout stays consistent, while each shopper sees the details they need.
In code, this can be a config object that your template reads from:.
Showing “Not specified” instead of hiding a missing field is a small habit with a real benefit: it makes gaps in your product data visible to your own team.
Shoppers look for deal-breaker information near the price and the purchase button: fit, size and compatibility. Do not bury it in an “Additional information” tab halfway down the page.
A short comparison table also works better than three paragraphs of marketing copy, because shoppers scan rather than read. Baymard Institute’s product page research consistently finds that unclear or hard-to-find specifications are a common reason shoppers hesitate.
In a recent development, A responsive layout is the starting point, not the finish line. People compare car accessories in a parking lot and browse kitchen gadgets while standing in the kitchen, often with one thumb.
According to recent reports, A phone mount on a white background indicates nothing about how it attaches to a dashboard. Show it in a real car, from the driver’s point of view. For home & kitchen products, place the item next to something familiar, like a coffee mug, so people can judge its size.
It has been revealed that good alt text matters for accessibility and for image search. Compare “phone mount” with “Magnetic phone mount fixed to a car dashboard, holding a phone in landscape mode”. The W3C alt text decision tree is a useful guide for deciding what to describe.
Keep images fast, too. Responsive sources with srcset and sizes, explicit dimensions and lazy loading help prevent layout shift and slow pages:.
It has been revealed that one caveat: do not lazy-load the main product image at the top of the page. It is usually the Largest Contentful Paint element, so web.dev advises loading it eagerly.
According to recent reports, shoppers often search for a problem rather than a product. Few people type “seat gap filler” the first time; they type “stuff falling between car seats”. Your search, synonyms and category names should handle both.
According to recent reports, mixed catalogs show why this matters. Stores that cover both vehicle and household products, such as VNSPORT.org with its separate product collections, keep the two audiences apart so that someone looking for a dashboard mount never has to scroll past kitchen tools. The principle applies to any store with more than one audience: group by the shopper’s intent, not by your supplier list.
It has been revealed that decorative “100% secure” badges do little. What builds trust is information shoppers can check for themselves:.
At checkout, show the full cost, including shipping and taxes, before payment, let people fix mistakes easily and offer guest checkout. In Baymard’s checkout usability research, unexpected extra costs and forced account creation are among the top reasons shoppers abandon a cart.
It has been revealed that if your support inbox gets the same question every week, the product page has a gap. Answer it on the page, close to where the decision happens, instead of on a generic help page three clicks away.
You can mark up those answers with FAQPage structured data:.
A reality check: since 2023, Google shows FAQ rich results only for well-known government and health websites. Do not add FAQs just to chase a snippet. Add them because they answer real questions and help shoppers decide.
Recent findings suggest that what are the most key e-commerce UX tips for a car accessories store? Show compatibility and mounting details next to the price, use in-car photos, and make sure the mobile layout works with one hand.
It has been revealed that how should product pages differ for car accessories and home & kitchen products? Use the same layout but different spec fields. Car accessories need fit, mounting and power details. Home & kitchen products need dimensions, capacity, materials and cleaning instructions.
Sources indicate that how significant should buttons be on a mobile product page? WCAG 2.2 sets a minimum target size of 24 × 24 CSS pixels. For primary actions such as “Add to cart”, around 44 pixels is more comfortable.
Do FAQ sections still help SEO? Mostly indirectly. FAQ rich results are now limited, but clear on-page answers can match long-tail searches, reduce returns and keep shoppers on the page.
According to recent reports, how can I reduce cart abandonment? Show total costs early, offer guest checkout, display delivery times and return terms before payment, and keep the checkout form short.
It has been revealed that good e-commerce UX is not about clever animations. It is about answering the shopper’s question before they have to ask it. Clear specs, honest photos, thumb-friendly controls and real FAQs turn an ordinary product page into one that helps people buy, whether they are shopping for car accessories or home & kitchen essentials.
7 Day Free Trial. Cancel Anytime.
📅 24 Feb 2025 | ⏱️ 3 min read (635 words, 📚 Deep Dive) | Source: Hugging Face
(This post was authored by hlky and Sayak).
When operating with latent-space diffusion models for high-resolution image and video synthesis, the VAE decoder can consume quite a bit more memory. This makes it hard for the owners to run these models on consumer GPUs without going through latency sacrifices and others alike.
For example, with offloading, there is a device transfer overhead, causing delays in the overall inference latency. Tiling is another solution that lets us operate on so-called “tiles” of inputs. However, it can have a negative impact on the quality of the final image.
Therefore, we want to pilot an idea with the community — delegating the decoding process to a remote endpoint.
According to recent reports, no data is stored or tracked, and code is open source. We made some changes to huggingface-inference-toolkit and use custom handlers.
This experimental feature is developed by Diffusers 🧨.
Below, we cover three use cases where we think this remote VAE inference would be beneficial.
First, we have created a helper method for interacting with Remote VAEs.
Install diffusers from main to run the code. pip install git+https://github.com/huggingface/diffusers@main.
Here, we show how to use the remote VAE on random tensors.
Sources indicate that usage for Flux is slightly different. Flux latents are packed so we need to send the height and width.
Finally, an example for HunyuanVideo.
But we want to use the VAE on an actual pipeline to get an actual image, not random noise. The example below reveals how to do it with SD v1.5.
Here’s another example with Flux.
Here’s an example with HunyuanVideo.
Sources indicate that one of the great benefits of using a remote VAE is that we can queue multiple generation requests. While the current latent is being processed for decoding, we can already queue another one. This helps improve concurrency.
According to recent reports, these tables demonstrate the VRAM requirements with different GPUs. Memory usage % determines whether owners of a certain GPU will need to offload. Offload times vary with CPU, RAM and HDD/NVMe. Tiled decoding increases inference time.
If you like the idea and feature, please help us with your feedback on how we can make this better and whether you’d be interested in having this kind of feature more natively integrated into the Hugging Face ecosystem. If this pilot goes well, we blueprint on creating optimized VAE endpoints for more models, including the ones that can generate high-resolution videos!
The article is not so clear about some points:.
I am not sure how this is unclear but in the interest of completeness.
is vae tiling always happening ?
We never mention this to be happening.
what do you mean by tiled memory / tiled time ?
Tiled memory / time mean we are applying tiling..
"time" does mean "inference time" or "offloading time".
Total round-trip time. If it meant anything else, it would have been specified like others.
Do we need Pro account for this?
Hello there.Very nice implementation, works flawlessly, 2-4 seconds to decode, depending on image size.
Simple question, is there a possibility to create a local endpoint on other machine (not HF) and use it as vae-decode machine?
So a Comfy Ui implementation for example.
Comfy implementation: https://github.com/kijai/ComfyUI-HFRemoteVae.
You can host the endpoint on a local machine and use it as is as shown in the blog post if the input and output schemas match.
Alright, I'll give it another read.Thank you.
📻 🎙️ Hey, I generated an AI podcast about this blog post, check it out!
This podcast is generated via ngxson/kokoro-podcast-generator, using DeepSeek-R1 and Kokoro-TTS.
It has been revealed that great work! Just posted a video short to LinkedIn showcasing this. Check it out! https://www.linkedin.com/posts/activity-7301008441123164161-rTau?utm_source=social_share_send&utm_medium=member_desktop_web&rcm=ACoAAAI2QycBC7JU4jV0Vw61G4AWBGaE_MlKUtU.
Can we get also a Wan Video 2.1 VAE for remote Decode?
📅 25 Feb 2025 | ⏱️ 4 min read (753 words, 📚 Deep Dive) | Source: Hugging Face

In a recent development, in the last few months, many new real-time speech models have been released and entire companies have been founded around both open and closed source models. To name a few milestones:.
Despite the explosion on the model and funding side, it's still difficult to build real-time AI applications that stream audio and video, especially in Python.
According to recent reports, that's why we're excited to announce FastRTC, the real-time communication library for Python. The library is designed to make it super easy to build real-time audio and video AI applications entirely in Python!
It has been revealed that in this blog post, we'll walk through the basics of FastRTC by building real-time audio applications. At the end, you'll understand the core features of FastRTC:.
In a recent development, we'll start by building the "hello world" of real-time audio: echoing back what the user notes. In FastRTC, this is as simple as:.
Industry observers note that the next level is to use an LLM to respond to the user. FastRTC comes with built-in speech-to-text and text-to-speech capabilities, so working with LLMs is really easy. Let's change our echo function accordingly:.
According to recent reports, we're using the SambaNova API since it's fast. The get_stt_model() will fetch Moonshine Base and get_tts_model() will fetch Kokoro from the Hub, both of which have been further optimized for on-device CPU inference. But you can use any LLM/text-to-speech/speech-to-text API or even a speech-to-speech model. Bring the tools you love - FastRTC just handles the real-time communication layer.
If instead of stream.ui.launch(), you call stream.fastphone(), you'll get a free phone number to call into your stream. Note, a Hugging Face token is required. Increased limits for PRO accounts.
You'll see something like this in your terminal:.
You can then call the number and it will connect you to your stream!
Thank you for checking out FastRTC!
Can fastphone() accept an Indian phone number?
We're working on getting a whatsapp number.
📻 🎙️ Hey, I generated an AI podcast about this blog post, check it out!
This podcast is generated via ngxson/kokoro-podcast-generator, using DeepSeek-R1 and Kokoro-TTS.
Industry observers note that I have a question for concurrency when use tts_model and stt_model. How does each type of model handle multiple requests at the same time. (e.g. batching technique ? cpu-only threading ....) @freddyaboulton.
It has been revealed that hi @MRU4913 ! Each stream is an independent event in the event loop. But you can limit how many streams run concurrently very easily. There is a parameter in the Stream class.
Industry observers note that taking a while to connect. Are you on a VPN? Anyone else stuck with this error (I am not using VPN)? This only happens on Gemini examples.
Sources indicate that hi @Nirav-Madhani - I am not sure. Let me see. Feel free to clone and run locally in the meantime.
Would be very cool if you can also add a example with Azure OpenAI-API.
It has been revealed that hi @MechanicCoder - please feel free to add an example here if you’d like. It should be straightforward- take the example in this blog post and replace the LLM with the api call for the LLM on Azure you like.
Hey, have a working example...should I send you a repo link?
Can I connect something like FreeSWITCH and have its RTC directly parsed by fastRTC?
Recent findings suggest that I have not tried this myself but I think so. The FastRTC server is completely open so you can integrate with any telephony/webrtc client.
Please open a PR to add a guide on how to do this: https://github.com/freddyaboulton/fastrtc/blob/main/docs/userguide/audio.md.
Also feel free to join the HF discord and ask questions in the fastrtc-channels: https://discord.gg/TSWU7HyaYu.
Hi, I'm new to WebRTC applications, and one of my main questions is: how does the process of capturing audio work? I mean, in demos, you always take the audio directly from the microphone, but I'd like to know if it's possible to get the input audio from a specific port (for example, a listening port where RTP packets are arriving). I guess I need to better understand how WebRTC communications work...Thank you!
Recent findings suggest that can you tell me a bit more about the use case @JuanRoyo ? WebRTC requires a "handshake" to happen between the two clients. This handshake is taken care of by the webrtc/offer route of the FastRTC server. So you can just send a post request there. See this js code snippet:.
https://fastrtc.org/userguide/api/.
📅 05 Nov 2026 | ⏱️ 6 min read (1163 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
Weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
A one-hour YouTube talk contains roughly nine thousand words, and finding the one point you need can take longer than watching the whole thing. A transcript solves that. With text in hand you can search for a phrase, quote an expert accurately, turn a webinar into a blog post, create subtitles or feed a summary tool.
In a recent development, plenty of tools now promise instant YouTube transcripts, but they work in different ways. Some read the captions YouTube already has. Others listen to the audio themselves and produce a fresh transcript. That difference affects accuracy, speed and cost more than any feature list does. This guide compares six options, explains how each works and points out where each one falls short. Looks and limits change often, so confirm current details on each vendor's site.
It has been revealed that caption extraction. The tool pulls the captions attached to a video, either written by the creator or generated automatically by YouTube. It is fast and usually free, but it is only as good as those captions. YouTube notes that its automatic captions come from machine learning, so quality may vary, and accents, background noise and overlapping speakers can cause errors. Captions may also be missing entirely for some videos.
Industry observers note that fresh speech recognition. The tool takes the audio and runs its own speech-to-text model. This can be more accurate on difficult recordings and works when no captions exist, but it takes longer and often costs money.
Lynote is built for exactly this job. Paste a YouTube link, search by keyword or add a playlist, and it returns a timestamped transcript with an AI summary. Batch mode accepts up to 10 videos at once. The tool lists transcription in more than 100 languages, translation into 25, auto-chapters, one-click copy and TXT download, with SRT export also mentioned. The page says transcripts are free, with no sign-up required.
Best for: Students, researchers and marketers who want a quick, readable transcript or summary from a public video without installing anything.
In a recent development, limitations: It extracts YouTube captions, so videos without captions cannot be processed. If the original captions are poor, the transcript will be too. For critical accuracy, review the text or use a service with human verification.
Before you install anything, check what YouTube already gives you. Many videos show a transcript option in the description area, and creators can review and edit automatic captions in YouTube Studio under Subtitles. YouTube offers automatic captions in dozens of languages for long-form videos and Shorts.
Best for: Quick lookups on videos that already have decent captions.
Sources indicate that limitations: Captions may not generate for videos with poor sound, long silences, overlapping speakers, mixed languages or unsupported languages. Export options are minimal, and there is no summary or cleanup.
Industry observers note that notta transcribes uploaded audio and video files and also accepts YouTube links. It lists support for 58 languages, real-time and bilingual transcription, and AI Notes that produce summaries and action items. A free proposal includes 120 transcription minutes per month at the time of writing.
Best for: Professionals who handle a mix of recordings, meetings and YouTube videos in one place.
Limitations: The free minutes disappear rapidly if you process long videos, and the strongest features sit behind paid plans.
Descript is an audio and video editor built around text. It transcribes recordings automatically, and deleting a word in the transcript removes the matching footage. You can import video, audio or a Zoom recording, and there is a free tier that does not require a credit card.
Best for: Creators who want to clean up their own videos and podcasts, not just read a transcript.
Industry observers note that limitations: It is an editor first, so it is more than you need for a quick YouTube lookup. It works with files you own, so you need the source media rather than a public link.
Rev offers both AI and human transcription. It advertises AI transcripts at 96 percent or better accuracy in minutes, and human transcripts at 99 percent or better, guaranteed within 12 hours. AI transcription covers 37 or more languages, while human transcription is English only. Pay-as-you-go rates start at $0.25 per minute for AI, and human transcription is listed at $1.99 per minute.
Best for: Legal, research and media work where mistakes are costly and a human check is worth paying for.
According to recent reports, limitations: The cost climbs for long videos, and the human option is slower than instant AI tools. Those accuracy figures are the vendor's own claims, so test your own audio.
Whisper is OpenAI's open-source speech recognition model, released under the MIT license. It handles multilingual transcription, translation into English and language identification. You install it with pip and need ffmpeg, and it comes in several model sizes from tiny to large, so you can trade speed against accuracy and hardware demands.
Best for: Developers building their own pipeline and teams with sensitive audio they prefer to keep on their own machines.
Limitations: You supply the audio, which means downloading it yourself and respecting the video owner's rights and YouTube's terms. Larger models need a capable GPU, and there is no built-in interface for non-technical owners.
Start with the source. If the video already has good captions, a link-based tool is the fastest route. If the audio is difficult or the stakes are high, pick a tool that runs its own recognition or offers human review. If you are processing hundreds of videos or handling private recordings, look at Whisper or a paid platform with bulk features.
Industry observers note that whatever you choose, treat the transcript as a first draft. Check names, numbers and technical terms against the video before you publish or quote anything, and credit the original creator.
Recent findings suggest that there is no single best transcript generator. Caption-based tools are quick and free, recognition-based tools are better when captions fall short, and human-verified services make sense when accuracy matters most. Try two or three on a video you know well, compare the results and keep a human in the loop for anything you publish.
Can I get a transcript if a video has no captions? Caption-extraction tools cannot. You need a tool that runs its own speech recognition on the audio, such as the options above that transcribe files.
Are AI transcripts accurate enough to publish? Often they are close, but not perfect. Accents, noise and technical terms cause mistakes, so review before publishing.
Industry observers note that what is the difference between a transcript and subtitles? A transcript is the full text, while subtitles are timed text shown on screen. Many tools can export both, often as SRT files.
7 Day Free Trial. Cancel Anytime.
📅 27 Feb 2025 | ⏱️ 3 min read (655 words, 📚 Deep Dive) | Source: Hugging Face
Sources indicate that the Indian Institute of Science IISc and ARTPARK partner with Hugging Face to enable developers across the globe to access Vaani, India's most diverse open-source, multi-modal, multi-lingual dataset. Both organisations share a commitment to building inclusive, accessible, and state-of-the-art AI technologies that honor linguistic and cultural diversity.
The partnership between Hugging Face and IISc/ARTPARK aims to increase the accessibility and improve usability of the Vaani dataset, encouraging the development of AI systems that better understand India's diverse languages and cater to the digital needs of its people.
Recent findings suggest that rolled out in 2022 by IISc/ARTPARK and Google, Project Vaani is a pioneering initiative aimed at creating an open-source multi-modal dataset that truly represents India's linguistic diversity. This dataset is unique in its geo-centric approach, allowing for the collection of dialects and languages spoken in remote regions rather than focusing solely on mainstream languages.
Vaani targets the collection of over 150,000 hours of speech and 15,000 hours of transcribed text data from 1 million people across all 773 districts, ensuring diversity in language, dialects, and demographics.
It has been revealed that the dataset is being built in phases, with Phase 1 covering 80 districts, which has already been open-sourced. Phase 2 is presently underway, expanding the dataset to 100 more districts, further strengthening Vaani's reach and impact across India's diverse linguistic landscape.
Key Highlights of the Vaani data set, open sourced so far: (as of 15-02-2025).
It has been revealed that the Vaani dataset shows a rich distribution of languages across India's districts, highlighting linguistic diversity at a local level. This information is valuable for researchers, AI developers, and language technology innovators looking to build speech models tailored to specific regions and dialects. To explore the detailed district-wise language distribution, visit: Vaani Dataset on HuggingFace.
If you need to access only transcribed data and you would like to skip untranscribed audio-only data, a subset of the larger dataset has been open sourced here. This dataset has 790 Hrs of transcribed audio, from ~7L speakers covering 70K images. This resource includes smaller, segmented audio units matched with precise transcriptions, allowing for different tasks including:.
This additional dataset complements the main Vaani dataset, making it possible to develop end-to-end speech recognition systems and more targeted AI solutions.
The Vaani dataset offers several key advantages, including extensive language coverage (54 languages), representation across diverse geographical regions, diverse educational and socio economic background, very large speaker coverage, spontaneous speech data, and real-life data collection environments. These features can enable inclusive AI models for:.
According to recent reports, these AI models can power a wide range of Conversational AI applications. From educational tools to telemedicine platforms, healthcare solutions, voter helplines, media localization, and multilingual smart devices, the Vaani dataset can be a game-changer in real-world scenarios.
It has been revealed that IISc/ARTPARK and Google have extended the partnership to Phase 2 (additional 100 districts). With this, Vaani covers all states in India! We are excited to bring this dataset to all of you.
The map highlights the districts across India where data has been collected as of Feb 5,2025.
The most meaningful contribution you can make is to use the Vaani dataset. Whether building fresh AI applications, conducting research, or exploring innovative use cases, your engagement helps improve and expand the project.
It has been revealed that we would be delighted to hear from you if you have feedback or insights from using the dataset. Please reach out to vaanicontact@gmail.com to share your experiences/inquire about collaboration opportunities or please do fill out this feedback form.
Made with ❤️ for India's linguistic diversity.
📻 🎙️ Hey, I generated an AI podcast about this blog post, check it out!
This podcast is generated via ngxson/kokoro-podcast-generator, using DeepSeek-R1 and Kokoro-TTS.
Industry observers note that I am interested in exploring partnership possibilities with Hugging Face. May I send an email to someone in charge of partnerships?
📅 28 Feb 2025 | ⏱️ 4 min read (780 words, 📚 Deep Dive) | Source: Hugging Face
So, you’ve built your agent. It takes in inputs and tools, processes them, and generates responses. Maybe it’s making decisions, retrieving information, executing tasks autonomously, or all three. But now comes the big question – how effectively is it performing? And more importantly, how do you know?
It has been revealed that building an agent is one thing; understanding its behavior is another. That’s where tracing and evaluations come in. Tracing allows you to see exactly what your agent is doing step by step—what inputs it receives, how it processes information, and how it arrives at its final output. Think of it like having an X-ray for your agent’s decision-making process. Meanwhile, evaluation helps you measure performance, ensuring your agent isn’t just functional, but actually effective. Is it producing the right answers? How relevant are its findings at each step? How well-crafted is the agent’s response? Does it align with your goals?
According to recent reports, arize Phoenix provides a centralized platform to trace, evaluate, and debug your agent's decisions in real time—all in one place. We’ll dive into how you can implement them to refine and optimize your agent. Because building is just the beginning—true intelligence comes from knowing exactly what’s happening under the hood.
For this, let’s make sure that we have an Agent setup! You can follow along with the following steps or use your own agent.
Now let’s bring in the classes and tools we’ll be using:.
We’ll create a model instance powered by the Hugging Face Hub Serverless API:.
Now for the magic moment—let’s see our agent in action. The question we’re asking our agent is:“Fetch the share price of Google from 2020 to 2024, and create a line graph from it?”.
In a recent development, once your agent is running, the next challenge is making sense of its internal workflow. Tracing helps you track each step your agent takes—from invoking tools to processing inputs and generating responses—allowing you to debug concerns, optimize performance, and ensure it behaves as expected.
To enable tracing, we’ll use Arize Phoenix for visualization, and OpenTelemetry + OpenInference for instrumentation.
Install the telemetry module from smolagents:.
It has been revealed that you can run Phoenix in a bunch of different ways. This command will run a local instance of Phoenix on your machine:.
For other hosting options of Phoenix, you can create a free online instance of Phoenix, self-host the application locally, or host the application on Hugging Face Spaces.
After launching, we register a tracer provider, pointing to our Phoenix instance.
Now any calls made to smolagents will be sent through to our Phoenix instance.
Now that tracing is enabled, let’s test it with a simple query:.
Once OpenInference is set up with SmolAgents, every agent invocation will be automatically traced in Phoenix.
Once your agent is up and its run is monitored, the next step is to assess its performance. Evaluations (evals) help determine how well your agent is retrieving, processing, and presenting information.
According to recent reports, there are many types of evals you can run, such as response relevance, factual accuracy, latency, and more. Check out the Phoenix documentation for a deeper dive into different evaluation techniques.
Industry observers note that in this example, we’ll focus on evaluating the DuckDuckGo search tool used by our agent. We’ll measure the relevance of its search results using a Large Language Model (LLM) as a judge—specifically, OpenAI's GPT-4o.
First, install the necessary packages:.
We’ll be using GPT-4o to evaluate whether the search tool’s responses are relevant.This method, known as LLM-as-a-judge, leverages language models to classify and score responses.
To evaluate how well DuckDuckGo is retrieving information, we first need to extract the execution traces where the tool was called.
Next, we load the RAG Relevancy Prompt Template, which will help the LLM classify whether the search results are relevant or not.
Now, we run the evaluation using GPT-4o as the judge:.
It has been revealed that with this setup, we can now systematically evaluate the effectiveness of the DuckDuckGo search tool within our agent. Using LLM-as-a-judge, we can ensure our agent retrieves accurate and relevant information, leading to better performance.Any evaluation is easy to set up using this tutorial—just swap out the RAG_RELEVANCY_PROMPT_TEMPLATE for a different prompt template that fits your needs. Phoenix provides a variety of pre-written and pre-tested evaluation templates, covering areas like faithfulness, response coherence, factual accuracy, and more. Check out the Phoenix docs to explore the full list and find the best fit for your agent!
📻 🎙️ Hey, I generated an AI podcast about this blog post, check it out!
This podcast is generated via ngxson/kokoro-podcast-generator, using DeepSeek-R1 and Kokoro-TTS.
📅 04 Mar 2025 | ⏱️ 8 min read (1617 words, 📚 Deep Dive) | Source: Hugging Face
With the release of the Aya Vision family, our fresh 8B and 32B parameter vision-language models (VLMs), we are addressing one of the biggest challenges in AI: bringing multilingual performance to multimodal models.
According to recent reports, aya Vision is Cohere For AI's latest open-weight multilingual and multimodal model family, designed to be a strong foundation for language and vision understanding across 23 languages. It builds on the success of Aya Expanse, state-of-the-art multilingual language models, and extends it using a combination of advanced techniques. These include synthetic annotations, scaling up multilingual data through translation and rephrasing, and multimodal model merging – key methods that improve both language and vision understanding in a multilingual setting.
As a result, our models perform well in a variety of tasks, including image captioning, visual question answering, text generation, and translating both text and images into clear, natural-language text. We evaluated Aya Vision models on a set of datasets, including our new open-ended vision-language benchmark AyaVisionBench and a multilingual version of Wild Vision Bench (mWildVision) that is translated into 23 languages, which we release both of them for research.
In pair-wise comparison, Aya Vision 32B outperforms models more than 2x of its size, such as Llama-3.2 90B Vision, Molmo 72B, and Qwen2.5-VL 72B by win rates ranging from 50% to 64% on AyaVisionBench and 52% to 72% on mWildVision average across 23 languages.
Our compact and more efficient model Aya Vision 8B achieves the best performance in multilingual multimodal in its parameter class, outperforming leading models such as Qwen2.5-VL 7B, Pixtral 12B, Gemini Flash 1.5 8B, Llama-3.2 11B Vision, Molmo-D 7B, and Pangea 7B by up to 79% win-rates on AyaVisionBench and 81% on mWildBench.
Industry observers note that we release both 8B and 32B models as open weights for the research community to further accelerate multilingual multimodal progress. In this blog post, we share the key technical details behind Aya Vision models.
For a high-performance vision-language model, it is important to process images with arbitrary resolutions, especially high-resolution images. To enable this capability in Aya Vision, we dynamically resize and split any higher-resolution images into multiple tiles to generate rich image features from the image encoder. In Aya Vision models, we use the recently released SigLIP2-patch14-384 model as the initialization for the vision encoder.
While dynamic resizing enables processing high-resolution images, it also leads to a larger number of image tokens passing through the vision-language connector and LLM decoder. To improve latency and throughput, we use a downsampling method called Pixel Shuffle, to compress the number of image tokens by 4x. After downsampling, image tokens are aligned to the language model input embeddings through a vision-language connector and passed to an LLM decoder.
Industry observers note that for the text decoder, we use our multilingual language models. For Aya Vision 8B, we use an LLM that is initialized from Cohere Command R7B for improved instruction following and world knowledge and further post-trained using the Aya Expanse recipe consisting of diverse multilingual data, model merging, and preference training. For Aya Vision 32B, we initialize the language model from Aya Expanse 32B based on its state-of-the-art multilingual performance.
According to recent reports, we trained Aya Vision models in 2 stages – vision-language alignment and supervised fine-tuning (SFT). In the vision-language alignment stage, only the vision-language connector is trained, while the vision encoder and the language model weights are kept frozen. This enables rudimentary vision-language understanding by mapping the image encoder features to the language model embedding space. In the SFT stage, we train both the connector and the language model on a diverse set of multimodal tasks in 23 languages.
Industry observers note that one of the biggest challenges in developing a multilingual vision-language model is ensuring strong performance across underrepresented languages. To address this, we first gather synthetic annotations using a diverse pool of high-quality datasets in English, which lay the basis for our multilingual multimodal annotation. Following the synthetic annotations of English datasets, we translated a large volume of the data into 23 languages. To avoid translation artefacts and maintain fluent textual characteristics with high precision in answers, we then rephrased translated prompt/generation pairs by matching them with the original high-quality synthetic samples, expanding language coverage where real-world datasets are scarce. This improves both linguistic fluency and alignment between vision and text, allowing Aya Vision to exhibit superior image understanding in multiple languages.
Our 8B model, when only supervised fine-tuned with original academic datasets, reaches a 40.9% win rate across 23 languages in AyaVisionBench against Pangea 7B, which is a multilingual VLM, whereas synthetic annotations and scaling up the multilingual data lead to a 58.1% win rate with a gain of 17.2%. This significant improvement showcases the impact of significant investment in multilingual data coverage.
A state-of-the-art vision-language model should excel not only in image understanding but also in conversational context, where the model is expected to generate a high-quality response to both image and text inputs. To address this, inspired by our previous research on model merging, a technique that combines multiple trained models, we merge the base language model with the fine-tuned vision-language model.
Model merging enhances the generative capabilities of our final model that leads to a 70% win rates across 23 languages on AyaVisionBench against Pangea 7B, improving the multimodal win rate by 11.9% compared to the model before merging.
Multimodal model merging also enables our Aya Vision models to excel in text-only tasks as measured in mArenaHard datasets compared with the other leading vision-language models.
Finally, we scale our recipe from 8B to 32B, resulting in the state-of-the-art open-weight multilingual vision-language model – Aya Vision 32B which highlights significant improvements in win rates due to the stronger initialization of the text-backbone, and outperforms models more than 2x of its size, such as Llama-3.2 90B Vision, Molmo 72B, and Qwen2.5-VL 72B by win rates ranging from 49% to 63% on AyaVisionBench and 52% to 72% on mWildVision average across 23 languages.
Together with Aya Vision models, we also release a high-quality multilingual vision-language benchmark called AyaVisionBench, constructed based on real-world applications, covering 23 languages and 9 distinct task categories, with 135 image-question pairs per language.
We make this evaluation set available to the research community to push forward multilingual multimodal evaluations. This dataset is designed to assess a model’s ability to perform a diverse range of vision-language tasks, including captioning, chart and figure understanding, identifying differences between two images, general visual question answering, OCR, document understanding, text transcription, reasoning involving logic and math, and converting screenshots to code. By incorporating multiple languages and task types, the dataset provides a broad and challenging evaluation framework for assessing cross-lingual and multimodal understanding.
To create this dataset, we first selected images from the Cauldron held-out test set, a large collection derived from 50 high-quality datasets, ensuring they had not been seen during training. For each image, we then generated a corresponding question that explicitly required visual context for an answer. These questions were synthetically generated and subsequently refined through a two-stage verification process. First, human annotators reviewed and validated each question to ensure it was clear, relevant, and truly dependent on the image. This rigorous selection and validation process ensures that the dataset serves as a robust benchmark for evaluating vision-language models in multilingual and real-world settings.
According to recent reports, communication happens in many forms and in many languages. With our leading research and development, we’ve released a model that facilitates connection, whether in text or visual, in 23 different languages today.
It has been revealed that aya Vision has a wide range of practical applications, where one notable example is its availability on WhatsApp, one of the most broadly used communications platforms in the world. This allows a massive audience of global citizens who speak a multitude of languages to utilize the capabilities of Aya Vision on a platform they use to communicate every single day.
Download weights and datasets from the Aya Vision collection on Hugging Face.Try Aya Vision using our Hugging Face Space or text it on WhatsappBuild on Aya using our colab example.
Learn more about our ongoing efforts around multilingual.
This work wouldn’t have been possible without the core Aya Vision technical team:.
Saurabh Dash, Oliver Nan, John Dang, Arash Ahmadian Dehkordi, Shivalika Singh, Alejandro Salamanca, Bharat Venkitesh, Vlad Shmyhlo, Walter Beller-Morales, Jeremy Pekmez, Jason Ozuzu, Madeline Smith, Marzieh Fadaee, Manoj Govindassamy, Sudip Roy, Matthias Gallé, Beyza Ermis, Ahmet Üstün, Sara Hooker.
Industry observers note that it also wouldn’t have been possible without the wider Cohere For AI and Cohere team who supported in many different ways. Special thanks to Sungjin Hong, Michael Kozakov, Pierre Richemond, Brittawnya Prince, Jim Payne, Kyle Lastovica, Jeff Colen, Jenna Cook, Viraat Aryabumi, Trent Fowler, Linus Chui, Meor Amer, Lucas Fayoux, Kyle Lastovica, Billy Trend, Acyr Locatelli, Morgan Norman, Florian Strub, Jon Ander Campos, Nick Frosst, Phil Blunsom, Aidan Gomez, Ivan Zhang.
Special thank you to Hugging Face for helping make this come together: Yoni Gozlan, Arthur Zucker, Pedro Cuenca, Aritra Roy Gosthipaty, Merve Noyan, Vaibhav Srivastav.
In a recent development, [1] Aya Expanse: Combining Research Breakthroughs for a New Multilingual Frontier[2] Pangea: A Fully Open Multilingual Multimodal LLM for 39 Languages[3] WildVision: Evaluating Vision-Language Models in the Wild with Human Preferences[4] SigLIP 2: Multilingual Vision-Language Encoders with Improved Semantic Understanding, Localization, and Dense Features[5] What matters when building vision-language models?[6] Molmo and PixMo: Open Weights and Open Data for State-of-the-Art Vision-Language Models[7] How Far Are We to GPT-4V? Closing the Gap to Commercial Multimodal Models with Open-Source Suites.
📻 🎙️ Hey, I generated an AI podcast about this blog post, check it out!
This podcast is generated via ngxson/kokoro-podcast-generator, using DeepSeek-R1 and Kokoro-TTS.
📅 05 Nov 2026 | ⏱️ 16 min read (3120 words, 📚 Deep Dive) | Source: Sitepoint
Stay up to date with AI tools, model releases, and developer workflows that matter.
Industry observers note that weekly. Free. One click to leave.
According to recent reports, 7 Day Free Trial. Cancel Anytime.
According to recent reports, you've finished building your website. The HTML, CSS, and JavaScript files are ready, everything works locally, and now you need somewhere to publish it.
Static website hosting is one of the simplest ways to get a website online. Many providers offer free intends, and you don't need to maintain a traditional web server.
The harder part is choosing the right provider. Some let you upload a single HTML file and share it immediately. Others connect to GitHub, automatically deploy code changes, and support entire development teams.
Industry observers note that we've compared eight static hosting providers, including TiinyHost, Cloudflare Pages, Netlify, Vercel, and GitHub Pages. Below, you'll find their free hosting limits, pricing, advantages, and drawbacks, along with recommendations for different types of projects.
Static website hosting is a service that stores and delivers pre-built website files, including HTML, CSS, JavaScript, images, and fonts.
Unlike traditional server-rendered websites, static sites don't need a server to generate each page when someone visits. The HTML is already prepared and can be delivered directly to the visitor's browser.
That doesn't mean static websites can't be interactive. JavaScript can still handle navigation, forms, filtering, and other features. Static sites can also communicate with external APIs or databases.
The main distinction is how pages are generated.
You can write a static website using plain HTML or generate one with frameworks and tools such as Astro, Hugo, Eleventy, or Next.js static export.
Static hosting is also commonly associated with Jamstack, an approach that separates the front end from back-end services.
There are three practical reasons:.
Lower hosting costs: Many providers let you publish smaller websites for free.
Simpler maintenance: There's no application server or server-side runtime to maintain for the static pages themselves.
Efficient content delivery: Static files can be cached across a content delivery network (CDN), reducing the distance between visitors and website assets.
Industry observers note that there are limitations, too. If your website requires user authentication, database operations, or server-side functionality, you'll need additional services or a hosting platform that supports them.
We compared eight providers based on their deployment methods, free plan allowances, pricing, and suitability for different projects.
Free hosting limits: Bandwidth, storage, build allowances, and restrictions.
Deployment process: Whether you can upload files directly or need a Git repository.
Custom domains and HTTPS: Support for publishing under your own domain.
Development features: Automatic deployments, preview environments, and integrations.
Pricing: What happens when a project exceeds its free allowance.
Usage restrictions: Whether free hosting is suitable for commercial projects.
The following table summarizes the main differences between all eight services.
It has been revealed that free plans aren't directly comparable. For example, Vercel restricts its Hobby strategy to personal, non-commercial use, while GitHub Pages prohibits using the service as free hosting for an online business or commercial SaaS.
It has been revealed that bandwidth limits also aren't the same as visitor limits. A website serving large images or downloadable files can consume its monthly allowance with relatively few visitors.
Cloudflare Pages is a strong choice for developers who want to host static websites without worrying about a conventional monthly bandwidth cap.
Sources indicate that you can connect a GitHub or GitLab repository, and Cloudflare automatically builds and deploys the website when you push changes. Direct uploads are also supported.
A maximum individual file size of 25 MiB.
Up to 100 custom domains per project.
Unlimited bandwidth for static assets.
The combination is useful for blogs, documentation websites, and other projects that primarily serve HTML, CSS, JavaScript, and images.
Cloudflare also provides preview deployments, custom domains, and HTTPS support.
No fixed bandwidth cap for static asset delivery.
Automatic deployments from Git.
Generous free plan for typical static websites.
Monthly build limits can matter for frequently updated projects.
Cloudflare's product range can make the initial setup less straightforward for beginners.
In a recent development, cloudflare is increasingly emphasizing Workers Static Assets for newly introduced projects. Pages remains available, but developers starting a new application should compare both deployment approaches.
For a conventional static website, however, Pages is still a practical option, particularly when traffic could grow beyond the limits of other free prepares.
See the official Cloudflare Pages limits for the current allowances.
Netlify combines static website hosting with tools designed to make development and deployment easier.
Connect a Git repository, configure your build settings, and Netlify can publish a new version whenever you push changes.
It also creates deploy previews, allowing you to inspect changes before merging them into your production branch.
This is useful when multiple people work on the same website or when you want to review design changes before publishing.
Netlify supports custom domains, HTTPS, serverless functions, and form handling.
Netlify's free plan uses a credit-based model with 300 credits per month.
Under the current pricing system:.
Production deployments consume 15 credits each.
Bandwidth consumes 20 credits per GB.
Web requests consume 2 credits per 10,000 requests.
Deploy previews and branch deployments consume no deployment credits.
The paid Personal proposal starts at $9 per month and includes 1,000 monthly credits.
Convenient Git integration and deploy previews.
Built-in features such as forms and serverless functions.
Suitable for both simple websites and more advanced front-end projects.
Credit-based pricing requires monitoring several types of usage.
A busy site with frequent deployments can consume its free allowance faster than expected.
When comparing Netlify alternatives, Cloudflare Pages is particularly worth considering if your main concern is bandwidth.
In a recent development, for developers choosing between Vercel vs Netlify, the deciding factor is often the framework and workflow. Netlify offers a flexible approach to static site deployment, while Vercel has particularly close integration with Next.js.
Vercel is particularly well suited to Next.js applications, although it also supports React, Vue, Svelte, Astro, and other frameworks.
Like Netlify, Vercel connects to your Git repository and deploys updates automatically.
Every deployment receives its own URL, which helps developers review changes before publishing them to the main website.
Vercel also supports server-side rendering, functions, and other features beyond traditional static site hosting.
The Hobby blueprint is free and includes:.
100 GB of Fast Data Transfer per month.
Automatic deployments from Git.
HTTPS and custom domain support.
There is one important restriction: Vercel Hobby is intended for personal, non-commercial use only.
If you're deploying a business website or another commercial project, you'll need an appropriate paid initiative.
Vercel Pro starts at $20 per month.
Convenient deployment workflow for Next.js.
Automatic preview environments.
Supports both static and server-rendered applications.
The free strategy excludes commercial use.
Paid usage can involve multiple resource-based charges.
If you're building a personal Next.js application, Vercel is an obvious candidate. For a basic HTML website, however, its additional framework features may be unnecessary.
GitHub Pages is a straightforward way to publish a website directly from a GitHub repository.
It works particularly well for developer portfolios, project documentation, open-source websites, and small informational sites.
You can upload HTML, CSS, and JavaScript files to a repository, configure GitHub Pages, and publish them under a github.io subdomain.
Custom domains are also supported.
GitHub Pages can serve existing static files or build websites using supported workflows, including Jekyll and GitHub Actions.
According to GitHub's documentation:.
Published websites have a maximum size of 1 GB.
Bandwidth has a soft limit of 100 GB per month.
Builds have a soft limit of 10 per hour.
Free accounts can publish Pages sites from public repositories.
The bandwidth and build restrictions are soft limits, meaning they aren't necessarily enforced as strict cutoffs.
Free hosting for eligible projects.
Simple integration with GitHub repositories.
Well suited to documentation and open-source projects.
Free accounts require a public repository for Pages.
GitHub Pages is not intended for running online businesses, e-commerce websites, or commercial SaaS products.
GitHub Pages is particularly convenient if your code already lives on GitHub and you only need to publish documentation or a portfolio.
For commercial websites, Cloudflare Pages or Netlify may be more appropriate.
The GitHub Pages documentation explains its hosting limits and usage restrictions.
Not every website needs a repository, deployment pipeline, or command-line interface.
If you've created a simple HTML page and want to share it, TiinyHost lets you upload an HTML file or ZIP archive and publish it under a shareable URL.
It can also host PDFs, making it useful for sharing documents and presentations alongside website projects.
Recent findings suggest that the main advantage is the upload process. You don't need to configure a repository or install development tools before publishing.
This makes TiinyHost suitable for:.
Sharing a prototype with a client.
Publishing a simple HTML landing page.
Testing an AI-generated website.
Hosting a small portfolio or demo.
Sharing an HTML file with someone who doesn't use Git.
The free blueprint includes one active site, a 3 MB project upload limit, and an allowance of 5,000 monthly visits.
Paid plans increase those limits.
The Tiny plan costs €5 per month when billed monthly. It supports uploads up to 25 MB and includes built-in analytics.
The Solo blueprint starts at €13 per month when billed monthly and adds features such as custom domains, password protection, and additional projects.
Annual billing is available at lower effective monthly prices.
No Git repository or command line required.
Quick way to host an HTML file.
Suitable for previews and smaller projects.
The free blueprint's 3 MB limit is restrictive for websites with many images or other assets.
Custom domains require the Solo plan or higher.
Upload-based publishing is less convenient than Git automation for frequently updated websites.
For someone who simply needs free HTML hosting to share a small project, TiinyHost is worth considering.
For a larger production website that receives regular updates, Git-based hosting is likely to be more manageable.
Firebase Hosting is Google's hosting service for static websites and web application assets.
It integrates with other Firebase products, including Authentication, Cloud Firestore, and Cloud Functions.
That makes it useful when a website needs static hosting but also relies on Google's back-end services.
Deployment is handled through the Firebase command-line interface.
After configuring your project, you can deploy using:.
Firebase distributes website assets through its CDN and supports custom domains with SSL certificates.
Firebase Hosting's Spark blueprint includes:.
Custom domains and SSL support.
The Blaze plan uses pay-as-you-go billing while retaining applicable no-cost allowances.
One detail worth checking is the distinction between Firebase Hosting and Firebase App Hosting. They are separate products with different features and pricing models.
Integrates with Firebase Authentication and Firestore.
Useful for applications already using Google's developer services.
Initial setup is more involved than uploading an HTML file.
The daily transfer allowance may become restrictive for larger websites.
Firebase Hosting makes the most sense when Firebase is already part of your application.
For a standalone static blog or portfolio that doesn't use Firebase services, Cloudflare Pages or GitHub Pages may be simpler.
Amazon S3 and CloudFront offer a different approach to static hosting.
Instead of using a platform that handles the entire deployment process, you combine AWS services to store and deliver your website.
S3 stores the website files, while CloudFront distributes them through a CDN.
This setup provides control over caching, permissions, security, and integration with other AWS services.
It can be suitable for organizations already using AWS or developers who need specific infrastructure configurations.
AWS uses usage-based pricing for S3 storage, requests, and applicable CloudFront usage.
Free allowances may apply depending on your account and the current AWS pricing program, but you should calculate costs based on your expected traffic, storage, and requests.
Unlike simpler hosting services, there isn't one fixed monthly price for every website.
Control over hosting infrastructure.
Integration with other AWS services.
Flexible CDN and access configurations.
Several services can contribute to the final bill.
Incorrect permissions or origin settings can cause access errors.
One common glitch when setting up S3 static website hosting is receiving a 403 Forbidden error because of bucket permissions or CloudFront origin configuration.
Industry observers note that AWS recommends using CloudFront Origin Access Control with a regular S3 bucket origin so that the bucket can remain private. This differs from exposing the S3 website endpoint directly, which does not support HTTPS on its own.
AWS S3 and CloudFront are worth considering if you need that level of control. For a small static website, a managed hosting platform usually requires less setup.
Render is a cloud platform that supports static websites alongside web services, databases, background workers, and other application components.
Its static hosting works through a Git repository.
Connect your repository, select the build command and publish directory, and Render automatically deploys your website.
The service includes CDN delivery, custom domains, and managed TLS certificates.
Render is particularly useful when your project includes both a static front end and back-end services that you want to manage through the same platform.
Render's Hobby workspace is free and includes:.
5 GB of outbound bandwidth per month.
500 standard build pipeline minutes per month.
Additional bandwidth is billed at $0.15 per GB under the current pricing structure, so the Hobby workspace should not be treated as unlimited free hosting.
The Pro workspace costs $25 per month, excluding any applicable usage-based compute charges.
Static websites and back-end services on one platform.
Automatic Git-based deployments.
Custom domains and HTTPS support.
The 5 GB included bandwidth allowance is relatively small.
Additional usage can create charges.
Render makes sense when you're already using it for other parts of an application.
If you only need to host a static HTML website, Cloudflare Pages offers a more generous bandwidth allowance without the additional platform complexity.
Free static website hosting can be sufficient for a personal portfolio, documentation site, prototype, or small informational website.
However, the restrictions vary considerably between providers.
Sources indicate that some hosts measure data transfer, while others use visitor counts or a credit system. Check how each provider calculates usage rather than comparing headline numbers alone.
Build and deployment allowances.
Industry observers note that if your website rebuilds whenever you publish content, deployment limits matter. A blog updated a few times a month has different requirements from an application receiving dozens of deployments every day.
Recent findings suggest that free hosting doesn't always mean you can run a business website. Vercel's Hobby initiative and GitHub Pages have restrictions that may rule out certain commercial projects.
It has been revealed that some services include custom domains on free aims. Others require an upgrade before you can connect one.
A free plan might stop serving additional usage, while another provider may bill for overages.
Before publishing a production website, check the provider's billing behavior and configure spending controls where available.
The right service depends primarily on how you build your website and what you intend to do with it.
For most developers publishing a conventional static website, Cloudflare Pages is a reasonable starting point.
If you're working with Git and want convenient previews and deployment tools, Netlify is another good choice.
For small files, temporary demos, and client previews, a simpler upload-based service may save time.
You should also consider how often the website will change.
Uploading files manually may be fine for a page that rarely changes. For a website with regular content updates, automated deployments from Git will generally be easier to maintain.
Publishing your website is only the first step. If you want search engines to discover and understand your pages, check the technical SEO basics before sharing the URL.
Every important page should have a descriptive HTML title and a relevant meta description.
You can use the Meta Tags Generator to create the necessary markup.
Open Graph tags help control how a page appears when shared on platforms that support them.
Set the title, description, canonical page URL where appropriate, and preview image.
Recent findings suggest that A robots.txt file tells compliant crawlers which paths they may access. It doesn't guarantee indexing or prevent a public page from appearing in search results.
Use the Robots.txt Generator to create your crawler rules.
Include a sitemap with the canonical URLs you want search engines to discover.
Structured data helps search engines interpret eligible content.
Depending on the website, you may want Organization, Article, BreadcrumbList, or other relevant schema types.
The JSON-LD Schema Generator can help generate markup.
Before considering deployment complete:.
Confirm the correct domain loads over HTTPS.
Check canonical tags and redirect behavior.
Make sure key pages don't contain unintended noindex directives.
Test page performance and Core Web Vitals.
Verify the website in Google Search Console.
Static hosting makes serving website files relatively straightforward, but technical SEO still requires configuration and testing.
In a recent development, cloudflare Pages is a good general-purpose choice because of its free static asset bandwidth and Git integration. Netlify is well suited to teams that need deploy previews, while GitHub Pages works well for portfolios and documentation. The best option depends on your deployment workflow, traffic requirements, and whether the website is commercial.
Yes. TiinyHost, Cloudflare Pages, Netlify, GitHub Pages, Firebase Hosting, Render, and several other services offer free hosting options. Most free prepares have restrictions involving bandwidth, deployments, storage, or usage. Check the terms before using a free proposal for a business website.
It has been revealed that A small static website can cost nothing to host if it stays within a provider's free allowances. Paid plans vary from fixed monthly subscriptions to usage-based pricing. Domain registration, paid back-end services, and additional storage or bandwidth may increase the total cost.
In a recent development, for a standalone HTML file, upload-based hosting is generally the simplest approach. Services such as TiinyHost let you publish a file without configuring Git or a build process. If the project already lives in a GitHub repository, GitHub Pages or Cloudflare Pages may be more convenient.
GitHub Pages is a sensible option for documentation, open-source projects, and personal portfolios. Netlify offers more deployment features, including preview environments, forms, and functions. It also supports commercial projects, making it more appropriate for some business websites that would fall outside GitHub Pages' permitted uses.
Static website hosting doesn't need to be expensive or complicated. The important part is choosing a service that matches your website and deployment process.
It has been revealed that cloudflare Pages is a good starting point for static websites that need generous free bandwidth. Netlify is useful for Git-based development, while GitHub Pages suits personal projects and documentation.
If you're publishing a small HTML file or sharing a prototype, upload-based hosting may be all you need.
7 Day Free Trial. Cancel Anytime.
📅 04 Mar 2025 | ⏱️ 2 min read (487 words, 📖 Standard) | Source: Hugging Face
We are pleased to announce our partnership with JFrog, creators of the JFrog Software Supply Chain Platform, as part of our long-standing commitment to provide a safe and reliable platform for the ML community.
We have decided to add JFrog's scanner to our platform to continue improving security on the Hugging Face Hub. JFrog's scanner brings new functionality to scanning, aimed at reducing false positives on the Hub. Indeed, what we currently observe is that model weights can contain code that is executed upon deserialization and sometimes at inference time, depending on the format. This code is oftentimes a non harmful practicality for the developer. As our picklescan scanner only performs pattern matching on module names, we cannot always confirm that usage of a given function or module is malicious. JFrog goes a step deeper and will parse and analyze code it finds in models weights to check for potential malicious usage.
Interested in joining our security partnership / providing scanning information on the Hub? Please get in touch with us over at security@huggingface.co.
To share models, we serialize weights, configs and other data structures we use to interact with the models, in order to facilitate storage and transport. Some serialization formats are vulnerable to nasty exploits, such as arbitrary code execution (looking at you pickle), making shared models that use those formats potentially dangerous.
As Hugging Face has become a popular platform for model sharing, we’d like to help protect the community from this, hence why we have developed tools like picklescan and why we are integrating JFrog in our scanner suite.
Industry observers note that pickle is not the only exploitable format out there, see for reference how one can exploit Keras Lambda layers to achieve arbitrary code execution. The good news is that JFrog catches both of these exploits and more in additional file formats – see their Model Threats page for up to date scanner information.
Read all our documentation on security here: https://huggingface.co/docs/hub/security 🔥.
It has been revealed that there's nothing you have to do to benefit from this! All public model repositories will be scanned by JFrog automatically as soon as you push your files to the Hub. Here is an example repository you can check out to see the feature in action: mcpotato/42-eicar-street.
Note that you might not see a scan for your model as of today, as we have millions of model repos. It may take us some time to catch up 😅.
In total, we have already scanned hundreds of millions of files, because we believe that empowering the community to share models in a safe and frictionless manner will lead to growth for the whole field.
📻 🎙️ Hey, I generated an AI podcast about this blog post, check it out!
This podcast is generated via ngxson/kokoro-podcast-generator, using DeepSeek-R1 and Kokoro-TTS.
"Keep hugging those models safely" - that's the closing line, love it!
📅 07 Mar 2025 | ⏱️ 20 min read (4078 words, 📚 Deep Dive) | Source: Hugging Face
As LLMs continue to evolve, they are becoming smaller and smarter, enabling them to run directly on your phone. Take, for instance, the DeepSeek R1 Distil Qwen 2.5 with 1.5 billion parameters, this model really highlights how advanced AI can now fit into the palm of your hand!
Sources indicate that in this blog, we will guide you through creating a mobile app that allows you to chat with these powerful models locally. The complete code for this tutorial is available in our EdgeLLM repository. If you've ever felt overwhelmed by the complexity of open-source projects, fear not! Inspired by the Pocket Pal app, we will help you build a straightforward React Native application that downloads LLMs from the Hugging Face hub, ensuring everything remains private and runs on your device. We will utilize llama.rn, a binding for llama.cpp, to load GGUF files efficiently!
This tutorial is designed for anyone who:.
By the end of this guide, you will have a fully functional app that allows you to interact with your favorite models.
Before we dive into building our app, let's talk about which models work well on mobile devices and what to consider when selecting them.
When running LLMs on mobile devices, size matters significantly:.
Sources indicate that when downloading GGUF models, you'll encounter various quantization formats. Understanding these can help you choose the right balance between model size and performance:.
Here are some models that perform well on mobile devices:.
To find additional GGUF models on Hugging Face:.
It has been revealed that when selecting a model, consider both the parameter count and the quantization level. For example, a 7B model with Q2_K quantization might run better than a 2B model with Q8_0 quantization. So if you can fit a small model comfortably on your device try to use a bigger quantized model instead, it might have a better performance.
Sources indicate that react Native is a popular framework for building mobile applications using JavaScript and React. It allows developers to create apps that run on both Android and iOS platforms while sharing a significant amount of code, which speeds up the development process and reduces maintenance efforts.
Before you can start coding with React Native, you need to set up your environment properly.
Recent findings suggest that node.js: Node.js is a JavaScript runtime that allows you to run JavaScript code. It is essential for managing packages and dependencies in your React Native project. You can install it from Node.js downloads.
Industry observers note that react-native-community/cli: This command installs the React Native command line interface (CLI), which provides tools to create, build, and manage your React Native projects. Run the following command to install it:.
To run your app during development, you will need an emulator or a simulator:.
If you are on Windows or Linux:.
If you are curious about the difference between simulators and emulators, you can read this article: Difference between Emulator and Simulator, but to put it simply, emulators replicate both hardware and software, while simulators only replicate software.
For setting up Android Studio, follow this excellent tutorial by Expo : Android Studio Emulator Guide.
You can find the full code for this project in the EdgeLLM repo here, there are two folders:.
First, we need to initiate the app using @react-native-community/cli:.
App folders are organized as follows:.
To run the project, and see how it looks like on your own virtual device, follow these steps:.
Navigate to the Project Directory:.
Navigate to the iOS Folder and Install:.
Start the Metro Bundler: Run the following command in the project folder (EdgeLLMPlus or EdgeLLMBasic):.
Launch the App on iOS or Android Simulator: Open another terminal and run:.
This will build and launch the app on your emulator/simulator to test the project before we start coding.
Recent findings suggest that running a React Native application requires either an emulator/simulator or a physical device. We'll focus on using an emulator since it provides a more streamlined development experience with your code editor and debugging tools side by side.
We start by ensuring our development environment is ready, we need to be in the project folder and run the following commands:.
In a newly introduced terminal, we will launch the app on our chosen platform:.
This should build and launch the app on your emulator/simulator.
Sources indicate that first, let's install the required packages. We aim to load models from the Hugging Face Hub and run them locally. To achieve this, we need to install :.
Let's run the app on our emulator/simulator as we highlighted before so we can start the development.
We will start by deleting everything from the App.tsx file, and creating an empty code structure like the following :.
Inside the return statement of the App function we define the UI rendered, and outside we define the logic, but all code will be inside the App function.
We will have a screen that looks like this:.
The text "Hello World" is not displayed properly because we are using a simple View component, we need to use a SafeAreaView component to display the text correctly, we will deal with that in the next sections.
Now let's think about what our app needs to track for now:.
Here's how we implement these states using React's useState hook (we will need to import it from react).
This will be added to the App.tsx file inside the App function but outside the return statement as it's part of the logic.
The Message type defines the structure of chat messages, specifying that each message must have a role (either 'user' or 'assistant' or 'system') and content (the actual message text).
Now that we have our basic state management set up, we need to think about how to:.
Let's tackle these one by one in the next sections...
Recent findings suggest that let's start by defining the model formats our app is going to support and their repositories. Of course llama.rn is a binding for llama.cpp so we need to load GGUF files. To find GGUF repositories for the models we want to support, we can use the search bar on Hugging Face and search for GGUF files for a specific model, or use the script quantize_gguf.py provided here to quantize the model ourselves and upload the files to our hub repository.
Recent findings suggest that the HF_TO_GGUF object maps user-friendly model names to their corresponding Hugging Face repository paths. For example:.
The modelFormats array contains the list of model options that will be displayed to customers in the selection screen, we chose Llama 3.2 1B Instruct, DeepSeek R1 Distill Qwen 1.5B, Qwen 2 0.5B Instruct and SmolLM2 1.7B Instruct as they are the most popular small models.
Next, let's create a way to fetch and display available GGUF model files from the hub for our selected model format.
Recent findings suggest that when a user selects a model format, we make an API call to Hugging Face using the repository path we mapped in our HF_TO_GGUF object. We're specifically looking for files that end with '.gguf' extension, which are our quantized model files.
Industry observers note that once we receive the response, we extract just the filenames of these GGUF files and store them in our availableGGUFs state using setAvailableGGUFs. This allows us to show users a list of available GGUF model variants they can download.
Note: Ensure to import axios and Alert at the top of your file if not already imported.
In a recent development, we need to test that the function is working correclty, let's add a button to the UI to trigger the function, instead of View we will use a SafeAreaView (more on that later) component, and we will display the available GGUF files in a ScrollView component. the onPress function is triggered when the button is pressed:.
This should look something like this :.
Note: For the whole code until now you can check the first_checkpoint branch in the EdgeLLMBasic folder here.
Industry observers note that now let's implement the model download functionality in the handleDownloadModel function which should be called when the user clicks on the download button. This will download the selected GGUF file from Hugging Face and store it in the app's Documents directory:.
Recent findings suggest that we could have implemented the api requests inside the handleDownloadModel function, but we will keep it in a separate file to keep the code clean and readable. handleDownloadModel calls the downloadModel function, located in src/api, which accepts three parameters: modelName, downloadUrl, and a progress callback function. This callback is triggered during the download process to revision the progress. Before downloading we need to have the selectedModelFormat state set to the model format we want to download.
In a recent development, inside the downloadModel function we use the RNFS module, part of the react-native-fs library, to access the device's file system. It allows developers to read, write, and manage files on the device's storage. In this case, the model is stored in the app's Documents folder using RNFS.DocumentDirectoryPath, ensuring that the downloaded file is accessible to the app. The progress bar is updated accordingly to reflect the current download status and the progress bar component is defined in the components folder.
Sources indicate that let's create src/api/model.ts and copy the code from the src/api/model.ts file in the repo. The logic should be simple to understand. The same goes for the progress bar component in the src/components folder, it's a simple colored View where the width is the progress of the download.
It has been revealed that now we need to test the handleDownloadModel function, let's add a button to the UI to trigger the function, and we will display the progress bar. This will be added under the ScrollView we added before.
In a recent development, in the UI we show a list of the supported model formats and a button to download the model, when the user chooses the model format and clicks on the button the progress bar should be displayed and the download should start. In the test we hardcoded the model to download Llama-3.2-1B-Instruct-Q2_K.gguf, so we need to select Llama-3.2-1B-Instruct as a model format for the function to work, we should have something like:.
Note: For the whole code until now you can check the second_checkpoint branch in the EdgeLLMBasic folder here.
Next, we will implement a function to load the downloaded model into a Llama context, as detailed in the llama.rn documentation available here. If a context is already present, we will release it, set the context to null, and reset the conversation to its initial state. Subsequently, we will utilize the initLlama function to load the model into a newly introduced context and revision our state with the newly initialized context.
We need to call the loadModel function when the user clicks on the download button, so we need to add it inside the handleDownloadModel function right after the download is complete if it's successful.
Note: For the whole code until now you can check the third_checkpoint branch in the EdgeLLMBasic folder here.
With the model now loaded into our context, we can proceed to implement the conversation logic. We'll define a function called handleSendMessage, which will be triggered when the user submits their input. This function will patch the conversation state and send the updated conversation to the model via context.completion. The response from the model will then be used to further update the conversation, which means that the conversation will be updated twice in this function.
To test the handleSendMessage function we need to add an input text field and a button to the UI to trigger the function, and we will display the conversation in the ScrollView component.
If everything is implemented correctly, we should be able to send messages to the model and see the conversation in the ScrollView component, it's not beautiful of course but it's a good start, we will improve the UI later. The result should look like this:.
Note: For the whole code until now you can check the fourth_checkpoint branch in the EdgeLLMBasic folder here.
Now that we have the core functionality implemented, we can focus on the UI. The UI is straightforward, consisting of a model selection screen with a list of models and a chat interface that includes a conversation history and a user input field. During the model download phase, a progress bar is displayed. We intentionally avoid adding many screens to keep the app simple and focused on its core functionality. To keep track of which part of the app is being used, we will use a an other state variable called currentPage, it will be a string that can be either modelSelection or conversation. We add it to the App.tsx file.
For the css we will use the same styles as in the EdgeLLMBasic repo, you can copy the styles from there.
We will start by working on the model selection screen in the App.tsx file, we will add a list of model formats (you need to do the necessary imports and delete the previous code in the SafeAreaView component we used for testing):.
We use SafeAreaView to ensure that the app is displayed correctly on devices with different screen sizes and orientations as we did in the previous section, and we use ScrollView to allow the user to scroll through the model formats. We also use modelFormats.map to map over the modelFormats array and display each model format as a button with a style that changes when the model format is selected. We also use the currentPage state to display the model selection screen only when the currentPage state is set to modelSelection, this is done by using the && operator. The TouchableOpacity component is used to allow the user to select a model format by pressing on it.
Now let's define handleFormatSelection in the App.tsx file:.
We store the selected model format in the state and clear the previous list of GGUF files from other selections, and then we fetch the newly introduced list of GGUF files for the selected format. The screen should look like this on your device:.
Next, let's add the view to show the list of GGUF files already available for the selected model format, we will add it below the model format selection section.
We need to only show the list of GGUF files if the selectedModelFormat state is not null, which means a model format is selected by the user.
We need to define handleGGUFSelection in the App.tsx file as a function that will trigger an alert to confirm the download of the selected GGUF file. If the user clicks on Yes, the download will start, else the selected GGUF file will be cleared.
handleDownloadAndNavigate is a simple function that will download the selected GGUF file by calling handleDownloadModel (implemented in the previous sections) and navigate to the conversation screen after the download is complete.
Now after clicking on a GGUF file, we should have an alert to confirm or cancel the download :.
We can add a simple ActivityIndicator to the view to display a loading state when the available GGUF files are being fetched. For that we will need to import ActivityIndicator from react-native and define isFetching as a boolean state variable that will be set to true in the start of the fetchAvailableGGUFs function and false when the function is finished as you can see here in the code, and add the ActivityIndicator to the view just before the {availableGGUFs.map((file, index) => (...))} to display a loading state when the available GGUF files are being fetched.
The app should look like this for a brief moment when the GGUF files are being fetched:.
In a recent development, now we should be able to see the different GGUF files available for each model format when we click on it, and we should see the alert when clicking on a GGUF confirming if we want to download the model. Next we need to add the progress bar to the model selection screen, we can do it by importing the ProgressBar component from src/components/ProgressBar.tsx in the App.tsx file as we did before, and we will add it to the view just after the {availableGGUFs.map((file, index) => (...))} to display the progress bar when the model is being downloaded.
It has been revealed that the download progress bar will now be positioned at the bottom of the model selection screen. However, this means that users may need to scroll down to view it. To address this, we will modify the display logic so that the model selection screen is only shown when the currentPage state is set to 'modelSelection' and the added condition that there is no ongoing model download.
After confirming a model download we should have a screen like this :.
Note: For the whole code until now you can check the fifth_checkpoint branch in the EdgeLLMBasic folder here.
Now that we have the model selection screen, we can start working on the conversation screen with the chat interface. This screen will be displayed when currentPage is set to conversation. We will add a conversation history and a user input field to the screen. The conversation history will be displayed in a scrollable view, and the user input field will be displayed at the bottom of the screen out of the scrollable view to stay visible. Each message will be displayed in a different color depending on the role of the message (user or assistant).
We need to add just under the model selection screen the view for the conversation screen:.
We use different styles for the user messages and the model messages, and we use the conversation.slice(1) to remove the first message from the conversation, which is the system message.
Sources indicate that we can now add the user input field at the bottom of the screen and the send button (they should not be inside the ScrollView). As I mentioned before, we will use the handleSendMessage function to send the user message to the model and update the conversation state with the model response.
When the user clicks on the send button, the handleSendMessage function will be called and the isGenerating state will be set to true. The send button will then be disabled and the text will change to 'Generating...'. When the model finishes generating the response, the isGenerating state will be set to false and the text will change back to 'Send'.
Note: For the whole code until now you can check the main branch in the EdgeLLMBasic folder here.
The conversation page should now look like this:.
In a recent development, congratulations you've just built the core functionality of your first AI chatbot, the code is available here ! You can now start adding more features to the app to make it more user friendly and efficient.
The app is now fully functional, you can download a model, select a GGUF file, and chat with the model, but the user experience is not the best. In the EdgeLLMPlus repo, I've added some other features, like on the fly generation, automatic scrolling, the inference speed tracking, the thought process of the model like deepseek-qwen-1.5B,... we will not go into details here as it will make the blog too long, we will go through some of the ideas and how to implement them but the whole code is available in the repo.
Sources indicate that the app generates responses incrementally, producing one token at a time rather than delivering the entire response in a single batch. This approach enhances the user experience, allowing consumers to begin reading the response as it is being formed. We achieve this by utilizing a callback function within context.completion, which is triggered after each token is generated, enabling us to patch the conversation state accordingly.
According to recent reports, auto Scrolling ensures that the latest messages or tokens are always visible to the user by automatically scrolling the chat view to the bottom as new content is added. To implement that we need we use a reference to the ScrollView to allow programatic control over the scroll position, and we use the scrollToEnd method to scroll to the bottom of the ScrollView when a new message is added to the conversation state. We also define an autoScrollEnabled state variable that will be set to false when the user scrolls up more than 100px from the bottom of the ScrollView.
Inference Speed Tracking is a feature that tracks the time taken to generate each token and displays under each message generated by the model. This feature is easy to implement because the CompletionResult object returned by the context.completion function contains a timings property which is a dictionary containing many metrics about the inference process. We can use the predicted_per_second metric to track the speed of the model.
The thought process is a feature that displays the thought process of the model like deepseek-qwen-1.5B. The app identifies special tokens like and to handle the model's internal reasoning or "thoughts." When a token is encountered, the app enters a "thought block" where it accumulates tokens that represent the model's reasoning. Once the closing token is detected, the accumulated thought is extracted and associated with the message, allowing users to toggle the visibility of the model's reasoning. To implement this we need to add a thought and showThought property to the Message type. message.thought will store the reasoning of the model and message.showThought will be a boolean that will be set to true when the user clicks on the message to toggle the visibility of the thought.
In a recent development, the app uses the react-native-markdown-display package to render markdown in the conversation. This package allows us to render code in a better format.
We added a checkDownloadedModels function to the App.tsx file that will check if the model is already downloaded on the device, if it's not we will download it, if it is we will load it into the context directly, and we added some elements in the UI to show if a model is already downloaded or not.
Industry observers note that we added two key buttons in the UI, the stop button and the back button. The stop button will stop the generation of the response and the back button will navigate to the model selection screen. For that, We added a handleStopGeneration function to the App.tsx file that will stop the generation of the response by calling context.stop and set the isGenerating state to false. We also added a handleBack function to the App.tsx file that will navigate to the model selection screen by setting the currentPage state to modelSelection.
For debugging we use Chrome DevTools as in web development :.
Sources indicate that 3. Find your source files4. Set breakpoints by clicking on line numbers5. Use debugging controls (top right corner):.
This will log the output in the console of Chrome DevTools.
To enhance the user experience, we can add some features like:.
I'm sure you can think of some really cool features to add to the app, feel free to implement them and share them with the community 🤗.
I would like to thank the following people for reviewing this blog post and providing valuable feedback:.
Their expertise and suggestions helped improve the quality and accuracy of this guide.
You now have a working React Native app that can:.
This implementation serves as a foundation for building more sophisticated AI-powered mobile applications. Remember to consider device capabilities when selecting models and tuning parameters.
In a recent development, would be great for you to give us a better idea of size on disk for this. Uploading to Play/IOS store considerations. Maybe integration from pytorch into tensorflow to take advantage of the M chip in Pixel to really make this stuff scream, using a tool like google-ai-edge/ai-edge-torch. Great start.
Downloading the model after installation is a great idea, as it keeps the app lightweight and gives users the flexibility to choose the model that best suits their needs.
Hi can I convert VLMs into GGUF?
very helpfull , most of this small models are good in english only , you guys can implement a translation feature model like ML kit to translate to multiple language but i tried it the context is missing since i am translating word to word it miss context, any idea to do that ?
📅 05 Nov 2026 | ⏱️ 5 min read (1079 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
It has been revealed that weekly. Free. One click to leave.
Industry observers note that 7 Day Free Trial. Cancel Anytime.
Behind almost every Twitch tool you have ever seen, the stat trackers, the moderation bots, the stream overlays, the alert systems, sits one interface: the Twitch Helix API. Twitch is unusually generous with public data, and Helix is the door to it. If you have ever wondered how third-party sites know who is live, what a channel's viewership looks like, or details a Twitch profile page does not even display, this is the machinery.
This article is a practical overview of Helix for developers who have not used it yet: what it offers, how its authentication works, what people build with it, and where the sharp edges are.
It has been revealed that helix is Twitch's current REST API, served from api.twitch.tv/helix. It replaced the old "Kraken" API, which was fully retired in 2022, so any tutorial still showing Kraken endpoints is a sign to keep scrolling. Helix covers owners, streams, channels, games and categories, clips, chat, moderation actions, subscriptions, and events, with JSON in and JSON out.
Industry observers note that two things distinguish it from many platform APIs. First, a large share of it works without any user's permission, because the data is public by Twitch's own definition. Second, it is paired with EventSub, a push system that notifies your application when things happen (a stream goes live, a user follows, a message arrives) instead of forcing you to poll. Most serious Twitch tools use both: Helix for lookups, EventSub for live events.
Industry observers note that authentication is where most newcomers stall, mainly because Twitch offers several OAuth flows and tutorials rarely say which one you actually need. The short version:.
Industry observers note that every request needs a Client ID, which you get by registering an application in the Twitch developer console (two-factor authentication on your account is required first). Requests carry the Client ID and a bearer token together; forgetting the Client ID header is the classic mystery 401.
Recent findings suggest that app access tokens come from the client credentials flow, a single server-to-server request with your ID and secret. They have no user attached and that is fine, because public reads, user profiles, live streams, top games, clips, need no user context. For most read-only tools, this is the only flow you ever touch.
Tokens expire, so real applications cache them with their reported lifetime and refresh on a 401 rather than assuming a token lives forever.
A tour of the endpoints that power most tools:.
According to recent reports, users. Give the users endpoint a username and it returns the account's public record: display name, profile image, description, Affiliate or Partner status, and the account's exact creation timestamp. That last field is interesting because Twitch does not display it anywhere on a profile, yet it is one of the platform's most useful trust signals, moderators use account age to spot throwaway accounts, and streamers use it to filter giveaway entries. The creation date alone powers a small subcategory of tools: free account age checkers, such as Twitch account age checker, are essentially this one endpoint with a clean page around it, taking any public username and returning the creation date, age, avatar, and broadcaster status. It is a good illustration of how far a single well-chosen Helix field can go.
Industry observers note that streams. The stream's endpoint reports who is live right now, with titles, categories, thumbnail URLs, and viewer counts. This is the backbone of every "is my favorite streamer live" notifier and every directory-style site, and polling it over time is how stat trackers chart viewership history.
Sources indicate that games and categories. Top games, category search, and metadata. Combined with streams data, this is how analytics sites rank categories and how tools answer "how crowded is this category right now.".
In a recent development, clips and videos. Clip metadata, view counts, and creation tools. Highlight compilers and clip-sharing bots live here.
In a recent development, helix enforces a points-based rate limit per Client ID, and every response tells you where you stand through Ratelimit-Limit, Ratelimit-Remaining, and Ratelimit-Reset headers. Well-behaved tools read those headers and back off before hitting zero; badly behaved ones retry 429s in a loop and wonder why things get worse. For lookup-style tools the practical fix is caching, data like account creation dates never changes, so there is no reason to ask twice.
A few more edges worth knowing before they bite:.
According to recent reports, usernames change, IDs do not. Store user IDs, not logins, or your saved data will eventually point at the wrong person.
Recent findings suggest that missing users are not errors. Looking up a nonexistent username returns a successful response with an empty data array, so handle the empty case explicitly.
Batching exists. The customers endpoint takes up to 100 logins in one call, which matters the moment your tool checks lists instead of individuals.
Secrets stay server-side. The client secret identifies your application; calling the token endpoint from browser code hands your app's identity to anyone who opens devtools. Public-facing tools put a small server between the browser and Twitch.
Recent findings suggest that the reason Twitch's third-party ecosystem is so large is that the barrier is so low: one public API, generous free access, and a platform where small questions genuinely matter to people. That is why the space is full of narrow tools that each answer one thing well, when was this account created, is this channel live, how fast is this category growing, which clips popped this week. Most of them are a weekend of work on top of one or two endpoints, and some of them grow into real products.
Recent findings suggest that if you want to start, the path is short: register an application at the developer console, request an app access token, and call the people or streams endpoint for something you actually care about. The official documentation at dev.twitch.tv is current and well maintained, which is not something every platform can claim. Pick one piece of data Twitch collects but does not display, put a clean interface on it, and you are following the same recipe as most of the Twitch tools you already use.
7 Day Free Trial. Cancel Anytime.
📅 11 Mar 2025 | ⏱️ 10 min read (1913 words, 📚 Deep Dive) | Source: Hugging Face

TL;DR of L2D, the world's largest self-driving dataset!
State-of-the art Vision Language Models and Large Language Models are trained on open-source image-text corpora sourced from the internet, which spearheaded the recent acceleration of open-source AI. Despite these breakthroughs, the adoption of end-to-end AI within the robotics and automotive community remains low, primarily due to a lack of high quality, large scale multimodal datasets like OXE. To unlock the potential for robotics AI, Yaak teamed up with the LeRobot team at 🤗 and is excited to announce Learning to Drive (L2D) to the robotics AI community. L2D is the world’s largest multimodal dataset aimed at building an open-sourced spatial intelligence for the automotive domain with first class support for 🤗’s LeRobot training pipeline and models. Drawing inspiration from the best practices of source version control, Yaak also invites the AI community to search and discover novel episodes in our entire dataset (> 1 PetaBytes), and queue their collection for review to be merged into future release (R5+).
According to recent reports, table 1: Open source self-driving datasets (*excluding lidar and radar). Source.
In a recent development, L2D was collected with identical sensor suites installed on 60 EVs operated by driving schools in 30 German cities over the span of 3 years. The policies in L2D are divided into two groups — expert policies executed by driving instructors and student policies by learner drivers. Both the policy groups include natural language instructions for the driving task. For example, “When you have the right of way, take the third exit from the roundabout, carefully driving over the pedestrian crossing”.
Fig 1: Visualization: Nutron (3 of 6 cameras shown for clarity) Instructions: “When you have the right of way, drive through the roundabout and take the third exit”.
Expert policies have zero driving mistakes and are considered as optimal, whereas student policies have known sub optimality (Fig 2).
Fig 2: Student policy with jerky steering to prevent going into lane of the incoming truck.
It has been revealed that both groups cover all driving scenarios that are mandatory for completion to obtain a driving license within the EU (German version), for example, overtaking, roundabouts and train tracks. In the release (See below R3+), for suboptimal student policies, a natural language reasoning for sub-optimality will be included. F.ex “incorrect/jerky handling of the steering wheel in the proximity of in-coming traffic ” (Fig 2).
L2D (R2+) aims to be the largest open-source self-driving dataset that empowers the AI community with unique and diverse ‘episodes’ for training end-to-end spatial intelligence. With the inclusion of a full spectrum of driving policies (student and experts), L2D captures the intricacies of safely operating a vehicle. To fully represent an operational self-driving fleet, we include episodes with diverse environment conditions, sensor failures, construction zones and non-functioning traffic signals.
Recent findings suggest that both the expert and student policy groups are captured with the identical sensor setup detailed in the table below. Six RGB cameras capture the vehicle’s context in 360o, and on-board GPS captures the vehicle location and heading. An IMU collects the vehicle dynamics, and we read speed, gas/brake pedal, steering angle, turn signal and gear from the vehicle’s CAN interface. We synchronized all modality types with the front left camera (observation.images.front_left) using their respective unix epoch timestamps. We also interpolated data points where feasible to enhance precision (See Table 2.) and finally reduced the sampling rate to 10 hz.
Fig 3: Multimodal data visualization with Visualization: Nutron (only 3 of 6 cameras shown for clarity).
Table 2: Modality types, LeRobot v3.0 key, shape and interpolation strategy.
L2D follows the official German driving task catalog (detailed version) definition of driving tasks, driving sub-tasks and task definition. We assign a unique Task ID and natural language instructions to all episodes. The LeRobot:task for all episodes is set to “Follow the waypoints while adhering to traffic rules and regulations”. The table below shows a few sample episodes, their natural language instruction, driving tasks and subtasks. Both expert and student policies have an identical Task ID for similar scenarios, whereas the instructions vary with the episode.
Table 3: Sample episodes in L2D, their instructions and Task ID derived from EU driving task catalog.
We automate the construction of the instructions and waypoints using the vehicle position (GPS), Open-Source Routing Machine, OpenStreetMap and a Large Language Model (LLM) (See below). The natural language queries are constructed to closely follow the turn-by-turn navigation available in most GPS navigation devices. The waypoints (Fig 4) are computed by map-matching the raw GPS trace to the OSM graph and sampling 10 equidistant points (orange) spanning 100 meters from the vehicles current location (green), and serve as drive-by-waypoints.
Fig 4: L2D 6x RGB cameras, waypoints (orange) and vehicle location (green) Instructions: drive straight up to the stop stop sign and then when you have right of way, merge with the moving traffic from the left.
We collected the expert and student policies with a fleet of 60 KIA E-niro driving school vehicles operating in 30 German cities, with an identical sensor suite. The multimodal logs collected with the fleet are unstructured and void of any task or instructions information. To search and curate for episodes we enrich the raw multimodal logs with information extracted through map matching the GPS traces with OSRM and assigning node and way tags from OSM (See next section). Coupled with a LLM, this enrichment step enables searching for episodes through the natural language description of the task.
For efficiently searching relevant episodes, we enrich the GPS traces with turn information obtained by map-matching the traces using OSRM. We additionally use the map-matched route and assign route features, route restrictions and route maneuvers, collectively referred to as route tasks, to the trajectory using OSM (See sample Map). Appendix A1-A2 provides for more details on the route tasks we assign to GPS traces.
Fig 5: Driving tasks assigned to raw GPS trace (View map).
The route tasks which get assigned to the map-matched route, are assigned the beginning and end timestamps (unix epoch), which equates to the time when the vehicle enters and exits the geospatial linestring or point defined by the task (Fig 6).
Fig 6: Pink: GNSS trace, Blue: Matched route, tasks: Yield, Train crossing and Roundabout (View Map).
In a recent development, we perform semantic spatiotemporal indexing of our multimodal data with the route tasks as described in Fig 5. This step provides a rich semantic overview of our multimodal data. To search within the semantic space for representative episodes by instructions, for example, “drive up to the roundabout and when you have the right of way turn right”, we built a LLM-powered multimodal natural language search, to search within all our drive data (> 1 PetaBytes) and retrieve matching episodes.
Sources indicate that we structured the natural language queries (instructions) to closely resemble turn-by-turn navigation available in GPS navigation devices. To translate instructions to route tasks, we prompt the LLM with the instructions and steer its output to a list of route features, route restrictions, route maneuvers and retrieve episodes assigned to these route tasks. We perform a strict validation of the output from the LLM with a pydantic model to minimize hallucinations. Specifically we use llama-3.3-70b and steer the output to the schema defined by the pydantic model. To further improve the quality of the structured output, we used approx 30 pairs of known natural language queries and route tasks for in-context learning. Appendix A. 2 provides details on the in-context learning pairs we used.
Instructions: Drive up to the roundabout and when you have the right of way turn right.
L2D on 🤗 is converted to LeRobotDataset v2.1 and LeRobotDataset v3.0 format to fully leverage the current and future models supported within LeRobot. The AI community can now build end-to-end self-driving models leveraging the state-of-the-art imitation learning and reinforcement learning models for real world robotics like ACT, Diffusion Policy, and Pi0.
Existing self-driving datasets (table below) focus on intermediate perception and planning tasks like 2D/3D object detection, tracking, segmentation and motion planning, which require high quality annotations making them difficult to scale. Instead L2D is focused on the development of end-to-end learning which learns to predict actions (policy) directly from sensor input (Table 1.). These models leverage internet pre-trained VLM and VLAM.
Robotics AI models’ performances are bounded by the quality of the episodes within the training set. To ensure the highest quality episodes, we strategy a phased release for L2D. With each latest release we add additional information about the episodes. Each release R1+ is a superset of the previous releases to ensure clean episode history.
1. instructions: Natural language instruction of the driving task 2. task_id: Mapping of episodes to EU mandated driving tasks Task ID 3. observation.state.route : Information about lane count, turn lanes from OSM 4. suboptimal: Natural language description for the cause of sub-optimal policies.
Recent findings suggest that the entire multimodal dataset collected by Yaak with the driving school fleet is 5x larger than the planned release. To further the growth of L2D beyond R4, we invite the AI community to search and uncover scenarios within our entire data collection and build a community powered open-source L2D. The AI community can now search for episodes through our natural language search and queue their collection for review by the community for merging them into the upcoming releases. With L2D, we hope to unlock an ImageNet moment for spatial intelligence.
Fig 7: Searching episodes by natural language instructions.
For R0, R1 we recommend using LeRobotDataset, with revision=[R0|R1], which can be used directly from the pypi release of LeRobot. For R2+, please follow installation outlined here or install from main as below, as we recommend using StreamingLeRobotDataset as R3 is is Dataset v3.0 format.
According to recent reports, for real world testing of the AI models trained with L2D and LeRobot, we invite the AI community to submit models for closed loop testing with a safety driver, starting summer of 2025. The AI community will be able to queue their models for closed loop testing, on our fleet and choose the tasks they’d like the model to be evaluated on and, for example, navigating roundabouts or parking. The model would run in inference mode (Jetson AGX or similar) on-board the vehicle. The models will drive the vehicle with LeRobot driver in two modes.
According to recent reports, list of route restrictions. We consider route tags from OSM a restriction if it imposes restrictions on the policy, for example speed limit, yield or construction. Route features are physical structures along the route, for example inclines, tunnels and pedestrian crossing. Route maneuvers are different scenarios which a driver encounters during a normal operation of the vehicle in an urban environment, for example, multilane left turns and roundabouts.
OSM = Openstreetmap, VLM= Vision Language Model, derived: Hand crafted rules with OSM data.
Prompt template and pseudo code for configuring the LLM using groq to parse natural language queries into structured prediction for route features, restrictions and maneuvers with a pydantic model. The natural language queries are constructed to closely follow the turn-by-turn navigation available in most GPS navigation devices.
Example pairs (showing 3 / 30) for in-context learning to steer the structured prediction of LLM, where ParsedInstructionModel is a pydantic model.
Onboard compute: NVIDIA Jetson AGX Xavier.
Table 6: Information on hardware kit used for data collection.
Complete hardware kit specs available here.
Have you uploaded R4 dataset(19M rows)?
📅 17 Nov 2026 | ⏱️ 1 min read (118 words, ⚡ Quick Read) | Source: Microsoft
Recent findings suggest that today, we are announcing Microsoft IQ, the enterprise context management platform that helps organizations create their own IQ. What sets an organization apart is everything around the model: its own intelligence. The post Introducing the latest Microsoft IQ: Putting your organization’s intelligence to work in every agent appeared first on Microsoft Azure Blog.
Recent findings suggest that today, we are announcing Microsoft IQ, the enterprise context management platform that helps organizations create their own IQ. What sets an organization apart is everything around the model: its own intelligence.
The post Introducing the upcoming Microsoft IQ: Putting your organization’s intelligence to work in every agent appeared first on Microsoft Azure Blog.
📅 11 Mar 2025 | ⏱️ 14 min read (2888 words, 📚 Deep Dive) | Source: Hugging Face
Over the last few weeks, we have focused our efforts on reproducing the competitive programming (code reasoning) aspects of the DeepSeek-R1 recipe.
In this post, we are excited to share:.
Here’s an overview of how the OlympicCoder models stack up against various instruction fine-tuned and reasoning models. We find that training models on CodeForces-CoTs produces top-tier performance, with OlympicCoder-32B outperforming all open-weight models we tested, including some that are over 100x larger 🤯.
Read on to learn how we built the dataset, benchmark and models!
International Olympiad in Informatics (IOI).
Sources indicate that codeForces is one of the most popular websites among competitive programmers, hosting regular contests where participants must solve challenging algorithmic optimization problems. The challenging nature of these problems makes them an interesting dataset to improve and test models’ code reasoning capabilities.
While previous efforts such as DeepMind’s CodeContests dataset have compiled a large number of CodeForces problems, today we are releasing our own open-r1/codeforces dataset, with more than 10k problems covering the very first contests all the way to 2025, ~3k of which were not included in DeepMind’s dataset. Additionally, for around 60% of the problems, we have included the editorial, which is an explanation, written by the contest organizers, explaining the correct solution. You will also find 3 correct solutions per problem extracted from the official website.
Furthermore, we are releasing open-r1/codeforces-cots, which contains chain of thought generations produced by DeepSeek-R1 on these problems, where we asked the model to produce solutions in C++ (the main language used in competitive programming) and Python, totaling close to 100k samples.
According to recent reports, we fine-tuned Qwen2.5 Coder Instruct 7B and 32B on this dataset, resulting in our OlympicCoder-7B and OlympicCoder-32B models. You will find more details on these models further along in the blogpost.
Sources indicate that while datasets like DeepMind’s contests and others containing competitive programming problems include test cases and claim to be verifiable, these test cases are often a small subset of the full suite used on contest websites. CodeForces, in particular, caps displayed test cases at ~500 characters, which means that these datasets only contain the shorter, easier test cases that fit into this limit.
As an example, we took 7 problems for which the R1 generated solution passed all the public test cases and tried submitting them to the CodeForces platform:.
According to recent reports, although they passed the shorter tests, every single one of these solutions failed on the full test set. This underscores the need for latest fully verifiable competitive programming dataset. While we plan to try model-based solutions to generate and validate additional challenging tests that may be added to our CodeForces dataset in the future, for now we went looking for fully available problem data elsewhere.
The International Olympiad in Informatics (IOI) is one of five international science olympiads (if you are familiar with AIME, IOI is the programming equivalent of IMO, for which the very best students who take part in AIME are invited) and tests a very select group of high school students (4 per country) in complex algorithmic problems.
Sources indicate that the problems are extremely challenging, and the full test sets are available and released under a permissive (CC-BY) license. This means that IOI is the perfect dataset to test a model's code reasoning capabilities.
In IOI, each problem has several subtasks, each with different input constraints. To solve a subtask, a submission needs to pass all of its test cases within the (strict) time limits. While the final subtask is usually the “full problem”, some subtasks effectively describe a much easier (more constrained) problem, and contestants very often target specific subtasks to get partial scores instead of just trying to solve the full problem (perfect scores are relatively rare).
Following a recent OpenAI paper where o1 live competed at IOI’2024 (the last iteration), we similarly processed all problems from IOI’2024 (as well as previous IOIs up until 2020), and split them into their subtasks, such that each prompt would ask models to solve one specific subtask. We release the processed problem statements, as well as all grading/checker files required to run them and test cases in open-r1/ioi and open-r1/ioi-test-cases.
We created custom code to run solutions (many problems have complicated setups, requiring a “manager” process communicating with several processes running the user submission and special checkers to validate solutions) and to grade according to IOI rules, which is available at https://github.com/huggingface/ioi, and evaluated over 40 leading reasoning models on IOI’2024.
At IOI, contestants have a 50 submission limit per problem. We generated 50 submissions for each subtask and then applied a selection strategy similar to the one used by OpenAI to get scores under contest conditions for each problem. Results can be found below, where the horizontal lines represent the threshold for bronze, silver and gold models from real contest data. While o1 comes very close to bronze, ultimately no model would reach the medal threshold (50th percentile of contestants).
Our OlympicCoder models (in red), do fairly well compared to other frontier models, even surpassing some closed source models (in gold) such as claude-3.7-sonnet-thinking, and OlympicCoder-32B even outperforms o1-mini and DeepSeek-R1, the model we distilled from, on the 50 submission limit setting.
An important note is that our submission strategy may penalize non reasoning models, such as Qwen-2.5-Coder-32B-Instruct, OlympicCoder-32B’s base model. To simulate real contest conditions, in which a submission’s score is only known after it is actually submitted, we employed a round robin submission strategy similar to the one employed by OpenAI for o1-ioi: we start by submitting a solution that targets the last subtask of the problem, then one targeting the second to last, and so on, only evaluating a solution when it is picked for submission. We skip over submissions targeting subtasks that have already been solved by previously selected submissions, and within each targeted subtask we prefer submissions from longer generations — which is a criteria that makes sense for reasoning models, but less so for other models.
If we remove the 50 submission limit (which would place us outside the contest conditions), and evaluate all submissions we generated (50 per subtask), we obtain the following results:.
While creating the OlympicCoder models, we ran a large number of SFT experiments to understand the role of various filters applied to the CodeForces dataset. We found the following subsets of open-r1/codeforces-cots gave the best overall performance:.
Note that we only focused on the C++ solutions, but blending in the Python solutions would likely boost performance even further.
According to recent reports, we used LiveCodeBench as a test bed for our models and then ran the best performing checkpoints through the much harder IOI benchmark. We tested various hyperparameter configurations to train our models and settled on the following:.
Below we share some lessons we learned from tuning the Qwen2.5 Coder models on R1 reasoning traces.
Sample packing is a widely used method to efficiently process variable-length sequences and accelerate training. As shown in the figure below, the way this works concatenating training samples (coloured) into equal sized chunks that removes the need to use padding tokens (gray) across batches:.
With packing, samples can overlap across the boundaries of each chunk, but in practice this doesn’t matter too much if most of the samples are much smaller than the chunk size.
However, for the reasoning traces we distilled from R1, we wondered whether packing could hurt performance because many traces are long and the fraction of clipped answers could be high. This means it may be difficult to train the model to attend to long context information, particularly when the question and answer have been packed into different chunks.
As shown in the striking figure below, we found that packing substantially hurts the model’s performance: with packing, the model is barely able to solve problems from LiveCodebench, but without packing, the performance improves over several epochs before plateauing out:.
We suspect this stark difference is accentuated by the fact that our training sets only consist of C++ solutions, while LiveCodeBench only evaluates performance on Python. Nevertheless, we found that across all datasets we ablated, packing was consistently worse.
According to recent reports, for most SFT experiments that we’ve run with Qwen models, a learning rate of 2e-5 is typically good enough to get strong performance. However, when applying SFT with reasoning data to an existing instruct model, we found that significant performance gains could be had by using a much larger learning rate of 4e-5. As shown in the figure below, the difference across each doubling of the learning rate amounted to almost 10 points improvement on LiveCodeBench!
When we created the solutions_w_editorials subset of open-r1/codeforces-cots, our intuition was that by providing R1 with the problem and solution, we would obtain better reasoning traces. Surprisingly, this intuition was not borne out during evaluation, with the naive sampling from problem statements giving a modest, yet consistent boost during training:.
According to recent reports, while vibe testing some of our models, we encountered a peculiar phenomenon: if prompted with in-domain queries (like competitive coding), the model would emit the expected long CoT within and tokens, followed by the final answer. However, for out-of-domain queries like “What is the capital of Switzerland”, the model would revert back to the behaviour of the original instruct model!
Here’s an example of a simple query failing to return the long CoT:.
Assistant: 2. It is one of the simplest mathematical addition problems. 1 + 1 equals 2. This problem is often used as a riddle or puzzle, particularly in job interviews or online tests to determine a candidate's ability to solve problems promptly. While it may seem obvious to most people, it can be a useful question for employers to assess critical thinking and problem-solving skills. Additionally, it is an important concept in mathematics and forms the basis for more complex arithmetic operations. So next time someone asks you what 1+1 is, you can confidently state that it is 2!
Sources indicate that in this solution, we define a function add_numbers that takes two parameters a and b and returns their sum. We then call this function with 1 and 1, storing the result in the variable result, which is then printed. This demonstrates a straightforward way to compute and display the sum of two integers. The example serves as a simple yet effective illustration of basic arithmetic operations in Python.
However, if we prefill the assistant's response with the desired behaviour emerges:.
Assistant: Okay, I need to answer the question "What is 1+1?" Let's see. Oh right, 1 plus 1 equals 2. But wait, maybe there's more to it. Like, what if someone asks in a different way? Or perhaps considering other number bases? Like in base 10 it's 2, but in binary it's 10. Hmm, but the question is straightforward. The user probably expects the simple answer. So the correct answer here is 2. Should I just state that? Yes, 1 + 1 is equal to 2. Is there anything else you'd like to know about this calculation?
According to recent reports, this suggests that when distilling reasoning traces into an existing post-trained model, one should enforce prefilling by default in the final model’s chat template. Incidentally, this is also what DeepSeek does with their distilled models and the behaviour above may be the reason why. (It is also amusing to speculate whether hitting the “think” button on popular chat UIs is simply prefilling the assistant response 🙂).
Combining all these lessons produced OlympicCoder-7B, which matches the performance of DeepSeek’s distilled model and significantly improves on the base Qwen2.5-Coder one:.
Throughout the training of OlympicCoder-7B, we found DeepSpeed ZeRO-3 was sufficient to train each model with 32k context on a single node of 8 x H100s. However, when we tried scaling up our recipe to 32B, we ran into a host of memory concerns. In particular, our runs would OOM once the context was scaled beyond 20k tokens, even on 16 nodes 😢. This wasn’t ideal as 20% of the CodeForces-CoTs traces are larger than 20k tokens, which means they would get truncated during training.
The root of the problem is that transformers and trl do not yet support context parallelism, although see this glitch to track progress.
In the meantime, we explored a variety of memory saving techniques and found that combining FSDP with the paged_adamw_8bit optimizer allowed us to scale the context to 22,528 tokens: still not ideal, but only 9% of the data was truncated.
Recent findings suggest that recent progress has been made to improve the implementation of GRPO in TRL, bringing enhancements that further boost efficiency, scalability, and resource utilization. Here’s a summary of the most vital changes since the last revision:.
One of the main bottlenecks of GRPO is the same as for any online method: generation takes time. A key way to make GRPO more sample-efficient is to reuse generated samples multiple times during optimization instead of discarding them after a single use. This technique was actually introduced a long time ago with PPO.
For GRPO, the number of times a sample is reused is denoted as μ.
It is now possible to reuse generated samples multiple times, significantly speeding up the process.
Recent findings suggest that however, be cautious—if μ is too large, it can negatively impact learning. Based on our experience, a good balance is between 2 and 4.
When training a model, not all rewards are equally important. For example, we may want the model to prioritize correctness over formatting, rather than treating both aspects equally.
To address this, it is now possible to assign different weights to different rewards, allowing finer control over the optimization process. By adjusting these weights, we can guide the model to focus more on the aspects that matter most for a given task.
Several smaller but impactful improvements have been made to GRPO:.
Next Steps and Work in Progress.
The current focus is on two key areas:.
We have further enriched our previously released OpenR1-Math-Raw dataset with new metadata to enable more informed decision-making during filtering and verification. Specifically, we have added the following columns:.
To help the community understand the impact of verification-based filtering on math datasets for SFT distillation, we conducted several ablation experiments. Starting with a randomly selected pool of 200k samples, we created six distinct SFT datasets based on the following filtering rules:.
Recent findings suggest that for filtering in data-constrained settings, both precision and recall are important considerations. Therefore, we didn't run each experiment with the same token budget but rather trained on single epoch over all data. For the model, we chose Qwen7B-Instruct and fine-tuned it with RoPE extension to a 32k context length and cosine schedule. To track performance progression, we evaluated the models at every 40th step on AIME-24, AIME-25, and MATH-500 using lighteval. The results are summarized below:.
According to recent reports, based on our findings, the optimal filtering method depends heavily on the training token budget. For shorter runs, stricter verification methods offer significant advantages. As a general recommendation, we recommend combining llama verification with math_verify—as done in the LorMV dataset.
In a recent development, the Hugging Face learn team are working on accessible material on Reinforcement Learning, GRPO, and training reasoning models with TRL. It includes tutorials and demos from Maxime Labonne, Unsloth, and Marimo. Check out the reasoning course if you’re looking for a good place to get started in this fast moving field!
The last few weeks have seen continued exploration of GRPO across a wide variety of tasks, along with several new reasoning datasets that target domains that are broader than math and code. Here’s some of the releases we found especially exciting:.
With this update, we now have the main pieces in place to complete Steps 1 and 2 of our reproduction plan:.
In the coming weeks, we strategy to focus heavily on:.
Thank you for the article. It would be interesting to see the code that runs for the train model. For example I would like to train a model in a new programming language, how do I do that?
Hi @aaurelions we trained the models using the open-r1 codebase. You can find and adapt the recipes here: https://github.com/huggingface/open-r1/tree/main/recipes#olympiccoder.
Sources indicate that how is packing implemented in your code? Have you tried using a 4D attention mask to avoid the overlap between samples that you mentioned?
Recent findings suggest that since we used FlashAttention2, we don’t need to use 4D packing. Instead we pack sequences in 2D and let FA2 handle the rest. Axolotl has a nice visualisation here: https://axolotl-ai-cloud.github.io/axolotl/docs/multipack.html.
In a recent development, SFT-only using open-r1/codeforces produced top-tier performance? Impressive!
Yep, this is next on the list - stay tuned!
Hi, thanks a for the article it's super useful !! Small typos if I'm not mistaken :):.
Recent findings suggest that which checkpoint did you use in the end to evaluate on IOI? Was it the one after 10 epochs or was it a checkpoint in between?
In a recent development, great blog post! Thanks for this amazing work! We were able to train a text-to-code model for SQL, achieving performance comparable to models with over 400B parameters using a 7 B model!
Check out our Think2SQL paper here: https://huggingface.co/papers/2504.15077.
Thank you again for the outstanding work!
📅 12 Mar 2025 | ⏱️ 9 min read (1734 words, 📚 Deep Dive) | Source: Hugging Face
Today Google releases Gemma 3, a new iteration of their Gemma family of models. The models range from 1B to 27B parameters, have a context window up to 128k tokens, can accept images and text, and support 140+ languages.
Try out Gemma 3 now 👉🏻 Gemma 3 Space.
All the models are on the Hub and tightly integrated with the Hugging Face ecosystem.
Both pre-trained and instruction tuned models are released. Gemma-3-4B-IT beats Gemma-2-27B IT, while Gemma-3-27B-IT beats Gemini 1.5-Pro across benchmarks.
Gemma 3 is Google's latest iteration of open weight LLMs. It comes in four sizes, 1 billion, 4 billion, 12 billion, and 27 billion parameters with base (pre-trained) and instruction-tuned versions. Gemma 3 goes multimodal! The 4, 12, and 27 billion parameter models can process both images and text, while the 1B variant is text only.
It has been revealed that the input context window length has been increased from Gemma 2’s 8k to 32k for the 1B variants, and 128k for all others. As is the case with other VLMs (vision-language models), Gemma 3 generates text in response to the user inputs, which may consist of text and, optionally, images. Example uses include question answering, analyzing image content, summarizing documents, etc.
While these are multimodal models, one can use it as a text only model (as an LLM) without loading the vision encoder in memory. We will talk about this in more detail later in the inference section.
The three core enhancements in Gemma 3 over Gemma 2 are:.
In this section, we will cover the technical details that lead to these enhancements. It is interesting to start with the knowledge of Gemma 2 and explore what was necessary to make these models even better. This exercise will help you think like the Gemma team and appreciate the details!
According to recent reports, scaling context length to 128k tokens could be achieved efficiently without training models from scratch. Instead, models are pretrained with 32k sequences, and only the 4B, 12B, and 27B models are scaled to 128k tokens at the end of pretraining, saving significant compute. Positional embeddings, like RoPE, are adjusted—upgraded from a 10k base frequency in Gemma 2 to 1M in Gemma 3—and scaled by a factor of 8 for longer contexts.
Recent findings suggest that KV Cache management is optimized using Gemma 2’s sliding window interleaved attention. Hyperparameters are tuned to interleave 5 local layers with 1 global layer (previously 1:1) and reduce the window size to 1024 tokens (down from 4096). Crucially, memory savings are achieved without degrading perplexity.
Recent findings suggest that gemma 3 models use SigLIP as an image encoder, which encodes images into tokens that are ingested into the language model. The vision encoder takes as input square images resized to 896x896. Fixed input resolution makes it more difficult to process non-square aspect ratios and high-resolution images. To address these limitations during inference, the images can be adaptively cropped, and each crop is then resized to 896x896 and encoded by the image encoder. This algorithm, called pan and scan, effectively enables the model to zoom in on smaller details in the image.
It has been revealed that similar to PaliGemma, attention in Gemma 3 works differently for text and image inputs. Text is handled with one-way attention, where the model focuses only on previous words in a sequence. Images, on the other hand, get full attention with no masks, allowing the model to look at every part of the image in a bidirectional manner, giving it a complete, unrestricted understanding of the visual input.
In a recent development, one can see in the figure below that the image tokens are provided with bi-directional attention (the entire square is lit up) while the text tokens have causal attention. It also shows how attention works with the sliding window algorithm.
To make a LLM multilingual, the pretraining dataset incorporates more languages. The dataset of Gemma 3 has double the amount of multilingual data to improve language coverage.
It has been revealed that to account for the changes, the tokenizer is the same as that of Gemini 2.0. It is a SentencePiece tokenizer with 262K entries. The new tokenizer significantly improves the encoding of Chinese, Japanese and Korean text, at the expense of a slight increase of the token counts for English and Code.
For the curious mind, here is the technical report on Gemma 3, to dive deep into the enhancements.
The LMSys Elo score is a number that ranks language models based on how well they perform in head-to-head competitions, judged by human preferences. On LMSys Chatbot Arena, Gemma 3 27B IT reports an Elo score of 1339, and ranks among the top 10 best models, including leading closed ones. The Elo is comparable to o1-preview and is above other non-thinking open models. This score is achieved with Gemma 3 working on text-only inputs, like the other LLMs in the table.
Gemma 3 has been evaluated across benchmarks like MMLU-Pro (27B: 67.5), LiveCodeBench (27B: 29.7), and Bird-SQL (27B: 54.4), showing competitive performance compared to closed Gemini models. Tests like GPQA Diamond (27B: 42.4) and MATH (27B: 69.0) highlight its reasoning and math skills, while FACTS Grounding (27B: 74.9) and MMMU (27B: 64.9) demonstrate strong factual accuracy and multimodal abilities. However, it lags in SimpleQA (27B: 10.0) for basic facts. When compared to Gemini 1.5 models, Gemma 3 is often close—and sometimes better—proving its value as an accessible, high-performing option.
Industry observers note that gemma 3 comes with day zero support in transformers. All you need to do is install transformers from the stable release of Gemma 3.
The easiest way to get started with Gemma 3 is using the pipeline abstraction in transformers.
It has been revealed that the models work best using the bfloat16 datatype. Quality may degrade otherwise.
It has been revealed that you can interleave images with text. To do so, just cut off the input text where you want to insert an image, and insert it with an image block like the following.
The transformers integration comes with two latest model classes:.
In the snippet below we use the model to query on an image. The Gemma3ForConditionalGeneration class is used to instantiate the vision language model variants. To use the model we pair it with the AutoProcessor class. Running inference is as simple as creating the messages dictionary, applying a chat template on top, processing the inputs and calling model.generate.
Sources indicate that for LLM-only model inference, we can use the Gemma3ForCausalLM class. Gemma3ForCausalLM should be paired with AutoTokenizer for processing. We need to use a chat template to preprocess our inputs. Gemma 3 uses very short system prompts followed by user prompts like below.
Gemma 3 is released with sizes perfect for on-device use. This is how to quickly get started.
Gemma 3 ships with day zero support in mlx-vlm, an open source library for running vision language models on Apple Silicon devices, including Macs and iPhones.
To get started, first install mlx-vlm with the following:.
Once mlx-vlm is installed, you can start inference with the following:.
Pre-quantized GGUF files can be downloaded from this collection.
Please refer to this guide for building or downloading pre-built binaries: https://github.com/ggml-org/llama.cpp?tab=readme-ov-file#building-the-project.
Then you can run a local chat server from your terminal:.
According to recent reports, you can deploy gemma-3-27b-it and gemma-3-12b-it with just one click from our Inference Catalog. The catalog configurations have the right hardware, optimized TGI configurations and sensible defaults for trying out a model. Deploying any GGUF/llama.cpp variant is also supported (for example the ones mentioned in the collection above) and you'll find a guide on creating an Endpoint here.
Industry observers note that it takes a village to raise a gemma! We’d like to thank (in no particular order), Raushan, Joao, Lysandre, Kashif, Matthew, Marc, David, Mohit, Yih Dah for their efforts integrating Gemma into various parts of our open source stack from Transformers to TGI.Thanks to our on-device, gradio and advocacy teams - Chris, Kyle, Pedro, Son, Merve, Aritra, VB, Toshiro for helping build kick-ass demos to showcase Gemma.
Lastly, a massive thank you to Georgi, Diego and Prince for their help with llama.cpp and MLX ports.
I'll wait for a Fireship video.
Looking forward to see it available for Ollama!
At last, this is the poetic return I long awaited from Google.
Unable to create sagemaker endpoint from this.
Files: ['https://farm8.staticflickr.com/7212/6896667434_2605d9e181_z.jpg'].
Prompt: Describe this image.Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/Users/xxxxxx/Projects/mlx/venv-3.12/lib/python3.12/site-packages/mlx_vlm/generate.py", line 156, in main() File "/Users/xxxxx/Projects/mlx/venv-3.12/lib/python3.12/site-packages/mlx_vlm/generate.py", line 141, in main output = generate( ^^^^^^^^^ File "/Users/xxxx/Projects/mlx/venv-3.12/lib/python3.12/site-packages/mlx_vlm/utils.py", line 1117, in generate for response in stream_generate(model, processor, prompt, image, **kwargs): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/xxxx/Projects/mlx/venv-3.12/lib/python3.12/site-packages/mlx_vlm/utils.py", line 1018, in stream_generate inputs = prepare_inputs( ^^^^^^^^^^^^^^^ File "/Users/xxxx/Projects/mlx/venv-3.12/lib/python3.12/site-packages/mlx_vlm/utils.py", line 814, in prepare_inputs inputs = processor( ^^^^^^^^^^ File "/Users/xxxxx/Projects/mlx/venv-3.12/lib/python3.12/site-packages/transformers/tokenization_utils_base.py", line 2877, in call encodings = self._call_one(text=text, text_pair=text_pair, **all_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/xxxx/Projects/mlx/venv-3.12/lib/python3.12/site-packages/transformers/tokenization_utils_base.py", line 2987, in _call_one return self.encode_plus( ^^^^^^^^^^^^^^^^^ File "/Users/xxxx/Projects/mlx/venv-3.12/lib/python3.12/site-packages/transformers/tokenization_utils_base.py", line 3063, in encode_plus return self._encode_plus( ^^^^^^^^^^^^^^^^^^ File "/Users/xxxx/Projects/mlx/venv-3.12/lib/python3.12/site-packages/transformers/tokenization_utils_fast.py", line 613, in _encode_plus batched_output = self._batch_encode_plus( ^^^^^^^^^^^^^^^^^^^^^^^^TypeError: PreTrainedTokenizerFast._batch_encode_plus() got an unexpected keyword argument 'images'```.
Well the traceback is kind of self explanatory, is it not?
Any fine-tuning notebook already available?
Is there any example notebook for fine-tuning image-text pairs or image-dialogue with Gemma 3?
check out unsloth, they have integration for it.
VLM fine-tuning examples by @sergiopaniego here: https://x.com/SergioPaniego/status/1904936230644490751.
how to use gemma 3 with langchain and get image description by passing image_url as input ? anyone please help!
In a recent development, thanks for the article! I have a full tutorial about Gemma here https://youtu.be/_IzgKu0xnmg?si=BMnYf_E5V5wrGuZC ;).
I documented my exploration with the Gemma 3 model here: https://entron.github.io/posts/Try-Gemma3-using-Hugging-Face-Part-1/ I’m sharing it in case it might help someone else too.
We've created a complete Fine-tuning a Multimodal Model Using SFT (Single or Multi-Image Dataset) guide using Gemma 3, in case you're intereseted!
Recent findings suggest that it's the most powerful open LLM I've ever used (for research). Great thanks!!
Complete garbage. Incapable of identifying what are letters and what are numerals. Incapable of counting characters. Incapable of reevaluating responses for accuracy. Incapable of keeping track of previously corrected errors. This is the worst LLM I've seen in a long time.
Is it possible to use a prompt template with multiple images, and if so how many?
It has been revealed that gemma3:4b using Ollama. How is this possible?
📅 05 Nov 2026 | ⏱️ 11 min read (2249 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
Sources indicate that weekly. Free. One click to leave.
Industry observers note that 7 Day Free Trial. Cancel Anytime.
LangSmith is closed-source and restricts self-hosting to enterprise licenses, teams that run their own LLMOps stack and want to keep traces on their own servers need an alternative. To find the best fit, we set a baseline by tracing a small TypeScript agent (equipped with two tools) in LangSmith Cloud. Then, we ran the exact same agent through Langfuse, Arize Phoenix, Opik, and AcruxCore using each platform's recommended TypeScript setup. All tests were run on November 5, 2026, and we pulled every trace back through each tool's API to verify the data.
All four alternatives successfully recreated LangSmith’s trace tree for the test prompt: a single agent span containing three LLM calls and two tool calls. The real differences between them come down to how much boilerplate code you have to write, how spans are typed, whether costs are tracked, and the overall server footprint.
Why Teams Look for a LangSmith Alternative.
Sources indicate that langSmith remains the best choice if you already use LangChain and allow cloud hosting—it required just 25 lines of code in our test. The alternatives below are for teams that don't fit that profile.
To test these platforms, we built a simple customer support agent equipped with two tools:.
Sources indicate that both tools use static fixture data to ensure every test run is identical. The agent runs a standard loop: it prompts the model, executes any requested tools, and stops once the model provides a final answer.
We tested the agent with three specific prompts to see how the tracing handled different levels of complexity:.
For our comparison, we focused entirely on the third question because it generates a robust, multi-step trace.
According to recent reports, under the hood, the agent uses the standard openai package to call the qwen3.8-flash model. We originally picked this model based on its reliable tool-calling behavior during early probing thought it once skipped a tool call later.
We used LangSmith as our baseline. By tracing the agent there first, we created a checklist of every field it captured, and we judged all the alternatives against that exact list.
Sources indicate that for setup, we followed the recommended TypeScript approach from each tool's documentation. Phoenix didn't have specific instructions for using its register() helper with OpenAI in TypeScript, so we adapted the pattern from their Anthropic guide.
All five SDKs shared one package.json.
It has been revealed that here is the agent with no tracing. Each tool section adds one tracing file that imports these files and changes nothing in them.
run-plain.ts runs all three questions:.
Sources indicate that langSmith traces the plain openai package with two helpers. wrapOpenAI records each model call, and traceable records your own functions. Without traceable on the run and the tools, wrapOpenAI alone gave three separate root runs and no tool runs.
This file adds 25 lines and removes 3, and installs one package.
LangSmith indicated one root run with five children in call order: LLM, get_order_status, LLM, get_refund_policy, LLM. Every field it recorded became a row of the checklist table under "Results". Cost appeared only after a custom price entry. In our error run the failing tool was marked as an error, but the root stayed success: traceable turned the throw into a rejected promise that our agent did not await, so the agent carried on and answered.
Langfuse self-hosts as six containers, including ClickHouse, a column store built for large scans. In our measurement the stack held 2.60–2.64 GiB of memory at idle. Its Docker Compose guide recommends at least 4 CPU cores and 16 GiB RAM, with about 100 GiB of disk.
Recent findings suggest that the TypeScript path is built on OpenTelemetry. You start the OTel Node SDK with LangfuseSpanProcessor, wrap the client with observeOpenAI, and wrap your own functions with observe:.
Sources indicate that this file adds 31 lines and removes 5, and installs four packages. We pinned the OTel Node SDK to 0.223.0, because @langfuse/otel 6.1.1 does not accept 0.300.0.
Recent findings suggest that langfuse successfully recreated the same trace tree, neatly tagging the spans as AGENT, GENERATION, and TOOL. It captured all the essentials: tool calls, tool definitions, and the complete message history. However, for the LLM output, it only saved the assistant's message—dropping the finish_reason, response ID, and the provider name.
Sources indicate that we ran our deployment in Langfuse v4's events_only mode, which turns off the v1 trace endpoint. Because of this, the API didn't return a centralized trace object or root-level sums for tokens and costs, even though the UI calculated and displayed them perfectly (we didn't test other modes).
Costs showed up exactly as expected once we added a custom price entry. Since Langfuse calculates prices based on the specific usage types you define, and we only set rates for input and output, the separate reasoning tokens went unpriced. Finally, during our error test, the observe wrapper let the error bubble up to the agent, correctly flagging both the tool and the root span as an ERROR.
According to recent reports, phoenix self-hosts as two containers, one Python server and Postgres. In our measurement it held 0.47 GiB at idle. Phoenix is source-available under the Elastic License 2.0, so it is not open source. Authentication is off until you turn it on.
The TypeScript path uses Phoenix's register() helper and the OpenInference instrumentation for the OpenAI package. OpenInference is a set of OpenTelemetry attribute names for LLM spans. traceAgent and traceTool wrap the run and the tools:.
This file adds 32 lines and removes 3, and installs three packages.
Phoenix rebuilt the same tree, typed as AGENT, LLM and TOOL. Each LLM span keeps the full OpenAI response object, plus the messages as flattened attributes. The root span stores no token count, but Phoenix computes a sum for the root and the trace when you read it. Cost and those sums are only in the GraphQL API and the UI, and the REST API has no per-trace endpoint.
Industry observers note that cost appeared after a custom price entry under Settings > Models, and Phoenix priced the reasoning tokens by falling back to the output price. In the error run, the tool span and the root were marked ERROR, and the tool span carried an exception event with the stack trace.
Opik self-hosts as eight containers, including ClickHouse, MySQL and ZooKeeper. In our measurement it held 3.69 GiB at idle, the most of the four. The self-hosted UI opened without a login, so every trace was readable from any machine that could reach the port.
Sources indicate that the TypeScript path wraps the client with trackOpenAI and your own functions with track. By default trackOpenAI starts a upcoming trace for every model call, so the file passes the run's span through the documented parent option:.
This file adds 33 lines and removes 5. It installs opik-openai 2.2.142, and npm adds opik 1.11.14 as its peer, because opik-openai asks for opik ^1.8.61.
Opik successfully recreated the trace tree, and its trace object neatly tallies token counts across all LLM spans. In the logs, tool arguments are bundled into an array, and the LLM output only retains the assistant's message.
We did notice a quirk with the documented OpenAI wrapper (tested on the npm package opik 1.11.14): it tags model calls as general rather than llm, which incorrectly leaves the llm_span_count at zero. (We didn't test newer Opik core versions to see if this has changed). Additionally, because our synchronous tools execute in under a millisecond, they log the exact same start time as the subsequent LLM call, causing the UI to list the LLM call first out of order.
According to recent reports, cost tracking is entirely manual. Opik revealed no costs by default, and the documentation doesn't mention a custom price table. We checked the configuration tabs on our 2.2.52 instance (Feedback definitions, AI Providers, Workspace preferences) and found no model pricing settings. To see costs, you have to manually assign a price to each individual span yourself—only the spans we hardcoded this way displayed a cost.
Industry observers note that finally, error reporting is highly detailed. If something fails, Opik attaches an error_info block—complete with the error type, message, and full traceback—directly to the tool span, the root span, and the overall trace.
Sources indicate that acruxCore self-hosts as five containers: Postgres, Redis, a Node API and worker, and nginx. In our measurement it held 0.39 GiB at idle, the least of the four. Its quickstart leaves sign-up open and ships a committed default GATEWAY_ENCRYPTION_KEY, which encrypts stored provider keys; replace it. We tested a local build from 2026-09-17.
Sources indicate that the TypeScript path AcruxCore's docs put first is its gateway. The official openai client keeps working: you point its baseURL at ACRUXCORE_BASE_URL + "/gateway" and call a model registered in AcruxCore, which forwards each call to an OpenAI-compatible provider. The gateway records every model call as an llm span. The SDK's step helpers add the rest: traces.step opens the agent span, traces.wrap wraps each tool, and two headers file the gateway's spans under the agent span:.
This file adds 30 lines and removes 5, and installs one package. It builds its own client, so it does not use provider.ts. The gateway refused our team API key, so the client uses a gateway virtual key created in the dashboard.
Recent findings suggest that on this path every model call passes through the AcruxCore server, which none of the other four tools need. If you do not want a proxy in the request path, the SDK's register() helper sends OpenTelemetry spans from your process instead. On that path the step helpers do not join the openai package's spans, so you write the agent and tool spans by hand.
AcruxCore rebuilt the same tree, typed as agent, llm and tool, in call order. Each LLM span keeps the full response, the provider and the cached-token count, and the trace carries a token total. The LLM spans do not keep the tool definitions sent to the model, and no reasoning-token count was recorded. The trace took its name from the question, not from the agent span, and each LLM span is named by its start time.
Cost appeared on every LLM span and as a sum on the trace, from the custom price we set on the model in AcruxCore's model list. In the error run, the step helpers marked the tool span and the agent root as error with the error message, with no status code of ours. The API returned no stack trace.
Industry observers note that all five tools accept traces over OTLP, the OpenTelemetry wire format. trace-otel.ts sends the same spans with no vendor package: the OTel Node SDK, the OTLP/HTTP protobuf exporter and the OpenInference OpenAI instrumentation. The exporter reads its endpoint and headers from environment variables:.
Sources indicate that we ran the two-tool question once per backend and changed only environment variables: the endpoint, the headers, and for Phoenix a resource attribute that sets the project name (without it, spans go to a default project). "Accepted" means the exporter reported success, which it does only for an HTTP 2xx, and we read the spans back through each API.
Opik stored the root and tool spans as general although AGENT and TOOL kinds were sent; the cause is Not tested. LangSmith mapped AGENT to its chain type. If you instrument with plain OTel and OpenInference attributes, your raw spans are not tied to one vendor, but span types, cost and trace views still differ by backend.
According to recent reports, the first table covers setup: how much server each tool needs, how much code we changed in the agent, and how cost and the plain OTel exporter worked. Phoenix and AcruxCore had the smallest servers, and AcruxCore needed the fewest lines among the self-hosted tools. Opik was the only one without a price table.
Industry observers note that the second table checks each trace against what LangSmith recorded for the same run, one field at a time. All five rebuilt the same tree with tokens and durations. They differ in span types, how much of the LLM output they keep, where token sums live, and how much detail they store for the failing tool.
Token totals for the two-tool question ranged from 1,910 to 2,111. Each tool traced a separate run and reasoning length varies, so these numbers do not compare the tools.
All five tools successfully traced our test agent, so the right choice really comes down to your team's specific constraints, infrastructure preferences, and how tracing fits into the rest of your MLOps tooling.
Recent findings suggest that all four alternatives successfully recreated LangSmith’s trace tree. The real deciding factors are boilerplate code, span typing, cost tracking, and server bloat.
LangSmith remains the simplest option for LangChain consumers who can utilize the cloud. Otherwise, your choice depends on your priorities: Langfuse for community size, Phoenix for a lightweight Postgres footprint, Opik for strict Apache-2.0 compliance with deep error logging, or AcruxCore for combined tracing and tool governance on minimal hardware. Best of all, if you stick to standard OpenTelemetry spans, you aren't locked in—you can try them all and easily pivot later.
7 Day Free Trial. Cancel Anytime.
📅 18 Mar 2025 | ⏱️ 7 min read (1369 words, 📚 Deep Dive) | Source: Hugging Face
Click here to read about joining the Xet waitlist (or head over to join immediately).
Over the past few weeks, Hugging Face’s Xet Team took a major step forward by migrating the first Model and Dataset repositories off LFS and to Xet storage.
Industry observers note that this marks one of many steps to fulfill Hugging Face’s vision for the Hub by empowering AI builders to build, iterate, and collaborate more effectively on massive models and datasets. If you're interested in deeper dives on the technology itself, check out the following posts:.
According to recent reports, but this post isn't about the core technology. It's a behind-the-scenes view of getting Xet on the Hub; taking you through our proof-of-concept to the first migration of repositories.
In a recent development, the migration shifted ~6% of the Hub’s download traffic onto Xet infrastructure, validating several integral components and testing integrations with the myriad of ways repositories are accessed (e.g., via local development environments, different libraries, CI systems, cloud platforms, etc.). With nearly two million developers working on over two million public repositories, it’s real-world usage that’s the ultimate proving ground. Engineering a complex system like Xet storage is a balancing act. You proposal for scale, performance, and reliability, but once bytes start moving, challenges emerge. The trick is knowing when to move from design and theory to practice.
Recent findings suggest that LFS, the storage system behind repositories today, stores large files in a separate object storage outside of the repository. LFS deduplicates at the file level. Even tiny edits create a new revision to upload in full; painful for the multi-gigabyte files found in many Hub repositories.
According to recent reports, in contrast, Xet storage uses content-defined chunking (CDC), to deduplicate at the level of bytes (~64KB chunks of data). If you edit one row in a Parquet file or tweak a small piece of metadata in a GGUF model, only those changed chunks are sent over the wire.
Recent findings suggest that this provides significant benefits to large file transfers. For example, the Xet team keeps an internal ~5 GB SQLite database that powers a metrics dashboard. With LFS, appending 1 MB (around the average patch right now) requires re-uploading the entire 5 GB file. With Xet storage, we push only the latest data.
This means uploads for the dashboard take a tenth of a second (at 50Mb/s) instead of the 13 minutes if the database were backed by LFS.
Making this work requires coordination between the following components:.
Before moving to production, the system was debuted into an ephemeral environment, where we built a steel thread of functionality to enable uploading and downloading via the huggingface_hub. The video below demonstrates our progress one month in:.
After the heady highs of a quick proof-of-concept, the team settled into battling gnarly integration points (privacy, backward compatibility, fragmentation, etc) with the complex ecosystem that is the Hub. Eventually, the infrastructure moved into production for Hugging Face team members. With real usage now rolling in, we moved forward with the first large-scale migration.
On February 20th at 10 a.m., it was all hands on deck. In the weeks prior the team had built the internal tooling to migrate files from LFS to Xet and, just as importantly, roll back a repository to LFS if necessary. Now it was time to put it to the test. Grafana and Kibana lit up with upcoming logs and metrics, showing the load shift in real time.
The picture is the same in Kibana, only here you can tell when we took a lunch break:.
It has been revealed that by the end of the day, we had successfully migrated all target repositories for a total of 4.5 TB into Xet storage. Downloads from each repository were now served by our infrastructure.
In a recent development, no launch is without its lessons. The system handled the load smoothly and migrations went off without any major disruptions, but as the bytes flowed through various components we began to see some trends.
Reviewing network throughput post-migration, we saw that CAS was downloading four times more data than it was returning to clients:.
Upon further investigation we found the vast majority of requests to CAS were for 10MB ranges of data within files. These requests come from people that are using hf_transfer to accelerate their downloads of large files. The requested ranges do not align on block boundaries and the block format doesn’t provide uncompressed chunk lengths to facilitate skipping directly to the data within the block. Instead, CAS streams the block starting at the beginning and reads until it finds the requested data.
According to recent reports, given a block with an average size of 60MB and multiple partial requests to ranges within that block, the overhead accumulates. CAS reads 210MB for just 60MB delivered, a ratio of 3.5 bytes downloaded : 1 byte sent to the client. At scale across blocks of irregular sizes and ranges that can span several blocks, the 4 bytes downloaded : 1 byte sent ratio is matched.
As usual, an image is worth a thousand words:.
Sources indicate that to fix this, we updated the block format to store chunk-length metadata, enabling CAS to download only what each request actually needs. This format change required coordinated updates across:.
All of which were undertaken without downtime. Not only did this result in a balanced ratio in CAS downloads to returned data, but also reduced GET latency by ~35% across the board.
At the same time, we also saw an unexpected load imbalance across our CAS cluster. One pod would spike to hundreds of active uploads while other pods chugged along at single digits. Swapping the load balancer’s routing algorithm (from round-robin to least outstanding requests) and adding more nodes made little difference in the moment.
Digging deeper we realized that during uploads, CAS writes to a temporary file for validation before uploading without calling fsync, allowing the OS to buffer writes in the page cache. When a spike of uploads comes in, the unflushed page cache leads to increased memory pressure.
As the OS tries to flush the page cache to disk, the pod experiences throughput throttling from block storage, causing increased latency on uploads. While uploads slowly process, new requests continue to come in, pushing more to the disk. This creates a vicious cycle, leading to a backlog of uploads and the imbalance that we saw during the migration:.
According to recent reports, to keep a pod from getting in this state, we put a limit to the number of concurrent uploads each machine accepts before rejecting requests that, when reached, pushes requests on to other pods in the cluster. If all pods in the cluster get in this state, then our autoscaling policies kick in. Longer-term solutions might include forcing disk syncs, removing the on-disk buffering, or switching to ephemeral storage with better throughput.
Recent findings suggest that these two challenges led to notable architectural improvements, but they weren’t the only challenges the team tackled in the weeks following the migration. We also addressed other performance issues, a memory leak (which we fixed but still can't definitively root cause), and on advice from AWS to migrate the LFS Bridge from an Application Load Balancer (ALB) to a Network Load Balancer (NLB) to improve scalability during bursts of traffic.
Recent findings suggest that in short, real-world load was essential for exposing these challenges, and incremental migrations let us tackle them safely. That’s how we’re ensuring Xet-backed repositories scale reliably for the entire Hugging Face community with faster uploads, fewer bottlenecks, and minimal disruption all the way.
With the initial migration complete, Xet is now on the Hugging Face Hub.
We’re finalizing an official integration with the huggingface_hub that will mean you get the benefits of Xet without any significant changes to your current workflow. To get going:.
In a recent development, if you have any questions, drop us a line in the comments 👇 or open a discussion on the Xet team page. And stay tuned as we roll out more pieces (faster web uploads, faster Git workflows), bringing faster big-file collaboration to every AI builder on Hugging Face!
📅 18 Mar 2025 | ⏱️ 3 min read (596 words, 📚 Deep Dive) | Source: Hugging Face
At its annual GTC conference, NVIDIA has unveiled a trio of groundbreaking open-source releases aimed at accelerating physical AI development. Release of a new suite of world foundation models (WFMs) with multicontrols called Cosmos Transfer, a highly curated Physical AI Dataset, and the first open model for general humanoid reasoning called NVIDIA Isaac GR00T N1 - represent a significant leap forward in physical AI technology, offering developers powerful tools and resources to advance robotics systems, and enhance autonomous vehicle technology.
Cosmos Transfer, the latest addition to NVIDIA's Cosmos™ world foundation models (WFMs), introduces a new level of control and accuracy in generating virtual world scenes.
Available in 7 billion parameter size, the model utilizes multicontrols to guide the generation of high-fidelity world scenes from structural inputs, ensuring precise spatial alignment and scene composition.
The model is built by training individual ControlNets separately for each sensor modality used to capture the simulated world.
Input types include 3D bounding box map, Trajectory map, Depth map, Segmentation map.
Outputs from Cosmos Transfer varying environments and weather conditions.
Cosmos Transfer coupled with the NVIDIA Omniverse platform is driving controllable synthetic data generation for robotics and autonomous vehicle development at scale. Find more Cosmos Transfer Examples on GitHub.
Cosmos Transfer samples built using post-training base model are also available for autonomous vehicles.
NVIDIA has also released Physical AI Dataset, an open-source dataset on Hugging Face for developing physical AI. This commercial-grade, pre-validated dataset consists of 15 terabytes of data representing more than 320,000 trajectories for robotics training, plus up to 1,000 Universal Scene Description (OpenUSD) assets, including a SimReady collection.
The dataset is designed for post-training foundation models like Cosmos Predict world foundation models, providing developers with high-quality, diverse data to enhance their AI models.
It has been revealed that another exciting announcement is the release of NVIDIA Isaac GR00T N1, the world's first open foundation model for generalized humanoid robot reasoning and skills. This cross-embodiment model takes multimodal input, including language and images, to perform manipulation tasks in diverse environments. The NVIDIA Isaac GR00T-N1-2B model is available on Hugging Face.
Isaac GR00T N1 was trained on an expansive humanoid dataset, consisting of real captured data, synthetic data generated using components of the NVIDIA Isaac GR00T Blueprint, and internet-scale video data. It is adaptable through post-training for specific embodiments, tasks and environments.
Sources indicate that isaac GR00T N1 uses a single model and set of weights to enable manipulation behaviors on various humanoid robots, such as the Fourier GR-1 and 1X Neo. It demonstrates robust generalization across a range of tasks, including grasping and manipulating objects with one or both arms, as well as transferring items between arms. It can also execute complex, multi-step tasks that require sustained contextual understanding and the integration of diverse skills. These capabilities make it well-suited for applications in material handling, packaging, and inspection.
Isaac GR00T N1 features a dual-system architecture inspired by human cognition, consisting of the following complementary components:.
Post-training is the path forward to advancing autonomous systems, creating specialized models for downstream physical AI tasks.
It has been revealed that check out GitHub for Cosmos Predict and Cosmos Transfer inference scripts. Explore the Cosmos Transfer research paper for more details.
According to recent reports, the NVIDIA Isaac GR00T-N1-2B model is available on Hugging Face. Sample datasets and PyTorch scripts for post-training using custom user datasets, which is compatible with the Hugging Face LeRobot format are available on GitHub. For more information about the Isaac GR00T N1 model, see the research paper.
Follow NVIDIA on Hugging Face for more updates.
📅 18 Mar 2026 | ⏱️ 2 min read (455 words, 📖 Standard) | Source: Sciencedaily

Industry observers note that farm labor shortages are pushing agriculture toward greater automation, especially when it comes to harvesting. But not all crops are easy for machines to handle. Tomatoes, for example, grow in clusters, which means a robot must carefully select ripe fruit while leaving unripe ones untouched. This requires precise control and smart decision-making.
To tackle this challenge, Assistant Professor Takuya Fujinaga of Osaka Metropolitan University's Graduate School of Engineering developed a system that trains robots to assess how easy each tomato is to harvest before attempting to pick it.
It has been revealed that his approach combines image recognition with statistical analysis to determine the best angle for picking each fruit. The robot analyzes visual details such as the tomato itself, its stems, and whether it is hidden behind leaves or other parts of the plant. These inputs guide the robot in choosing the most effective way to approach and pick the fruit.
From Detection to "Harvest-Ease" Decision-Making.
This method shifts away from traditional systems that focus only on detecting and identifying fruit. Instead, Fujinaga introduces what he calls "harvest-ease estimation." "This moves beyond simply asking 'can a robot pick a tomato?' to thinking about 'how likely is a successful pick?', which is more meaningful for real-world farming," he explained.
In testing, the system achieved an 81% success rate, exceeding expectations. About one-quarter of the successful picks came from tomatoes that were harvested from the side after an initial front-facing attempt failed. This indicates the robot can adjust its approach when the first attempt is not successful.
In a recent development, the research underscores how many variables affect robotic harvesting, including how tomatoes cluster, the shape and position of stems, surrounding leaves, and visual obstruction. "This research establishes 'ease of harvesting' as a quantitatively evaluable metric, bringing us one step closer to the realization of agricultural robots that can make informed decisions and act intelligently," Fujinaga said.
Future of Human-Robot Collaboration in Farming.
Looking ahead, Fujinaga envisions robots that can independently judge when crops are ready to be picked. "This is expected to usher in a latest form of agriculture where robots and humans collaborate," he explained. "Robots will automatically harvest tomatoes that are easy to pick, while humans will handle the more challenging fruits.".
The findings were published in Smart Agricultural Technology.
Materials provided by Osaka Metropolitan University. Note: Content may be edited for style and length.
Psychedelics May Leave a Lasting Mark on the Brain, Fresh Research Reveals.
A Tiny Twist Reveals a Hidden Atomic Grid That Changes How Electricity Behaves.
Taking Weight-Loss Drugs? New Study Reveals Why Lifting Weights Could Be Essential.
Ancient Meteorites May Have Delivered One of Lifeâs Most Essential Ingredients to Earth.
📅 19 Mar 2025 | ⏱️ 3 min read (636 words, 📚 Deep Dive) | Source: Hugging Face
Recent findings suggest that on March 14, we submitted Hugging Face's response to the White House Office of Science and Technology Policy's request for information on the White House AI Action Blueprint. We took this opportunity to (re-)assert the fundamental role that open AI systems and open science play in enabling the technology to be more performant and efficient, broadly and reliably adopted, and meeting the highest standards of security. This blog post provides a summary of our response, the full text is available here.
Open approaches to AI development are not only (typically) more transparent, adaptable, and scientifically sound, they have also consistently reproduced or surpassed the performance of widely-used API-only commercial offerings on many tasks; and are increasingly doing so on shorter timelines, with increased resource efficiency. Our team's recent OlympicCoder outperforming Claude 3.7 on complex coding tasks with 7B parameters and an open-source post-training recipe, or AI2's fully open OLMo 2 models (with open training data) matching o1-mini performances, are two of the most recent compelling examples. These successes show that a robust AI strategy must leverage open and collaborative development to best drive performance, adoption, and security of the technology. We make three major recommendations in this direction.
The most advanced AI systems to date all stand on a strong foundation of open research (attention mechanisms, transformer architectures, cheaper post-training algorithms) and open source software (PyTorch, Hugging Face libraries, supercomputer operating systems) — which reveals the critical value of continued support for openness in sustaining further progress. Investment in systems that can freely be re-used and adapted has also been shown to have a strong economic impact multiplying effect, driving a significant percentage of countries' GDP. As AI systems with open weights and training techniques become increasingly attractive options for developers in terms of both performance and cost, prioritizing public research infrastructure and broad access to compute, customizable models, and trusted open datasets — especially for smaller developers and researchers — will be essential to the further technical and economic success of AI technology.
Recent findings suggest that addressing the resource constraints of organizations adopting and adapting AI technology will be essential to supporting its diffusion and fostering innovation from adopters across the entire development chain. Smaller models (that may even be used on edge devices), techniques to reduce computational requirements at inference, and efforts to facilitate mid-scale training for organizations with modest to moderate computational resources all support the development of models that meet the specific needs of their use context, especially in high-risk settings such as healthcare where fully generalist models have proven unreliable. More efficient and purpose-designed AI systems facilitate better in-context evaluation, better resource utilization, and enable organizations to build technical capacity at all stages of the AI development chain to ensure that all users can leverage the system that best fits their needs.
According to recent reports, finally, if decades of information security and cybersecurity in open source software are any indication, open and transparent AI systems will have a fundamental role to play in securing AI development and deployment especially in the most critical settings — with different levels of openness needed for different security requirements. Fully transparent models providing access to their training data and procedures can support the most extensive safety certifications. Open infrastructure and open-source tooling implementing the latest training techniques can empower organizations to train the models they need in fully controlled environments. Open-weight models that can be run in air-gapped environments can be a critical component in managing information risks. Prioritizing adoption of the most transparent systems, supporting the development of the open resources outlined, and building capacity to leverage them especially in critical settings of AI adoption are essential to enabling more secure AI adoption.
Please refer to the full response for our more detailed recommendations!
📅 06 Nov 2026 | ⏱️ 4 min read (712 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
Weekly. Free. One click to leave.
Sources indicate that 7 Day Free Trial. Cancel Anytime.
Customer reviews are often displayed on business websites, but presenting them effectively requires more than adding a few star icons and customer quotes. Developers need to consider semantic HTML, responsive layouts, accessibility, and how review content fits into the overall user experience.
In a recent development, A well-built review section makes customer feedback easy to read without distracting visitors from the rest of the page. It should also work across different screen sizes and remain understandable to people using assistive technologies.
Let's look at how to build one using standard HTML and CSS.
The first step is to structure review content properly. Instead of placing everything inside generic elements, use meaningful HTML elements to describe the content.
For example, a review can use as its container and for the customer's actual feedback.
In a recent development, this structure separates the review from its attribution and gives the section a clear heading. The rating also includes an accessible label so screen-reader owners can understand what the stars represent.
For real websites, developers should display genuine customer feedback and avoid presenting invented testimonials as actual customer experiences.
A review section might look attractive on a desktop but become difficult to read on smaller screens. CSS Grid provides a straightforward way to create a flexible layout without relying on JavaScript.
Recent findings suggest that the auto-fit and minmax() combination allows cards to adjust to the available space. Instead of defining a fixed number of columns for every device, the browser fits as many cards as the container can comfortably accommodate.
Developers working with more complex interfaces can explore SitePoint's guide to responsive web design for additional layout techniques.
Industry observers note that A responsive layout should remain readable when viewed on a phone. Avoid fixed card widths, excessive padding, and text sizes that force owners to zoom.
You can also adjust spacing at smaller viewport widths:.
Test the section at several viewport sizes rather than relying on one desktop preview. Check that long customer names wrap correctly, cards do not overflow, and text remains comfortable to read.
Some review components use animated sliders, automatic scrolling, or hover effects. These features can create problems for visitors who prefer reduced motion or navigate with a keyboard.
In a recent development, A simple approach is to avoid unnecessary animation. If transitions are included, respect the visitor's system preference:.
The MDN guide to using media queries for accessibility explains how developers can adapt interfaces to user preferences.
Also make sure interactive controls have visible keyboard focus styles. A carousel should provide usable previous and next controls, clear labels, and a way to pause automatic movement if it is used.
On a production website, reviews may come from a database, a content management system, or an external review service. Keeping the content separate from the presentation makes the component easier to maintain.
Businesses can also use an online reputation management platform to monitor customer feedback and understand how their brand is perceived across online channels.
For example, a developer could store each review with fields such as:.
The frontend can then render the same component for every review. This avoids manually creating separate HTML for each customer and makes future design changes easier.
Developers should also validate incoming data, handle missing fields, and avoid displaying private customer information without permission.
Before publishing, check the component in different browsers and screen sizes. Test keyboard navigation, screen-reader labels, text wrapping, and color contrast. If reviews are loaded dynamically, check how the section behaves when there are no reviews or when the data request fails.
A useful review component does not need complicated animations or a large JavaScript library. Semantic HTML, flexible CSS Grid layouts, accessible labels, and reliable content handling provide a strong foundation.
Customer feedback can only be useful on a website when visitors can understand and navigate it easily. By treating reviews as a proper interface component rather than decorative content, developers can create sections that are maintainable, accessible, and consistent with the rest of the website.
Industry observers note that 7 Day Free Trial. Cancel Anytime.
📅 31 Mar 2026 | ⏱️ 3 min read (607 words, 📚 Deep Dive) | Source: Sciencedaily

In a recent development, imagine tiny robots made from DNA moving through the bloodstream, delivering drugs exactly where they are needed and targeting threats such as cancer cells or viruses. These microscopic machines could also assemble ultra-precise data storage systems and computing devices at the nanometer scale. Although the possibilities are remarkable, most DNA robots today remain in early experimental stages and are better understood as proof of concept rather than practical tools.
Researchers are exploring how DNA can be engineered into working machines using creative design approaches. These include building rigid DNA joints, incorporating flexible components, and using folding techniques inspired by origami. By applying principles from larger-scale robotics such as rigid, compliant and origami robots, scientists are adapting familiar mechanical concepts to the nanoscale. This allows DNA-based systems to carry out controlled and repeatable tasks despite their extremely small size.
Controlling Movement in DNA Nanorobots.
Guiding the motion of DNA robots in a constantly shifting molecular environment is a major challenge. To address this, scientists have developed control systems that help these machines behave in predictable ways. One notable method involves DNA strand displacement, a biochemical process that enables precise programming of movement using specific DNA sequences labeled as "fuel" and "structure.".
In addition to biochemical control, external physical signals such as electric fields, magnetic fields, and light can direct how these robots move. Together, these approaches provide a toolkit for fine-tuning the behavior of DNA machines with a high degree of accuracy.
DNA Robots in Medicine and Technology.
Industry observers note that the potential uses for DNA robots extend well beyond laboratory experiments. In medicine, they could function as "nano-surgeons," locating diseased cells and delivering targeted treatments with precision. Researchers are also exploring whether these machines could capture viruses like SARS-CoV-2, with future systems potentially operating as fully autonomous drug delivery platforms.
It has been revealed that DNA robots may also play a role in advanced manufacturing. Acting as programmable templates, they could position nanoparticles with sub-nanometer accuracy. This capability could lead to breakthroughs in molecular computing and highly efficient optical devices that outperform current technologies.
Challenges in Scaling DNA Robotics.
Recent findings suggest that despite rapid progress, several obstacles remain. Moving from large-scale systems to molecular machines introduces challenges such as Brownian motion, which makes precise control more difficult. Many current DNA robot designs are still relatively simple and operate in isolation, limiting their usefulness in complex real-world environments.
Industry observers note that there are also gaps in foundational knowledge. Researchers still lack detailed databases describing the mechanical properties of DNA structures, and simulation tools for predicting behavior at this scale are not yet fully developed.
To overcome these barriers, scientists emphasize the need for collaboration across disciplines. Proposed solutions include creating standardized DNA "parts libraries," using artificial intelligence to improve design and simulation, and advancing bio-manufacturing methods. Progress in these areas will be essential for scaling DNA robots and integrating them into practical applications in healthcare, manufacturing, and beyond.
"The robots of tomorrow won't just be made of metal and plastic," indicates the research team. "They will be biological, programmable, and intelligent. They will be the tools that allow us to finally master the molecular world.".
Sources indicate that materials provided by Journal Center of Harbin Institute of Technology. Note: Content may be edited for style and length.
Psychedelics May Leave a Lasting Mark on the Brain, New Research Reveals.
A Tiny Twist Reveals a Hidden Atomic Grid That Changes How Electricity Behaves.
Taking Weight-Loss Drugs? New Study Reveals Why Lifting Weights Could Be Essential.
Ancient Meteorites May Have Delivered One of Lifeâs Most Essential Ingredients to Earth.
📅 20 Mar 2025 | ⏱️ 3 min read (515 words, 📚 Deep Dive) | Source: Hugging Face

According to recent reports, everyone’s been using Claude and OpenAI as coding assistants for the last few years, but there’s less appeal if you look at the developments coming out of open source projects like Open R1. If we look at the evaluation on LiveCodeBench below, we can see that the 7B parameter variant outperforms Claude 3.7 Sonnet and GPT-4o. These models are the daily drivers of many engineers in applications like Cursor and VSCode.
Industry observers note that evals are great and all, but I want to get my hands dirty and feel the commits! This blog post focuses on how you can integrate these models in your IDE now. We will set up OlympicCoder 7B, the smaller of the two OlympicCoder variants, and we’ll use a quantized variant for optimum local inference. Here’s the stack we’re going to use:.
It has been revealed that it’s vital to say that we chose this stack purely for simplicity. You might want to experiment with the larger model and/or different GGUF files. Or even alternative inference engines like llama.cpp.
Sources indicate that LM Studio is like a control panel for AI models. It integrates with the Hugging Face hub to pull models, helps you find the right GGUF file, and exposes an API that other applications can use to interact with the model.
In short, it lets you download and run them without any complicated setup.
The GGUF files that we need are hosted on the hub. We can open the model from the hub in LMStudio, using the ‘Use this model’ button:.
This will link to the LMStudio application and open it on your machine. You’ll just need to Choose a Quantization. I went for Q4_K_M because it will perform well on most devices. If you have more compute, you might want to try out one of the options with Q8_*.
If you want to skip the UI, you can also load models with LMStudio via the command line:.
According to recent reports, this is the important part. We now need to integrate VScode with the model served by LMStudio.
Most of the core AI features in vscode are available via this setup, for example:.
OlympicCoder is not Claude. It’s optimised on the CodeForces-CoTs dataset which is based on competitive coding challenges. That means that you should not expect it to be super friendly and explanatory. Instead, roll up your sleeves and expect a no-holds barred competitive coder ready to deal with tough problems.
It has been revealed that you might want to mix up OlympicCoder with other models to get a rounded coding experience. For example, if you’re trying to squeeze milliseconds out of a binary search, try OlympicCoder. If you want to design a user facing API, go for Claude-3.7-sonnet or Qwen-2.5-Coder.
Industry observers note that I don't see the chart you posted on https://livecodebench.github.io/leaderboard.html . What am I missing?
it is at https://huggingface.co/open-r1/OlympicCoder-7B.
Not an industry standard for professionals:.
Visual Studio Code 74%Visual Studio 29.7%IntelliJ IDEA 27.9%Notepad++ 24%Vim 21.6%.
https://survey.stackoverflow.co/2024/technology#1-integrated-development-environment.
Hence continue.dev only works with JetBrain and VSC.
📅 06 Apr 2026 | ⏱️ 5 min read (924 words, 📚 Deep Dive) | Source: Sciencedaily

Sources indicate that artificial intelligence is consuming enormous amounts of electricity in the United States. According to the International Energy Agency, AI systems and data centers used about 415 terawatt hours of power in 2024. That accounts for more than 10% of the country's total electricity production, and demand is projected to double by 2030.
This rapid growth has raised concerns about sustainability. In response, researchers at a School of Engineering have created a proof-of-concept AI system designed to be far more efficient. Their approach could reduce energy use by up to 100 times while also improving performance on tasks.
A Hybrid Approach Called Neuro-Symbolic AI.
The research comes from the laboratory of Matthias Scheutz, Karol Family Applied Technology Professor. His team is developing neuro-symbolic AI, which combines traditional neural networks with symbolic reasoning. This method mirrors how people approach problems by breaking them into steps and categories.
The work will be presented at the International Conference of Robotics and Automation in Vienna in May and will appear in the conference proceedings.
Teaching Robots to See, Understand, and Act.
Sources indicate that unlike familiar large language models (LLMs) such as ChatGPT and Gemini, the team focuses on AI systems used in robotics. These systems are known as visual-language-action (VLA) models. They extend LLM capabilities by incorporating vision and physical movement.
VLA models take in visual data from cameras and instructions from language, then translate that information into real-world actions. For example, they can control a robot's wheels, arms, or fingers to complete a task.
Why Traditional AI Struggles With Simple Tasks.
According to recent reports, conventional VLA systems rely heavily on data and trial-and-error learning. If a robot is asked to stack blocks into a tower, it must first analyze the scene, identify each block, and determine how to place them correctly.
Industry observers note that this process often leads to mistakes. Shadows may confuse the system about a block's shape, or the robot may place pieces incorrectly, causing the structure to collapse.
Sources indicate that these errors are similar to the problems seen in LLMs. Just as robots can misplace blocks, chatbots can generate false or misleading outputs. Examples include fabricating legal cases or producing images with unrealistic details such as extra fingers.
How Symbolic Reasoning Improves Accuracy and Efficiency.
It has been revealed that symbolic reasoning offers a different strategy. Instead of relying only on patterns from data, it uses rules and abstract concepts such as shape and balance. This allows the system to blueprint more effectively and avoid unnecessary trial and error.
"Like an LLM, VLA models act on statistical results from large training sets of similar scenarios, but that can lead to errors," said Scheutz. "A neuro-symbolic VLA can apply rules that limit the amount of trial and error during learning and get to a solution much faster. Not only does it complete the task much faster, but the time spent on training the system is significantly reduced.".
The researchers tested their system using the Tower of Hanoi puzzle, a classic problem that requires careful planning.
In a recent development, the neuro-symbolic VLA achieved a 95% success rate, compared with just 34% for standard systems. When given a more complex version of the puzzle that it had not encountered before, the hybrid system still succeeded 78% of the time. Traditional models failed every attempt.
Industry observers note that training time also dropped sharply. The upcoming system learned the task in only 34 minutes, while conventional models required more than a day and a half.
Massive Energy Savings in Training and Use.
Industry observers note that energy consumption was reduced dramatically as well. Training the neuro-symbolic model required only 1% of the energy used by a standard VLA system. During operation, it used just 5% of the energy needed by conventional approaches.
It has been revealed that scheutz compared this inefficiency to everyday AI tools. "These systems are just trying to predict the next word or action in a sequence, but that can be imperfect, and they can come up with inaccurate results or hallucinations. Their energy expense is often disproportionate to the task. For example, when you search on Google, the AI summary at the top of the page consumes up to 100 times more energy than the generation of the website listings.".
The Growing Strain of AI on Power Infrastructure.
As AI adoption accelerates across industries, demand for computing power continues to climb. Companies are building increasingly large data centers, some of which require hundreds of megawatts of electricity. That level of consumption can exceed the needs of entire small cities.
This trend has sparked a race to expand infrastructure, raising concerns about long-term energy limits.
Recent findings suggest that the researchers suggest that current approaches based on LLMs and VLAs may not be sustainable in the long run. While these systems are powerful, they consume large amounts of energy and can still produce unreliable results.
In a recent development, in contrast, neuro-symbolic AI offers a different direction. By combining learning with structured reasoning, it may provide a more efficient and dependable foundation for future AI systems.
In a recent development, materials provided by Tufts University. Note: Content may be edited for style and length.
Psychedelics May Leave a Lasting Mark on the Brain, Fresh Research Reveals.
A Tiny Twist Reveals a Hidden Atomic Grid That Changes How Electricity Behaves.
Taking Weight-Loss Drugs? Latest Study Reveals Why Lifting Weights Could Be Essential.
Ancient Meteorites May Have Delivered One of Lifeâs Most Essential Ingredients to Earth.
📅 21 Mar 2025 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 07 Apr 2026 | ⏱️ 6 min read (1256 words, 📚 Deep Dive) | Source: Sciencedaily

Modern electronics power everything from smartphones to satellites, but they all share a major limitation. Heat. Once temperatures climb above roughly 200 degrees Celsius, most devices begin to break down. For decades, this thermal barrier has been one of the toughest challenges in engineering.
Researchers at the University of Southern California now believe they have found a way past that limit.
In a study published on March 26, 2026 in Science, a team led by Joshua Yang, Arthur B. Freeman Chair Professor at the Ming Hsieh Department of Electrical and Computer Engineering at the USC Viterbi School of Engineering and the USC School of Advanced Computing, unveiled a latest type of memory device that continues to operate at 700 degrees Celsius (~1300 degrees Fahrenheit). That temperature exceeds molten lava and goes far beyond anything previously achieved for this class of technology. The device revealed no sign of failure. In fact, 700 degrees was simply the maximum their equipment could test.
In a recent development, "You may call it a revolution," Yang stated. "It is the best high-temperature memory ever demonstrated.".
A Memristor Built for Extreme Heat.
The new device is known as a memristor, a nanoscale component that can both store data and perform computations. It is constructed like a microscopic layered structure, with two electrodes on either side and a thin ceramic layer in between.
Jian Zhao, the study's first author, built the device using tungsten for the top electrode, hafnium oxide ceramic in the middle, and graphene for the bottom layer. Tungsten has the highest melting point of any element, while graphene, a single-atom-thick sheet of carbon, is known for its exceptional strength and heat resistance.
Sources indicate that this combination produced remarkable performance. The device retained data for more than 50 hours at 700 degrees without needing to be refreshed. It also endured over one billion switching cycles at that temperature and operated at just 1.5 volts with speeds measured in tens of nanoseconds.
It has been revealed that the discovery was not part of the team's original strategy. They were initially attempting to create a different graphene-based device, which did not work as intended. Along the way, they encountered something surprising.
"To be honest, it was by accident, as most discoveries are," Yang said. "If you can predict it, it's usually not surprising, and probably not significant enough.".
Further investigation revealed why the device performed so well. In conventional electronics, heat causes metal atoms in the top electrode to slowly migrate through the ceramic layer. Eventually, they reach the bottom electrode, creating a permanent connection that short-circuits the device and leaves it stuck in the on state.
According to recent reports, graphene prevents this failure. Its interaction with tungsten is, as Yang described it, similar to oil and water. Tungsten atoms that approach the graphene surface cannot attach to it. Without a stable point to settle, they drift away instead of forming a conductive bridge. This prevents short circuits and preserves the device's function even under extreme heat.
Industry observers note that the researchers confirmed this mechanism using advanced electron microscopy, spectroscopy, and quantum-level simulations. By understanding what happens at the atomic interface, they have turned an unexpected result into a principle that could guide future designs. Other materials with similar surface properties could be identified, which may help scale the technology for industrial production.
Applications in Extreme Environments.
Electronics capable of operating above 500 degrees Celsius have long been a goal for space exploration. Venus, for example, has a surface temperature around that level, and every lander sent there has failed in part due to extreme heat. Current silicon-based chips cannot survive such conditions.
"We are now above 700 degrees, and we suspect it will go higher," Yang said.
Sources indicate that the potential applications go far beyond space missions. Geothermal energy systems require electronics that can function deep underground, where surrounding rock can glow red-hot. Nuclear and fusion systems also expose equipment to intense heat. Even in everyday settings, durability improves significantly. A device rated for 700 degrees would be extremely robust at the roughly 125-degree temperatures often reached inside automotive electronics.
Why It Matters for Artificial Intelligence.
According to recent reports, in addition to storing data, the device offers a major advantage for artificial intelligence. Many AI systems rely heavily on matrix multiplication, a mathematical operation used in tasks like image recognition and language processing. Traditional computers perform these calculations step by step, consuming large amounts of energy.
Recent findings suggest that memristors approach the problem differently. By using Ohm's Law, where voltage times conductance equals current, the device performs calculations directly as electricity flows through it. The result is obtained instantly as the measured current.
In a recent development, "Over 92 percent of the computing in AI systems like ChatGPT is nothing but matrix multiplication," Yang said. "This type of device can perform that in the most efficient way, orders of magnitude faster and at lower energy.".
Industry observers note that yang and three co-authors of the study (Qiangfei Xia, Miao Hu, and Ning Ge) have already co-founded a firm called TetraMem to commercialize memristor-based AI chips at room temperature. Their lab is already using working chips from TetraMem for machine learning tasks. The high-temperature version described in this research could extend those capabilities to environments where traditional electronics cannot operate, allowing devices such as spacecraft or industrial sensors to process data directly on site.
From Lab Prototype to Real-World Technology.
Industry observers note that despite the promising results, Yang emphasizes that practical applications are still some distance away. Memory is only one part of a complete computing system. High-temperature logic circuits will also need to be developed and integrated. In addition, the current devices were built manually at very small scales in a laboratory setting, so manufacturing at scale will take time.
According to recent reports, "This is the first step," Yang said. "It's still a long way to go. But logically, you can see: now it makes it possible. The missing component has been made.".
Recent findings suggest that from a manufacturing perspective, two of the materials used in the device, tungsten and hafnium oxide, are already widely used in semiconductor production. Graphene is newer but is actively being developed by major companies such as TSMC and Samsung, and it has already been produced at wafer scale in research environments.
It has been revealed that the work was conducted through the CONCRETE Center, short for Center of Neuromorphic Computing under Extreme Environments, a multi-university Center of Excellence led by USC and supported by the Air Force Office of Scientific Research and the Air Force Research Laboratory. Key experimental work was carried out in collaboration with Dr. Sabyasachi Ganguli's team at the AFRL Materials Lab in Dayton, Ohio, while theoretical analysis involved USC researchers and collaborators at Kumamoto University in Japan.
For Yang, publication in Science reflects more than a single achievement.
It has been revealed that "Space exploration has never been so real, so close, and at such a large scale," he mentioned. "This paper represents a critical leap into a much larger, more exciting frontier.".
Materials provided by University of Southern California. Note: Content may be edited for style and length.
Psychedelics May Leave a Lasting Mark on the Brain, Latest Research Reveals.
A Tiny Twist Reveals a Hidden Atomic Grid That Changes How Electricity Behaves.
Taking Weight-Loss Drugs? Upcoming Study Reveals Why Lifting Weights Could Be Essential.
Ancient Meteorites May Have Delivered One of Lifeâs Most Essential Ingredients to Earth.
📅 06 Nov 2026 | ⏱️ 5 min read (956 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
According to recent reports, weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
A device disconnects halfway through a test. The application reports a timeout, the firmware restarts, and the next attempt succeeds. Where should you start?
For developers working with connected devices, browser interfaces, or hardware prototypes, an application error is often only the final symptom. Replacing code without recording the conditions around a failure can leave you chasing the wrong layer.
Industry observers note that this tutorial builds a small browser-based diagnostic log. It records measurements, preserves the test conditions, and exports evidence for another developer to review. You need basic HTML and JavaScript knowledge; no framework or connected instrument is required.
1. Define the question before collecting data Consider a hypothetical development board that disconnects when a peripheral starts. Several explanations remain possible: a firmware exception, a transport problem, or a power supply concern. Start with a testable question: “Does the measured supply voltage change when this peripheral starts?” That question tells you what to record and what to keep constant.
Use a known-good board of the same revision where available. Match the firmware, cable, supply, peripheral, and workload. A comparison loses value when several conditions change together.
Record the observation separately from the explanation:.
The hypothesis remains provisional. A reading taken after the device restarts does not establish what happened during the failure.
According to recent reports, 2. Choose evidence that answers the question Application logs, firmware traces, and bench measurements answer different questions. A timeout establishes that an operation did not finish in time; it does not identify a failed component.
Industry observers note that for a view of specialist equipment used in phone-board troubleshooting, DIYFIXTOOL’s overview of Chip-Level Diagnostic Tools discusses thermal imaging, BGA X-ray inspection, and inductance testing. Treat it as a vendor-authored introduction to equipment categories; use instrument documentation and board-specific references when interpreting measurements.
In a recent development, the log below deliberately leaves interpretation to the operator. Enter a numeric value, its unit, and the conditions under which it was measured. Do not turn an isolated reading into an automatic “faulty chip” verdict.
For physical measurements, follow the board and instrument documentation and work within your training. This tutorial covers the software record rather than a procedure for probing or repairing a powered device. 3. Build a small, accessible form.
Industry observers note that save the following as index.html and serve it through your usual local development server. For example, if Python is installed, run python -m http. server 8000 in its directory, then open http://localhost:8000. 4. Preserve data without hiding failures.
In a recent development, the application stores an array of records as JSON. On reload, it parses that JSON and checks the expected field types before rendering it. Parsing alone does not validate the structure of stored data.
In a recent development, sitePoint’s guide to looping through JSON responses provides useful background on working with objects and arrays after parsing JSON. Each table cell uses textContent, so a note containing HTML is displayed as text rather than inserted as markup. The MDN documentation for textContent explains this behavior.
Storage operations sit inside try...catch blocks because browser persistence can fail. The interface keeps fresh measurements in memory and offers an export when saving fails. It does not claim those measurements will survive a reload. For another practical vanilla JavaScript project, SitePoint’s **Markdown previewer tutorial **explores browser UI construction and persistence.
As **MDN’s localStorage documentation **explains, storage belongs to the document’s origin. Opening the application on a different port may therefore show a different log. This prototype is a single-browser tool, so export crucial sessions and avoid recording customer identifiers or private device contents.
5. Compare measurements under matching conditions Suppose two hypothetical readings are 3.29 V and 3.08 V. Their difference is −0.21 V. That arithmetic is straightforward; its meaning depends on the rail specification, measurement uncertainty, workload, and timing.
In a recent development, do not add a universal voltage threshold to the application. A device-specific limit should come from its specification or an established test procedure.
According to recent reports, if the failure is brief, a manually entered steady-state measurement may miss it entirely. Record that limitation. The next investigation may require a time-correlated capture rather than another static reading.
When sharing a session, include the firmware revision, board revision, instrument settings, and reproduction steps. A colleague should be able to repeat the comparison without guessing how the reading was obtained. 6. Verify the workflow before relying on it Try adding a decimal reading and a negative reading, then reload the page. Confirm that both values and their units remain intact. Enter a note containing test and check that it appears literally in the table.
In a recent development, export the JSON and inspect the record count. Then simulate blocked storage and confirm that the interface reports the failure while allowing an export of the current session.
For a larger application, add editable entries, instrument metadata, and explicit baseline records. A shared service would also need access controls, server-side validation, and a policy for retention. These additions should follow the needs of the diagnostic workflow.
Turn a symptom into a reproducible investigation.
In a recent development, the finished prototype captures a useful minimum: what was measured, where, when, and under which conditions. Its value comes from preserving evidence that another person can inspect.
When an application error crosses into firmware or hardware, that record helps you choose the next experiment. Repeat the failure, change one variable, and document what the new evidence supports before deciding what to fix.
7 Day Free Trial. Cancel Anytime.
📅 24 Mar 2025 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 26 Mar 2025 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 26 Mar 2025 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 10 Apr 2026 | ⏱️ 4 min read (849 words, 📚 Deep Dive) | Source: Sciencedaily

As data centers consume more energy to support growing digital demands, engineers at the University of California San Diego have introduced a new chip design that could make powering graphics processing units (GPUs) more efficient. The innovation focuses on a key function in electronics: converting high voltages into the lower levels required by computing hardware. In laboratory testing, a prototype chip successfully performed this type of voltage conversion with high efficiency under conditions similar to those found in modern data centers.
The findings, published in Nature Communications, suggest the potential for smaller and more energy-efficient systems in advanced computing environments.
Rethinking DC-DC Converters for Modern Electronics.
Sources indicate that at the center of the fresh design is an improved version of a widely used component known as a DC-DC step-down converter. These converters are found in nearly all electronic devices and serve as a critical link between power sources and sensitive circuits. Their job is to take a high incoming voltage and reduce it to the exact level needed for safe operation.
In data centers, electricity is often distributed at 48 volts, while GPU processors typically require much lower voltages, usually between 1 and 5 volts. Efficiently managing this large voltage drop has become increasingly challenging as computing systems grow more powerful and compact.
Limits of Traditional Power Conversion Technology.
Recent findings suggest that conventional step-down converters often struggle when dealing with large differences between input and output voltage. As that gap increases, efficiency drops and it becomes harder to supply enough current. Most existing designs rely on magnetic components such as inductors. While these components have been refined over many years, they are approaching their practical limits and are becoming harder to improve further.
"We've gotten so good at designing inductive converters that there's not really much room left to improve them to meet future needs," remarked study senior author Patrick Mercier, professor in the Department of Electrical and Computer Engineering at the UC San Diego Jacobs School of Engineering.
Exploring Piezoelectric Resonators as an Alternative.
Sources indicate that to move beyond these limitations, Mercier and his team, including first author Jae-Young Ko, an electrical and computer engineering Ph.D. student at UC San Diego, investigated a different approach using piezoelectric resonators. These small devices store and transfer energy through mechanical vibrations rather than magnetic fields.
Converters based on piezoelectric components could offer several advantages. They have the potential to be smaller, more energy dense, more efficient, and easier to manufacture at scale. "They have a lot of room to grow and have the potential to deliver better performance than anything that's come before them," Mercier noted.
However, earlier versions of piezoelectric converters have had difficulty maintaining efficiency and delivering sufficient power when handling large voltage differences.
Hybrid Design Achieves High Efficiency and Power Output.
To overcome these challenges, the researchers created a hybrid converter that combines a piezoelectric resonator with small, commercially available capacitors arranged in a carefully designed configuration. This setup enables the system to handle larger voltage conversions more effectively.
The team incorporated this design into a prototype chip and tested its performance. The device successfully converted 48 volts down to 4.8 volts -- a level commonly required in data centers -- with a peak efficiency of 96.2 percent. It also delivered roughly four times more output current than previous piezoelectric-based designs.
This hybrid approach offers several benefits. It creates multiple pathways for energy to move through the system, reduces wasted power, and lessens the strain on the resonator. Together, these improvements enhance both efficiency and power delivery while only slightly increasing the chip's size.
Challenges and Next Steps for Real-World Use.
Although the technology indicates strong promise, it is still in the early stages of development. The researchers view it as an important step toward overcoming the constraints of current power conversion systems. Future efforts will focus on refining materials, improving circuit designs, and developing better packaging methods.
According to recent reports, one challenge is that piezoelectric resonators physically vibrate, which means they cannot be attached to circuit boards using standard soldering techniques. New integration strategies will be needed to incorporate them into electronic systems, Mercier explained.
It has been revealed that "Piezoelectric-based converters aren't quite ready to replace existing power converter technologies yet," Mercier added. "But they offer a trajectory for improvement. We need to continue to improve on multiple areas -- materials, circuits and packaging -- to make this technology ready for data center applications.".
This project was supported in part by the Power Management Integration Center (PMIC), an Industry-University Cooperative Research Center (IUCRC) funded by the National Science Foundation (award number 2052809).
Industry observers note that materials provided by University of California - San Diego. Note: Content may be edited for style and length.
Psychedelics May Leave a Lasting Mark on the Brain, New Research Reveals.
A Tiny Twist Reveals a Hidden Atomic Grid That Changes How Electricity Behaves.
Industry observers note that taking Weight-Loss Drugs? New Study Reveals Why Lifting Weights Could Be Essential.
Ancient Meteorites May Have Delivered One of Lifeâs Most Essential Ingredients to Earth.
📅 28 Mar 2025 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 31 Mar 2025 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 13 Apr 2026 | ⏱️ 6 min read (1116 words, 📚 Deep Dive) | Source: Sciencedaily

Researchers at Chalmers University of Technology in Sweden have introduced a latest theoretical design for quantum systems based on what they call "giant superatoms." This concept offers a fresh way to protect, control, and share quantum information, potentially bringing scientists closer to building large-scale quantum computers.
Quantum computers are expected to transform fields like drug discovery and encryption by solving problems that are far beyond the reach of conventional machines. However, progress has been limited by a major challenge known as decoherence. This occurs when quantum bits, or qubits, lose their information due to interactions with their surroundings. Even small amounts of electromagnetic noise can disrupt the fragile quantum states needed for computation.
According to recent reports, "Quantum systems are extraordinarily powerful but also extremely fragile. The key to making them useful is learning how to control their interaction with the surrounding environment," says Lei Du, postdoctoral researcher in applied quantum technology at Chalmers.
Industry observers note that lei Du is the lead author of a study that outlines this newly introduced type of quantum system. The design is built around giant superatoms, which combine several vital features. These systems reduce decoherence, remain stable, and consist of multiple interconnected "atoms" that function together as a single unit.
Giant superatoms bring together two previously separate ideas in quantum physics: giant atoms and superatoms. While each has been studied on its own, this is the first time they have been merged into a single system. These structures behave like atoms but are not found in nature. Instead, they are engineered by scientists (see fact box below).
Giant Atoms and Their "Quantum Echo".
It has been revealed that the idea of giant atoms was first introduced by researchers at Chalmers over a decade ago and is now widely used in the field. A giant atom is typically designed as a qubit (which is the smallest unit of quantum information). Unlike ordinary atoms, it connects to light or sound waves at multiple, physically separated points. This allows it to interact with its environment in several places at once, helping it preserve quantum information.
"Waves that leave one connection point can travel through the environment and return to affect the atom at another point -- similar to hearing an echo of your own voice before you've finished speaking. This self-interaction leads to highly beneficial quantum effects, reduces decoherence and gives the system a form of memory of past interactions," explains Anton Frisk Kockum, Associate Professor of Applied Quantum Physics at Chalmers and co-author of the study.
Extending Entanglement Across Distances.
According to recent reports, although giant atoms have improved understanding of quantum behavior, they have had limitations when it comes to entanglement. Entanglement allows multiple qubits to share a single quantum state and act as one coordinated system, which is essential for powerful quantum computers.
According to recent reports, to overcome this limitation, the research team combined giant atoms with the concept of superatoms. A superatom consists of several natural atoms that share the same quantum state and behave collectively as one larger atom.
This combination is expected to make it easier to create complex quantum states needed for quantum communication, networks, and highly sensitive measurement systems.
It has been revealed that "A giant superatom may be envisaged as multiple giant atoms working together as a single entity, exhibiting a non-local interaction between light and matter. This enables quantum information from multiple qubits to be stored and controlled within one unit, without the need for increasingly complex surrounding circuitry," explains Lei Du.
"Giant superatoms open the door to entirely upcoming capabilities, giving us a powerful new toolbox. They allow us to control quantum information and create entanglement in ways that were previously extremely difficult, or even impossible," states Janine Splettstoesser, Professor of Applied Quantum Physics at Chalmers and co-author of the study.
Toward Scalable and Practical Quantum Systems.
This work creates latest possibilities for building quantum systems that are both scalable and reliable. The researchers proposal to move from theory toward actually constructing these systems. Their design could also be integrated with other quantum technologies, serving as a building block for connecting different types of quantum platforms.
According to recent reports, "There is at the moment strong interest in hybrid approaches, in which different quantum systems work together, because each has its own strengths," claims Anton Frisk Kockum. "Our research reveals that smart design can reduce the need for increasingly complex hardware and giant superatoms are bringing us one step closer to practically applicable quantum technology.".
Controlling Quantum Information Flow.
More on: Methods for protecting, controlling and distributing quantum information.
Recent findings suggest that the study reveals that the way giant superatoms interact with light depends on their internal quantum states. This discovery gives researchers greater control over how quantum information moves through a system. They describe two different ways of connecting these structures to achieve useful outcomes.
In one setup, several giant superatoms are closely linked in a specific arrangement. This allows them to pass quantum states between each other without decoherence, meaning no information is lost.
In another setup, the atoms are spaced farther apart but connected in a carefully tuned way so that waves remain synchronized. This makes it possible to direct quantum signals and distribute entanglement over long distances.
Understanding Giant Atoms and Superatoms.
Superatoms and giant atoms are engineered systems that behave like atoms rather than naturally occurring ones.
A superatom is a quantum system made up of multiple natural atoms that share a single quantum state and respond to light as one entity.
A giant atom, on the other hand, connects to light or sound waves at several separate points in space. It is called "giant" because it is larger than the wavelength of the light it interacts with.
Giant atoms have defined energy levels and follow the rules of quantum mechanics, yet they can reach sizes of up to millimeters, making them visible to the naked eye. Through electromagnetic or acoustic waves, they can interact with their surroundings at multiple locations at the same time. One way to picture this is as a single atom linked to a wave at several distant points. This unusual setup allows the atom to be influenced by the waves it produces.
Sources indicate that materials provided by Chalmers University of Technology. Note: Content may be edited for style and length.
Psychedelics May Leave a Lasting Mark on the Brain, New Research Reveals.
A Tiny Twist Reveals a Hidden Atomic Grid That Changes How Electricity Behaves.
Industry observers note that taking Weight-Loss Drugs? New Study Reveals Why Lifting Weights Could Be Essential.
Ancient Meteorites May Have Delivered One of Lifeâs Most Essential Ingredients to Earth.
📅 07 Nov 2026 | ⏱️ 6 min read (1141 words, 📚 Deep Dive) | Source: Sitepoint

Stay up to date with AI tools, model releases, and developer workflows that matter.
Industry observers note that weekly. Free. One click to leave.
7 Day Free Trial. Cancel Anytime.
It has been revealed that think about what's sitting in your inbox and Drive right now. Client contracts and invoices. Project specs under NDA. Staging credentials a client emailed you. That API key or password you meant to delete.
It has been revealed that for most developers and freelancers, all of it lives in Google Workspace or Microsoft 365. Both are excellent tools, and both encrypt your data in transit and at rest. But in their standard setup, the provider holds the encryption keys, which means your provider (and the integrated apps and AI features connected to it) can access what's inside.
Proton Workspace takes a different approach: the same everyday tools, with encryption designed so that not even Proton can read your data.
Here's how the three compare, what each does best, and which makes the most sense for how you work.
It has been revealed that google and Microsoft are built around ecosystem integration. Proton is built around keeping your data yours, without sacrificing productivity tools.
Sources indicate that google Workspace is the go-to suite for startups, agencies and freelancers, and for good reason. Gmail, Drive, Docs, Sheets, Calendar and Meet work together seamlessly, and several people can edit the same file in real time without emailing versions back and forth.
Google encrypts data at rest and in transit, and offers client-side encryption on eligible editions. But that extra layer requires higher-tier looks and configuration, so in the default experience Google holds the keys. A password manager and VPN aren't part of the suite.
Best for: Teams whose top priorities are real-time collaboration and third-party integrations.
According to recent reports, if your work runs on Word, Excel and Outlook, Microsoft 365 needs little introduction. Business Standard includes full desktop apps, and Excel remains the benchmark for heavy spreadsheet work.
Industry observers note that that breadth comes with complexity. Licensing, permissions and device management can eat into time a small team or solo developer would rather spend shipping. And like Google, Microsoft's everyday productivity experience isn't built around end-to-end encryption, while Copilot and advanced security features add cost.
Best for: Businesses built on desktop Office apps and established Microsoft workflows.
Industry observers note that proton Workspace starts from a different premise. Instead of building a productivity suite and adding privacy features on top, Proton built privacy into the foundation, then delivered the everyday tools around it.
What's included in Workspace Standard:.
Everything is managed from one admin console, with one bill.
Recent findings suggest that this is the core difference. Proton uses zero-access encryption: your data is encrypted before it reaches Proton's servers, and Proton never holds the keys. Proton can't read your data. Not won't. Can't.
That has practical consequences:.
The honest trade-offs: Proton Docs and Sheets cover core editing and collaboration, not every advanced Excel feature. There's no presentation app yet, and the third-party integration ecosystem is smaller than Google's or Microsoft's.
Best for: Developers, freelancers, agencies and startups that handle client data, code and credentials, and want privacy and savings in one suite.
US prices for comparable plans with annual billing, excluding taxes:.
According to recent reports, the headline prices are close. The real cost isn't:.
Proton Workspace covers business email, 1 TB of encrypted storage, docs, sheets, video calls, a password manager and a VPN. That's one bill instead of three.
Sources indicate that need more? Workspace Premium and adds 3 TB of storage per user, 20 custom domains, meetings for up to 250 participants, Lumo private AI and email data retention policies for only $7 more per month. Both aims include a 14-day free trial, and annual plans are presently up to 20% off.
Choose Google Workspace if your team lives in real-time collaboration and relies heavily on Google's integration ecosystem.
Choose Microsoft 365 if your work depends on desktop Excel, PowerPoint and established Microsoft workflows.
Choose Proton Workspace if you handle client data, proprietary code or credentials you don't want readable by your provider or if you want privacy you can verify, with open-source, audited apps.
It has been revealed that less than you might expect. Proton's Easy Switch tool imports email, contacts and calendars from Google Workspace and other providers, and you keep your custom domain, so clients won't notice a thing. Smaller teams can migrate on their own, and Proton's business team supports larger moves.
According to recent reports, moving from Microsoft 365? Check the migration options for each data type rather than assuming every workflow transfers automatically.
Is Proton Workspace a good alternative to Google Workspace for developers?
It has been revealed that yes, for developers who prioritize privacy and cost. It covers email, storage, documents, spreadsheets and video calls, adds a password manager and VPN, and costs $12.99/user/month versus $14 for Google Workspace Business Standard.
Can Google Workspace or Microsoft 365 read my email and files?
By default, yes. Google Workspace and Microsoft 365 hold the encryption keys, and their default terms give them access to your data.
Can Proton read my email and files?
According to recent reports, no. Zero-access encryption means Proton never holds the keys to your stored data. Emails between Proton users are end-to-end encrypted automatically, and you can send password-protected encrypted emails to anyone.
Yes. Proton's apps are open source and independently audited.
Can I use Proton Mail with my existing email client?
Yes. Proton Mail Bridge connects Outlook, Apple Mail and Thunderbird.
Does Google Workspace or Microsoft 365 use my data to train AI?
It can. If your plan allows Google Workspace or Microsoft 365 to hold the encryption keys, they can access your data and use it to train their integrated AI models.
Does Proton use my data to train AI?
No. Proton can't read your data, so it can't use it for AI training.
Google Workspace and Microsoft 365 are mature, capable platforms, and if your work depends on advanced Excel or a deep web of Google integrations, there's a good case for using them.
But if you're a freelancer or a developer or running a small team, Proton Workspace is the stronger choice. You get the same core tools for less money, a password manager and VPN you'd otherwise pay for separately, and encryption that keeps client data, code and credentials readable only by you.
You don't have to take that on faith, either. The code is open source, and the trial is free.
Start your free 14-day Proton Workspace trial, and save up to 20% on annual plans.
According to recent reports, sponsored posts are provided by our content partners. Thank you for supporting the partners who make SitePoint possible.
7 Day Free Trial. Cancel Anytime.
📅 02 Apr 2025 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 03 Apr 2025 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 04 Apr 2025 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 15 Apr 2026 | ⏱️ 5 min read (908 words, 📚 Deep Dive) | Source: Sciencedaily

In a recent development, imagine a swarm of robots rushing to complete an urgent job, such as cleaning up an oil spill or assembling complex machinery. At first, adding more robots speeds things up. But after a certain point, the space becomes crowded, robots start interfering with one another, and overall progress slows.
This raises a simple but key question: in a limited area, how many robots can you deploy before efficiency starts to drop? Researchers at Harvard believe they have found a clear answer.
A Simple Idea That Boosts Efficiency.
Recent findings suggest that A latest study from the lab of L. Mahadevan, the Lola England de Valpine Professor of Applied Mathematics, Organismic and Evolutionary Biology, and Physics, shows that adding a controlled amount of randomness to how robots move can reduce congestion and improve performance in crowded environments.
The work combines mathematical modeling, computer simulations, and real-world experiments. It demonstrates how basic local movement rules can lead to organized, efficient outcomes on a larger scale. The findings could influence how robotic fleets are designed and may even apply to human crowd management and traffic flow. The research was published in Proceedings of the National Academy of Sciences and led by applied mathematics Ph.D. student Lucy Liu, with guidance from SEAS Senior Research Fellow Justin Werfel.
Why Randomness Helps Predict Complex Behavior.
Industry observers note that studying dense crowds is difficult because individuals can take countless possible paths and interact in unpredictable ways, Liu explained. To simplify the problem, the researchers treated each robot as a basic unit with a small, adjustable amount of variation in its movement.
Recent findings suggest that "This might be counterintuitive, because how could randomness make things easier to work with?" noted Liu. "But in this case, when you have a lot of randomness, it becomes possible to take averages -- average distances, average times, average behaviors. This makes it a lot easier to make predictions.".
Simulating Robot Swarms in Motion.
To explore this idea, the team created computer simulations of robot groups, referred to as agents. Each agent started at a random location and was assigned a random destination. Once it reached its target, it immediately received a new one, mimicking continuous task assignment in real-world systems.
Industry observers note that each agent moved toward its goal with a tunable amount of variation, described as "noise." With no noise, agents moved in straight lines. With high noise, their paths became erratic and inefficient. However, this wandering also helped them navigate around one another.
Finding the "Goldilocks Zone" of Noise.
The simulations revealed a clear pattern. When agents moved in perfectly straight paths, they rapidly formed dense clusters and traffic jams that halted progress. When movement became too random, congestion disappeared but efficiency dropped due to excessive wandering.
Between these extremes, the researchers identified a sweet spot. In this range, agents occasionally bumped into one another and formed short-lived clusters, but still managed to slip past and keep moving. This balance allowed the system to maintain a steady flow.
From Simulations to Mathematical Models.
Recent findings suggest that using these insights, the team developed formulas to estimate "goal attainment rate," or how many destinations are reached over time. These equations made it possible to determine the ideal combination of crowd density and movement randomness to maximize performance.
Testing the Theory With Real Robots.
To confirm their findings, Liu collaborated with physicist Federico Toschi at Eindhoven University of Technology in the Netherlands. Together, they set up experiments with small wheeled robots in a lab equipped with an overhead camera.
Each robot carried a QR code so its position could be tracked and updated with new destinations. Although the physical robots moved more slowly and less precisely than the simulated agents, they displayed the same overall patterns.
It has been revealed that the experiments supported a key idea: highly complex coordination does not require advanced intelligence or centralized control. Instead, simple local rules can produce effective group behavior, at least within certain density limits.
"Understanding how active matter, whether it is a swarm of ants, a herd of animals, or a group of robots, become functional and execute tasks in crowded environments using the principles of self-organization, is relevant to many questions in behavioral ecology," Mahadevan mentioned. "Our study suggests strategies that might well be much broader than the instantiation we have focused on.".
Liu noted that she has long been interested in designing safer and more efficient crowded spaces. This research points toward a future where the movement of large groups, whether robots, vehicles, or people, could be predicted and optimized using mathematical tools.
The results suggest that introducing controlled variability into movement patterns may improve flow in many real-world systems, from factory floors to city streets.
Recent findings suggest that funding for the research came from the National Science Foundation Graduate Research Fellowship Program under Grant No. DGE 2140743, along with grants from the Simons Foundation and the Henri Seydoux Fund.
Materials provided by Harvard John A. Paulson School of Engineering and Applied Sciences. Note: Content may be edited for style and length.
Psychedelics May Leave a Lasting Mark on the Brain, Newly introduced Research Reveals.
A Tiny Twist Reveals a Hidden Atomic Grid That Changes How Electricity Behaves.
According to recent reports, taking Weight-Loss Drugs? Latest Study Reveals Why Lifting Weights Could Be Essential.
Ancient Meteorites May Have Delivered One of Lifeâs Most Essential Ingredients to Earth.
📅 05 Apr 2025 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
📅 08 Apr 2025 | ⏱️ 1 min read (7 words, ⚡ Quick Read) | Source: Hugging Face
Content not available.
Total Artikel Dibaca: 0
Total Bookmark Tersimpan: 0
Streak Membaca: 1 Hari