{"id":44249,"date":"2025-06-18T09:32:54","date_gmt":"2025-06-18T01:32:54","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/44249.html"},"modified":"2025-06-18T09:32:54","modified_gmt":"2025-06-18T01:32:54","slug":"%e5%9f%ba%e4%ba%8edeepseek-r1-distill-llama-8b%e7%9a%84%e5%81%a5%e5%ba%b7%e7%ae%a1%e7%90%86%e5%8a%a9%e6%89%8b%e5%be%ae%e8%b0%83%e8%bf%87%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/44249.html","title":{"rendered":"\u57fa\u4e8eDeepSeek-R1-Distill-Llama-8B\u7684\u5065\u5eb7\u7ba1\u7406\u52a9\u624b\u5fae\u8c03\u8fc7\u7a0b"},"content":{"rendered":"<h2>\u57fa\u4e8eDeepSeek-R1-Distill-Llama-8B\u7684\u5065\u5eb7\u7ba1\u7406\u52a9\u624b\u5fae\u8c03\u8fc7\u7a0b<\/h2>\n<p>\u672c\u6b21\u521b\u65b0\u5b9e\u8bad\u9879\u76ee\u7684\u4e3b\u8981\u4efb\u52a1\u662f\u5229\u7528DEEPSEEK\u63d0\u4f9b\u7684\u5f00\u6e90\u6a21\u578b&#xff0c;\u901a\u8fc7\u5fae\u8c03\u6280\u672f&#xff0c;\u5b9e\u73b0\u4e00\u4e2a\u4e13\u6ce8\u4e8e\u5065\u5eb7\u7ba1\u7406\u4e0e\u533b\u7597\u54a8\u8be2\u7684\u4eba\u5de5\u667a\u80fd\u52a9\u624b\u3002\u672c\u6587\u8be6\u7ec6\u8bb0\u5f55\u6211\u4eec\u5982\u4f55\u5bf9DeepSeek-R1-Distill-Llama-8B\u6a21\u578b\u8fdb\u884c\u5fae\u8c03&#xff0c;\u4ee5\u6ee1\u8db3\u5065\u5eb7\u533b\u7597\u9886\u57df\u5e94\u7528\u7684\u9700\u6c42\u3002<\/p>\n<h3>\u4e3a\u4ec0\u4e48\u9009\u62e9DeepSeek-R1-Distill-Llama-8B&#xff1f;<\/h3>\n<p>\u6211\u4eec\u9009\u62e9DeepSeek-R1-Distill-Llama-8B\u6a21\u578b\u4e3b\u8981\u57fa\u4e8e\u4ee5\u4e0b\u539f\u56e0&#xff1a;<\/p>\n<ul>\n<li>\u6a21\u578b\u89c4\u6a21\u5408\u9002&#xff1a;8B\u53c2\u6570\u89c4\u6a21\u5728GPU\u8d44\u6e90\u6709\u9650\u7684\u6761\u4ef6\u4e0b\u4e5f\u80fd\u9ad8\u6548\u8bad\u7ec3\u3002<\/li>\n<li>\u4e2d\u6587\u7406\u89e3\u80fd\u529b\u5f3a&#xff1a;\u7279\u522b\u9002\u5408\u533b\u7597\u54a8\u8be2\u7c7b\u95ee\u9898&#xff0c;\u8bed\u8a00\u8868\u8ff0\u6e05\u6670\u4e14\u4e13\u4e1a\u3002<\/li>\n<li>\u5f00\u653e\u4e0e\u81ea\u7531&#xff1a;DeepSeek\u7cfb\u5217\u7684\u5f00\u6e90\u7279\u6027\u8ba9\u6211\u4eec\u80fd\u7075\u6d3b\u5730\u5fae\u8c03\u548c\u90e8\u7f72\u3002<\/li>\n<\/ul>\n<h3>\u6570\u636e\u96c6\u7684\u9009\u62e9\u548c\u4ecb\u7ecd<\/h3>\n<p>\u6211\u4eec\u4f7f\u7528\u7684\u662fFreedomIntelligence\u533b\u7597\u63a8\u7406\u6570\u636e\u96c6\u3002\u8be5\u6570\u636e\u96c6\u4e13\u6ce8\u4e8e\u533b\u7597\u63a8\u7406\u4efb\u52a1&#xff0c;\u6bcf\u6761\u6570\u636e\u7531\u4ee5\u4e0b\u4e09\u4e2a\u90e8\u5206\u7ec4\u6210&#xff1a;<\/p>\n<ul>\n<li>Question&#xff1a;\u533b\u5b66\u95ee\u9898\u63cf\u8ff0\u3002<\/li>\n<li>Complex_CoT&#xff1a;\u8be6\u7ec6\u7684\u533b\u5b66\u63a8\u7406\u8fc7\u7a0b\u3002<\/li>\n<li>Response&#xff1a;\u533b\u5b66\u5efa\u8bae\u6216\u8bca\u7597\u65b9\u6848\u3002<\/li>\n<\/ul>\n<h4>\u6570\u636e\u793a\u4f8b&#xff1a;<\/h4>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;Question&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u4e00\u4e2a\u60a3\u6709\u6025\u6027\u9611\u5c3e\u708e\u7684\u75c5\u4eba\u5df2\u7ecf\u53d1\u75c55\u5929&#xff0c;\u8179\u75db\u7a0d\u6709\u51cf\u8f7b\u4f46\u4ecd\u7136\u53d1\u70ed&#8230;&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;Complex_CoT&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u8003\u8651\u75c5\u7a0b\u8f83\u957f&#xff0c;\u9611\u5c3e\u53ef\u80fd\u5df2\u5f62\u6210\u8113\u80bf&#xff0c;\u9700\u8981\u8fdb\u4e00\u6b65\u5904\u7406&#8230;&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;Response&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u5efa\u8bae\u9996\u5148\u8fdb\u884c\u4fdd\u5b88\u6cbb\u7597&#xff0c;\u5982\u6709\u5fc5\u8981\u518d\u8003\u8651\u624b\u672f\u5e72\u9884\u3002&#034;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h3>LoRA \u5fae\u8c03\u539f\u7406\u8be6\u89e3<\/h3>\n<p>LoRA (Low-Rank Adaptation) \u662f\u4e00\u79cd\u9ad8\u6548\u7684\u5fae\u8c03\u6280\u672f&#xff0c;\u901a\u8fc7\u51bb\u7ed3\u539f\u6a21\u578b\u7684\u53c2\u6570&#xff0c;\u4ec5\u901a\u8fc7\u4f4e\u79e9\u77e9\u9635\u6765\u9002\u5e94\u65b0\u4efb\u52a1\u3002\u5177\u4f53\u800c\u8a00&#xff0c;LoRA\u5728\u539f\u59cb\u6743\u91cd\u77e9\u9635 <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\"> <\/p>\n<p>          W <\/p>\n<p>          0 <\/p>\n<p>         \u2208 <\/p>\n<p>          R <\/p>\n<p>           d <\/p>\n<p>           \u00d7 <\/p>\n<p>           d <\/p>\n<p>        W_0 \\\\in \\\\mathbb{R}^{d \\\\times d} <\/p>\n<p>    <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.8333em;vertical-align: -0.15em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.1389em\">W<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3011em\"><span class=\"\" style=\"top: -2.55em;margin-left: -0.1389em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">0<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">\u2208<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.8491em\"><\/span><span class=\"mord\"><span class=\"mord mathbb\">R<\/span><span class=\"msupsub\"><span class=\"vlist-t\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.8491em\"><span class=\"\" style=\"top: -3.063em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mathnormal mtight\">d<\/span><span class=\"mbin mtight\">\u00d7<\/span><span class=\"mord mathnormal mtight\">d<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span> \u57fa\u7840\u4e0a&#xff0c;\u589e\u52a0\u4e86\u4e24\u4e2a\u4f4e\u79e9\u77e9\u9635 <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\"> <\/p>\n<p>         A <\/p>\n<p>         \u2208 <\/p>\n<p>          R <\/p>\n<p>           r <\/p>\n<p>           \u00d7 <\/p>\n<p>           d <\/p>\n<p>        A \\\\in \\\\mathbb{R}^{r \\\\times d} <\/p>\n<p>    <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.7224em;vertical-align: -0.0391em\"><\/span><span class=\"mord mathnormal\">A<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">\u2208<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.8491em\"><\/span><span class=\"mord\"><span class=\"mord mathbb\">R<\/span><span class=\"msupsub\"><span class=\"vlist-t\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.8491em\"><span class=\"\" style=\"top: -3.063em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mathnormal mtight\" style=\"margin-right: 0.0278em\">r<\/span><span class=\"mbin mtight\">\u00d7<\/span><span class=\"mord mathnormal mtight\">d<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span> \u548c <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\"> <\/p>\n<p>         B <\/p>\n<p>         \u2208 <\/p>\n<p>          R <\/p>\n<p>           d <\/p>\n<p>           \u00d7 <\/p>\n<p>           r <\/p>\n<p>        B \\\\in \\\\mathbb{R}^{d \\\\times r} <\/p>\n<p>    <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.7224em;vertical-align: -0.0391em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0502em\">B<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">\u2208<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.8491em\"><\/span><span class=\"mord\"><span class=\"mord mathbb\">R<\/span><span class=\"msupsub\"><span class=\"vlist-t\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.8491em\"><span class=\"\" style=\"top: -3.063em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mathnormal mtight\">d<\/span><span class=\"mbin mtight\">\u00d7<\/span><span class=\"mord mathnormal mtight\" style=\"margin-right: 0.0278em\">r<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>&#xff0c;\u5b9e\u73b0\u6743\u91cd\u5fae\u8c03&#xff1a;<\/p>\n<p><span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\"> <\/p>\n<p>          \u0394 <\/p>\n<p>          W <\/p>\n<p>          &#061; <\/p>\n<p>          B <\/p>\n<p>          A <\/p>\n<p>          ( <\/p>\n<p>          r <\/p>\n<p>          \u226a <\/p>\n<p>          d <\/p>\n<p>          ) <\/p>\n<p>         \\\\Delta W &#061; BA \\\\quad (r \\\\ll d) <\/p>\n<p>     <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6833em\"><\/span><span class=\"mord\">\u0394<\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.1389em\">W<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0502em\">B<\/span><span class=\"mord mathnormal\">A<\/span><span class=\"mspace\" style=\"margin-right: 1em\"><\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">r<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">\u226a<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\">d<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>\u5b9e\u9645\u66f4\u65b0\u540e\u7684\u6743\u91cd\u8868\u793a\u4e3a&#xff1a;<\/p>\n<p><span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\"> <\/p>\n<p>          W <\/p>\n<p>          &#061; <\/p>\n<p>           W <\/p>\n<p>           0 <\/p>\n<p>          &#043; <\/p>\n<p>          B <\/p>\n<p>          A <\/p>\n<p>         W &#061; W_0 &#043; BA <\/p>\n<p>     <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6833em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.1389em\">W<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.8333em;vertical-align: -0.15em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.1389em\">W<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3011em\"><span class=\"\" style=\"top: -2.55em;margin-left: -0.1389em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">0<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">&#043;<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.6833em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0502em\">B<\/span><span class=\"mord mathnormal\">A<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>LoRA\u7684\u53c2\u6570\u8bbe\u7f6e\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>r (rank)&#xff1a;\u63a7\u5236\u6a21\u578b\u5fae\u8c03\u7684\u5bb9\u91cf\u4e0e\u7cbe\u5ea6&#xff0c;\u901a\u5e38\u53d68\u81f364\u3002<\/li>\n<li>lora_alpha&#xff1a;\u653e\u5927\u7cfb\u6570&#xff0c;\u7528\u4e8e\u8c03\u6574LoRA\u5fae\u8c03\u7684\u5b66\u4e60\u5f3a\u5ea6&#xff0c;\u901a\u5e38\u4e0er\u53d6\u76f8\u8fd1\u6570\u503c\u3002<\/li>\n<\/ul>\n<p>\u901a\u8fc7LoRA&#xff0c;\u80fd\u591f\u6781\u5927\u964d\u4f4e\u8bad\u7ec3\u6210\u672c\u4e0e\u663e\u5b58\u5360\u7528&#xff0c;\u4ec5\u7528\u5c11\u91cf\u53c2\u6570\u5373\u53ef\u6709\u6548\u5fae\u8c03\u3002<\/p>\n<h3>\u5fae\u8c03\u5b9e\u73b0\u8fc7\u7a0b<\/h3>\n<h4>\u73af\u5883\u914d\u7f6e<\/h4>\n<p><span class=\"token operator\">!<\/span>pip <span class=\"token function\">install<\/span> unsloth bitsandbytes transformers datasets trl<\/p>\n<h4>\u6a21\u578b\u52a0\u8f7d\u4e0e\u91cf\u5316<\/h4>\n<p>\u4f7f\u7528Unsloth\u8fdb\u884c\u9ad8\u6548\u52a0\u8f7d&#xff08;\u4f7f\u75284-bit\u91cf\u5316&#xff09;&#xff1a;<\/p>\n<p><span class=\"token keyword\">from<\/span> unsloth <span class=\"token keyword\">import<\/span> FastLanguageModel<\/p>\n<p>model<span class=\"token punctuation\">,<\/span> tokenizer <span class=\"token operator\">&#061;<\/span> FastLanguageModel<span class=\"token punctuation\">.<\/span>from_pretrained<span class=\"token punctuation\">(<\/span><br \/>\n    <span class=\"token string\">&#034;unsloth\/DeepSeek-R1-Distill-Llama-8B&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    max_seq_length<span class=\"token operator\">&#061;<\/span><span class=\"token number\">2048<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    load_in_4bit<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<h4>\u6570\u636e\u96c6\u5904\u7406<\/h4>\n<p>\u6784\u5efa\u9002\u5408\u6a21\u578b\u5fae\u8c03\u7684Prompt\u6a21\u677f&#xff1a;<\/p>\n<p><span class=\"token keyword\">from<\/span> datasets <span class=\"token keyword\">import<\/span> load_dataset<\/p>\n<p>EOS <span class=\"token operator\">&#061;<\/span> tokenizer<span class=\"token punctuation\">.<\/span>eos_token<\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">formatting_prompts_func<\/span><span class=\"token punctuation\">(<\/span>examples<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    texts <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> q<span class=\"token punctuation\">,<\/span> cot<span class=\"token punctuation\">,<\/span> ans <span class=\"token keyword\">in<\/span> <span class=\"token builtin\">zip<\/span><span class=\"token punctuation\">(<\/span>examples<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;Question&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> examples<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;Complex_CoT&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> examples<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;Response&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        text <span class=\"token operator\">&#061;<\/span> <span class=\"token string-interpolation\"><span class=\"token string\">f&#034;&#034;&#034;Below is an instruction&#8230;<br \/>\n### Question:<br \/>\n<\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>q<span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\"><\/p>\n<p>### Response:<br \/>\n&lt;think&gt;<br \/>\n<\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>cot<span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\"><br \/>\n&lt;\/think&gt;<br \/>\n<\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>ans<span class=\"token punctuation\">}<\/span><\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>EOS<span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">&#034;&#034;&#034;<\/span><\/span><br \/>\n        texts<span class=\"token punctuation\">.<\/span>append<span class=\"token punctuation\">(<\/span>text<span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;text&#034;<\/span><span class=\"token punctuation\">:<\/span> texts<span class=\"token punctuation\">}<\/span><\/p>\n<p>dataset <span class=\"token operator\">&#061;<\/span> load_dataset<span class=\"token punctuation\">(<\/span><br \/>\n    <span class=\"token string\">&#034;FreedomIntelligence\/medical-o1-reasoning-SFT&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#039;zh&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    split<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;train[:500]&#034;<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">map<\/span><span class=\"token punctuation\">(<\/span>formatting_prompts_func<span class=\"token punctuation\">,<\/span> batched<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<h4>LoRA\u5fae\u8c03\u53c2\u6570\u914d\u7f6e<\/h4>\n<p>model <span class=\"token operator\">&#061;<\/span> FastLanguageModel<span class=\"token punctuation\">.<\/span>get_peft_model<span class=\"token punctuation\">(<\/span><br \/>\n    model<span class=\"token punctuation\">,<\/span><br \/>\n    r<span class=\"token operator\">&#061;<\/span><span class=\"token number\">16<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\"># \u8bbe\u5b9a\u79e9\u5927\u5c0f<\/span><br \/>\n    lora_alpha<span class=\"token operator\">&#061;<\/span><span class=\"token number\">16<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\"># LoRA\u653e\u7f29\u56e0\u5b50<\/span><br \/>\n    target_modules<span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;q_proj&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;k_proj&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;v_proj&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;o_proj&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;gate_proj&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;up_proj&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;down_proj&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    use_gradient_checkpointing<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;unsloth&#034;<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<h4>\u5fae\u8c03\u8bad\u7ec3<\/h4>\n<p>\u4f7f\u7528TRL\u5e93\u7684SFTTrainer\u8fdb\u884c\u9ad8\u6548\u8bad\u7ec3&#xff1a;<\/p>\n<p><span class=\"token keyword\">from<\/span> trl <span class=\"token keyword\">import<\/span> SFTTrainer<br \/>\n<span class=\"token keyword\">from<\/span> transformers <span class=\"token keyword\">import<\/span> TrainingArguments<\/p>\n<p>trainer <span class=\"token operator\">&#061;<\/span> SFTTrainer<span class=\"token punctuation\">(<\/span><br \/>\n    model<span class=\"token operator\">&#061;<\/span>model<span class=\"token punctuation\">,<\/span><br \/>\n    tokenizer<span class=\"token operator\">&#061;<\/span>tokenizer<span class=\"token punctuation\">,<\/span><br \/>\n    train_dataset<span class=\"token operator\">&#061;<\/span>dataset<span class=\"token punctuation\">,<\/span><br \/>\n    dataset_text_field<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;text&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    args<span class=\"token operator\">&#061;<\/span>TrainingArguments<span class=\"token punctuation\">(<\/span><br \/>\n        per_device_train_batch_size<span class=\"token operator\">&#061;<\/span><span class=\"token number\">2<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        gradient_accumulation_steps<span class=\"token operator\">&#061;<\/span><span class=\"token number\">4<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        max_steps<span class=\"token operator\">&#061;<\/span><span class=\"token number\">60<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        learning_rate<span class=\"token operator\">&#061;<\/span><span class=\"token number\">2e-4<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        fp16<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        output_dir<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;outputs&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        logging_steps<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1<\/span><br \/>\n    <span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<p>trainer<span class=\"token punctuation\">.<\/span>train<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<h4>\u5fae\u8c03\u540e\u6a21\u578b\u7b80\u5355\u63a8\u7406\u9a8c\u8bc1<\/h4>\n<p>FastLanguageModel<span class=\"token punctuation\">.<\/span>for_inference<span class=\"token punctuation\">(<\/span>model<span class=\"token punctuation\">)<\/span><\/p>\n<p>question <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;\u201c\u6700\u8fd1\u611f\u89c9\u7761\u7720\u8d28\u91cf\u5dee&#xff0c;\u665a\u4e0a\u5bb9\u6613\u9192\u6765&#xff0c;\u767d\u5929\u7cbe\u795e\u4e5f\u4e0d\u597d&#xff0c;\u5e94\u8be5\u5982\u4f55\u8c03\u7406&#xff1f;&#034;<\/span><br \/>\ninputs <span class=\"token operator\">&#061;<\/span> tokenizer<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">[<\/span>question<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> return_tensors<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;pt&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>to<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;cuda&#034;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>outputs <span class=\"token operator\">&#061;<\/span> model<span class=\"token punctuation\">.<\/span>generate<span class=\"token punctuation\">(<\/span><br \/>\n    input_ids<span class=\"token operator\">&#061;<\/span>inputs<span class=\"token punctuation\">.<\/span>input_ids<span class=\"token punctuation\">,<\/span><br \/>\n    attention_mask<span class=\"token operator\">&#061;<\/span>inputs<span class=\"token punctuation\">.<\/span>attention_mask<span class=\"token punctuation\">,<\/span><br \/>\n    max_new_tokens<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1024<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<p>response <span class=\"token operator\">&#061;<\/span> tokenizer<span class=\"token punctuation\">.<\/span>decode<span class=\"token punctuation\">(<\/span>outputs<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> skip_special_tokens<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>response<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u901a\u8fc7\u4e0a\u8ff0\u8fc7\u7a0b&#xff0c;\u53ef\u4ee5\u521d\u6b65\u770b\u5230\u6211\u4eec\u5fae\u8c03\u540e\u7684\u6a21\u578b&#xff0c;\u5728\u533b\u7597\u95ee\u9898\u56de\u7b54\u7684\u903b\u8f91\u6027\u548c\u4e13\u4e1a\u6027\u4e0a\u660e\u663e\u4f18\u4e8e\u672a\u7ecf\u5fae\u8c03\u7684\u6a21\u578b&#xff0c;\u8fd9\u9a8c\u8bc1\u4e86LoRA\u5fae\u8c03\u65b9\u6cd5\u548c\u6211\u4eec\u6574\u4f53\u5fae\u8c03\u6d41\u7a0b\u7684\u6709\u6548\u6027\u3002<\/p>\n<h3>\u603b\u7ed3<\/h3>\n<p>\u672c\u6587\u4ecb\u7ecd\u4e86\u6211\u4eec\u9879\u76ee\u4e2d\u5982\u4f55\u57fa\u4e8eDeepSeek-R1-Distill-Llama-8B\u6a21\u578b&#xff0c;\u91c7\u7528LoRA\u6280\u672f\u53ca\u533b\u7597\u63a8\u7406\u6570\u636e\u8fdb\u884c\u9ad8\u6548\u7684\u5fae\u8c03\u8bad\u7ec3\u3002\u8fd9\u4e3a\u540e\u7eed\u201c\u5065\u5eb7\u7ba1\u7406\u52a9\u624b\u201d\u667a\u80fd\u4f53\u7684\u5f00\u53d1\u548c\u5e94\u7528\u63d0\u4f9b\u4e86\u91cd\u8981\u7684\u57fa\u7840\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb665\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf18\u6b21\u3002\u6211\u4eec\u4f7f\u7528\u7684\u662fFreedomIntelligence\u533b\u7597\u63a8\u7406\u6570\u636e\u96c6\u3002Question\uff1a\u533b\u5b66\u95ee\u9898\u63cf\u8ff0\u3002\uff1a\u8be6\u7ec6\u7684\u533b\u5b66\u63a8\u7406\u8fc7\u7a0b\u3002Response\uff1a\u533b\u5b66\u5efa\u8bae\u6216\u8bca\u7597\u65b9\u6848\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u6211\u4eec\u9879\u76ee\u4e2d\u5982\u4f55\u57fa\u4e8eDeepSeek-R1-Distill-Llama-8B\u6a21\u578b\uff0c\u91c7\u7528LoRA\u6280\u672f\u53ca\u533b\u7597\u63a8\u7406\u6570\u636e\u8fdb\u884c\u9ad8\u6548\u7684\u5fae\u8c03\u8bad\u7ec3\u3002\u8fd9\u4e3a\u540e\u7eed\u201c\u5065\u5eb7\u7ba1\u7406\u52a9\u624b\u201d\u667a\u80fd\u4f53\u7684\u5f00\u53d1\u548c\u5e94\u7528\u63d0\u4f9b\u4e86\u91cd\u8981\u7684\u57fa\u7840\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[347],"topic":[],"class_list":["post-44249","post","type-post","status-publish","format-standard","hentry","category-server","tag-llama"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u57fa\u4e8eDeepSeek-R1-Distill-Llama-8B\u7684\u5065\u5eb7\u7ba1\u7406\u52a9\u624b\u5fae\u8c03\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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:\/\/www.wsisp.com\/helps\/44249.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u57fa\u4e8eDeepSeek-R1-Distill-Llama-8B\u7684\u5065\u5eb7\u7ba1\u7406\u52a9\u624b\u5fae\u8c03\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb665\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf18\u6b21\u3002\u6211\u4eec\u4f7f\u7528\u7684\u662fFreedomIntelligence\u533b\u7597\u63a8\u7406\u6570\u636e\u96c6\u3002Question\uff1a\u533b\u5b66\u95ee\u9898\u63cf\u8ff0\u3002\uff1a\u8be6\u7ec6\u7684\u533b\u5b66\u63a8\u7406\u8fc7\u7a0b\u3002Response\uff1a\u533b\u5b66\u5efa\u8bae\u6216\u8bca\u7597\u65b9\u6848\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u6211\u4eec\u9879\u76ee\u4e2d\u5982\u4f55\u57fa\u4e8eDeepSeek-R1-Distill-Llama-8B\u6a21\u578b\uff0c\u91c7\u7528LoRA\u6280\u672f\u53ca\u533b\u7597\u63a8\u7406\u6570\u636e\u8fdb\u884c\u9ad8\u6548\u7684\u5fae\u8c03\u8bad\u7ec3\u3002\u8fd9\u4e3a\u540e\u7eed\u201c\u5065\u5eb7\u7ba1\u7406\u52a9\u624b\u201d\u667a\u80fd\u4f53\u7684\u5f00\u53d1\u548c\u5e94\u7528\u63d0\u4f9b\u4e86\u91cd\u8981\u7684\u57fa\u7840\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/44249.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-18T01:32:54+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/44249.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/44249.html\",\"name\":\"\u57fa\u4e8eDeepSeek-R1-Distill-Llama-8B\u7684\u5065\u5eb7\u7ba1\u7406\u52a9\u624b\u5fae\u8c03\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-18T01:32:54+00:00\",\"dateModified\":\"2025-06-18T01:32:54+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/44249.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/44249.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/44249.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u57fa\u4e8eDeepSeek-R1-Distill-Llama-8B\u7684\u5065\u5eb7\u7ba1\u7406\u52a9\u624b\u5fae\u8c03\u8fc7\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u57fa\u4e8eDeepSeek-R1-Distill-Llama-8B\u7684\u5065\u5eb7\u7ba1\u7406\u52a9\u624b\u5fae\u8c03\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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:\/\/www.wsisp.com\/helps\/44249.html","og_locale":"zh_CN","og_type":"article","og_title":"\u57fa\u4e8eDeepSeek-R1-Distill-Llama-8B\u7684\u5065\u5eb7\u7ba1\u7406\u52a9\u624b\u5fae\u8c03\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb665\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf18\u6b21\u3002\u6211\u4eec\u4f7f\u7528\u7684\u662fFreedomIntelligence\u533b\u7597\u63a8\u7406\u6570\u636e\u96c6\u3002Question\uff1a\u533b\u5b66\u95ee\u9898\u63cf\u8ff0\u3002\uff1a\u8be6\u7ec6\u7684\u533b\u5b66\u63a8\u7406\u8fc7\u7a0b\u3002Response\uff1a\u533b\u5b66\u5efa\u8bae\u6216\u8bca\u7597\u65b9\u6848\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u6211\u4eec\u9879\u76ee\u4e2d\u5982\u4f55\u57fa\u4e8eDeepSeek-R1-Distill-Llama-8B\u6a21\u578b\uff0c\u91c7\u7528LoRA\u6280\u672f\u53ca\u533b\u7597\u63a8\u7406\u6570\u636e\u8fdb\u884c\u9ad8\u6548\u7684\u5fae\u8c03\u8bad\u7ec3\u3002\u8fd9\u4e3a\u540e\u7eed\u201c\u5065\u5eb7\u7ba1\u7406\u52a9\u624b\u201d\u667a\u80fd\u4f53\u7684\u5f00\u53d1\u548c\u5e94\u7528\u63d0\u4f9b\u4e86\u91cd\u8981\u7684\u57fa\u7840\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/44249.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-18T01:32:54+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/44249.html","url":"https:\/\/www.wsisp.com\/helps\/44249.html","name":"\u57fa\u4e8eDeepSeek-R1-Distill-Llama-8B\u7684\u5065\u5eb7\u7ba1\u7406\u52a9\u624b\u5fae\u8c03\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-18T01:32:54+00:00","dateModified":"2025-06-18T01:32:54+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/44249.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/44249.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/44249.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u57fa\u4e8eDeepSeek-R1-Distill-Llama-8B\u7684\u5065\u5eb7\u7ba1\u7406\u52a9\u624b\u5fae\u8c03\u8fc7\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/44249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=44249"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/44249\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=44249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=44249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=44249"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=44249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}