{"id":37690,"date":"2025-02-02T16:00:55","date_gmt":"2025-02-02T08:00:55","guid":{"rendered":"https:\/\/17aitech.com\/?p=37690"},"modified":"2025-02-02T16:00:55","modified_gmt":"2025-02-02T08:00:55","slug":"%e4%b8%80%e8%a1%8c%e4%bb%a3%e7%a0%81post-train%e4%bb%bb%e6%84%8f%e9%95%bf%e5%ba%8f%e5%88%97%ef%bc%81360%e6%99%ba%e8%84%91%e5%bc%80%e6%ba%90360-llama-factory","status":"publish","type":"post","link":"https:\/\/17aitech.com\/?p=37690","title":{"rendered":"\u4e00\u884c\u4ee3\u7801Post-Train\u4efb\u610f\u957f\u5e8f\u5217\uff01360\u667a\u8111\u5f00\u6e90360-LLaMA-Factory"},"content":{"rendered":"<p>\u6587\u7ae0\u6765\u6e90\u4e8e\u4e92\u8054\u7f51:<a href=\"https:\/\/www.jiqizhixin.com\/articles\/2025-01-10-2\" target=\"_blank\">\u4e00\u884c\u4ee3\u7801Post-Train\u4efb\u610f\u957f\u5e8f\u5217\uff01360\u667a\u8111\u5f00\u6e90360-LLaMA-Factory<\/a><\/p>\n<section><a href=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-cc8ba7407a9871feed333e6e5054776c.png\" data-fancybox=\"images\" data-fancybox=\"gallery\"><img decoding=\"async\" src=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-cc8ba7407a9871feed333e6e5054776c.png\"><\/a><\/section>\n<blockquote data-author-name=\"\" data-content-utf8-length=\"166\" data-source-title=\"\" data-type=\"2\" data-url=\"\">\n<section>\n<section>AIxiv\u4e13\u680f\u662f\u673a\u5668\u4e4b\u5fc3\u53d1\u5e03\u5b66\u672f\u3001\u6280\u672f\u5185\u5bb9\u7684\u680f\u76ee\u3002\u8fc7\u53bb\u6570\u5e74\uff0c\u673a\u5668\u4e4b\u5fc3AIxiv\u4e13\u680f\u63a5\u6536\u62a5\u9053\u4e862000\u591a\u7bc7\u5185\u5bb9\uff0c\u8986\u76d6\u5168\u7403\u5404\u5927\u9ad8\u6821\u4e0e\u4f01\u4e1a\u7684\u9876\u7ea7\u5b9e\u9a8c\u5ba4\uff0c\u6709\u6548\u4fc3\u8fdb\u4e86\u5b66\u672f\u4ea4\u6d41\u4e0e\u4f20\u64ad\u3002\u5982\u679c\u60a8\u6709\u4f18\u79c0\u7684\u5de5\u4f5c\u60f3\u8981\u5206\u4eab\uff0c\u6b22\u8fce\u6295\u7a3f\u6216\u8005\u8054\u7cfb\u62a5\u9053\u3002\u6295\u7a3f\u90ae\u7bb1\uff1aliyazhou@jiqizhixin.com\uff1bzhaoyunfeng@jiqizhixin.com<\/section>\n<\/section>\n<\/blockquote>\n<section><\/section>\n<section><strong>\u9879\u76ee\u6838\u5fc3\u5f00\u53d1\u8005 Haosheng Zou \u672c\u79d1\u6bd5\u4e1a\u4e8e\u6e05\u534e\u5927\u5b66\u7535\u5b50\u7cfb\uff0c\u535a\u58eb\u6bd5\u4e1a\u4e8e\u6e05\u534e\u5927\u5b66\u8ba1\u7b97\u673a\u7cfb\u6731\u519b\u6559\u6388\u7ec4\uff0c\u76ee\u524d\u5728 360 \u667a\u8111\u4ece\u4e8b\u957f\u6587\u672c\u548c\u5f3a\u5316\u5b66\u4e60\u7b49\u540e\u8bad\u7ec3\u5de5\u4f5c\u3002\u5f00\u53d1\u8005 Xiaowei Lv \u76ee\u524d\u5728\u4eba\u6c11\u5927\u5b66\u4fe1\u606f\u5b66\u9662\u7814\u4e8c\u5728\u8bfb\u3002Fenrui Xiao\u3001Junchen Liu\u3001Qi An \u548c Xiaodong Sun \u7b49\u5728\u5f00\u53d1\u6d4b\u8bd5\u4e2d\u4ea6\u6709\u8d21\u732e\u3002<\/strong><\/section>\n<section><\/section>\n<section>\u5927\u6a21\u578b\u957f\u5e8f\u5217\u7684\u5904\u7406\u80fd\u529b\u5df2\u8d8a\u6765\u8d8a\u91cd\u8981\uff0c\u50cf\u590d\u6742\u957f\u6587\u672c\u4efb\u52a1\u3001\u591a\u5e27\u89c6\u9891\u7406\u89e3\u4efb\u52a1\u3001\u4ee5\u53ca OpenAI \u8fd1\u671f\u53d1\u5e03\u7684 o1\u3001o3 \u7cfb\u5217\u6a21\u578b\u7684\u9ad8\u8ba1\u7b97\u91cf\u6a21\u5f0f\uff0c\u9700\u8981\u5904\u7406\u7684\u8f93\u5165 + \u8f93\u51fa\u603b token \u6570\u4ece\u51e0\u4e07\u91cf\u7ea7\u4e0a\u5347\u5230\u4e86\u51e0\u767e\u4e07\u91cf\u7ea7\u3002\u9762\u5bf9\u6a21\u578b\u65e5\u76ca\u589e\u957f\u7684\u957f\u5e8f\u5217\u9700\u6c42\uff0c\u5728\u9884\u8bad\u7ec3\uff08Pre-Training\uff09\u548c\u540e\u8bad\u7ec3\uff08Post-Training\uff09\u9636\u6bb5\uff0c\u6240\u7528\u7684\u5e73\u53f0\u6846\u67b6\u90fd\u9700\u8981\u652f\u6301\u66f4\u957f\u5e8f\u5217\u6570\u636e\u7684\u8bad\u7ec3\u3002\u4e0d\u540c\u4e8e\u9884\u8bad\u7ec3\u9636\u6bb5\u57fa\u4e8e Megatron-LM \u5b9a\u5236\u5f00\u53d1\u7684\u5e38\u89c1\u9009\u62e9\uff0c\u540e\u8bad\u7ec3\u9636\u6bb5\u56e0\u540e\u8bad\u7ec3\u7b97\u6cd5\u7684\u591a\u6837\u6027\uff08\u6bd4\u5982\u4ec5 DPO \u5c31\u6709\u51e0\u5341\u4e2a\u53d8\u79cd\uff09\u548c\u8bad\u7ec3\u9700\u6c42\u7684\u7075\u6d3b\u6027\uff0c\u81f3\u4eca\u6ca1\u6709\u4e00\u4e2a\u6846\u67b6\u540c\u65f6\u5728\u5e76\u884c\u7b56\u7565\u3001\u540e\u8bad\u7ec3\u7b97\u6cd5\u3001GPU \u663e\u5b58\u4f18\u5316\u548c\u7b80\u5355\u6613\u7528\u8fd9 4 \u4e2a\u65b9\u9762\u4e0a\u5168\u90e8\u505a\u5230\u517c\u5bb9\u5e76\u5305\u3002<\/section>\n<section><\/section>\n<section>\u5728\u6240\u6709\u5f00\u6e90\u7684\u540e\u8bad\u7ec3\u6846\u67b6\u4e2d\uff0cLLaMA-Factory \u662f\u7528\u6237\u6700\u591a\u7684\u6846\u67b6\u4e4b\u4e00\uff08GitHub star \u6570\u5df2 37k \u591a\uff09\uff0c\u4fdd\u6301\u957f\u671f\u8fed\u4ee3\u66f4\u65b0\uff0c\u652f\u6301\u4e30\u5bcc\u7684\u6a21\u578b\u548c\u540e\u8bad\u7ec3\u7b97\u6cd5\uff0c\u6709\u5404\u79cd GPU \u663e\u5b58\u4f18\u5316\u6280\u5de7\u548c\u7b80\u5355\u6613\u7528\u7684\u65b9\u5f0f\u3002\u7136\u800c\uff0cLLaMA-Factory \u5728\u957f\u5e8f\u5217\u540e\u8bad\u7ec3\u4e0a\u652f\u6301\u4ecd\u6709\u6240\u6b20\u7f3a\uff0c\u5c1a\u4e0d\u652f\u6301\u957f\u5e8f\u5217\u7684\u5173\u952e\u6280\u672f \u2014\u2014 \u5e8f\u5217\u5e76\u884c\u3002<\/section>\n<section><a href=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-deef5cb4d8d22820838f6727919c89bd.png\" data-fancybox=\"images\" data-fancybox=\"gallery\"><img decoding=\"async\" src=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-deef5cb4d8d22820838f6727919c89bd.png\"><\/a><\/section>\n<section>\u9879\u76ee\u4e3b\u9875\uff1ahttps:\/\/github.com\/Qihoo360\/360-LLaMA-Factory<\/section>\n<section><\/section>\n<section>\u6700\u8fd1\uff0c360 \u667a\u8111\u57fa\u4e8e LLaMA-Factory \u5f00\u6e90\u4e86 360-LLaMA-Factory\uff0c\u52a0\u5165\u4e86\u5e8f\u5217\u5e76\u884c\u529f\u80fd\uff0c\u4e00\u884c\u4ee3\u7801\u5373\u53ef\u652f\u6301\u4efb\u610f\u957f\u5e8f\u5217\u7684\u540e\u8bad\u7ec3\uff08Post-Training\uff09\u2014\u2014 \u4ec5\u9700\u989d\u5916\u6307\u5b9a\u5e8f\u5217\u5e76\u884c\u4e00\u4e2a\u53c2\u6570\uff1a<\/section>\n<section>\n<pre data-lang=\"http\"><section><code>sequence_parallel_size: 16<\/code><\/section><\/pre>\n<\/section>\n<section><\/section>\n<section>\u6309\u9700\u589e\u52a0\u5e8f\u5217\u5e76\u884c\u7684 GPU \u5361\u6570\uff0c\u5373\u53ef\u5728\u4efb\u610f\u957f\u5ea6\u7684\u5e8f\u5217\u4e0a SFT \u6216 DPO\u3002<\/section>\n<section><\/section>\n<section>360-LLaMA-Factory \u7684\u5b9e\u73b0\u7ecf\u8fc7\u4e86\u4e25\u683c\u7684\u6b63\u786e\u6027\u9a8c\u8bc1\uff0c\u5df2\u5728\u4e3b\u4ed3 Pull Request \u4e2d\u5ba1\u6838\u8fc7\u3002\u6b63\u5f0f\u5408\u5e76\u8fdb LLaMA-Factory \u4e3b\u4ed3\u4e4b\u524d\uff0c\u53ef\u5148\u4f7f\u7528 360-LLaMA-Factory\u3002<\/section>\n<section><\/section>\n<section><strong>1\u3001\u9879\u76ee\u80cc\u666f\u4e0e\u9879\u76ee\u7b80\u4ecb<\/strong><\/section>\n<section><\/section>\n<section>360 \u667a\u8111\u65e9\u5728 2023 \u5e74\u5c31\u5f00\u59cb\u4e86\u957f\u6587\u672c\u5927\u6a21\u578b\u7684\u7814\u53d1\uff0c\u5230\u76ee\u524d\u4e3a\u6b62\u5df2\u7ecf\u6210\u529f\u5e94\u7528\u4e8e\u5f00\u6e90\u5e76\u66f4\u65b0\u4e86\u4e24\u4e2a\u7248\u672c\u7684 360Zhinao-7B-Chat-360k \u6a21\u578b\uff0c\u4ee5\u53ca\u8fd1\u65e5\u53d1\u5e03\u7684\u957f\u601d\u7ef4\u94fe\u63a8\u7406\u6a21\u578b 360gpt2-o1\u3002\u5728 360-LLaMA-Factory \u4e2d\uff0c\u6211\u4eec\u5c06 360 \u667a\u8111\u5185\u90e8\u957f\u5e8f\u5217\u540e\u8bad\u7ec3\u80fd\u529b\u7cfb\u7edf\u6027\u5730\u6574\u5408\u8fdb\u4e86 LLaMA-Factory \u4e2d\uff0c\u7528\u6237\u4ec5\u9700\u989d\u5916\u6dfb\u52a0\u4e00\u884c\u4ee3\u7801\uff0c\u5373\u53ef\u8fdb\u884c\u7406\u8bba\u4e0a\u4efb\u610f\u957f\u5ea6\u7684\u957f\u5e8f\u5217\u540e\u8bad\u7ec3\uff08\u589e\u52a0\u5e8f\u5217\u5e76\u884c\u7684 GPU \u5361\u6570\u5373\u53ef\uff09\uff1a<\/section>\n<section>\n<pre data-lang=\"http\"><section><code>sequence_parallel_size: 16<\/code><\/section><\/pre>\n<\/section>\n<section><em><sup>\u5728\u539f\u5148\u4f7f\u7528 LLaMA-Factory \u7684\u57fa\u7840\u4e0a\uff0c\u53ea\u9700\u989d\u5916\u589e\u52a0\u4e00\u4e2a\u53c2\u6570<\/sup><\/em><\/section>\n<section><\/section>\n<section>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c360-LLaMA-Factory \u5c06 LLaMA-Factory \u7684\u5e8f\u5217\u5e76\u884c\u4e5f\u505a\u5230\u4e86\u7b80\u5355\u6613\u7528\u548c\u517c\u5bb9\u5e76\u5305\uff0c\u548c LLaMA-Factory \u7684\u5176\u4ed6\u529f\u80fd\u5b8c\u5168\u517c\u5bb9\u3002<\/section>\n<section><\/section>\n<section>\u7c97\u7c92\u5ea6\u5730\u6d4b\u8bd5 8 \u5361 80G \u7684\u5168\u53c2\u6570\u540e\u8bad\u7ec3\uff08\u4e0d\u8003\u8651\u9664\u4e86 zero3-offload \u548c gradient checkpointing \u5916\u7684\u4efb\u4f55\u4f18\u5316\u6280\u5de7\uff09\uff0c360-LLaMA-Factory \u81f3\u5c11\u53ef\u4ee5\u8bad\u5230 SFT 210k (7B) \/ 128k (72B) \u548c DPO 84k (7B) \/ 46k (72B)\u3002\u82e5\u52a0\u4e0a\u6ce8\u6389 logits = logits.float () \u548c DPO \u9884\u8ba1\u7b97\u7b49\u6280\u5de7\uff0c2 \u5361\u5e8f\u5217\u5e76\u884c\u5373\u53ef\u89e3\u51b3\u8bf8\u591a\u5e38\u89c1\u7684\u8bad\u7ec3\u9700\u6c42\u3002360-LLaMA-Factory \u8ba9\u5e8f\u5217\u5e76\u884c\u4e5f\u771f\u6b63\u6210\u4e3a\u4e86\u7b80\u5355\u597d\u7528\u3001\u6548\u679c\u4e5f\u597d\u7684\u540e\u8bad\u7ec3\u5de5\u5177\u3002<\/section>\n<section><\/section>\n<section>\u4f5c\u4e3a\u5f00\u6e90\u793e\u533a\u7684\u4e00\u4efd\u5b50\uff0c360-LLaMA-Factory \u79bb\u4e0d\u5f00 LLaMA-Factory\u3001ring-flash-attention \u548c EasyContext \u7b49\u5f00\u6e90\u9879\u76ee\u7684\u5f00\u521b\u6027\u5de5\u4f5c\uff0c\u6211\u4eec\u7684\u5e95\u5c42\u5f00\u53d1\u90e8\u5206\u4f9d\u8d56\u4e86\u8fd9\u4e9b\u5de5\u4f5c\uff0c\u4f46\u4e5f\u6709\u6211\u4eec\u81ea\u5df1\u5728\u5177\u4f53\u5b9e\u73b0\u65b9\u5f0f\u4e0a\u7684\u4e0d\u540c\u548c\u89c1\u89e3\u3002\u6211\u4eec\u76f8\u4fe1\u6211\u4eec\u7684\u4ee3\u7801\u5b9e\u73b0\u5df2\u505a\u5230\u5c3d\u53ef\u80fd\u597d\u7684\u6a21\u5757\u5316\u548c\u5c3d\u53ef\u80fd\u5c11\u7684\u539f\u59cb\u4ee3\u7801\u4fee\u6539\uff0c\u4e14\u4e25\u683c\u68c0\u67e5\u8fc7\u6b63\u786e\u6027\uff0c\u56e0\u6b64\u4e5f\u5df2\u5411 LLaMA-Factory \u4e3b\u4ed3\u63d0\u4ea4\u4e86 Pull Request\uff0c\u521d\u6b65\u5ba1\u6838\u901a\u8fc7\u3002\u6211\u4eec\u4e50\u4e8e\u540c\u5f00\u6e90\u793e\u533a\u5171\u5efa\u5b8c\u5584\u8fd9\u9879\u5de5\u4f5c\u3002<\/section>\n<section><\/section>\n<section><strong>2\u3001\u957f\u5e8f\u5217\u53ca\u5176\u540e\u8bad\u7ec3<\/strong><\/section>\n<section><\/section>\n<section><strong>2.1 \u957f\u5e8f\u5217\u5927\u6a21\u578b\u7684\u8bad\u7ec3\uff1a\u9884\u8bad\u7ec3 vs \u540e\u8bad\u7ec3<\/strong><\/section>\n<section><\/section>\n<section>\u968f\u7740\u5927\u6a21\u578b\u8bad\u7ec3\u6570\u636e\u957f\u5ea6\u7684\u589e\u957f\uff0c\u9884\u8bad\u7ec3\u548c\u540e\u8bad\u7ec3\u5e73\u53f0\u6846\u67b6\u90fd\u9700\u8981\u652f\u6301\u957f\u5e8f\u5217\u6570\u636e\u8bad\u7ec3\u3002<\/section>\n<ul>\n<li>\n<p>\u9884\u8bad\u7ec3\u9636\u6bb5\uff0c\u82f1\u4f1f\u8fbe\u7684 Megatron-LM \u51ed\u501f\u4e30\u5bcc\u9ad8\u6548\u7684\u5e76\u884c\u7b56\u7565\u4e0e\u51fa\u8272\u7684 GPU \u663e\u5b58\u4f18\u5316\uff0c\u6210\u4e3a\u4e3b\u6d41\u6846\u67b6\uff0c\u57fa\u4e8e\u5b83\u7684\u5b9a\u5236\u5f00\u53d1\u5f80\u5f80\u662f\u6700\u901a\u7528\u7684\u89e3\u6cd5\uff0c Megatron-LM \u672c\u8eab\u5df2\u5b9e\u73b0\u4e86\u5e8f\u5217\u5e76\u884c\uff08Megatron-LM \u79f0\u4e4b\u4e3a context parallelism\uff0c\u5176\u4ed6\u5de5\u4f5c\u4e00\u822c\u79f0\u4e3a sequence parallelism\uff09\u3002<\/p>\n<\/li>\n<li>\n<p>\u540e\u8bad\u7ec3\u9636\u6bb5\u60c5\u51b5\u76f8\u5bf9\u590d\u6742\u3002\u540e\u8bad\u7ec3\u7b97\u6cd5\u591a\u6837\uff0c\u5982 DPO \u5c31\u6709\u8bf8\u591a\u53d8\u79cd\uff0c\u4e14\u8bad\u7ec3\u9700\u6c42\u7075\u6d3b\u591a\u53d8\uff0c\u4e0d\u540c\u573a\u666f\u5bf9\u7b97\u6cd5\u3001\u8d44\u6e90\u3001\u5e76\u884c\u6027\u7b49\u8981\u6c42\u5404\u5f02\u3002\u56e0\u6b64\uff0c\u81f3\u4eca\u6ca1\u6709\u4e00\u4e2a\u6846\u67b6\u80fd\u5728\u5e76\u884c\u7b56\u7565\u3001\u540e\u8bad\u7ec3\u7b97\u6cd5\u3001GPU \u663e\u5b58\u4f18\u5316\u548c\u6613\u7528\u6027\u8fd9\u56db\u4e2a\u5173\u952e\u65b9\u9762\u505a\u5230\u8fd1\u4e4e\u5b8c\u7f8e\u7684\u517c\u5bb9\u3002\u867d\u6709\u6846\u67b6\u5728\u90e8\u5206\u65b9\u9762\u8868\u73b0\u5c1a\u53ef\uff0c\u4f46\u603b\u4f53\u4ecd\u5b58\u5728\u77ed\u677f\uff0c\u8fd9\u4e5f\u9650\u5236\u4e86\u6a21\u578b\u5728\u957f\u5e8f\u5217\u6570\u636e\u540e\u8bad\u7ec3\u4e0a\u7684\u8fdb\u4e00\u6b65\u53d1\u5c55\u3002<\/p>\n<\/li>\n<\/ul>\n<section><strong>2.2 \u957f\u5e8f\u5217\u7684\u901a\u89e3 \u2014\u2014 \u5e8f\u5217\u5e76\u884c\u53ca\u5176\u96be\u70b9<\/strong><\/section>\n<section><\/section>\n<section>\u957f\u5e8f\u5217\u540e\u8bad\u7ec3\u9762\u4e34\u7684\u5173\u952e\u74f6\u9888\u662f\uff1a\u5e8f\u5217\u957f\u5ea6\u589e\u52a0\u65f6\uff0c\u6fc0\u6d3b\u663e\u5b58\u4f1a\u5927\u5e45\u4e0a\u5347\u3002\u867d\u7136\u6709 unsloth\u3001liger kernel\u3001LoRA \u7b49\u591a\u79cd\u964d\u4f4e\u663e\u5b58\u5360\u7528\u7684\u6280\u5de7\uff0c\u4f46\u5747\u672a\u4ece\u6839\u672c\u4e0a\u89e3\u51b3\u5e8f\u5217\u957f\u5ea6\u589e\u52a0\u7684\u672c\u8d28\u95ee\u9898\uff0c\u5176\u6548\u679c\u5b58\u5728\u660e\u786e\u4e0a\u9650\u3002<\/section>\n<section><\/section>\n<section>\u5e8f\u5217\u5e76\u884c\uff08sequence parallelism\uff09\u88ab\u8ba4\u4e3a\u662f\u89e3\u51b3\u957f\u5e8f\u5217\u8bad\u7ec3\u95ee\u9898\u7684\u901a\u89e3\uff0c\u5b83\u901a\u8fc7\u628a\u4e00\u6761\u957f\u5e8f\u5217\u5207\u5206\u5230\u4e0d\u540c\u7684\u663e\u5361\u4e0a\u8fdb\u884c\u8ba1\u7b97\uff0c\u4ece\u800c\u907f\u514d\u4e86\u6bcf\u5f20\u663e\u5361\u5904\u7406\u8fc7\u957f\u7684\u5e8f\u5217\uff0c\u4ece\u6839\u672c\u4e0a\u89e3\u51b3\u4e86 \u201c\u6bcf\u5f20\u663e\u5361\u5904\u7406\u7684\u5e8f\u5217\u957f\u5ea6\u589e\u52a0\u201d \u7684\u95ee\u9898\u3002\u7136\u800c\uff0c\u5e8f\u5217\u5e76\u884c\u7684\u5b9e\u73b0\u96be\u5ea6\u8f83\u5927\uff0c\u9700\u8981\u5728\u5207\u5206\u540e\u7684\u5e8f\u5217\u4e4b\u95f4\u8fdb\u884c\u901a\u4fe1\u8ba1\u7b97 attention\uff0c\u9700\u8981\u4fb5\u5165\u4fee\u6539\u539f\u59cb\u7684 attention \u51fd\u6570\u3002\u5728\u5f00\u6e90\u7684 Megatron-LM \u4e2d\uff0c\u5e8f\u5217\u5e76\u884c\u4e5f\u662f\u6240\u6709\u5e76\u884c\u7b56\u7565\u4e2d\u6700\u540e\u624d\u6dfb\u52a0\u7684\uff0cLLaMA-Factory \u4e4b\u524d\u8fd8\u6ca1\u6709\u652f\u6301\u5e8f\u5217\u5e76\u884c\u3002<\/section>\n<section><\/section>\n<section><strong>2.3 \u5e8f\u5217\u5e76\u884c\u540e\u8bad\u7ec3\u7684\u76f8\u5173\u5de5\u4f5c<\/strong><\/section>\n<section><\/section>\n<section>\u6211\u4eec\u8c03\u7814\u4e86\u5176\u4ed6\u4e00\u4e9b\u652f\u6301\u5e8f\u5217\u5e76\u884c\u7684\u5f00\u6e90\u6846\u67b6\uff0c\u6709\u4e9b\u5b9e\u73b0\u4e0a\u6709\u9519\u6216\u5c0f bug\u3001\u5bfc\u81f4\u652f\u6301\u7684\u540e\u8bad\u7ec3\u7b97\u6cd5\u4e0d\u5168\uff1b\u6709\u4e9b\u66f4\u65b0\u7ef4\u62a4\u4e0d\u53ca\u65f6\u3001\u8bad\u7ec3\u8f83\u65b0\u7684\u6a21\u578b\u4e0d\u65b9\u4fbf\u3001\u663e\u793a\u8fdb\u5ea6\u6761\u7b49\u6613\u7528\u6027\u4e0d\u8db3\u3002\u6709\u7684\u4e0e LLaMA-Factory \u76f8\u6bd4\u7ee7\u627f\u4f9d\u8d56\u66f4\u5c11\uff0c\u652f\u6301\u529f\u80fd\u8f83\u5c11\u4f46\u66f4\u5e72\u51c0\u3001\u66f4\u9002\u5408\u5b9a\u5236\u5f00\u53d1\uff0c\u6709\u4e0d\u540c\u7684\u4f7f\u7528\u573a\u666f\u3002\u6b64\u5916\uff0c\u5404\u5bb6\u7684\u5e8f\u5217\u5e76\u884c\u5177\u4f53\u5b9e\u73b0\u4e5f\u4e0d\u5c3d\u76f8\u540c\u3002\u8be6\u89c1\u4e0b\u9762\u7684\u8868 1 \u548c GitHub README\uff0c\u6709\u672a\u8c03\u7814\u5230\u7684\u4e5f\u8bf7\u5305\u6db5\u5e76\u8054\u7cfb 360-LLaMA-Factory\u3002<\/section>\n<section><a href=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-1c3c3eafc083df582e202cab81b40a2d.png\" data-fancybox=\"images\" data-fancybox=\"gallery\"><img decoding=\"async\" src=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-1c3c3eafc083df582e202cab81b40a2d.png\"><\/a><\/section>\n<section><em><sup>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u8868 1\uff1a\u4e00\u4e9b\u652f\u6301\u5e8f\u5217\u5e76\u884c\u7684\u540e\u8bad\u7ec3\u6846\u67b6\u5bf9\u6bd4<\/sup><\/em><\/section>\n<section><\/section>\n<section><strong>3\u3001360-LLaMA-Factory \u6846\u67b6\u89e3\u6790<\/strong><\/section>\n<section><\/section>\n<section>360-LLaMA-Factory \u7cfb\u7edf\u6027\u5730\u4e3a LLaMA-Factory \u589e\u52a0\u4e86\u5e8f\u5217\u5e76\u884c\u7684\u652f\u6301\u3002\u4ee5\u4e0b\u5c06\u7b80\u8981\u4ecb\u7ecd 360-LLaMA-Factory \u6846\u67b6\u4e2d\u7684\u6a21\u5757\u5316\u4fee\u6539\u548c\u6267\u884c\u6d41\u7a0b\u3002<\/section>\n<section><\/section>\n<section><strong>3.1 360-LLaMA-Factory \u7684\u6846\u67b6\u548c\u6a21\u5757\u5316\u5c01\u88c5<\/strong><\/section>\n<section><\/section>\n<section>360-LLaMA-Factory \u5c06\u5e8f\u5217\u5e76\u884c\u7684\u4ee3\u7801\u505a\u5230\u4e86\u5c3d\u53ef\u80fd\u597d\u7684\u6a21\u5757\u5316\u548c\u5c3d\u53ef\u80fd\u5c11\u7684\u539f\u59cb\u4ee3\u7801\u4fee\u6539\u3002<\/section>\n<section><\/section>\n<section>\u6211\u4eec\u8ba4\u4e3a\u5e8f\u5217\u5e76\u884c\u672c\u8d28\u4e0a\u5e94\u8ba4\u4e3a\u662f\u5bf9\u6a21\u578b\u7684\u4fee\u6539\uff0c\u56e0\u6b64\u5728 model_args \u4e2d\u589e\u52a0\u4e86\u53c2\u6570\u5e76\u62bd\u8c61\u4e3a apply_sequence_parallel \u4fee\u6539\u6a21\u578b\u7684\u51fd\u6570\u3002<\/section>\n<section>\n<pre data-lang=\"makefile\"><section><code># src\/llamafactory\/model\/loader.py<\/code><\/section><section><code>sequence_parallel_group = apply_sequence_parallel(model_args)  # \u5e8f\u5217\u5e76\u884cmonkey patch\uff0c\u6539\u52a8attention\u8ba1\u7b97<\/code><\/section><section><code>...<\/code><\/section><section><code>model.sequence_parallel_group = sequence_parallel_group  # \u7ef4\u62a4\u6a21\u578b\u7684\u5e8f\u5217\u5e76\u884c\u7ec4\uff0c\u4e0d\u5f00\u5219\u4e3aNone<\/code><\/section><\/pre>\n<\/section>\n<section><\/section>\n<section>\u76f8\u5e94\u5730\uff0c\u6570\u636e\u5904\u7406\u90e8\u5206\u4e5f\u8981\u76f8\u5e94\u5730\u4fee\u6539\uff0c\u6211\u4eec\u5c06 zigzag ring attention \u6240\u9700\u7684\u6570\u636e\u5904\u7406\u62bd\u8c61\u6210\u4e86\u4e00\u4e2a decorator\uff0c\u88c5\u9970\u539f\u6765\u7684\u6570\u636e\u5904\u7406\u51fd\u6570\u3002\u80cc\u540e\uff0c\u8fd9\u4f1a\u5c06\u5148 shuffle\u3001packing\u3001\u9884\u5904\u7406\u597d\u7684\u6570\u636e\u8fdb\u4e00\u6b65\u505a\u597d\u5e8f\u5217\u5e76\u884c\u7684\u51c6\u5907\uff1a\u5148\u5c06\u6bcf\u884c pad \u6216\u622a\u65ad\u5230\u6307\u5b9a\u7684\u8bad\u7ec3\u957f\u5ea6\uff0c\u518d\u6309 zigzag \u5207\u5206\u5e76\u6309\u987a\u5e8f\u5199\u5165\u6570\u636e\u96c6\uff0c\u6700\u540e\u5728\u8bad\u7ec3\u65f6\u7528 SequentialSampler \u8bfb\u53d6\u8bad\u7ec3\u6570\u636e\u3002<\/section>\n<section>\n<pre data-lang=\"ruby\"><section><code># src\/llamafactory\/data\/loader.py<\/code><\/section><section><code>@sequence_parallel_decorator<\/code><\/section><section><code>def get_dataset(...)<\/code><\/section><\/pre>\n<\/section>\n<section><\/section>\n<section>loss \u8ba1\u7b97\u5219\u9700\u8981\u5728 Trainer \u4e2d\u505a\u5e8f\u5217\u5e76\u884c\u7ec4\u5185\u7684 reduce \u6c47\u603b\u548c\u8ba1\u7b97\u3002<\/section>\n<section>\n<pre data-lang=\"cs\"><section><code># src\/llamafactory\/train\/sft\/trainer.py<\/code><\/section><section><code>dist.all_reduce(loss, op=dist.ReduceOp.SUM, group=sp_group)<\/code><\/section><section><code>dist.all_reduce(label_num, op=dist.ReduceOp.SUM, group=sp_group)<\/code><\/section><section><code>loss \/= label_num<\/code><\/section><section><code># src\/llamafactory\/train\/dpo\/trainer.py<\/code><\/section><section><code>dist.all_reduce(policy_chosen_logps, op=dist.ReduceOp.SUM, group=sp_group)<\/code><\/section><section><code>dist.all_reduce(policy_rejected_logps, op=dist.ReduceOp.SUM, group=sp_group)<\/code><\/section><section><code>dist.all_reduce(reference_chosen_logps, op=dist.ReduceOp.SUM, group=sp_group)<\/code><\/section><section><code>dist.all_reduce(reference_rejected_logps, op=dist.ReduceOp.SUM, group=sp_group)<\/code><\/section><\/pre>\n<\/section>\n<section><\/section>\n<section><strong>3.2 360-LLaMA-Factory \u7684 SFT \u548c DPOTrainer<\/strong><\/section>\n<section><\/section>\n<section>\u9664\u4e86\u7edf\u4e00\u7684\u6a21\u5757\u5316\u62bd\u8c61\uff0c\u5e8f\u5217\u5e76\u884c\u4e5f\u9700\u8981\u5bf9 360-LLaMA-Factory \u7684 Trainer \u7a0d\u505a\u5b9a\u5236\u5316\u7684\u4fee\u6539\uff0c\u4ee5\u9002\u914d\u5404\u5e95\u5c42\u5e93\u3002\u9488\u5bf9\u6700\u666e\u904d\u7684\u540e\u8bad\u7ec3\u9700\u6c42 SFT \u548c DPO\uff08\u53ca\u5176\u53d8\u79cd\uff09\uff0c\u6211\u4eec\u5bf9 360-LLaMA-Factory \u4e2d\u7684 SFT \u548c DPOTrainer \u505a\u4e86\u5c3d\u53ef\u80fd\u5c11\u4e14\u6e05\u6670\u7684\u4fee\u6539\u3002<\/section>\n<section><\/section>\n<section>\u5176\u4e2d\uff0cdummy_forward \u662f\u56e0\u4e3a\u6211\u4eec\u53d1\u73b0\u57fa\u4e8e\u76ee\u524d\u7684\u5e95\u5c42\u5e8f\u5217\u5e76\u884c\u5b9e\u73b0\uff0c\u5728\u7b2c\u4e00\u6b21 forward \u65f6 DPO loss \u4e0d\u7b49\u4e8e log (sigmoid (0))\uff0c\u4f46\u5b66\u4e60\u7387\u8bbe\u4e3a 0 \u65f6\u4e4b\u540e\u7684 DPO loss \u5168\u90fd\u7b49\u4e8e\u3002\u56e0\u6b64\uff0c\u8bad\u7ec3\u6700\u5f00\u59cb\u65f6\u5148\u505a\u4e14\u4ec5\u505a\u4e00\u6b21\u5047\u524d\u4f20\uff0c\u4e0d\u5bf9\u6b63\u5f0f\u8bad\u7ec3\u5faa\u73af\u9020\u6210\u4efb\u4f55\u5f71\u54cd\u3002<\/section>\n<section><\/section>\n<section>\u4ece SFT \u548c DPO \u7684\u5e8f\u5217\u5e76\u884c\u5bf9\u6bd4\u56fe\u4e2d\uff0c\u53ef\u4ee5\u6e05\u6670\u5730\u770b\u51fa 360-LLaMA-Factory \u5e8f\u5217\u5e76\u884c\u5e26\u6765\u7684\u6539\u52a8\u3002<\/section>\n<section><a href=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-5c48c3954d31aae110d430d78f8768e9.png\" data-fancybox=\"images\" data-fancybox=\"gallery\"><img decoding=\"async\" src=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-5c48c3954d31aae110d430d78f8768e9.png\"><\/a><\/section>\n<section><em><sup>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u56fe 3\uff1a360-LLaMA-Factory SFT \u5e8f\u5217\u5e76\u884c\u5bf9\u6bd4<\/sup><\/em><\/section>\n<section><a href=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-6005f09d8219771ee68c5ef609da29fa.png\" data-fancybox=\"images\" data-fancybox=\"gallery\"><img decoding=\"async\" src=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-6005f09d8219771ee68c5ef609da29fa.png\"><\/a><\/section>\n<section><em><sup>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u56fe 4\uff1a360-LLaMA-Factory DPO \u5e8f\u5217\u5e76\u884c\u5bf9\u6bd4<\/sup><\/em><\/section>\n<section><\/section>\n<section><strong>4\u3001360-LLaMA-Factory \u6548\u679c\u9a8c\u8bc1<\/strong><\/section>\n<section><\/section>\n<section>\u5185\u90e8 360-LLaMA-Factory \u7684\u65e9\u671f\u7248\u672c\u5df2\u8bad\u7ec3\u4e86\u5f00\u6e90\u7684 360Zhinao2-7B-Chat-360k\u3002<\/section>\n<section><\/section>\n<section>\u4e3a\u9a8c\u8bc1\u672c\u6b21\u5f00\u6e90\u7684 360-LLaMA-Factory \u7684\u6b63\u786e\u6027\uff0c\u6211\u4eec\u7528\u603b\u91cf\u4e3a 30 \u6761\u7684\u5c0f\u6570\u636e\u96c6\uff0c\u9a8c\u8bc1\u4e86\u5e8f\u5217\u5e76\u884c\u5f00\u4e0e\u4e0d\u5f00\u7684\u5bf9\u6bd4\u60c5\u51b5\u4e0b\uff0c\u8bad\u7ec3\u66f2\u7ebf\u7684\u5dee\u522b\uff0c\u4ee5\u6b64\u6765\u786e\u4fdd 360-LLaMA-Factory \u6240\u6709\u5b9e\u73b0\u7684\u6b63\u786e\u6027\u3002\u4ece\u4e0b\u56fe\u53ef\u89c1\uff0c\u5e8f\u5217\u5e76\u884c\u5bf9\u8bad\u7ec3\u66f2\u7ebf\u7684\u5f71\u54cd\u51e0\u4e4e\u53ef\u4ee5\u5ffd\u7565\u4e0d\u8ba1\uff0cDPO \u7a0d\u6709\u4e00\u5b9a\u6570\u503c\u8bef\u5dee\uff0c\u4f46\u6211\u4eec\u4e5f\u4ed4\u7ec6\u68c0\u67e5\u4e86\u8be5\u8bef\u5dee\u4e0e DeepSpeed Ulysses \u7684\u8bef\u5dee\u8303\u56f4\u4e00\u81f4\uff0c\u5f88\u53ef\u80fd\u90e8\u5206\u662f\u5e76\u884c\u8ba1\u7b97\u672c\u8eab\u7684\u968f\u673a\u6027\u5bfc\u81f4\u7684\uff0c\u4ea6\u53ef\u53c2\u8003 ring-flash-attention \u7684\u8be6\u7ec6\u8bf4\u660e\u3002<\/section>\n<section><a href=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-7d562d0794928487e096ce4a762d9f9f.png\" data-fancybox=\"images\" data-fancybox=\"gallery\"><img decoding=\"async\" src=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-7d562d0794928487e096ce4a762d9f9f.png\"><\/a><\/section>\n<section><em><sup>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u56fe 5\uff1a360-LLaMA-Factory SFT \u548c DPO \u5e8f\u5217\u5e76\u884c\u5f00\u5173\u5bf9\u6bd4<\/sup><\/em><\/section>\n<section><\/section>\n<section>\u4e3a\u4fbf\u4e8e\u5bf9\u6bd4\u6548\u679c\uff0c\u6211\u4eec\u57fa\u4e8e\u7b2c\u4e09\u65b9\u5168\u5c3a\u5bf8\u5f00\u6e90\u6a21\u578b\u7c97\u7c92\u5ea6\u538b\u6d4b\u4e86\u6700\u5927\u8bad\u7ec3\u957f\u5ea6\uff0c\u5982\u4e0b\u8868 2\u3001\u8868 3 \u6240\u793a\uff0c\u53ef\u89c1 8 \u5361 80G \u7684\u5e8f\u5217\u5e76\u884c\u4e0a\u9650\u5df2\u53ef\u6ee1\u8db3\u51e0\u5341\u81f3\u51e0\u767e k \u8d85\u957f\u5e8f\u5217\u7684\u9700\u6c42\uff1a<\/section>\n<section><a href=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-4d4c20cd9c39b87d0cfc96dff3f5f412.png\" data-fancybox=\"images\" data-fancybox=\"gallery\"><img decoding=\"async\" src=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-4d4c20cd9c39b87d0cfc96dff3f5f412.png\"><\/a><\/section>\n<section><em><sup>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u8868 2\uff1a\u7b2c\u4e09\u65b9\u5f00\u6e90\u6a21\u578b\u591a\u5c3a\u5bf8 SFT \u957f\u5ea6\u538b\u6d4b<\/sup><\/em><\/section>\n<section><a href=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-5cc7f3ab4378aaa3a74341711c78d98a.png\" data-fancybox=\"images\" data-fancybox=\"gallery\"><img decoding=\"async\" src=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-5cc7f3ab4378aaa3a74341711c78d98a.png\"><\/a><\/section>\n<section><em><sup>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u8868 3\uff1a\u7b2c\u4e09\u65b9\u5f00\u6e90\u6a21\u578b\u591a\u5c3a\u5bf8 DPO \u957f\u5ea6\u538b\u6d4b<\/sup><\/em><\/section>\n<section><\/section>\n<section><strong>5\u3001\u603b\u7ed3<\/strong><\/section>\n<section><\/section>\n<section>360 \u667a\u8111\u5f00\u6e90\u4e86 360-LLaMA-Factory\uff0c\u652f\u6301\u4e86\u5e8f\u5217\u5e76\u884c\uff0c\u4ec5\u9700\u989d\u5916 1 \u4e2a\u53c2\u6570\u63a7\u5236\u3002\u57fa\u4e8e LLaMA-Factory \u548c ring-flash-attention \u5f00\u53d1\uff0c360-LLaMA-Factory \u7684\u5b9e\u73b0\u6a21\u5757\u5316\u3001\u6548\u679c\u6b63\u786e\u4e14\u5728\u957f\u5e8f\u5217\u4e0a\u6709\u6548\u3002<\/section>\n<section><\/section>\n<section>\u6b22\u8fce\u5f00\u53d1\u8005\u4eec\u4f7f\u7528\u548c\u5f00\u53d1\u3002\u5728\u672c\u4ed3\u5e93\uff08https:\/\/github.com\/Qihoo360\/360-LLaMA-Factory\uff09\u4e0b\u63d0\u4ea4\u5e8f\u5217\u5e76\u884c\u76f8\u5173\u7684 issue \u6216 PR \u5373\u53ef\u3002<\/section>\n<section><\/section>\n<section>\u4e5f\u6b22\u8fce\u7814\u7a76\u8005\u4eec\uff0c\u5c24\u5176\u662f\u4f9d\u8d56\u957f\u5e8f\u5217\u5927\u6a21\u578b\u7684\u7814\u7a76\u8005\u4eec\uff0c\u5728\u7814\u7a76\u4e2d\u4f7f\u7528\u6211\u4eec\u7684\u4ee3\u7801\uff0c\u53ef\u4ee5\u8fd9\u6837\u5f15\u7528\u6211\u4eec\u7684\u5de5\u4f5c\uff1a<\/section>\n<section>\n<pre data-lang=\"properties\"><section><code>@software{360-llama-factory,<\/code><\/section><section><code>  author = {Haosheng Zou, Xiaowei Lv, Shousheng Jia and Xiangzheng Zhang},<\/code><\/section><section><code>  title = {360-LLaMA-Factory},<\/code><\/section><section><code>  url = {https:\/\/github.com\/Qihoo360\/360-LLaMA-Factory},<\/code><\/section><section><code>  year = {2024}<\/code><code>}<\/code><\/section><\/pre>\n<\/section>\n<section><\/section>\n<section>\u5efa\u8bae\u540c\u65f6\u5f15\u7528 LLaMA-Factory \u548c ring-flash-attention \u76f8\u5173\u5de5\u4f5c\u3002<\/section>\n<p>\u6587\u7ae0\u6765\u6e90\u4e8e\u4e92\u8054\u7f51:<a href=\"https:\/\/www.jiqizhixin.com\/articles\/2025-01-10-2\" target=\"_blank\">\u4e00\u884c\u4ee3\u7801Post-Train\u4efb\u610f\u957f\u5e8f\u5217\uff01360\u667a\u8111\u5f00\u6e90360-LLaMA-Factory<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6765\u6e90\u4e8e\u4e92\u8054\u7f51:\u4e00\u884c\u4ee3\u7801Post-Tr [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[27],"tags":[68,81],"class_list":["post-37690","post","type-post","status-publish","format-standard","hentry","category-news","tag-68","tag-81"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e00\u884c\u4ee3\u7801Post-Train\u4efb\u610f\u957f\u5e8f\u5217\uff01360\u667a\u8111\u5f00\u6e90360-LLaMA-Factory - \u4e00\u8d77AI\u6280\u672f<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/17aitech.com\/?p=37690\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/17aitech.com\/?p=37690\",\"url\":\"https:\/\/17aitech.com\/?p=37690\",\"name\":\"\u4e00\u884c\u4ee3\u7801Post-Train\u4efb\u610f\u957f\u5e8f\u5217\uff01360\u667a\u8111\u5f00\u6e90360-LLaMA-Factory - \u4e00\u8d77AI\u6280\u672f\",\"isPartOf\":{\"@id\":\"https:\/\/17aitech.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/17aitech.com\/?p=37690#primaryimage\"},\"image\":{\"@id\":\"https:\/\/17aitech.com\/?p=37690#primaryimage\"},\"thumbnailUrl\":\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-cc8ba7407a9871feed333e6e5054776c.png\",\"datePublished\":\"2025-02-02T08:00:55+00:00\",\"author\":{\"@id\":\"https:\/\/17aitech.com\/#\/schema\/person\/60225458499e817ae0af73e67e440b9d\"},\"breadcrumb\":{\"@id\":\"https:\/\/17aitech.com\/?p=37690#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/17aitech.com\/?p=37690\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/17aitech.com\/?p=37690#primaryimage\",\"url\":\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-cc8ba7407a9871feed333e6e5054776c.png\",\"contentUrl\":\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-cc8ba7407a9871feed333e6e5054776c.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/17aitech.com\/?p=37690#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/17aitech.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e00\u884c\u4ee3\u7801Post-Train\u4efb\u610f\u957f\u5e8f\u5217\uff01360\u667a\u8111\u5f00\u6e90360-LLaMA-Factory\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/17aitech.com\/#website\",\"url\":\"https:\/\/17aitech.com\/\",\"name\":\"\u4e00\u8d77AI\u6280\u672f\",\"description\":\"\u8ba9AI\u77e5\u8bc6\u89e6\u624b\u53ef\u53ca\",\"alternateName\":\"\u4e00\u8d77AI\u6280\u672f\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/17aitech.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/17aitech.com\/#\/schema\/person\/60225458499e817ae0af73e67e440b9d\",\"name\":\"AI\u5c0f\u52a9\u624b\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/17aitech.com\/#\/schema\/person\/image\/\",\"url\":\"\/\/17aitech.com\/wp-content\/uploads\/2024\/04\/robot_3.png\",\"contentUrl\":\"\/\/17aitech.com\/wp-content\/uploads\/2024\/04\/robot_3.png\",\"caption\":\"AI\u5c0f\u52a9\u624b\"},\"description\":\"\u8fd9\u4e2a\u4eba\u5f88\u61d2\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b\uff5e\",\"url\":\"https:\/\/17aitech.com\/?page_id=33738&user=3\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4e00\u884c\u4ee3\u7801Post-Train\u4efb\u610f\u957f\u5e8f\u5217\uff01360\u667a\u8111\u5f00\u6e90360-LLaMA-Factory - \u4e00\u8d77AI\u6280\u672f","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/17aitech.com\/?p=37690","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/17aitech.com\/?p=37690","url":"https:\/\/17aitech.com\/?p=37690","name":"\u4e00\u884c\u4ee3\u7801Post-Train\u4efb\u610f\u957f\u5e8f\u5217\uff01360\u667a\u8111\u5f00\u6e90360-LLaMA-Factory - \u4e00\u8d77AI\u6280\u672f","isPartOf":{"@id":"https:\/\/17aitech.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/17aitech.com\/?p=37690#primaryimage"},"image":{"@id":"https:\/\/17aitech.com\/?p=37690#primaryimage"},"thumbnailUrl":"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-cc8ba7407a9871feed333e6e5054776c.png","datePublished":"2025-02-02T08:00:55+00:00","author":{"@id":"https:\/\/17aitech.com\/#\/schema\/person\/60225458499e817ae0af73e67e440b9d"},"breadcrumb":{"@id":"https:\/\/17aitech.com\/?p=37690#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/17aitech.com\/?p=37690"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/17aitech.com\/?p=37690#primaryimage","url":"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-cc8ba7407a9871feed333e6e5054776c.png","contentUrl":"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/01\/frc-cc8ba7407a9871feed333e6e5054776c.png"},{"@type":"BreadcrumbList","@id":"https:\/\/17aitech.com\/?p=37690#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/17aitech.com\/"},{"@type":"ListItem","position":2,"name":"\u4e00\u884c\u4ee3\u7801Post-Train\u4efb\u610f\u957f\u5e8f\u5217\uff01360\u667a\u8111\u5f00\u6e90360-LLaMA-Factory"}]},{"@type":"WebSite","@id":"https:\/\/17aitech.com\/#website","url":"https:\/\/17aitech.com\/","name":"\u4e00\u8d77AI\u6280\u672f","description":"\u8ba9AI\u77e5\u8bc6\u89e6\u624b\u53ef\u53ca","alternateName":"\u4e00\u8d77AI\u6280\u672f","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/17aitech.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/17aitech.com\/#\/schema\/person\/60225458499e817ae0af73e67e440b9d","name":"AI\u5c0f\u52a9\u624b","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/17aitech.com\/#\/schema\/person\/image\/","url":"\/\/17aitech.com\/wp-content\/uploads\/2024\/04\/robot_3.png","contentUrl":"\/\/17aitech.com\/wp-content\/uploads\/2024\/04\/robot_3.png","caption":"AI\u5c0f\u52a9\u624b"},"description":"\u8fd9\u4e2a\u4eba\u5f88\u61d2\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b\uff5e","url":"https:\/\/17aitech.com\/?page_id=33738&user=3"}]}},"_links":{"self":[{"href":"https:\/\/17aitech.com\/index.php?rest_route=\/wp\/v2\/posts\/37690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/17aitech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/17aitech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/17aitech.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/17aitech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=37690"}],"version-history":[{"count":0,"href":"https:\/\/17aitech.com\/index.php?rest_route=\/wp\/v2\/posts\/37690\/revisions"}],"wp:attachment":[{"href":"https:\/\/17aitech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=37690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/17aitech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=37690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/17aitech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=37690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}