<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>AVX512 | KVCache.AI</title>
    <link>https://kvcache.ai/tag/avx512/</link>
      <atom:link href="https://kvcache.ai/tag/avx512/index.xml" rel="self" type="application/rss+xml" />
    <description>AVX512</description>
    <generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Tue, 25 Aug 2026 00:00:00 +0000</lastBuildDate>
    <image>
      <url>https://kvcache.ai/media/logo.svg</url>
      <title>AVX512</title>
      <link>https://kvcache.ai/tag/avx512/</link>
    </image>
    
    <item>
      <title>KTransformers v0.7.0 Released: Native FP8 LoRA, AVX512 CPUs, and Full Fine-Tuning</title>
      <link>https://kvcache.ai/blog/ktransformers-v0-7-0-fine-tuning/</link>
      <pubDate>Tue, 25 Aug 2026 00:00:00 +0000</pubDate>
      <guid>https://kvcache.ai/blog/ktransformers-v0-7-0-fine-tuning/</guid>
      <description>&lt;p&gt;More ultra-large MoE models are now being released in FP8. Whether fine-tuning can run smoothly also depends on CPU instruction-set compatibility, system memory capacity, and the training framework&amp;rsquo;s ability to read the model&amp;rsquo;s original checkpoint directly.&lt;/p&gt;
&lt;p&gt;KTransformers v0.7.0 focuses on fine-tuning: it can load native FP8 Expert weights directly for LoRA training; adds an AVX512 CPU path so compatible AMD/x86 platforms with large host memory can participate in ultra-large MoE fine-tuning; and improves full fine-tuning, training-artifact management, and the accompanying Cookbook.&lt;/p&gt;
&lt;p&gt;















&lt;figure  &gt;
  &lt;div class=&#34;flex justify-center	&#34;&gt;
    &lt;div class=&#34;w-100&#34; &gt;&lt;img alt=&#34;KTransformers v0.7.0 MoE fine-tuning overview&#34; srcset=&#34;
               /blog/ktransformers-v0-7-0-fine-tuning/ktransformers-v0.7.0-finetuning-overview-en_hu2031ac8a7002c7c0a322c7aeef7045c9_652429_3436ac069636eaab1912cd8896f47fc6.webp 400w,
               /blog/ktransformers-v0-7-0-fine-tuning/ktransformers-v0.7.0-finetuning-overview-en_hu2031ac8a7002c7c0a322c7aeef7045c9_652429_66dc6f4f1c67d51b68b00f7d37490027.webp 760w,
               /blog/ktransformers-v0-7-0-fine-tuning/ktransformers-v0.7.0-finetuning-overview-en_hu2031ac8a7002c7c0a322c7aeef7045c9_652429_1200x1200_fit_q85_h2_lanczos_3.webp 1200w&#34;
               src=&#34;https://kvcache.ai/blog/ktransformers-v0-7-0-fine-tuning/ktransformers-v0.7.0-finetuning-overview-en_hu2031ac8a7002c7c0a322c7aeef7045c9_652429_3436ac069636eaab1912cd8896f47fc6.webp&#34;
               width=&#34;760&#34;
               height=&#34;424&#34;
               loading=&#34;lazy&#34; data-zoomable /&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id=&#34;1-load-native-fp8-weights-directly-and-halve-expert-weight-memory&#34;&gt;1. Load Native FP8 Weights Directly and Halve Expert-Weight Memory&lt;/h2&gt;
&lt;p&gt;Traditional fine-tuning workflows often expand FP8 Expert weights to BF16 before training and keep the larger weight copy in system memory.&lt;/p&gt;
&lt;p&gt;v0.7.0 supports native block-FP8 LoRA fine-tuning for DeepSeek-V3.1. E4M3 FP8 Expert weights and scales are loaded directly from the checkpoint and remain in their original FP8 format in memory. Inside the FP8 Kernel, the weights are loaded directly into BF16-width registers and used for BF16 computation. This path folds dequantization into weight loading and uses additional register width to avoid a separate dequantization stage.&lt;/p&gt;
&lt;p&gt;The base Expert weights remain stored in FP8, halving their memory footprint relative to a complete BF16 copy. Activations, LoRA parameters, and gradients remain BF16, while optimizer states remain FP32. In the official DeepSeek-V3.1 test configuration, host-memory demand decreased from approximately 1.4 TB to about 800 GB.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Note: Native FP8 in this release targets LoRA fine-tuning with frozen base Expert weights. Full fine-tuning primarily uses BF16.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&#34;2-support-compatible-amdx86-cpus-with-avx512&#34;&gt;2. Support Compatible AMD/x86 CPUs with AVX512&lt;/h2&gt;
&lt;p&gt;KTransformers&amp;rsquo; high-performance CPU Expert fine-tuning path previously focused on AMX-capable platforms. v0.7.0 adds an AVX512 CPU execution backend, allowing compatible AMD/x86 CPUs with the required AVX512 extensions to participate in ultra-large MoE fine-tuning.&lt;/p&gt;
&lt;p&gt;In this heterogeneous division of work, the CPU and large host memory handle Routed Expert weight residency and computation, while the GPU runs Attention and Shared Expert modules. Use the recommended unified backend entry in the LlamaFactory training YAML:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;kt_config&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;kt_backend&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;auto&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;auto&lt;/code&gt; selects a backend according to the CPU capabilities and weight format.&lt;/p&gt;
&lt;h2 id=&#34;3-choose-between-lora-and-full-fine-tuning&#34;&gt;3. Choose Between LoRA and Full Fine-Tuning&lt;/h2&gt;
&lt;p&gt;LoRA or Full is selected in the training configuration before execution enters the KTransformers × LlamaFactory backend. LoRA suits rapid adaptation and resource-constrained workloads. Full fine-tuning supports deeper model updates for workloads that can accommodate the higher host-memory, GPU-memory, and checkpoint costs.&lt;/p&gt;
&lt;p&gt;Full fine-tuning updates both the CPU Expert weights managed by KTransformers and the model&amp;rsquo;s ordinary trainable parameters. The workflow covers gradients, optimizer updates, multi-step training, and distributed execution. Its principal path is BF16. Both LoRA and Full training artifacts support checkpoint saving, restoration, and continued training from a checkpoint.&lt;/p&gt;
&lt;p&gt;















&lt;figure  &gt;
  &lt;div class=&#34;flex justify-center	&#34;&gt;
    &lt;div class=&#34;w-100&#34; &gt;&lt;img alt=&#34;LlamaFactory and KTransformers MoE fine-tuning architecture&#34; srcset=&#34;
               /blog/ktransformers-v0-7-0-fine-tuning/llamafactory-kt-integration-overview_huc650a0743b93b41896ab3dd782cf67ad_522572_70bee57fc2dabb2b9dfcfa19a485918e.webp 400w,
               /blog/ktransformers-v0-7-0-fine-tuning/llamafactory-kt-integration-overview_huc650a0743b93b41896ab3dd782cf67ad_522572_7cb9e5c09721885d1befb2c2c2478f7b.webp 760w,
               /blog/ktransformers-v0-7-0-fine-tuning/llamafactory-kt-integration-overview_huc650a0743b93b41896ab3dd782cf67ad_522572_1200x1200_fit_q85_h2_lanczos_3.webp 1200w&#34;
               src=&#34;https://kvcache.ai/blog/ktransformers-v0-7-0-fine-tuning/llamafactory-kt-integration-overview_huc650a0743b93b41896ab3dd782cf67ad_522572_70bee57fc2dabb2b9dfcfa19a485918e.webp&#34;
               width=&#34;760&#34;
               height=&#34;428&#34;
               loading=&#34;lazy&#34; data-zoomable /&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id=&#34;4-cpu-activation-reuse-use-host-memory-to-reduce-recalculation&#34;&gt;4. CPU Activation Reuse: Use Host Memory to Reduce Recalculation&lt;/h2&gt;
&lt;p&gt;v0.7.0 also provides CPU Activation Reuse. When enabled, CPU Expert activations can be retained during checkpoint recomputation.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;kt_cpu_activation&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;retain&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This option uses additional host memory to reduce repeated computation. When it is not set, CPU activations follow the overall checkpoint policy.&lt;/p&gt;
&lt;h2 id=&#34;5-a-complete-cookbook-for-checks-configuration-and-launch&#34;&gt;5. A Complete Cookbook for Checks, Configuration, and Launch&lt;/h2&gt;
&lt;p&gt;The accompanying KTransformers × LlamaFactory MoE Fine-Tuning Cookbook first helps users choose an Expert weight option, then select LoRA or Full from the currently supported combinations. BF16 supports both LoRA and full fine-tuning. Native FP8, converted INT8, and AMXINT4 are used for LoRA with frozen base Experts.&lt;/p&gt;
&lt;p&gt;The Cookbook also covers hardware checks, environment installation, the division of responsibilities between the training YAML and Accelerate YAML, base recipes, launch commands, resource estimates, and troubleshooting. All user-facing KTransformers settings belong in the training YAML. The Accelerate YAML contains only distributed-execution and FSDP2 settings.&lt;/p&gt;
&lt;p&gt;For details, see the KTransformers Fine-Tuning Cookbook: &lt;a href=&#34;https://github.com/kvcache-ai/ktransformers/blob/main/doc/en/SFT/KTransformers-Fine-Tuning_Cookbook.md&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://github.com/kvcache-ai/ktransformers/blob/main/doc/en/SFT/KTransformers-Fine-Tuning_Cookbook.md&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;6-installation-and-resources&#34;&gt;6. Installation and Resources&lt;/h2&gt;
&lt;p&gt;KTransformers v0.7.0 is available now. Install its fine-tuning dependencies with:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pip install &lt;span class=&#34;s2&#34;&gt;&amp;#34;ktransformers[sft]==0.7.0&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The matching SFT integration packages are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;transformers-kt==5.6.0.post2&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;accelerate-kt==1.14.0.post2&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Learn more:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/kvcache-ai/ktransformers/releases/tag/v0.7.0&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;KTransformers v0.7.0 Release&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/kvcache-ai/ktransformers/blob/main/doc/en/SFT/KTransformers-Fine-Tuning_Cookbook.md&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;KTransformers Fine-Tuning Cookbook&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://ktransformers.net/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;KTransformers website&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    
  </channel>
</rss>
