{"id":1935,"date":"2024-06-03T05:37:40","date_gmt":"2024-06-03T05:37:40","guid":{"rendered":"https:\/\/www.nicekj.com\/?p=1935"},"modified":"2024-06-03T05:38:15","modified_gmt":"2024-06-03T05:38:15","slug":"damoxingyingyongbayiwengaodongfine-tuningmoxingweidiaoyoushahaochu","status":"publish","type":"post","link":"https:\/\/www.nicekj.com\/damoxingyingyongbayiwengaodongfine-tuningmoxingweidiaoyoushahaochu.html","title":{"rendered":"\u5927\u6a21\u578b\u5e94\u7528\uff08\u516b\uff09\u4e00\u6587\u641e\u61c2Fine-tuning\uff0c\u6a21\u578b\u5fae\u8c03\u6709\u5565\u597d\u5904\uff0c\u4ece\u7406\u8bba\u5230\u5b9e\u64cd"},"content":{"rendered":"<h2 data-id=\"heading-0\">\u524d\u8a00<\/h2>\n<p>\u6211\u4eec\u524d\u9762\u51e0\u7bc7\u535a\u6587\u4e2d\u51fa\u73b0\u7684\u5927\u6a21\u578b\uff0c\u90fd\u662f\u901a\u7528\u7684\u5927\u6a21\u578b\u3002\u4f46\u5728\u66f4\u4e13\u4e1a\u7684\u9886\u57df\uff0c\u9700\u8981\u66f4\u4e13\u4e1a\u7684\u6a21\u578b\uff0c\u8fd9\u5c31\u9700\u8981\u7528\u5230\u6a21\u578b\u5fae\u8c03\u7684\u80fd\u529b\u3002<\/p>\n<p>\u4eceNLP\u8303\u5f0f\u53d1\u5c55\u7684\u8d8b\u52bf\u6765\u770b\uff0cprompt+\u6a21\u578b\u7684\u65b9\u5f0f\u5df2\u7ecf\u6210\u4e3a\u4e3b\u6d41\uff0c<code>prompt learning<\/code>\u5df2\u7ecf\u5f88\u6210\u719f\u4e86\uff0c\u5728\u8fdb\u884c\u6a21\u578b\u5fae\u8c03\u4e4b\u524d\u6700\u597d\u786e\u4fe1\u81ea\u5df1\u9700\u8981\u8fd9\u6837\u505a\u3002<\/p>\n<h2 data-id=\"heading-1\">\u5927\u6a21\u578b\u5fae\u8c03\u7684\u65b9\u6cd5<\/h2>\n<p>\u5bf9\u4e8e\u5927\u6a21\u578b\u6765\u8bf4\uff0c\u5fae\u8c03\u6709\u4e24\u79cd\u8def\u5f84\uff1a<\/p>\n<ul>\n<li><strong>\u5168\u91cf\u5fae\u8c03FFT(Full Fine Tuning)\u3002<\/strong> \u76f4\u63a5\u5728\u9884\u8bad\u7ec3\u6a21\u578b\u4e0a\u6539\u52a8\u53c2\u6570<\/li>\n<li><strong>\u9ad8\u6548\u5fae\u8c03PEFT(Parameter-Efficient Fine Tuning)\u3002<\/strong> \u51bb\u7ed3\u4e00\u90e8\u5206\u53c2\u6570\uff0c\u4fee\u6539\u4e00\u90e8\u5206<\/li>\n<\/ul>\n<h2 data-id=\"heading-2\">FFT<\/h2>\n<p>FFT\uff0c\u7c7b\u4f3c\u7b2c\u4e09\u8303\u5f0f\u4e2d\u7684<code>Fine-tuning<\/code>\uff0c\u4e5f\u5c31\u662f\u6240\u8c13\u7684\u5fae\u8c03\uff0c\u662f\u5728\u9884\u5148\u8bad\u7ec3\u597d\u7684\u6a21\u578b\u7684\u57fa\u7840\u4e0a\uff0c\u6839\u636e\u7279\u5b9a\u9886\u57df\u7684\u6570\u636e\u8fdb\u884c\u53c2\u6570\u8c03\u6574\u3002<\/p>\n<p>\u5b83\u7684\u7279\u70b9\u662f\uff0c\u662f\u5bf9\u5168\u91cf\u7684\u53c2\u6570\u8fdb\u884c\u8c03\u6574\uff0c\u90a3\u4e48\u6709\u591a\u5c11\u4e2a\u5fae\u8c03\uff0c\u5c31\u4f1a\u4ea7\u751f\u591a\u5c11\u4e2a\u6a21\u578b\u3002<\/p>\n<p>\u518d\u6362\u53e5\u8bdd\u8bf4\uff0c\u5b83\u662f\u8ba9\u6a21\u578b\u6765\u9002\u5e94\u7279\u5b9a\u7684\u4efb\u52a1\u3002<\/p>\n<p><a href=\"https:\/\/link.juejin.cn?target=https%3A%2F%2Farxiv.org%2Fpdf%2F2107.13586.pdf\" target=\"_blank\" title=\"https:\/\/arxiv.org\/pdf\/2107.13586.pdf\" ref=\"nofollow noopener noreferrer\" rel=\"noopener\">\u5173\u4e8e\u8303\u5f0f\u7684\u8bba\u6587<\/a><\/p>\n<h2 data-id=\"heading-3\">PEFT<\/h2>\n<p>\u5b83\u65e8\u5728\u901a\u8fc7\u6700\u5c0f\u5316\u5fae\u8c03\u53c2\u6570\u7684\u6570\u91cf\u548c\u8ba1\u7b97\u590d\u6742\u5ea6\uff0c\u6765\u63d0\u9ad8\u9884\u8bad\u7ec3\u6a21\u578b\u5728\u65b0\u4efb\u52a1\u4e0a\u7684\u6027\u80fd\uff0c\u4ece\u800c\u7f13\u89e3\u5927\u578b\u9884\u8bad\u7ec3\u6a21\u578b\u7684\u8bad\u7ec3\u6210\u672c\u3002<\/p>\n<p>\u8bf4\u767d\u4e86\uff0c\u662f\u4e3a\u4e86\u89e3\u51b3fft\u7684\u95ee\u9898<\/p>\n<ul>\n<li>\u6d88\u8d39\u7ea7\u663e\u5361\u7684\u5168\u53c2\u6570\u5fae\u8c03\u5728\u65f6\u95f4\u4e0a\u548c\u786c\u4ef6\u4e0a\u4e0d\u53ef\u884c<\/li>\n<li>\u5168\u53c2\u6570\u5fae\u8c03\u4f1a\u635f\u5931\u591a\u6837\u6027\uff0c\u51fa\u73b0\u707e\u96be\u6027\u9057\u5fd8\uff0c\u4e14\u4e0b\u6e38\u90e8\u7f72\u3001\u7ef4\u62a4\u7e41\u7410<\/li>\n<\/ul>\n<p>PEFT\u662f\u5982\u4f55\u89e3\u51b3\u7684\uff1a<\/p>\n<ul>\n<li>\u51bb\u7ed3\u5927\u90e8\u5206\u9884\u8bad\u7ec3\u53c2\u6570\uff0c\u4ec5\u4ec5\u66f4\u65b0\u4e00\u90e8\u5206\u53c2\u6570\u4f7f\u5f97\u6a21\u578b\u83b7\u5f97\u66f4\u597d\u7684\u4e0b\u6e38\u4efb\u52a1\u6027\u80fd<\/li>\n<li>\u4e3b\u8981\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u5f15\u5165\u989d\u5916\u53c2\u6570\u3001\u9009\u53d6\u90e8\u5206\u53c2\u6570<\/li>\n<\/ul>\n<p>PEFT\u5b9e\u73b0\u601d\u8def\u548cFFT\u521a\u597d\u76f8\u53cd\uff0c\u5b83\u662f\u8ba9\u4efb\u52a1\u66f4\u597d\u7684\u88ab\u9884\u8bad\u7ec3\u7684\u6a21\u578b\u6240\u7406\u89e3\uff0c\u770b\u4e00\u4e0b\u5b83\u7684\u5e38\u7528\u65b9\u6cd5\uff0c\u6211\u76f4\u63a5\u6cbe\u7684\u3002<\/p>\n<h3 data-id=\"heading-4\">PEFT: Prompt Tuning \u65b9\u6cd5<\/h3>\n<p><strong>\u5b83\u7684\u57fa\u672c\u539f\u7406\u662f\u5728\u8f93\u5165\u6587\u672c\u4e2d\u6dfb\u52a0\u4efb\u52a1\u76f8\u5173\u7684\u63d0\u793a\u4fe1\u606f\uff0c\u4ee5\u5f15\u5bfc\u6a21\u578b\u66f4\u597d\u5730\u5b8c\u6210\u7279\u5b9a\u4efb\u52a1\u3002<\/strong><\/p>\n<p>\u5b9e\u73b0\u65b9\u5f0f\u662f\u5728\u8f93\u5165\u5e8f\u5217X\u4e4b\u524d\uff0c\u589e\u52a0\u4e00\u4e9b\u7279\u5b9a\u957f\u5ea6\u7684\u7279\u6b8aToken\uff0c\u4ee5\u589e\u5927\u751f\u6210\u671f\u671b\u5e8f\u5217\u7684\u6982\u7387\u3002<\/p>\n<p>\u5177\u4f53\u6765\u8bf4\uff0c\u5c31\u662f\u5c06X = [x1, x2, &#8230;, xm]\u53d8\u6210\uff0cX` = [x`1, x`2, &#8230;, x`k; x1, x2, &#8230;, xm], Y = WX`\u3002<\/p>\n<p>\u5982\u679c\u5c06\u5927\u6a21\u578b\u6bd4\u505a\u4e00\u4e2a\u51fd\u6570\uff1aY=f(X)\uff0c\u90a3\u4e48Prompt Tuning\u5c31\u662f\u5728\u4fdd\u8bc1\u51fd\u6570\u672c\u8eab\u4e0d\u53d8\u7684\u524d\u63d0\u4e0b\uff0c\u5728X\u524d\u9762\u52a0\u4e0a\u4e86\u4e00\u4e9b\u7279\u5b9a\u7684\u5185\u5bb9\uff0c\u800c\u8fd9\u4e9b\u5185\u5bb9\u53ef\u4ee5\u5f71\u54cdX\u751f\u6210\u671f\u671b\u4e2dY\u7684\u6982\u7387\u3002<\/p>\n<p>\u5982\u4e0b\u56fe\uff0c<a href=\"https:\/\/link.juejin.cn?target=https%3A%2F%2Farxiv.org%2Fpdf%2F2104.08691.pdf\" target=\"_blank\" title=\"https:\/\/arxiv.org\/pdf\/2104.08691.pdf\" ref=\"nofollow noopener noreferrer\" rel=\"noopener\">\u611f\u5174\u8da3\u7684\u8fdb\u8bba\u6587\u4f20\u9001\u95e8<\/a><\/p>\n<p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.nicekj.com\/wp-content\/uploads\/replace\/fddfd7f73b52bc8eb42f13902e5e34f5.png\" alt=\"image.png\" \/><\/figure>\n<\/p>\n<h3 data-id=\"heading-5\">PEFT: Prefix Tuning \u65b9\u6cd5<\/h3>\n<p>Prefix Tuning\u7684\u7075\u611f\u6765\u6e90\u662f\uff0c\u57fa\u4e8ePrompt Engineering\u7684\u5b9e\u8df5\u8868\u660e\uff0c\u5728\u4e0d\u6539\u53d8\u5927\u6a21\u578b\u7684\u524d\u63d0\u4e0b\uff0c\u5728Prompt\u4e0a\u4e0b\u6587\u4e2d\u6dfb\u52a0\u9002\u5f53\u7684\u6761\u4ef6\uff0c\u53ef\u4ee5\u5f15\u5bfc\u5927\u6a21\u578b\u6709\u66f4\u52a0\u51fa\u8272\u7684\u8868\u73b0\u3002<\/p>\n<p>Prefix Tuning\u7684\u51fa\u53d1\u70b9\uff0c\u8ddfPrompt Tuning\u7684\u662f\u7c7b\u4f3c\u7684\uff0c\u53ea\u4e0d\u8fc7\u5b83\u4eec\u7684\u5177\u4f53\u5b9e\u73b0\u4e0a\u6709\u4e00\u4e9b\u5dee\u5f02\u3002<\/p>\n<p>\u800cPrefix Tuning\u662f\u5728Transformer\u7684Encoder\u548cDecoder\u7684\u7f51\u7edc\u4e2d\u90fd\u52a0\u4e86\u4e00\u4e9b\u7279\u5b9a\u7684\u524d\u7f00\u3002<\/p>\n<p>\u5177\u4f53\u6765\u8bf4\uff0c\u5c31\u662f\u5c06Y=WX\u4e2d\u7684W\uff0c\u53d8\u6210W` = [Wp; W]\uff0cY=W`X\u3002<\/p>\n<p>Prefix Tuning\u4e5f\u4fdd\u8bc1\u4e86\u57fa\u5ea7\u6a21\u578b\u672c\u8eab\u662f\u6ca1\u6709\u53d8\u7684\uff0c\u53ea\u662f\u5728\u63a8\u7406\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6309\u9700\u8981\u5728W\u524d\u9762\u62fc\u63a5\u4e00\u4e9b\u53c2\u6570\u3002<\/p>\n<p>\u5982\u4e0b\u56fe\uff0c<a href=\"https:\/\/link.juejin.cn?target=https%3A%2F%2Farxiv.org%2Fpdf%2F2101.00190.pdf\" target=\"_blank\" title=\"https:\/\/arxiv.org\/pdf\/2101.00190.pdf\" ref=\"nofollow noopener noreferrer\" rel=\"noopener\">\u611f\u5174\u8da3\u7684\u8fdb\u8bba\u6587\u4f20\u9001\u95e8<\/a><\/p>\n<p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.nicekj.com\/wp-content\/uploads\/replace\/03c2ea5f591b17396192b5b5215737fd.png\" alt=\"image.png\" \/><\/figure>\n<\/p>\n<h3 data-id=\"heading-6\">PEFT: \u5176\u4ed6<\/h3>\n<p>\u8fd8\u6709\u5f88\u591a\u9ad8\u6548\u5fae\u8c03\u7684\u65b9\u6cd5\uff0c\u6bd4\u5982<a href=\"https:\/\/link.juejin.cn?target=https%3A%2F%2Farxiv.org%2Fpdf%2F2106.09685.pdf\" target=\"_blank\" title=\"https:\/\/arxiv.org\/pdf\/2106.09685.pdf\" ref=\"nofollow noopener noreferrer\" rel=\"noopener\">LoRA<\/a>,<a href=\"https:\/\/link.juejin.cn?target=https%3A%2F%2Farxiv.org%2Fpdf%2F2305.14314.pdf\" target=\"_blank\" title=\"https:\/\/arxiv.org\/pdf\/2305.14314.pdf\" ref=\"nofollow noopener noreferrer\" rel=\"noopener\">QLoRA<\/a>\u611f\u5174\u8da3\u53ef\u4ee5\u770b\u770b\u8bba\u6587\u3002<\/p>\n<h2 data-id=\"heading-7\">\u57fa\u4e8eopenai\uff0c\u5b9e\u64cdFine-turning<\/h2>\n<p>\u770b\u4e86\u4e0a\u9762\u7684\u5185\u5bb9\uff0c\u5176\u5b9e\u4f60\u4f1a\u53d1\u73b0\uff0c\u4f7f\u7528\u4e0d\u540c\u7684\u65b9\u6cd5\u4f1a\u7684\u5230\u4e0d\u540c\u7684\u597d\u5904\u3002openai\u7528\u7684prompt\u5fae\u8c03\u7684\u65b9\u5f0f\u3002<\/p>\n<p>\u8fd9\u610f\u5473\u7740\u5fae\u8c03\u90fd\u4e0d\u662f\u5fc5\u8981\u7684\uff0copenai\u7684\u539f\u6587\u662f\u8fd9\u4e48\u8bf4\u7684\uff1a<\/p>\n<blockquote>\n<p>Fine-tuning improves on few-shot learning by training on many more examples than can fit in the prompt, letting you achieve better results on a wide number of tasks.&nbsp;<strong>Once a model has been fine-tuned, you won&#8217;t need to provide as many examples in the prompt.<\/strong> &nbsp;This saves costs and enables lower-latency requests.<\/p>\n<\/blockquote>\n<p>\u7b80\u5355\u8bf4\u5c31\u662f\uff0copenai\u7684\u5fae\u8c03\u53ea\u662f\u4e00\u79cd\u5b8c\u5584prompt\u7684\u65b9\u5f0f\uff0c\u4f18\u5316<code>few-shot learning<\/code><\/p>\n<p>\u6240\u4ee5\u5b83\u7684\u4f18\u70b9\u4e5f\u663e\u800c\u6613\u89c1\uff1a<\/p>\n<h3 data-id=\"heading-8\">Fine-turning \u7684\u597d\u5904<\/h3>\n<ul>\n<li>\u80fd\u591f\u63d0\u4f9b\u6bd4prompt\u66f4\u9ad8\u8d28\u91cf\u7684\u6548\u679c<\/li>\n<li>\u80fd\u591f\u8bad\u7ec3\u8d85\u51faprompt\u8303\u56f4\u7684\u793a\u4f8b<\/li>\n<li>\u6709\u6548\u51cf\u5c11prompt\u7684\u957f\u5ea6\uff0c\u4ece\u800c\u964d\u4f4e\u6210\u672c<\/li>\n<li>\u8bf7\u6c42\u8017\u65f6\u66f4\u77ed<\/li>\n<\/ul>\n<h3 data-id=\"heading-9\">\u5fae\u8c03\u7684\u65b9\u5411<\/h3>\n<p>\u6211\u8fd9\u91cc\u5fae\u8c03\u7684\u4e00\u4e2a\u6e23\u7537\/\u6e23\u5973\u6a21\u578b\u3002<\/p>\n<p><em>\u5b9e\u9645\u4e0aopenai\u7684\u6a21\u578b\u90fd\u7ecf\u8fc7\u4e86\u5927\u91cf\u7684\u60c5\u611f\u8bad\u7ec3\uff0c\u6211\u8fd9\u4e2a\u5fae\u8c03\u5e76\u4e0d\u5178\u578b\uff0c\u53ea\u662f\u56e0\u4e3a\u6570\u636e\u597d\u83b7\u53d6\u3002<\/em><\/p>\n<p>prompt\u5982\u4e0b\uff1a<\/p>\n<pre><\/div><div class=\"code-block-extension-headerRight\"><span class=\"code-block-extension-lang\">markdown<\/span><div class=\"code-block-extension-copyCodeBtn\">\u590d\u5236\u4ee3\u7801<\/div><\/div><\/div><code class=\"hljs language-markdown code-block-extension-codeShowNum\" lang=\"markdown\"><span class=\"code-block-extension-codeLine\" data-line-num=\"1\">\u4f60\u662f\u4e00\u4e2a\u6e23\u7537\\\u6e23\u5973\uff0c\u5584\u4e8e\u7528\u751c\u8a00\u871c\u8bed\u54c4\u9a97\u4f60\u7684\u53e6\u4e00\u534a<\/span>\n<\/code><\/pre>\n<h3 data-id=\"heading-10\">\u51c6\u5907\u6570\u636e\u96c6<\/h3>\n<p>\u6700\u4f4e\u7684\u8981\u6c42\u662f\u6709\u5341\u6761\u8bad\u7ec3\u6837\u672c\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u6211\u8fd9\u91cc\u51c6\u5907\u4e8630\u6761\u8bad\u7ec3\u6570\u636e\uff1a<\/p>\n<p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.nicekj.com\/wp-content\/uploads\/replace\/fdf6949bf344dc0e1ddc5bf46ade45d1.png\" alt=\"image.png\" \/><\/figure>\n<\/p>\n<p>\u4e3a\u4e86\u770b\u6548\u679c\uff0c\u8fd8\u51c6\u5907\u4e8610\u6761\u9a8c\u8bc1\u6570\u636e\uff0c\u8fd9\u4e0d\u662f\u5fc5\u8981\u7684<\/p>\n<p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.nicekj.com\/wp-content\/uploads\/replace\/9bfba6e37877e8509d2b8e0d2d345d38.png\" alt=\"image.png\" \/><\/figure>\n<\/p>\n<h3 data-id=\"heading-11\">\u5f00\u59cb\u8bad\u7ec3<\/h3>\n<p><a href=\"https:\/\/link.juejin.cn?target=https%3A%2F%2Fplatform.openai.com%2Ffinetune%2Fftjob-LBjKc0dC6WgBbIoCxDHPYZcV%3Ffilter%3Dall\" target=\"_blank\" title=\"https:\/\/platform.openai.com\/finetune\/ftjob-LBjKc0dC6WgBbIoCxDHPYZcV?filter=all\" ref=\"nofollow noopener noreferrer\" rel=\"noopener\">\u8bad\u7ec3\u5730\u5740<\/a><\/p>\n<p>\u6211\u8fd9\u91cc\u76f4\u63a5\u8d34\u4e2a\u7ed3\u679c\uff1a\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.nicekj.com\/wp-content\/uploads\/replace\/67256b47077f73ef53458ff6f73caa01.png\" alt=\"image.png\" \/><\/figure>\n<\/p>\n<ul>\n<li>\u57fa\u5ea7\u6a21\u578b\uff1a<code>gpt-3.5-turbo-0125<\/code><\/li>\n<li>Trained tokens\uff1a\u8bad\u7ec3\u6240\u7528tokens<\/li>\n<li>Epochs\uff1a\u5355\u6b21\u8bad\u7ec3\u7684\u8f6e\u6b21\uff0c\u60f3\u8bad\u5f97\u51c6\uff0c\u5219\u8c03\u5927\u3002\u60f3\u53d1\u6563\uff0c\u5219\u8c03\u5c0f\u3002<\/li>\n<li>Batch size\uff1a\u6279\u5904\u7406\u7684\u5927\u5c0f<\/li>\n<li>LR multiplier\uff1a\u5b66\u4e60\u7387\u4e58\u6570\uff0c\u5f71\u54cd\u6536\u655b\u901f\u5ea6<\/li>\n<li>Training loss\uff1a\u8bad\u7ec3\u635f\u5931<\/li>\n<li>Validation loss\uff1a\u9a8c\u8bc1\u635f\u5931\u3002\u8d8a\u5c0f\u8d8a\u597d\uff0c\u4f46\u5982\u679c\u8bad\u7ec3\u635f\u5931\u5f88\u5c0f\uff0c\u9a8c\u8bc1\u635f\u5931\u5f88\u5927\uff0c\u90a3\u5c31\u8fc7\u62df\u5408\u4e86\uff0c\u53cd\u4e4b\u5219\u6b20\u62df\u5408\u3002<\/li>\n<\/ul>\n<p>\u4e0a\u56fe\u662f\u4e2a\u6bd4\u8f83\u5931\u8d25\u7684\u8bad\u7ec3\uff0c\u6536\u655b\u6548\u679c\u5e76\u4e0d\u597d\uff0c\u4f46\u6a21\u578b\u4ecd\u7136\u80fd\u591f\u4ece\u4e2d\u5b66\u4e60\u5230\u4e00\u4e9b\u5185\u5bb9\u3002<\/p>\n<h3 data-id=\"heading-12\">\u9a8c\u8bc1<\/h3>\n<p><a href=\"https:\/\/link.juejin.cn?target=https%3A%2F%2Fgithub.com%2Fwoshihaoren4%2Fagent_rt%2Fblob%2Fmain%2Fexample%2Fsrc%2Ffine_turning.rs\" target=\"_blank\" title=\"https:\/\/github.com\/woshihaoren4\/agent_rt\/blob\/main\/example\/src\/fine_turning.rs\" ref=\"nofollow noopener noreferrer\" rel=\"noopener\">\u6d4b\u8bd5\u4ee3\u7801\u4f20\u9001\u95e8<\/a><\/p>\n<p>\u6211\u4eec\u56fa\u5b9a\u4e00\u4e2aprompt\uff0c\u5982\u4e0b\uff1a<\/p>\n<pre><\/div><div class=\"code-block-extension-headerRight\"><span class=\"code-block-extension-lang\">markdown<\/span><div class=\"code-block-extension-copyCodeBtn\">\u590d\u5236\u4ee3\u7801<\/div><\/div><\/div><code class=\"hljs language-markdown code-block-extension-codeShowNum\" lang=\"markdown\"><span class=\"code-block-extension-codeLine\" data-line-num=\"1\">\u4f60\u662f\u4e00\u4e2a\u6e23\u7537\/\u6e23\u5973\uff0c\u5584\u4e8e\u7528\u751c\u8a00\u871c\u8bed\u54c4\u9a97\u4f60\u7684\u53e6\u4e00\u534a\u3002<\/span>\n<\/code><\/pre>\n<p>\u5148\u7528<code>gpt-3.5-turbo-0125<\/code>\u9a8c\u8bc1\u4e00\u4e0b\u6548\u679c\uff0c\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\u66f4\u50cf\u4e2a\u6696\u7537\uff0c\u8fd8\u662f\u4e2a\u8bdd\u75e8<\/li>\n<\/ul>\n<p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.nicekj.com\/wp-content\/uploads\/replace\/c1b4a576f90fb36e1be0866b4e1a2368.png\" alt=\"image.png\" \/><\/figure>\n<\/p>\n<p>\u6362\u6210\u6211\u4eec\u5fae\u8c03\u7684\u6a21\u578b\u8bd5\u8bd5\uff0c\u540c\u6837\u7684\u95ee\u9898\u6548\u679c\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\u662f\u4e0d\u662f\u4e00\u4e0b\u5c31\u6e23\u4e86\u8d77\u6765<\/li>\n<\/ul>\n<p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.nicekj.com\/wp-content\/uploads\/replace\/1d47a2981c9c7d4f7b2fd6b9aed0d484.png\" alt=\"image.png\" \/><\/figure>\n<\/p>\n<h2 data-id=\"heading-13\">\u6700\u4f73\u5b9e\u8df5<\/h2>\n<ol>\n<li>\n<p>\u5173\u4e8e\u5fae\u8c03\u7684\u6548\u679c\uff1a\n\u4e00\u822c\u6765\u8bf4\u5148\u7cbe\u5fc3\u8bbe\u8ba150\u591a\u6761\u8bad\u7ec3\u6570\u636e\uff0c\u5fae\u8c03\u4e00\u6ce2\uff0c\u770b\u770b\u6548\u679c\u3002\u5982\u679c\u6709\u6240\u6536\u655b\uff0c\u6216\u6709\u597d\u7684\u6548\u679c\uff0c\u5219\u8bf4\u660e\u662f\u4e2a\u597d\u73b0\u8c61\uff0c\u901a\u8fc7\u52a0\u5927\u6570\u636e\u96c6\u53ef\u4ee5\u5f97\u5230\u66f4\u4f18\u7684\u7ed3\u679c\u3002<\/p>\n<\/li>\n<li>\n<p>\u5173\u4e8e\u6d4b\u8bd5\u6570\u636e\u96c6\uff0c\u5e94\u8be5\u5c3d\u65e9\u6784\u5efa\uff0c\u8fd9\u975e\u5e38\u6709\u52a9\u4e8e\u6a21\u578b\u8bc4\u6d4b\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e00\u822c\u6765\u8bf4\u5355\u8f6e\u6548\u679c\u4f1a\u6bd4\u8f83\u597d\u8bad\uff0c\u591a\u8f6e\u6548\u679c\u4f1a\u5dee\u4e00\u4e9b\u3002\u60f3\u8981\u505a\u51fa\u597d\u7684\u6548\u679c\uff0c\u5fc5\u987b\u8981\u7cbe\u5fc3\u5904\u7406\u6570\u636e\uff0c\u8fd9\u5341\u5206\u5341\u5206\u91cd\u8981\uff0c\u5c24\u5176\u662f\u591a\u8f6e\u7684\u8bad\u7ec3\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f4e\u6a21\u578b+\u5fae\u8c03\u7684\u6548\u679c \u53ef\u4ee5\u8fbe\u5230\u7c7b\u4f3c\u9ad8\u6a21\u578b\u7684\u6548\u679c\u3002\u4f46\u4ec5\u9650\u4e8e\u5fae\u8c03\u7684\u9886\u57df\u3002<\/p>\n<\/li>\n<li>\n<p>\u5bf9\u4e8e\u7ed3\u6784\u5316\u548c\u975e\u7ed3\u6784\u5316\u7684\u6570\u636e\uff0c\u51c6\u786e\u7684\u548c\u975e\u51c6\u786e\u7684\u6570\u636e\uff0c\u5efa\u8bae\u5148\u8c03temperature\uff0c\u5c24\u5176\u662f\u5c01\u95ed\u57df\u95ee\u9898\u3002<\/p>\n<\/li>\n<li>\n<p>\u5fae\u8c03\u8fc7\u7684\u6a21\u578b\uff0c\u8fd8\u53ef\u4ee5\u7ee7\u7eed\u5fae\u8c03\uff0c\u6240\u4ee5\u53ef\u4ee5\u4e00\u6b65\u4e00\u6b65\u6765\u3002<\/p>\n<\/li>\n<li>\n<p>\u5f85\u8865\u5145<\/p>\n<\/li>\n<\/ol>\n<h2 data-id=\"heading-14\">\u5c3e\u8bed<\/h2>\n<p>\u80fd\u4e0d\u5fae\u8c03\u5c31\u4e0d\u8981\u5fae\u8c03<\/p>","protected":false},"excerpt":{"rendered":"<p>\u6211\u4eec\u524d\u9762\u51e0\u7bc7\u535a\u6587\u4e2d\u51fa\u73b0\u7684\u5927\u6a21\u578b\uff0c\u90fd\u662f\u901a\u7528\u7684\u5927\u6a21\u578b\u3002\u4f46\u5728\u66f4\u4e13\u4e1a\u7684\u9886\u57df\uff0c\u9700\u8981\u66f4\u4e13\u4e1a\u7684\u6a21\u578b\uff0c\u8fd9\u5c31\u9700\u8981\u6a21\u578b\u7684\u5fae\u8c03\u80fd\u529b\u3002<\/p>\n","protected":false},"author":1,"featured_media":12199,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"rank_math_title":"","rank_math_description":"","rank_math_focus_keyword":"","views":"2","footnotes":""},"categories":[3],"tags":[126,127,128,129,136],"collection":[],"class_list":["post-1935","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fenlei2","tag-gpt","tag-ai","tag-128","tag-129","tag-136"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/posts\/1935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/comments?post=1935"}],"version-history":[{"count":0,"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/posts\/1935\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/media\/12199"}],"wp:attachment":[{"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/media?parent=1935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/categories?post=1935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/tags?post=1935"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/collection?post=1935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}