{"id":32152,"date":"2026-12-04T16:18:12","date_gmt":"2026-12-04T07:18:12","guid":{"rendered":"https:\/\/localmodelwatch.tsuchitsuchi.com\/2026\/12\/04\/ggml-v1-2-0-released\/"},"modified":"2026-12-04T16:18:12","modified_gmt":"2026-12-04T07:18:12","slug":"ggml-v1-2-0-released","status":"publish","type":"post","link":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/12\/04\/ggml-v1-2-0-released\/","title":{"rendered":"ggml v1.2.0 Released with FP8 and NVFP4 Quantization Support"},"content":{"rendered":"<p><!-- lmw:facts --><\/p>\n<h2>At a Glance<\/h2>\n<div class=\"lmw-table-scroll\" tabindex=\"0\" style=\"overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;\">\n<table style=\"width:max-content;min-width:100%;border-collapse:collapse;\">\n<thead>\n<tr>\n<th>Item<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Repository<\/td>\n<td><a href=\"https:\/\/github.com\/ggml-org\/ggml\">ggml-org\/ggml<\/a><\/td>\n<\/tr>\n<tr>\n<td>Version<\/td>\n<td><a href=\"https:\/\/github.com\/ggml-org\/ggml\/releases\/tag\/v1.2.0\">v1.2.0<\/a><\/td>\n<\/tr>\n<tr>\n<td>Published<\/td>\n<td>2026-12-04<\/td>\n<\/tr>\n<tr>\n<td>License<\/td>\n<td>MIT<\/td>\n<\/tr>\n<tr>\n<td>Source type<\/td>\n<td>Primary source (the publisher itself)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><em>Values determined by this site&#8217;s code when the information was collected. Dates are JST.<\/em><\/p>\n<p><!-- \/lmw:facts --><\/p>\n<h2>Overview<\/h2>\n<p><code>ggml-org\/ggml<\/code> v1.2.0 has been released. <code>ggml<\/code> is a tensor library for machine learning. This update adds support for FP8 and NVFP4 quantization scales through an expanded matrix multiplication API, making it a very important update for users performing inference with low-precision formats.<\/p>\n<h2>Breaking Changes &amp; Deprecations<\/h2>\n<p>API changes and stricter specifications may impact existing code and data.<\/p>\n<div class=\"lmw-table-scroll\" tabindex=\"0\" style=\"overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;\">\n<table style=\"width:max-content;min-width:100%;border-collapse:collapse;\">\n<thead>\n<tr>\n<th>Old<\/th>\n<th>New<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Legacy FlashAttention sink\/bias setter<\/td>\n<td><code>ggml_flash_attn_ext_set_sinks<\/code> \/ <code>ggml_flash_attn_ext_set_bias<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>mul_mat<\/code> scale parameter<\/td>\n<td>Renamed based on operand name<\/td>\n<\/tr>\n<tr>\n<td>NUL bytes in GGUF keys and tensor names<\/td>\n<td>Not allowed (now rejected)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>This affects developers configuring FlashAttention or directly manipulating <code>mul_mat<\/code> scale parameters. Additionally, if GGUF file keys or tensor names contain NUL bytes, the new version will reject loading them.<\/p>\n<h2>Key Changes<\/h2>\n<h3>Support for FP8 and NVFP4 Quantization Scales<\/h3>\n<p>Expanded matrix multiplication APIs (<code>ggml_needs_scale<\/code>, <code>ggml_mul_mat_ext<\/code>, <code>ggml_mul_mat_id_ext<\/code>) have been introduced <a href=\"https:\/\/github.com\/ggml-org\/llama.cpp\/pull\/28898\">llama\/28898<\/a>. This enables the use of quantization scales (per-tensor, per-channel, or per-expert) in FP8 and NVFP4. This change also applies to the CPU matrix multiplication path and the meta backend splitting logic. Developers performing inference using low-precision formats will need to update their implementations to use these new APIs.<\/p>\n<h3>Overhaul of FlashAttention API<\/h3>\n<p>New APIs, <code>ggml_flash_attn_ext_set_sinks<\/code> and <code>ggml_flash_attn_ext_set_bias<\/code>, have been added for configuring FlashAttention sinks and biases <a href=\"https:\/\/github.com\/ggml-org\/llama.cpp\/pull\/33178\">llama\/33178<\/a>. Along with this, legacy setters are deprecated. Users implementing solutions that use FlashAttention are encouraged to migrate to the new APIs.<\/p>\n<h3>Backend Enhancements and Optimizations<\/h3>\n<p>Depending on the hardware being used, the following optimizations and features have been applied:<\/p>\n<ul>\n<li><strong>CUDA \/ HIP<\/strong>: CUDA fusion code has been organized into dedicated units. Additionally, few-row MMQ for NVFP4 and FlashAttention speedups (such as faster f16 conversion via kv_rows reads) have been added. This benefits users with NVIDIA GPUs.<\/li>\n<li><strong>Vulkan<\/strong>: Support for FP8 and scaled matmul, as well as KV-row support in FlashAttention, has been added. Users leveraging the Vulkan backend can now use these new features.<\/li>\n<li><strong>Metal<\/strong>: Neural Accelerators can now be detected without hardcoding chip names. Taylor series have also been introduced for calculations like ELU, EXPM1, and XIELU. This impacts Apple Silicon users.<\/li>\n<li><strong>WebGPU<\/strong>: Scaled matmul support has been added.<\/li>\n<li><strong>CPU (ARM)<\/strong>: SVE GEMV kernels for Q6_K and Q8_K have been added for the ARM architecture <a href=\"https:\/\/github.com\/ggml-org\/llama.cpp\/pull\/29256\">llama\/29256<\/a>.<\/li>\n<\/ul>\n<h3>GGUF Specification Changes<\/h3>\n<p>GGUF keys and tensor names containing NUL bytes are now rejected <a href=\"https:\/\/github.com\/ggml-org\/llama.cpp\/pull\/33355\">llama\/33355<\/a>. If existing GGUF files contain NUL bytes, the new version may fail to load them, so checking file contents beforehand is recommended.<\/p>\n<h2>Supported Models and Hardware<\/h2>\n<p>This update enhances and adds support for the following hardware and architectures:<\/p>\n<ul>\n<li><strong>NVIDIA GPU (CUDA\/HIP)<\/strong>: NVFP4 quantization support is enhanced, and new kernels like few-row MMQ have been added.<\/li>\n<li><strong>AMD GPU (ROCm\/HIP)<\/strong>: Few-row MMQ using WMMA on RDNA3.5 and GCN sparse fattn have been added.<\/li>\n<li><strong>Apple Silicon (Metal)<\/strong>: Neural Accelerator automatic detection has been added.<\/li>\n<li><strong>ARM<\/strong>: GEMV kernels for Q6_K and Q8_K using SVE have been implemented <a href=\"https:\/\/github.com\/ggml-org\/llama.cpp\/pull\/29256\">llama\/29256<\/a>.<\/li>\n<li><strong>Vulkan<\/strong>: FP8, scaled matmul, and FlashAttention KV-row support have been added.<\/li>\n<li><strong>WebGPU<\/strong>: Scaled matmul support has been added.<\/li>\n<li><strong>OpenVINO<\/strong>: Updated to OpenVINO 2026.5, with model and mtmd support added.<\/li>\n<li><strong>Hexagon<\/strong>: Online FWHT-32 and quantization scale support have been added.<\/li>\n<li><strong>Others<\/strong>: An experimental HRX backend has been added.<\/li>\n<\/ul>\n<h2>How to Get It<\/h2>\n<p>If building from source, you can follow these steps:<\/p>\n<pre><code class=\"language-bash\">git clone https:\/\/github.com\/ggml-org\/ggml\ncd ggml\n\nmkdir build &amp;&amp; cd build\ncmake..\ncmake --build. --config Release -j 8\n<\/code><\/pre>\n<p><!-- lmw:releases --><\/p>\n<h2>Releases Since Our Last Article<\/h2>\n<p><em>Compiled by Local Model Watch from the project&#8217;s GitHub releases: the versions between this release and the last one we covered, which did not get separate articles.<\/em> <em>Full history: <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/engine-ggml-en\/\">release tracker<\/a>.<\/em><\/p>\n<div class=\"lmw-table-scroll\" tabindex=\"0\" style=\"overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;\">\n<table style=\"width:max-content;min-width:100%;border-collapse:collapse;\">\n<thead>\n<tr>\n<th>Version<\/th>\n<th>Released<\/th>\n<th>Release notes<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>v1.1.1<\/td>\n<td>2026-11-26<\/td>\n<td><a href=\"https:\/\/github.com\/ggml-org\/ggml\/releases\/tag\/v1.1.1\">GitHub<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><!-- \/lmw:releases --><\/p>\n<p><!-- lmw:related --><\/p>\n<h2>Related Articles<\/h2>\n<ul>\n<li><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/11\/17\/ggml-v1-0-0-released\/\">ggml v1.0.0 Released: Major Version Update and Improvements<\/a><\/li>\n<li><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/11\/17\/ggml-v0290-released\/\">GGML v0.29.0 Released: Multi-Node Tensor Parallelism and More<\/a><\/li>\n<li><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/11\/17\/ggml-v0-27-0-released-2\/\">ggml v0.27.0 Released with Tensor-Parallel RPC and Major Speedups<\/a><\/li>\n<li><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/10\/06\/ggml-v0260-released\/\">ggml v0.26.0 Released with Sparse Flash Attention &amp; New Backends<\/a><\/li>\n<\/ul>\n<p><!-- \/lmw:related --><\/p>\n<p><!-- lmw:next-steps --><\/p>\n<h2>What to Read Next<\/h2>\n<ul>\n<li><strong>Follow this tool<\/strong> \u2192 <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/engine-ggml-en\/\">ggml overview and release history (48 releases tracked)<\/a><\/li>\n<li><strong>Other quantization, model formats and fine-tuning<\/strong> \u2192 <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/engine-exllamav3-en\/\">ExLlamaV3<\/a> \/ <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/engine-unsloth-en\/\">Unsloth<\/a><\/li>\n<li><strong>Engines mentioned in this article<\/strong> \u2192 <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/engine-llama-cpp-en\/\">llama.cpp<\/a><\/li>\n<\/ul>\n<p><!-- \/lmw:next-steps --><\/p>\n<h2>Sources<\/h2>\n<ul>\n<li><a href=\"https:\/\/github.com\/ggml-org\/ggml\/releases\/tag\/v1.2.0\">ggml-org\/ggml v1.2.0<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/ggml-org\/llama.cpp\/pull\/28898\">llama\/28898<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/ggml-org\/llama.cpp\/pull\/33178\">llama\/33178<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/ggml-org\/llama.cpp\/pull\/33355\">llama\/33355<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/ggml-org\/llama.cpp\/pull\/29256\">llama\/29256<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>ggml v1.2.0 is out, adding FP8 and NVFP4 quantization scales, FlashAttention updates, and various backend optimizations.<\/p>\n","protected":false},"author":1,"featured_media":32151,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105],"tags":[1133,161,163,1073,813,1547],"class_list":["post-32152","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-engines-and-tools","tag-fp8-en","tag-ggml-en","tag-gguf-en","tag-llama-cpp-en","tag-nvfp4-en","tag-verified"],"lang":"en","translations":{"en":32152,"ja":32150},"_links":{"self":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts\/32152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/comments?post=32152"}],"version-history":[{"count":0,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts\/32152\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/media\/32151"}],"wp:attachment":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/media?parent=32152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/categories?post=32152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/tags?post=32152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}