<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Posts on LlamaFactory Blog</title>
    <link>https://blog.llamafactory.net/en/posts/</link>
    <description>Recent content in Posts on LlamaFactory Blog</description>
    <generator>Hugo -- 0.151.1</generator>
    <language>en-US</language>
    <lastBuildDate>Thu, 13 Aug 2026 20:03:59 +0800</lastBuildDate>
    <atom:link href="https://blog.llamafactory.net/en/posts/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>MOSS-VL Meets LlamaFactory: LoRA and Full Fine-Tuning Out of the Box</title>
      <link>https://blog.llamafactory.net/en/posts/moss_vl_finetuning/</link>
      <pubDate>Thu, 13 Aug 2026 20:03:59 +0800</pubDate>
      <guid>https://blog.llamafactory.net/en/posts/moss_vl_finetuning/</guid>
      <description>&lt;p&gt;You can now fine-tune MOSS-VL directly with LlamaFactory.&lt;/p&gt;
&lt;p&gt;MOSS-VL support has been merged into the main branch of LlamaFactory. Whether you want to validate an idea efficiently with LoRA or fully adapt the model to a specific domain, you can use the familiar LlamaFactory workflows for data processing, training, checkpoint resumption, and inference.&lt;/p&gt;
&lt;p&gt;This tutorial first walks through a general multimodal MOSS-VL fine-tuning workflow using the WebUI, with a public basketball video dataset as the running example. After training, we examine how the model improves on a real basketball clip, then use Chinese chess notation to demonstrate its ability to learn an entirely new specialized task.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fine-Tuning LlamaFactory with the llamafactory-sft Skill</title>
      <link>https://blog.llamafactory.net/en/posts/llamafactory-sft-skill/</link>
      <pubDate>Fri, 26 Jun 2026 10:43:52 +0800</pubDate>
      <guid>https://blog.llamafactory.net/en/posts/llamafactory-sft-skill/</guid>
      <description>&lt;h1 id=&#34;fine-tuning-llamafactory-with-the-llamafactory-sft-skill&#34;&gt;Fine-Tuning LlamaFactory with the llamafactory-sft Skill&lt;/h1&gt;
&lt;p&gt;This tutorial-style Notebook shows how to use the &lt;code&gt;llamafactory-sft&lt;/code&gt; skill to let an agent assist with a LlamaFactory SFT fine-tuning workflow. It does not explain every training parameter in depth. Instead, it demonstrates how the skill breaks one fine-tuning task into confirmable, traceable, and reproducible steps.&lt;/p&gt;
&lt;p&gt;This tutorial uses a lightweight example: starting from a Qwen3.5-2B model, using built-in LlamaFactory datasets to run a LoRA SFT job, then validating the result and exporting the model after training.&lt;/p&gt;</description>
    </item>
    <item>
      <title>LlamaFactory x MindSpore HyperParallel Community Collaboration Roadmap</title>
      <link>https://blog.llamafactory.net/en/posts/mindspore-hyperparallel-roadmap/</link>
      <pubDate>Mon, 30 Mar 2026 15:42:54 +0800</pubDate>
      <guid>https://blog.llamafactory.net/en/posts/mindspore-hyperparallel-roadmap/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;MindSpore Community&lt;/strong&gt; · HyperParallel SuperNode Parallel Library&lt;/p&gt;
&lt;p&gt;Version: v1.0 | Updated: 2026-03-30&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&#34;vision&#34;&gt;Vision&lt;/h2&gt;
&lt;p&gt;HyperParallel is a new supernode parallel training architecture proposed by the &lt;strong&gt;MindSpore Community&lt;/strong&gt;, dedicated to simplifying Ascend supernode programming and unlocking computing potential. We aim to collaborate with the LlamaFactory ecosystem to provide an easy-to-use, high-performance distributed training solution. Our goal is to enable every developer to efficiently train large models on Ascend NPU and NVIDIA GPU, lowering the barrier and cost of large model training.&lt;/p&gt;</description>
    </item>
    <item>
      <title>MindSpore HyperParallel FSDP2 Training on Ascend with LlamaFactory</title>
      <link>https://blog.llamafactory.net/en/posts/mindspore-hyperparallel-quickstart/</link>
      <pubDate>Tue, 24 Mar 2026 10:00:00 +0800</pubDate>
      <guid>https://blog.llamafactory.net/en/posts/mindspore-hyperparallel-quickstart/</guid>
      <description>&lt;h1 id=&#34;llamafactory--mindspore-hyperparallel&#34;&gt;LlamaFactory + MindSpore HyperParallel&lt;/h1&gt;
&lt;p&gt;We integrated &lt;a href=&#34;https://gitcode.com/mindspore/hyper-parallel&#34;&gt;HyperParallel&lt;/a&gt; from the MindSpore community as an FSDP2 backend into LlamaFactory, supporting &lt;strong&gt;Ascend NPU&lt;/strong&gt; and NVIDIA GPU. Just one extra config line on the FSDP2 workflow to get started.&lt;/p&gt;
&lt;h2 id=&#34;quick-start&#34;&gt;Quick Start&lt;/h2&gt;
&lt;h3 id=&#34;1-environment-installation&#34;&gt;1. Environment Installation&lt;/h3&gt;
&lt;h4 id=&#34;pip&#34;&gt;pip&lt;/h4&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-1&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-1&#34;&gt; 1&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-2&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-2&#34;&gt; 2&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-3&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-3&#34;&gt; 3&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-4&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-4&#34;&gt; 4&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-5&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-5&#34;&gt; 5&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-6&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-6&#34;&gt; 6&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-7&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-7&#34;&gt; 7&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-8&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-8&#34;&gt; 8&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-9&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-9&#34;&gt; 9&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-10&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-10&#34;&gt;10&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-11&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-11&#34;&gt;11&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-12&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-12&#34;&gt;12&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-13&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-13&#34;&gt;13&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-14&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-14&#34;&gt;14&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-15&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-15&#34;&gt;15&lt;/a&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#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;&lt;span class=&#34;c1&#34;&gt;# Install HyperParallel&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git clone https://gitcode.com/mindspore/hyper-parallel
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; hyper-parallel
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pip install -e .
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&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;c1&#34;&gt;# Install LlamaFactory&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git clone https://github.com/hiyouga/LlamaFactory.git
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; LlamaFactory
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pip install -e &lt;span class=&#34;s2&#34;&gt;&amp;#34;.[torch,metrics]&amp;#34;&lt;/span&gt; --no-build-isolation
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&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;c1&#34;&gt;# Install PyTorch&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pip install &lt;span class=&#34;nv&#34;&gt;torch&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;==&lt;/span&gt;2.7.1 &lt;span class=&#34;nv&#34;&gt;torchvision&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;==&lt;/span&gt;0.22.1 &lt;span class=&#34;nv&#34;&gt;torchaudio&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;==&lt;/span&gt;2.7.1
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&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;c1&#34;&gt;# Optional: install torch-npu for Ascend NPU&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pip install torch-npu&lt;span class=&#34;o&#34;&gt;==&lt;/span&gt;2.7.1
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h3 id=&#34;2-configuration&#34;&gt;2. Configuration&lt;/h3&gt;
&lt;p&gt;HyperParallel training requires two config files: an &lt;strong&gt;Accelerate FSDP2 config&lt;/strong&gt; and a &lt;strong&gt;LlamaFactory training config&lt;/strong&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fine-Tuning the Latest Qwen3.5 Model to Identify Humanoid Robot Models Using LlamaFactory</title>
      <link>https://blog.llamafactory.net/en/posts/qwen3_5_finetuning/</link>
      <pubDate>Tue, 03 Mar 2026 16:41:05 +0800</pubDate>
      <guid>https://blog.llamafactory.net/en/posts/qwen3_5_finetuning/</guid>
      <description>&lt;p&gt;At the beginning of 2026, from the Consumer Electronics Show (CES) in Las Vegas, USA, to the China Central Television (CCTV) Spring Festival Gala, China&amp;rsquo;s self-developed humanoid robots have frequently &amp;ldquo;broken through the circle.&amp;rdquo; Products and applications from multiple Chinese enterprises have not only sparked discussions within the overseas industry but have also continuously &amp;ldquo;swept&amp;rdquo; global social media platforms and international media. Embodied intelligence, regarded as the next stage of artificial intelligence development, has its core in achieving a deep coupling between the intelligent &amp;ldquo;brain&amp;rdquo; and the physical &amp;ldquo;body,&amp;rdquo; thereby directly transforming data, algorithms, and computing power into the ability to act on and transform the objective world. Humanoid robots, due to their human-like appearance and functionality, are considered a high-level form and the optimal carrier for embodied intelligence, poised to become the next-generation super terminal following smartphones and new energy vehicles.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Issues Related to the Qwen3-VL Model</title>
      <link>https://blog.llamafactory.net/en/posts/qwen3vl_issues/</link>
      <pubDate>Mon, 05 Jan 2026 15:42:25 +0800</pubDate>
      <guid>https://blog.llamafactory.net/en/posts/qwen3vl_issues/</guid>
      <description>&lt;p&gt;This blog post focuses on several practical issues related to the Qwen3-VL model, along with an analysis of their root causes and corresponding solutions.&lt;/p&gt;
&lt;h2 id=&#34;1-slow-training-and-inference-speed-of-qwen3-vl&#34;&gt;1. Slow Training and Inference Speed of Qwen3-VL&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Problem:&lt;/strong&gt;&lt;br&gt;
Some posts and GitHub issues report that when using &lt;strong&gt;torch=2.9&lt;/strong&gt; together with &lt;strong&gt;Conv3D&lt;/strong&gt;, the training and inference speed of Qwen3-VL degrades significantly compared to &lt;strong&gt;torch=2.8&lt;/strong&gt;. See the related discussion at:&lt;br&gt;
&lt;a href=&#34;https://github.com/pytorch/pytorch/issues/166122&#34;&gt;https://github.com/pytorch/pytorch/issues/166122&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&#34;11-comparing-cuda-kernel-invocations&#34;&gt;1.1 Comparing CUDA Kernel Invocations&lt;/h3&gt;
&lt;p&gt;We first compared the CUDA kernel calls of Conv3D under &lt;strong&gt;torch=2.8&lt;/strong&gt; and &lt;strong&gt;torch=2.9&lt;/strong&gt;. The test code is shown below:&lt;/p&gt;</description>
    </item>
    <item>
      <title>RL-DPO Training with KTransformers and LLaMA-Factory</title>
      <link>https://blog.llamafactory.net/en/posts/ktransformers_dpo/</link>
      <pubDate>Tue, 23 Dec 2025 15:51:07 +0800</pubDate>
      <guid>https://blog.llamafactory.net/en/posts/ktransformers_dpo/</guid>
      <description>&lt;p&gt;This tutorial demonstrates how to fine-tune a language model using the &lt;strong&gt;LLaMA-Factory&lt;/strong&gt; framework with &lt;strong&gt;Direct Preference Optimization (DPO)&lt;/strong&gt;. DPO is a training method based on human preferences, enabling model outputs to better align with human expectations and be more user-centric.&lt;/p&gt;
&lt;h2 id=&#34;1-environment-setup&#34;&gt;1 Environment Setup&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Software &amp;amp; hardware requirements: CPU must support AMX, the system glibc version must be ≥ 2.32, and a GPU with at least 32 GB of VRAM is recommended.&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Add New Special Tokens for Model Training</title>
      <link>https://blog.llamafactory.net/en/posts/add_special_tokens/</link>
      <pubDate>Wed, 17 Dec 2025 14:13:17 +0800</pubDate>
      <guid>https://blog.llamafactory.net/en/posts/add_special_tokens/</guid>
      <description>&lt;h2 id=&#34;1-introduction&#34;&gt;1 Introduction&lt;/h2&gt;
&lt;p&gt;This paper uses the &lt;strong&gt;Ministral-3-3B-Instruct-2512&lt;/strong&gt; model and takes an image classification task fine-tuned via &lt;strong&gt;SFT&lt;/strong&gt; as an example to illustrate how to add new special tokens. The experimental command is as follows:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-1&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-1&#34;&gt;1&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-2&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-2&#34;&gt;2&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-3&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-3&#34;&gt;3&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-4&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-4&#34;&gt;4&lt;/a&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#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;&lt;span class=&#34;c1&#34;&gt;# install newest transformers&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pip install git+https://github.com/huggingface/transformers
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&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;nv&#34;&gt;DISABLE_VERSION_CHECK&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;1&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;CUDA_VISIBLE_DEVICES&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;7&lt;/span&gt; python src/train.py examples/train_lora/ministral3_lora_sft.yaml
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;It is necessary to preconfigure &lt;code&gt;ministral3_lora_sft.yaml&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;2-dataset-loading-and-preprocessing&#34;&gt;2 Dataset Loading and Preprocessing&lt;/h2&gt;
&lt;p&gt;In the file
&lt;a href=&#34;https://github.com/hiyouga/LLaMA-Factory/blob/9fd4b094d4adadd34bc46769d385d11870103ad7/src/llamafactory/data/loader.py#L276&#34;&gt;LLaMA-Factory/src/llamafactory/data/loader.py&lt;/a&gt;,
the &lt;strong&gt;get_dataset&lt;/strong&gt; function is responsible for loading the dataset and preprocessing the data using the tokenizer.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Adapt a new model on LLaMA-Factory</title>
      <link>https://blog.llamafactory.net/en/posts/model_adaptation/</link>
      <pubDate>Fri, 12 Dec 2025 21:13:00 +0800</pubDate>
      <guid>https://blog.llamafactory.net/en/posts/model_adaptation/</guid>
      <description>&lt;h2 id=&#34;1-overview-of-model-adaptation&#34;&gt;1 Overview of Model Adaptation&lt;/h2&gt;
&lt;p&gt;LLaMA-Factory offers a complete framework for model pre-training, fine-tuning, and inference. If it is necessary to adapt a new model, only a small amount of code needs to be modified to integrate the model into LLaMA-Factory.&lt;/p&gt;
&lt;p&gt;First, the file &lt;code&gt;LLaMA-Factory/src/llamafactory/extras/constants.py&lt;/code&gt; defines the supported model groups and their corresponding templates. A template is a “format specifier” used when constructing the input prompt for the large model. It defines the dialogue format, field structure, role order, and the format for tool calls. For example:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Code Guide for LLaMA Factory Project</title>
      <link>https://blog.llamafactory.net/en/posts/project_guide/</link>
      <pubDate>Fri, 05 Dec 2025 21:13:00 +0800</pubDate>
      <guid>https://blog.llamafactory.net/en/posts/project_guide/</guid>
      <description>&lt;h2 id=&#34;1-introduction-to-the-llama-factory-project&#34;&gt;1 Introduction to the LLaMA-Factory Project&lt;/h2&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/tangefly/LLaMA-Factory/tree/main&#34;&gt;LLaMA-Factory&lt;/a&gt; is an efficient training and fine-tuning framework designed for large language models (LLMs). It aims to simplify the training workflow of the LLaMA family as well as various open-source large models. With the core philosophy of being “out-of-the-box, flexible, and efficient,” it provides an end-to-end solution covering data preparation, parameter-efficient fine-tuning (PEFT), training configuration management, and model deployment.&lt;/p&gt;
&lt;p&gt;LLaMA-Factory supports multiple mainstream model architectures—such as LLaMA, Qwen, Gemma, and Mistral—and integrates lightweight training techniques including LoRA, QLoRA, AdaLoRA, and Prompt Tuning. These capabilities enable developers to fine-tune high-quality models at extremely low cost, whether in single-GPU or multi-GPU environments.&lt;/p&gt;</description>
    </item>
    <item>
      <title>KTransformers Fine-Tuning × LLaMA-Factory Integration</title>
      <link>https://blog.llamafactory.net/en/posts/ktransformers/</link>
      <pubDate>Tue, 04 Nov 2025 22:06:28 +0800</pubDate>
      <guid>https://blog.llamafactory.net/en/posts/ktransformers/</guid>
      <description>&lt;h1 id=&#34;ktransformers-fine-tuning--llama-factory-integration&#34;&gt;KTransformers Fine-Tuning × LLaMA-Factory Integration&lt;/h1&gt;
&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;From &lt;strong&gt;DeepSeek-V3/R1&lt;/strong&gt; to &lt;strong&gt;Qwen3-MoE&lt;/strong&gt; and &lt;strong&gt;Kimi-K2&lt;/strong&gt;, each wave of open-sourced large models brings leaps in performance and scale. However, many researchers and developers are constrained by expensive GPUs and models with tens or even hundreds of billions of parameters, making it &lt;strong&gt;hard to fine-tune very large models under limited resources&lt;/strong&gt;. To bridge this gap, we propose a practical approach: combining &lt;strong&gt;KTransformers&lt;/strong&gt; with &lt;strong&gt;LLaMA-Factory&lt;/strong&gt;. With just &lt;strong&gt;2–4 RTX 4090s&lt;/strong&gt; and a high-memory CPU, you can fine-tune ultra-large MoE models like DeepSeek-671B.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Megatron-Core Fine-Tuning with LLaMA-Factory</title>
      <link>https://blog.llamafactory.net/en/posts/mca-quickstart/</link>
      <pubDate>Tue, 21 Oct 2025 16:21:12 +0800</pubDate>
      <guid>https://blog.llamafactory.net/en/posts/mca-quickstart/</guid>
      <description>&lt;h1 id=&#34;llama-factory--mcoreadapter&#34;&gt;LLaMA-Factory 🤝 MCoreAdapter&lt;/h1&gt;
&lt;p&gt;To fully leverage Megatron-core&amp;rsquo;s parallel computing and improve training efficiency for MoE models, we combined the MCoreAdapter provided by the &lt;a href=&#34;https://github.com/alibaba/ROLL/tree/main/mcore_adapter&#34;&gt;ROLL team&lt;/a&gt; with LLaMA-Factory&amp;rsquo;s data pipeline and Megatron Trainer&amp;rsquo;s backend to build a new model training workflow.&lt;/p&gt;
&lt;h2 id=&#34;-quick-start&#34;&gt;🚀 Quick Start&lt;/h2&gt;
&lt;h3 id=&#34;1--environment-installation&#34;&gt;1. 💻 Environment Installation&lt;/h3&gt;
&lt;h4 id=&#34;-pip&#34;&gt;📦 pip&lt;/h4&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-1&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-1&#34;&gt; 1&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-2&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-2&#34;&gt; 2&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-3&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-3&#34;&gt; 3&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-4&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-4&#34;&gt; 4&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-5&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-5&#34;&gt; 5&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-6&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-6&#34;&gt; 6&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-7&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-7&#34;&gt; 7&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-8&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-8&#34;&gt; 8&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-9&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-9&#34;&gt; 9&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-10&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-10&#34;&gt;10&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-11&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-11&#34;&gt;11&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-12&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-12&#34;&gt;12&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-13&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-13&#34;&gt;13&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-14&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-14&#34;&gt;14&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-15&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-15&#34;&gt;15&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-16&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-16&#34;&gt;16&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-17&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-17&#34;&gt;17&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-18&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-18&#34;&gt;18&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-19&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-19&#34;&gt;19&lt;/a&gt;
&lt;/span&gt;&lt;span class=&#34;lnt&#34; id=&#34;hl-0-20&#34;&gt;&lt;a class=&#34;lnlinks&#34; href=&#34;#hl-0-20&#34;&gt;20&lt;/a&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#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;&lt;span class=&#34;c1&#34;&gt;# for megatron-core&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pip install &lt;span class=&#34;nv&#34;&gt;torch&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;==&lt;/span&gt;2.6.0 &lt;span class=&#34;nv&#34;&gt;torchvision&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;==&lt;/span&gt;0.21.0 &lt;span class=&#34;nv&#34;&gt;torchaudio&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;==&lt;/span&gt;2.6.0 --index-url https://download.pytorch.org/whl/cu124
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pip install &lt;span class=&#34;se&#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;se&#34;&gt;&lt;/span&gt;    &lt;span class=&#34;nv&#34;&gt;numpy&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;==&lt;/span&gt;1.26.4 &lt;span class=&#34;se&#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;se&#34;&gt;&lt;/span&gt;    optree&amp;gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;0.13.0 &lt;span class=&#34;se&#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;se&#34;&gt;&lt;/span&gt;    &lt;span class=&#34;nv&#34;&gt;spacy&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;==&lt;/span&gt;3.7.5 &lt;span class=&#34;se&#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;se&#34;&gt;&lt;/span&gt;    &lt;span class=&#34;nv&#34;&gt;weasel&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;==&lt;/span&gt;0.4.1 &lt;span class=&#34;se&#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;se&#34;&gt;&lt;/span&gt;    transformer-engine&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;pytorch&lt;span class=&#34;o&#34;&gt;]==&lt;/span&gt;2.2.0 &lt;span class=&#34;se&#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;se&#34;&gt;&lt;/span&gt;    megatron-core&lt;span class=&#34;o&#34;&gt;==&lt;/span&gt;0.13.0 &lt;span class=&#34;se&#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;se&#34;&gt;&lt;/span&gt;    &lt;span class=&#34;nv&#34;&gt;deepspeed&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;==&lt;/span&gt;0.16.4 
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pip uninstall -y opencv opencv-python opencv-python-headless
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pip install opencv-python-headless&lt;span class=&#34;o&#34;&gt;==&lt;/span&gt;4.11.0.86
&lt;/span&gt;&lt;/span&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;git+https://github.com/alibaba/roll.git#subdirectory=mcore_adapter&amp;#34;&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&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# for llamafactory&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git clone --depth &lt;span class=&#34;m&#34;&gt;1&lt;/span&gt; https://github.com/hiyouga/LLaMA-Factory.git
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; LLaMA-Factory
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pip install -e &lt;span class=&#34;s2&#34;&gt;&amp;#34;.[torch,metrics]&amp;#34;&lt;/span&gt; --no-build-isolation
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h4 id=&#34;-docker-recommended&#34;&gt;🐳 docker (Recommended)&lt;/h4&gt;
&lt;p&gt;Refer to the &lt;a href=&#34;https://github.com/hiyouga/LLaMA-Factory/blob/main/docker/docker-cuda/Dockerfile.megatron&#34;&gt;Dockerfile&lt;/a&gt; for building.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Easy Dataset × LLaMA Factory: Empowering Large Models with Efficient Domain Knowledge Learning</title>
      <link>https://blog.llamafactory.net/en/posts/easy_dataset/</link>
      <pubDate>Thu, 03 Apr 2025 21:13:00 +0800</pubDate>
      <guid>https://blog.llamafactory.net/en/posts/easy_dataset/</guid>
      <description>&lt;h2 id=&#34;1-introduction&#34;&gt;1 Introduction&lt;/h2&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/ConardLi/easy-dataset?utm_source=chatgpt.com&#34;&gt;Easy Dataset&lt;/a&gt; is an application designed specifically for creating fine-tuning datasets for large language models (LLMs). It provides an intuitive interface for uploading domain-specific documents, intelligently segmenting content, generating questions, and producing high-quality training data for model fine-tuning. It supports calling large models through APIs such as OpenAI, DeepSeek, Volcano Engine, as well as local models via Ollama.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/hiyouga/LLaMA-Factory&#34;&gt;LLaMA Factory&lt;/a&gt; is an open-source, low-code fine-tuning framework for large language models. It integrates the most widely used fine-tuning techniques in the industry and supports zero-code model fine-tuning through a Web UI. It has become one of the most popular fine-tuning frameworks in the open-source community, with over 63K stars on GitHub. It supports full-parameter fine-tuning, LoRA fine-tuning, as well as fine-tuning algorithms such as SFT and DPO.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
