{"id":16235,"date":"2024-07-17T14:39:37","date_gmt":"2024-07-17T06:39:37","guid":{"rendered":"http:\/\/139.9.1.231\/?p=16235"},"modified":"2024-07-17T14:39:40","modified_gmt":"2024-07-17T06:39:40","slug":"llm-action","status":"publish","type":"post","link":"http:\/\/139.9.1.231\/index.php\/2024\/07\/17\/llm-action\/","title":{"rendered":"\u5927\u6a21\u578b\u7cfb\u5217\u6559\u7a0b"},"content":{"rendered":"\n<p class=\"has-light-pink-background-color has-background\">h<a href=\"\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file\" target=\"_blank\" rel=\"noreferrer noopener\">ttps:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file<\/a><\/p>\n\n\n\n<h2>\u76ee\u5f55<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E7%9B%AE%E5%BD%95\"><\/a><\/p>\n\n\n\n<ul><li>\ud83d\udc0c&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E8%AE%AD%E7%BB%83\">LLM\u8bad\u7ec3<\/a><ul><li>\ud83d\udc2b&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E8%AE%AD%E7%BB%83%E5%AE%9E%E6%88%98\">LLM\u8bad\u7ec3\u5b9e\u6218<\/a><\/li><li>\ud83d\udc3c&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%BE%AE%E8%B0%83%E6%8A%80%E6%9C%AF%E5%8E%9F%E7%90%86\">LLM\u53c2\u6570\u9ad8\u6548\u5fae\u8c03\u6280\u672f\u539f\u7406<\/a><\/li><li>\ud83d\udc30&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%BE%AE%E8%B0%83%E5%AE%9E%E6%88%98\">LLM\u53c2\u6570\u9ad8\u6548\u5fae\u8c03\u6280\u672f\u5b9e\u6218<\/a><\/li><li>\ud83d\udc18&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%88%86%E5%B8%83%E5%BC%8F%E8%AE%AD%E7%BB%83%E5%B9%B6%E8%A1%8C%E6%8A%80%E6%9C%AF\">LLM\u5206\u5e03\u5f0f\u8bad\u7ec3\u5e76\u884c\u6280\u672f<\/a><\/li><li>\ud83c\udf0b&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E5%88%86%E5%B8%83%E5%BC%8Fai%E6%A1%86%E6%9E%B6\">\u5206\u5e03\u5f0fAI\u6846\u67b6<\/a><\/li><li>\ud83d\udce1&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E5%88%86%E5%B8%83%E5%BC%8F%E8%AE%AD%E7%BB%83%E7%BD%91%E7%BB%9C%E9%80%9A%E4%BF%A1\">\u5206\u5e03\u5f0f\u8bad\u7ec3\u7f51\u7edc\u901a\u4fe1<\/a><\/li><li>\ud83c\udf3f&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E8%AE%AD%E7%BB%83%E4%BC%98%E5%8C%96%E6%8A%80%E6%9C%AF\">LLM\u8bad\u7ec3\u4f18\u5316\u6280\u672f<\/a><\/li><li>\u231b&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%AF%B9%E9%BD%90%E6%8A%80%E6%9C%AF\">LLM\u5bf9\u9f50\u6280\u672f<\/a><\/li><\/ul><\/li><li>\ud83d\udc0e&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E6%8E%A8%E7%90%86\">LLM\u63a8\u7406<\/a><ul><li>\ud83d\ude80&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E6%8E%A8%E7%90%86%E6%A1%86%E6%9E%B6\">LLM\u63a8\u7406\u6846\u67b6<\/a><\/li><li>\u2708\ufe0f&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E6%8E%A8%E7%90%86%E4%BC%98%E5%8C%96%E6%8A%80%E6%9C%AF\">LLM\u63a8\u7406\u4f18\u5316\u6280\u672f<\/a><\/li><\/ul><\/li><li>\u267b\ufe0f&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%8E%8B%E7%BC%A9\">LLM\u538b\u7f29<\/a><ul><li>\ud83d\udcd0&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E9%87%8F%E5%8C%96\">LLM\u91cf\u5316<\/a><\/li><li>\ud83d\udd30&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%89%AA%E6%9E%9D\">LLM\u526a\u679d<\/a><\/li><li>\ud83d\udcb9&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E7%9F%A5%E8%AF%86%E8%92%B8%E9%A6%8F\">LLM\u77e5\u8bc6\u84b8\u998f<\/a><\/li><li>\u2651\ufe0f&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E4%BD%8E%E7%A7%A9%E5%88%86%E8%A7%A3\">\u4f4e\u79e9\u5206\u89e3<\/a><\/li><\/ul><\/li><li>\ud83c\udf34&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E6%95%B0%E6%8D%AE%E5%B7%A5%E7%A8%8B\">LLM\u6570\u636e\u5de5\u7a0b<\/a><ul><li>\ud83d\udc2c&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%BE%AE%E8%B0%83%E9%AB%98%E6%95%88%E6%95%B0%E6%8D%AE%E7%AD%9B%E9%80%89%E6%8A%80%E6%9C%AF\">LLM\u5fae\u8c03\u9ad8\u6548\u6570\u636e\u7b5b\u9009\u6280\u672f<\/a><\/li><\/ul><\/li><li>\ud83c\udf00&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E6%8F%90%E7%A4%BA%E5%B7%A5%E7%A8%8B\">\u63d0\u793a\u5de5\u7a0b<\/a><\/li><li>\u264d\ufe0f&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E7%AE%97%E6%B3%95%E6%9E%B6%E6%9E%84\">LLM\u7b97\u6cd5\u67b6\u6784<\/a><\/li><li>\ud83e\udde9&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%BA%94%E7%94%A8%E5%BC%80%E5%8F%91\">LLM\u5e94\u7528\u5f00\u53d1<\/a><\/li><li>\ud83c\udc04\ufe0f&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%9B%BD%E4%BA%A7%E5%8C%96%E9%80%82%E9%85%8D\">LLM\u56fd\u4ea7\u5316\u9002\u914d<\/a><\/li><li>\ud83d\udd2f&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#ai%E7%BC%96%E8%AF%91%E5%99%A8\">AI\u7f16\u8bd1\u5668<\/a><\/li><li>\ud83d\udd18&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#ai%E5%9F%BA%E7%A1%80%E8%AE%BE%E6%96%BD\">AI\u57fa\u7840\u8bbe\u65bd<\/a><ul><li>\ud83c\udf41&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#ai%E5%8A%A0%E9%80%9F%E5%8D%A1\">AI\u52a0\u901f\u5361<\/a><\/li><li><img loading=\"lazy\" alt=\":octocat:\" src=\"https:\/\/github.githubassets.com\/images\/icons\/emoji\/octocat.png\" height=\"20\" width=\"20\">&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#ai%E9%9B%86%E7%BE%A4%E7%BD%91%E7%BB%9C%E9%80%9A%E4%BF%A1\">AI\u96c6\u7fa4\u7f51\u7edc\u901a\u4fe1<\/a><\/li><\/ul><\/li><li>\ud83d\udc9f&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llmops\">LLMOps<\/a><\/li><li>\ud83c\udf44&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E7%94%9F%E6%80%81%E7%9B%B8%E5%85%B3%E6%8A%80%E6%9C%AF\">LLM\u751f\u6001\u76f8\u5173\u6280\u672f<\/a><\/li><li>\ud83d\udcab&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E9%9D%A2%E8%AF%95%E9%A2%98\">LLM\u9762\u8bd5\u9898<\/a><\/li><li>\ud83d\udd28&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%9F%BA%E7%A1%80%E7%8E%AF%E5%A2%83%E5%AE%89%E8%A3%85%E5%8F%8A%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7\">\u670d\u52a1\u5668\u57fa\u7840\u73af\u5883\u5b89\u88c5\u53ca\u5e38\u7528\u5de5\u5177<\/a><\/li><li>\ud83d\udcac&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%AD%A6%E4%B9%A0%E4%BA%A4%E6%B5%81%E7%BE%A4\">LLM\u5b66\u4e60\u4ea4\u6d41\u7fa4<\/a><\/li><li>\ud83d\udc65&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E5%BE%AE%E4%BF%A1%E5%85%AC%E4%BC%97%E5%8F%B7\">\u5fae\u4fe1\u516c\u4f17\u53f7<\/a><\/li><li>\u2b50\ufe0f&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#star-history\">Star History<\/a><\/li><li>\ud83d\udd17&nbsp;<a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#ai%E5%B7%A5%E7%A8%8B%E5%8C%96%E8%AF%BE%E7%A8%8B%E6%8E%A8%E8%8D%90\">AI\u5de5\u7a0b\u5316\u8bfe\u7a0b\u63a8\u8350<\/a><\/li><\/ul>\n\n\n\n<h2>LLM\u8bad\u7ec3<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E8%AE%AD%E7%BB%83\"><\/a><\/p>\n\n\n\n<h3>LLM\u8bad\u7ec3\u5b9e\u6218<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E8%AE%AD%E7%BB%83%E5%AE%9E%E6%88%98\"><\/a><\/p>\n\n\n\n<p>\u4e0b\u9762\u6c47\u603b\u4e86\u6211\u5728\u5927\u6a21\u578b\u5b9e\u8df5\u4e2d\u8bad\u7ec3\u76f8\u5173\u7684\u6240\u6709\u6559\u7a0b\u3002\u4ece6B\u523065B\uff0c\u4ece\u5168\u91cf\u5fae\u8c03\u5230\u9ad8\u6548\u5fae\u8c03\uff08LoRA\uff0cQLoRA\uff0cP-Tuning v2\uff09\uff0c\u518d\u5230RLHF\uff08\u57fa\u4e8e\u4eba\u5de5\u53cd\u9988\u7684\u5f3a\u5316\u5b66\u4e60\uff09\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>LLM<\/th><th>\u9884\u8bad\u7ec3\/SFT\/RLHF&#8230;<\/th><th>\u53c2\u6570<\/th><th>\u6559\u7a0b<\/th><th>\u4ee3\u7801<\/th><\/tr><\/thead><tbody><tr><td>Alpaca<\/td><td>full fine-turning<\/td><td>7B<\/td><td><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/618321077\">\u4ece0\u52301\u590d\u73b0\u65af\u5766\u798f\u7f8a\u9a7c\uff08Stanford Alpaca 7B\uff09<\/a><\/td><td><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/tree\/main\/llm-train\/alpaca\">\u914d\u5957\u4ee3\u7801<\/a><\/td><\/tr><tr><td>Alpaca(LLaMA)<\/td><td>LoRA<\/td><td>7B~65B<\/td><td>1.<a href=\"https:\/\/zhuanlan.zhihu.com\/p\/619426866\">\u8db3\u591f\u60ca\u8273\uff0c\u4f7f\u7528Alpaca-Lora\u57fa\u4e8eLLaMA(7B)\u4e8c\u5341\u5206\u949f\u5b8c\u6210\u5fae\u8c03\uff0c\u6548\u679c\u6bd4\u80a9\u65af\u5766\u798f\u7f8a\u9a7c<\/a><br>2.&nbsp;<a href=\"https:\/\/zhuanlan.zhihu.com\/p\/632492604\">\u4f7f\u7528 LoRA \u6280\u672f\u5bf9 LLaMA 65B \u5927\u6a21\u578b\u8fdb\u884c\u5fae\u8c03\u53ca\u63a8\u7406<\/a><\/td><td><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/tree\/main\/llm-train\/alpaca-lora\">\u914d\u5957\u4ee3\u7801<\/a><\/td><\/tr><tr><td>BELLE(LLaMA\/Bloom)<\/td><td>full fine-turning<\/td><td>7B<\/td><td>1.<a href=\"https:\/\/zhuanlan.zhihu.com\/p\/618876472\">\u57fa\u4e8eLLaMA-7B\/Bloomz-7B1-mt\u590d\u73b0\u5f00\u6e90\u4e2d\u6587\u5bf9\u8bdd\u5927\u6a21\u578bBELLE\u53caGPTQ\u91cf\u5316<\/a><br>2.&nbsp;<a href=\"https:\/\/zhuanlan.zhihu.com\/p\/621128368\">BELLE(LLaMA-7B\/Bloomz-7B1-mt)\u5927\u6a21\u578b\u4f7f\u7528GPTQ\u91cf\u5316\u540e\u63a8\u7406\u6027\u80fd\u6d4b\u8bd5<\/a><\/td><td>N\/A<\/td><\/tr><tr><td>ChatGLM<\/td><td>LoRA<\/td><td>6B<\/td><td><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/621793987\">\u4ece0\u52301\u57fa\u4e8eChatGLM-6B\u4f7f\u7528LoRA\u8fdb\u884c\u53c2\u6570\u9ad8\u6548\u5fae\u8c03<\/a><\/td><td><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/tree\/main\/train\/chatglm-lora\">\u914d\u5957\u4ee3\u7801<\/a><\/td><\/tr><tr><td>ChatGLM<\/td><td>full fine-turning\/P-Tuning v2<\/td><td>6B<\/td><td><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/622351059\">\u4f7f\u7528DeepSpeed\/P-Tuning v2\u5bf9ChatGLM-6B\u8fdb\u884c\u5fae\u8c03<\/a><\/td><td><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/tree\/main\/train\/chatglm\">\u914d\u5957\u4ee3\u7801<\/a><\/td><\/tr><tr><td>Vicuna(LLaMA)<\/td><td>full fine-turning<\/td><td>7B<\/td><td><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/624012908\">\u5927\u6a21\u578b\u4e5f\u5185\u5377\uff0cVicuna\u8bad\u7ec3\u53ca\u63a8\u7406\u6307\u5357\uff0c\u6548\u679c\u78be\u538b\u65af\u5766\u798f\u7f8a\u9a7c<\/a><\/td><td>N\/A<\/td><\/tr><tr><td>OPT<\/td><td>RLHF<\/td><td>0.1B~66B<\/td><td>1.<a href=\"https:\/\/zhuanlan.zhihu.com\/p\/626159553\">\u4e00\u952e\u5f0f RLHF \u8bad\u7ec3 DeepSpeed Chat\uff08\u4e00\uff09\uff1a\u7406\u8bba\u7bc7<\/a>&nbsp;<br>2.&nbsp;<a href=\"https:\/\/zhuanlan.zhihu.com\/p\/626214655\">\u4e00\u952e\u5f0f RLHF \u8bad\u7ec3 DeepSpeed Chat\uff08\u4e8c\uff09\uff1a\u5b9e\u8df5\u7bc7<\/a><\/td><td><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/tree\/main\/train\/deepspeedchat\">\u914d\u5957\u4ee3\u7801<\/a><\/td><\/tr><tr><td>MiniGPT-4(LLaMA)<\/td><td>full fine-turning<\/td><td>7B<\/td><td><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/627671257\">\u5927\u6740\u5668\uff0c\u591a\u6a21\u6001\u5927\u6a21\u578bMiniGPT-4\u5165\u5751\u6307\u5357<\/a><\/td><td>N\/A<\/td><\/tr><tr><td>Chinese-LLaMA-Alpaca(LLaMA)<\/td><td>LoRA\uff08\u9884\u8bad\u7ec3+\u5fae\u8c03\uff09<\/td><td>7B<\/td><td><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/631360711\">\u4e2d\u6587LLaMA&amp;Alpaca\u5927\u8bed\u8a00\u6a21\u578b\u8bcd\u8868\u6269\u5145+\u9884\u8bad\u7ec3+\u6307\u4ee4\u7cbe\u8c03<\/a><\/td><td><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/tree\/main\/train\/chinese-llama-alpaca\">\u914d\u5957\u4ee3\u7801<\/a><\/td><\/tr><tr><td>LLaMA<\/td><td>QLoRA<\/td><td>7B\/65B<\/td><td><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/636644164\">\u9ad8\u6548\u5fae\u8c03\u6280\u672fQLoRA\u5b9e\u6218\uff0c\u57fa\u4e8eLLaMA-65B\u5fae\u8c03\u4ec5\u970048G\u663e\u5b58\uff0c\u771f\u9999<\/a><\/td><td><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/tree\/main\/train\/qlora\">\u914d\u5957\u4ee3\u7801<\/a><\/td><\/tr><tr><td>LLaMA<\/td><td>GaLore<\/td><td>60M\/7B<\/td><td><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/686686751\">\u7a81\u7834\u5185\u5b58\u74f6\u9888\uff0c\u4f7f\u7528 GaLore \u4e00\u5f204090\u6d88\u8d39\u7ea7\u663e\u5361\u4e5f\u80fd\u9884\u8bad\u7ec3LLaMA-7B<\/a><\/td><td><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/train\/galore\/torchrun_main.py\">\u914d\u5957\u4ee3\u7801<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E7%9B%AE%E5%BD%95\">\u2b06 \u4e00\u952e\u8fd4\u56de\u76ee\u5f55<\/a><\/strong><\/p>\n\n\n\n<h3>LLM\u5fae\u8c03\u6280\u672f\u539f\u7406<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%BE%AE%E8%B0%83%E6%8A%80%E6%9C%AF%E5%8E%9F%E7%90%86\"><\/a><\/p>\n\n\n\n<p>\u5bf9\u4e8e\u666e\u901a\u5927\u4f17\u6765\u8bf4\uff0c\u8fdb\u884c\u5927\u6a21\u578b\u7684\u9884\u8bad\u7ec3\u6216\u8005\u5168\u91cf\u5fae\u8c03\u9065\u4e0d\u53ef\u53ca\u3002\u7531\u6b64\uff0c\u50ac\u751f\u4e86\u5404\u79cd\u53c2\u6570\u9ad8\u6548\u5fae\u8c03\u6280\u672f\uff0c\u8ba9\u79d1\u7814\u4eba\u5458\u6216\u8005\u666e\u901a\u5f00\u53d1\u8005\u6709\u673a\u4f1a\u5c1d\u8bd5\u5fae\u8c03\u5927\u6a21\u578b\u3002<\/p>\n\n\n\n<p>\u56e0\u6b64\uff0c\u8be5\u6280\u672f\u503c\u5f97\u6211\u4eec\u8fdb\u884c\u6df1\u5165\u5206\u6790\u5176\u80cc\u540e\u7684\u673a\u7406\uff0c\u672c\u7cfb\u5217\u5927\u4f53\u5206\u4e03\u7bc7\u6587\u7ae0\u8fdb\u884c\u8bb2\u89e3\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/pic\/llm\/train\/sft\/peft%E6%96%B9%E6%B3%95.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img src=\"https:\/\/github.com\/liguodongiot\/llm-action\/raw\/main\/pic\/llm\/train\/sft\/peft%E6%96%B9%E6%B3%95.jpg\" alt=\"peft\u65b9\u6cd5\"\/><\/a><\/figure>\n\n\n\n<ul><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/635152813\">\u5927\u6a21\u578b\u53c2\u6570\u9ad8\u6548\u5fae\u8c03\u6280\u672f\u539f\u7406\u7efc\u8ff0\uff08\u4e00\uff09-\u80cc\u666f\u3001\u53c2\u6570\u9ad8\u6548\u5fae\u8c03\u7b80\u4ecb<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/635686756\">\u5927\u6a21\u578b\u53c2\u6570\u9ad8\u6548\u5fae\u8c03\u6280\u672f\u539f\u7406\u7efc\u8ff0\uff08\u4e8c\uff09-BitFit\u3001Prefix Tuning\u3001Prompt Tuning<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/635848732\">\u5927\u6a21\u578b\u53c2\u6570\u9ad8\u6548\u5fae\u8c03\u6280\u672f\u539f\u7406\u7efc\u8ff0\uff08\u4e09\uff09-P-Tuning\u3001P-Tuning v2<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/636038478\">\u5927\u6a21\u578b\u53c2\u6570\u9ad8\u6548\u5fae\u8c03\u6280\u672f\u539f\u7406\u7efc\u8ff0\uff08\u56db\uff09-Adapter Tuning\u53ca\u5176\u53d8\u4f53<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/636215898\">\u5927\u6a21\u578b\u53c2\u6570\u9ad8\u6548\u5fae\u8c03\u6280\u672f\u539f\u7406\u7efc\u8ff0\uff08\u4e94\uff09-LoRA\u3001AdaLoRA\u3001QLoRA<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/636362246\">\u5927\u6a21\u578b\u53c2\u6570\u9ad8\u6548\u5fae\u8c03\u6280\u672f\u539f\u7406\u7efc\u8ff0\uff08\u516d\uff09-MAM Adapter\u3001UniPELT<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/649755252\">\u5927\u6a21\u578b\u53c2\u6570\u9ad8\u6548\u5fae\u8c03\u6280\u672f\u539f\u7406\u7efc\u8ff0\uff08\u4e03\uff09-\u6700\u4f73\u5b9e\u8df5\u3001\u603b\u7ed3<\/a><\/li><\/ul>\n\n\n\n<h3>LLM\u5fae\u8c03\u5b9e\u6218<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%BE%AE%E8%B0%83%E5%AE%9E%E6%88%98\"><\/a><\/p>\n\n\n\n<p>\u4e0b\u9762\u7ed9\u5927\u5bb6\u5206\u4eab<strong>\u5927\u6a21\u578b\u53c2\u6570\u9ad8\u6548\u5fae\u8c03\u6280\u672f\u5b9e\u6218<\/strong>\uff0c\u8be5\u7cfb\u5217\u4e3b\u8981\u9488\u5bf9 HuggingFace PEFT \u6846\u67b6\u652f\u6301\u7684\u4e00\u4e9b\u9ad8\u6548\u5fae\u8c03\u6280\u672f\u8fdb\u884c\u8bb2\u89e3\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u6559\u7a0b<\/th><th>\u4ee3\u7801<\/th><th>\u6846\u67b6<\/th><\/tr><\/thead><tbody><tr><td><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/651744834\">\u5927\u6a21\u578b\u53c2\u6570\u9ad8\u6548\u5fae\u8c03\u6280\u672f\u5b9e\u6218\uff08\u4e00\uff09-PEFT\u6982\u8ff0\u53ca\u73af\u5883\u642d\u5efa<\/a><\/td><td>N\/A<\/td><td>HuggingFace PEFT<\/td><\/tr><tr><td><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/646748939\">\u5927\u6a21\u578b\u53c2\u6570\u9ad8\u6548\u5fae\u8c03\u6280\u672f\u5b9e\u6218\uff08\u4e8c\uff09-Prompt Tuning<\/a><\/td><td><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/train\/peft\/clm\/peft_prompt_tuning_clm.ipynb\">\u914d\u5957\u4ee3\u7801<\/a><\/td><td>HuggingFace PEFT<\/td><\/tr><tr><td><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/646876256\">\u5927\u6a21\u578b\u53c2\u6570\u9ad8\u6548\u5fae\u8c03\u6280\u672f\u5b9e\u6218\uff08\u4e09\uff09-P-Tuning<\/a><\/td><td><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/train\/peft\/clm\/peft_p_tuning_clm.ipynb\">\u914d\u5957\u4ee3\u7801<\/a><\/td><td>HuggingFace PEFT<\/td><\/tr><tr><td><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/648156780\">\u5927\u6a21\u578b\u53c2\u6570\u9ad8\u6548\u5fae\u8c03\u6280\u672f\u5b9e\u6218\uff08\u56db\uff09-Prefix Tuning \/ P-Tuning v2<\/a><\/td><td><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/train\/peft\/clm\/peft_p_tuning_v2_clm.ipynb\">\u914d\u5957\u4ee3\u7801<\/a><\/td><td>HuggingFace PEFT<\/td><\/tr><tr><td><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/649315197\">\u5927\u6a21\u578b\u53c2\u6570\u9ad8\u6548\u5fae\u8c03\u6280\u672f\u5b9e\u6218\uff08\u4e94\uff09-LoRA<\/a><\/td><td><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/train\/peft\/clm\/peft_lora_clm.ipynb\">\u914d\u5957\u4ee3\u7801<\/a><\/td><td>HuggingFace PEFT<\/td><\/tr><tr><td><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/649707359\">\u5927\u6a21\u578b\u53c2\u6570\u9ad8\u6548\u5fae\u8c03\u6280\u672f\u5b9e\u6218\uff08\u516d\uff09-IA3<\/a><\/td><td><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/train\/peft\/clm\/peft_ia3_clm.ipynb\">\u914d\u5957\u4ee3\u7801<\/a><\/td><td>HuggingFace PEFT<\/td><\/tr><tr><td><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/670048482\">\u5927\u6a21\u578b\u5fae\u8c03\u5b9e\u6218\uff08\u4e03\uff09-\u57fa\u4e8eLoRA\u5fae\u8c03\u591a\u6a21\u6001\u5927\u6a21\u578b<\/a><\/td><td><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/train\/peft\/multimodal\/blip2_lora_int8_fine_tune.py\">\u914d\u5957\u4ee3\u7801<\/a><\/td><td>HuggingFace PEFT<\/td><\/tr><tr><td><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/670116171\">\u5927\u6a21\u578b\u5fae\u8c03\u5b9e\u6218\uff08\u516b\uff09-\u4f7f\u7528INT8\/FP4\/NF4\u5fae\u8c03\u5927\u6a21\u578b<\/a><\/td><td><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/train\/peft\/multimodal\/finetune_bloom_bnb_peft.ipynb\">\u914d\u5957\u4ee3\u7801<\/a><\/td><td>PEFT\u3001bitsandbytes<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E7%9B%AE%E5%BD%95\">\u2b06 \u4e00\u952e\u8fd4\u56de\u76ee\u5f55<\/a><\/strong><\/p>\n\n\n\n<h3><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/tree\/main\/docs\/llm-base\/distribution-parallelism\">LLM\u5206\u5e03\u5f0f\u8bad\u7ec3\u5e76\u884c\u6280\u672f<\/a><\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%88%86%E5%B8%83%E5%BC%8F%E8%AE%AD%E7%BB%83%E5%B9%B6%E8%A1%8C%E6%8A%80%E6%9C%AF\"><\/a><\/p>\n\n\n\n<p>\u8fd1\u5e74\u6765\uff0c\u968f\u7740Transformer\u3001MOE\u67b6\u6784\u7684\u63d0\u51fa\uff0c\u4f7f\u5f97\u6df1\u5ea6\u5b66\u4e60\u6a21\u578b\u8f7b\u677e\u7a81\u7834\u4e0a\u4e07\u4ebf\u89c4\u6a21\u53c2\u6570\uff0c\u4f20\u7edf\u7684\u5355\u673a\u5355\u5361\u6a21\u5f0f\u5df2\u7ecf\u65e0\u6cd5\u6ee1\u8db3\u8d85\u5927\u6a21\u578b\u8fdb\u884c\u8bad\u7ec3\u7684\u8981\u6c42\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u9700\u8981\u57fa\u4e8e\u5355\u673a\u591a\u5361\u3001\u751a\u81f3\u662f\u591a\u673a\u591a\u5361\u8fdb\u884c\u5206\u5e03\u5f0f\u5927\u6a21\u578b\u7684\u8bad\u7ec3\u3002<\/p>\n\n\n\n<p>\u800c\u5229\u7528AI\u96c6\u7fa4\uff0c\u4f7f\u6df1\u5ea6\u5b66\u4e60\u7b97\u6cd5\u66f4\u597d\u5730\u4ece\u5927\u91cf\u6570\u636e\u4e2d\u9ad8\u6548\u5730\u8bad\u7ec3\u51fa\u6027\u80fd\u4f18\u826f\u7684\u5927\u6a21\u578b\u662f\u5206\u5e03\u5f0f\u673a\u5668\u5b66\u4e60\u7684\u9996\u8981\u76ee\u6807\u3002\u4e3a\u4e86\u5b9e\u73b0\u8be5\u76ee\u6807\uff0c\u4e00\u822c\u9700\u8981\u6839\u636e\u786c\u4ef6\u8d44\u6e90\u4e0e\u6570\u636e\/\u6a21\u578b\u89c4\u6a21\u7684\u5339\u914d\u60c5\u51b5\uff0c\u8003\u8651\u5bf9\u8ba1\u7b97\u4efb\u52a1\u3001\u8bad\u7ec3\u6570\u636e\u548c\u6a21\u578b\u8fdb\u884c\u5212\u5206\uff0c\u4ece\u800c\u8fdb\u884c\u5206\u5e03\u5f0f\u8bad\u7ec3\u3002\u56e0\u6b64\uff0c\u5206\u5e03\u5f0f\u8bad\u7ec3\u76f8\u5173\u6280\u672f\u503c\u5f97\u6211\u4eec\u8fdb\u884c\u6df1\u5165\u5206\u6790\u5176\u80cc\u540e\u7684\u673a\u7406\u3002<\/p>\n\n\n\n<p>\u4e0b\u9762\u4e3b\u8981\u5bf9\u5927\u6a21\u578b\u8fdb\u884c\u5206\u5e03\u5f0f\u8bad\u7ec3\u7684\u5e76\u884c\u6280\u672f\u8fdb\u884c\u8bb2\u89e3\uff0c\u672c\u7cfb\u5217\u5927\u4f53\u5206\u4e5d\u7bc7\u6587\u7ae0\u8fdb\u884c\u8bb2\u89e3\u3002<\/p>\n\n\n\n<ul><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/598714869\">\u5927\u6a21\u578b\u5206\u5e03\u5f0f\u8bad\u7ec3\u5e76\u884c\u6280\u672f\uff08\u4e00\uff09-\u6982\u8ff0<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/650002268\">\u5927\u6a21\u578b\u5206\u5e03\u5f0f\u8bad\u7ec3\u5e76\u884c\u6280\u672f\uff08\u4e8c\uff09-\u6570\u636e\u5e76\u884c<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/653860567\">\u5927\u6a21\u578b\u5206\u5e03\u5f0f\u8bad\u7ec3\u5e76\u884c\u6280\u672f\uff08\u4e09\uff09-\u6d41\u6c34\u7ebf\u5e76\u884c<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/657921100\">\u5927\u6a21\u578b\u5206\u5e03\u5f0f\u8bad\u7ec3\u5e76\u884c\u6280\u672f\uff08\u56db\uff09-\u5f20\u91cf\u5e76\u884c<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/659792351\">\u5927\u6a21\u578b\u5206\u5e03\u5f0f\u8bad\u7ec3\u5e76\u884c\u6280\u672f\uff08\u4e94\uff09-\u5e8f\u5217\u5e76\u884c<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/661279318\">\u5927\u6a21\u578b\u5206\u5e03\u5f0f\u8bad\u7ec3\u5e76\u884c\u6280\u672f\uff08\u516d\uff09-\u591a\u7ef4\u6df7\u5408\u5e76\u884c<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/662517647\">\u5927\u6a21\u578b\u5206\u5e03\u5f0f\u8bad\u7ec3\u5e76\u884c\u6280\u672f\uff08\u4e03\uff09-\u81ea\u52a8\u5e76\u884c<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/662518387\">\u5927\u6a21\u578b\u5206\u5e03\u5f0f\u8bad\u7ec3\u5e76\u884c\u6280\u672f\uff08\u516b\uff09-MOE\u5e76\u884c<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/667051845\">\u5927\u6a21\u578b\u5206\u5e03\u5f0f\u8bad\u7ec3\u5e76\u884c\u6280\u672f\uff08\u4e5d\uff09-\u603b\u7ed3<\/a><\/li><\/ul>\n\n\n\n<p><strong><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E7%9B%AE%E5%BD%95\">\u2b06 \u4e00\u952e\u8fd4\u56de\u76ee\u5f55<\/a><\/strong><\/p>\n\n\n\n<h3>\u5206\u5e03\u5f0fAI\u6846\u67b6<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E5%88%86%E5%B8%83%E5%BC%8Fai%E6%A1%86%E6%9E%B6\"><\/a><\/p>\n\n\n\n<ul><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/tree\/main\/train\/pytorch\/\">PyTorch<\/a><ul><li>PyTorch \u5355\u673a\u591a\u5361\u8bad\u7ec3<\/li><li>PyTorch \u591a\u673a\u591a\u5361\u8bad\u7ec3<\/li><\/ul><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/tree\/main\/train\/megatron\">Megatron-LM<\/a><ul><li>Megatron-LM \u5355\u673a\u591a\u5361\u8bad\u7ec3<\/li><li>Megatron-LM \u591a\u673a\u591a\u5361\u8bad\u7ec3<\/li><li><a href=\"https:\/\/juejin.cn\/post\/7259682893648724029\">\u57fa\u4e8eMegatron-LM\u4ece0\u52301\u5b8c\u6210GPT2\u6a21\u578b\u9884\u8bad\u7ec3\u3001\u6a21\u578b\u8bc4\u4f30\u53ca\u63a8\u7406<\/a><\/li><\/ul><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/tree\/main\/train\/deepspeed\">DeepSpeed<\/a><ul><li>DeepSpeed \u5355\u673a\u591a\u5361\u8bad\u7ec3<\/li><li>DeepSpeed \u591a\u673a\u591a\u5361\u8bad\u7ec3<\/li><\/ul><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/tree\/main\/train\/megatron-deepspeed\">Megatron-DeepSpeed<\/a><ul><li>\u57fa\u4e8e Megatron-DeepSpeed \u4ece 0 \u52301 \u5b8c\u6210 LLaMA \u9884\u8bad\u7ec3<\/li><li>\u57fa\u4e8e Megatron-DeepSpeed \u4ece 0 \u52301 \u5b8c\u6210 Bloom \u9884\u8bad\u7ec3<\/li><\/ul><\/li><\/ul>\n\n\n\n<h3>\u5206\u5e03\u5f0f\u8bad\u7ec3\u7f51\u7edc\u901a\u4fe1<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E5%88%86%E5%B8%83%E5%BC%8F%E8%AE%AD%E7%BB%83%E7%BD%91%E7%BB%9C%E9%80%9A%E4%BF%A1\"><\/a><\/p>\n\n\n\n<p>\u5f85\u66f4\u65b0&#8230;<\/p>\n\n\n\n<h3>LLM\u8bad\u7ec3\u4f18\u5316\u6280\u672f<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E8%AE%AD%E7%BB%83%E4%BC%98%E5%8C%96%E6%8A%80%E6%9C%AF\"><\/a><\/p>\n\n\n\n<ul><li>FlashAttention V1\u3001V2<\/li><li>\u6df7\u5408\u7cbe\u5ea6\u8bad\u7ec3<\/li><li>\u91cd\u8ba1\u7b97<\/li><li>MQA \/ GQA<\/li><li>\u68af\u5ea6\u7d2f\u79ef<\/li><\/ul>\n\n\n\n<h3>LLM\u5bf9\u9f50\u6280\u672f<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%AF%B9%E9%BD%90%E6%8A%80%E6%9C%AF\"><\/a><\/p>\n\n\n\n<ul><li>PPO\uff08\u8fd1\u7aef\u7b56\u7565\u4f18\u5316\uff09<\/li><li>DPO<\/li><li>ORPO<\/li><\/ul>\n\n\n\n<p><strong><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E7%9B%AE%E5%BD%95\">\u2b06 \u4e00\u952e\u8fd4\u56de\u76ee\u5f55<\/a><\/strong><\/p>\n\n\n\n<h2><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/tree\/main\/inference\">LLM\u63a8\u7406<\/a><\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E6%8E%A8%E7%90%86\"><\/a><\/p>\n\n\n\n<h3>LLM\u63a8\u7406\u6846\u67b6<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E6%8E%A8%E7%90%86%E6%A1%86%E6%9E%B6\"><\/a><\/p>\n\n\n\n<ul><li><a href=\"https:\/\/www.zhihu.com\/question\/625415776\/answer\/3243562246\">\u5927\u6a21\u578b\u63a8\u7406\u6846\u67b6\u6982\u8ff0<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/626008090\">\u5927\u6a21\u578b\u7684\u597d\u4f19\u4f34\uff0c\u6d45\u6790\u63a8\u7406\u52a0\u901f\u5f15\u64ceFasterTransformer<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/629336492\">\u6a21\u578b\u63a8\u7406\u670d\u52a1\u5316\u6846\u67b6Triton\u4fdd\u59c6\u5f0f\u6559\u7a0b\uff08\u4e00\uff09\uff1a\u5feb\u901f\u5165\u95e8<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/634143650\">\u6a21\u578b\u63a8\u7406\u670d\u52a1\u5316\u6846\u67b6Triton\u4fdd\u59c6\u5f0f\u6559\u7a0b\uff08\u4e8c\uff09\uff1a\u67b6\u6784\u89e3\u6790<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/634444666\">\u6a21\u578b\u63a8\u7406\u670d\u52a1\u5316\u6846\u67b6Triton\u4fdd\u59c6\u5f0f\u6559\u7a0b\uff08\u4e09\uff09\uff1a\u5f00\u53d1\u5b9e\u8df5<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/666849728\">TensorRT-LLM\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff08\u4e00\uff09-\u5feb\u901f\u5165\u95e8<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/667572720\">TensorRT-LLM\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff08\u4e8c\uff09-\u5f00\u53d1\u5b9e\u8df5<\/a><\/li><li>TensorRT-LLM\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff08\u4e09\uff09-\u57fa\u4e8eTriton\u5b8c\u6210\u6a21\u578b\u670d\u52a1\u5316<\/li><li>TensorRT-LLM\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff08\u56db\uff09-\u65b0\u6a21\u578b\u9002\u914d<\/li><li>TensorRT<\/li><\/ul>\n\n\n\n<h3>LLM\u63a8\u7406\u4f18\u5316\u6280\u672f<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E6%8E%A8%E7%90%86%E4%BC%98%E5%8C%96%E6%8A%80%E6%9C%AF\"><\/a><\/p>\n\n\n\n<ul><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\">LLM\u63a8\u7406\u4f18\u5316\u6280\u672f\u6982\u8ff0<\/a><\/li><li>FlashAttention<\/li><li>PagedAttention<\/li><li>Continuous Batching<\/li><li><a href=\"https:\/\/juejin.cn\/post\/7362789570217885759\">\u5927\u6a21\u578b\u63a8\u7406\u4f18\u5316\u6280\u672f-KV Cache<\/a><\/li><li>Flash Decoding<\/li><li>FlashDecoding++<\/li><\/ul>\n\n\n\n<h2>LLM\u538b\u7f29<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%8E%8B%E7%BC%A9\"><\/a><\/p>\n\n\n\n<p>\u8fd1\u5e74\u6765\uff0c\u968f\u7740Transformer\u3001MOE\u67b6\u6784\u7684\u63d0\u51fa\uff0c\u4f7f\u5f97\u6df1\u5ea6\u5b66\u4e60\u6a21\u578b\u8f7b\u677e\u7a81\u7834\u4e0a\u4e07\u4ebf\u89c4\u6a21\u53c2\u6570\uff0c\u4ece\u800c\u5bfc\u81f4\u6a21\u578b\u53d8\u5f97\u8d8a\u6765\u8d8a\u5927\uff0c\u56e0\u6b64\uff0c\u6211\u4eec\u9700\u8981\u4e00\u4e9b\u5927\u6a21\u578b\u538b\u7f29\u6280\u672f\u6765\u964d\u4f4e\u6a21\u578b\u90e8\u7f72\u7684\u6210\u672c\uff0c\u5e76\u63d0\u5347\u6a21\u578b\u7684\u63a8\u7406\u6027\u80fd\u3002 \u6a21\u578b\u538b\u7f29\u4e3b\u8981\u5206\u4e3a\u5982\u4e0b\u51e0\u7c7b\uff1a<\/p>\n\n\n\n<ul><li>\u526a\u679d\uff08Pruning\uff09<\/li><li>\u77e5\u8bc6\u84b8\u998f\uff08Knowledge Distillation\uff09<\/li><li>\u91cf\u5316<\/li><\/ul>\n\n\n\n<h3><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/tree\/main\/model-compression\/quantization\">LLM\u91cf\u5316<\/a><\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E9%87%8F%E5%8C%96\"><\/a><\/p>\n\n\n\n<p>\u672c\u7cfb\u5217\u5c06\u9488\u5bf9\u4e00\u4e9b\u5e38\u89c1\u5927\u6a21\u578b\u91cf\u5316\u65b9\u6848\uff08GPTQ\u3001LLM.int8()\u3001SmoothQuant\u3001AWQ\u7b49\uff09\u8fdb\u884c\u8bb2\u8ff0\u3002<\/p>\n\n\n\n<ul><li><a href=\"https:\/\/www.zhihu.com\/question\/627484732\/answer\/3261671478\">\u5927\u6a21\u578b\u91cf\u5316\u6982\u8ff0<\/a><\/li><li>\u91cf\u5316\u611f\u77e5\u8bad\u7ec3\uff1a<ul><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/647589650\">\u5927\u6a21\u578b\u91cf\u5316\u611f\u77e5\u8bad\u7ec3\u6280\u672f\u539f\u7406\uff1aLLM-QAT<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\">\u5927\u6a21\u578b\u91cf\u5316\u611f\u77e5\u5fae\u8c03\u6280\u672f\u539f\u7406\uff1aQLoRA<\/a><\/li><li>PEQA<\/li><\/ul><\/li><li>\u8bad\u7ec3\u540e\u91cf\u5316\uff1a<ul><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/680212402\">\u5927\u6a21\u578b\u91cf\u5316\u6280\u672f\u539f\u7406\uff1aGPTQ\u3001LLM.int8()<\/a><\/li><li><a href=\"https:\/\/www.zhihu.com\/question\/576376372\/answer\/3388402085\">\u5927\u6a21\u578b\u91cf\u5316\u6280\u672f\u539f\u7406\uff1aSmoothQuant<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/681578090\">\u5927\u6a21\u578b\u91cf\u5316\u6280\u672f\u539f\u7406\uff1aAWQ\u3001AutoAWQ<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/682871823\">\u5927\u6a21\u578b\u91cf\u5316\u6280\u672f\u539f\u7406\uff1aSpQR<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/683813769\">\u5927\u6a21\u578b\u91cf\u5316\u6280\u672f\u539f\u7406\uff1aZeroQuant\u7cfb\u5217<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\">\u5927\u6a21\u578b\u91cf\u5316\u6280\u672f\u539f\u7406\uff1aFP8<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\">\u5927\u6a21\u578b\u91cf\u5316\u6280\u672f\u539f\u7406\uff1aFP6<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\">\u5927\u6a21\u578b\u91cf\u5316\u6280\u672f\u539f\u7406\uff1aFP4<\/a><\/li><\/ul><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\">\u5927\u6a21\u578b\u91cf\u5316\u6280\u672f\u539f\u7406\uff1a\u603b\u7ed3<\/a><\/li><\/ul>\n\n\n\n<h3>LLM\u526a\u679d<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%89%AA%E6%9E%9D\"><\/a><\/p>\n\n\n\n<ul><li><a href=\"https:\/\/www.zhihu.com\/question\/652126515\/answer\/3457652467\">\u5927\u6a21\u578b\u526a\u679d\u6280\u672f\u539f\u7406\uff08\u4e00\uff09-\u6982\u8ff0<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/692858636?\">\u4e07\u5b57\u957f\u6587\u8c08\u6df1\u5ea6\u795e\u7ecf\u7f51\u7edc\u526a\u679d\u7efc\u8ff0<\/a><\/li><\/ul>\n\n\n\n<p><strong>\u7ed3\u6784\u5316\u526a\u679d<\/strong>\uff1a<\/p>\n\n\n\n<ul><li>LLM-Pruner(LLM-Pruner: On the Structural Pruning of Large Language Models)<\/li><li>LLM-Shearing(Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning)<\/li><\/ul>\n\n\n\n<p><strong>\u975e\u7ed3\u6784\u5316\u526a\u679d<\/strong>\uff1a<\/p>\n\n\n\n<ul><li>SparseGPT(SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot)<\/li><li>LoRAPrune(LoRAPrune: Pruning Meets Low-Rank Parameter-Efficient Fine-Tuning)<\/li><li>Wanda(A Simple and Effective Pruning Approach for Large Language Models)<\/li><li>Flash-LLM(Flash-LLM: Enabling Cost-Effective and Highly-Efficient Large Generative Model Inference with Unstructured Sparsity)<\/li><\/ul>\n\n\n\n<h3>LLM\u77e5\u8bc6\u84b8\u998f<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E7%9F%A5%E8%AF%86%E8%92%B8%E9%A6%8F\"><\/a><\/p>\n\n\n\n<ul><li><a href=\"https:\/\/www.zhihu.com\/question\/625415893\/answer\/3243565375\">\u5927\u6a21\u578b\u77e5\u8bc6\u84b8\u998f\u6982\u8ff0<\/a><\/li><\/ul>\n\n\n\n<p><strong>Standard KD<\/strong>:<\/p>\n\n\n\n<p>\u4f7f\u5b66\u751f\u6a21\u578b\u5b66\u4e60\u6559\u5e08\u6a21\u578b(LLM)\u6240\u62e5\u6709\u7684\u5e38\u89c1\u77e5\u8bc6\uff0c\u5982\u8f93\u51fa\u5206\u5e03\u548c\u7279\u5f81\u4fe1\u606f\uff0c\u8fd9\u79cd\u65b9\u6cd5\u7c7b\u4f3c\u4e8e\u4f20\u7edf\u7684KD\u3002<\/p>\n\n\n\n<ul><li>MINILLM<\/li><li>GKD<\/li><\/ul>\n\n\n\n<p><strong>EA-based KD<\/strong>:<\/p>\n\n\n\n<p>\u4e0d\u4ec5\u4ec5\u662f\u5c06LLM\u7684\u5e38\u89c1\u77e5\u8bc6\u8f6c\u79fb\u5230\u5b66\u751f\u6a21\u578b\u4e2d\uff0c\u8fd8\u6db5\u76d6\u4e86\u84b8\u998f\u5b83\u4eec\u72ec\u7279\u7684\u6d8c\u73b0\u80fd\u529b\u3002\u5177\u4f53\u6765\u8bf4\uff0cEA-based KD\u53c8\u5206\u4e3a\u4e86\u4e0a\u4e0b\u6587\u5b66\u4e60\uff08ICL\uff09\u3001\u601d\u7ef4\u94fe\uff08CoT\uff09\u548c\u6307\u4ee4\u8ddf\u968f\uff08IF\uff09\u3002<\/p>\n\n\n\n<p>In-Context Learning\uff1a<\/p>\n\n\n\n<ul><li>In-Context Learning distillation<\/li><\/ul>\n\n\n\n<p>Chain-of-Thought\uff1a<\/p>\n\n\n\n<ul><li>MT-COT<\/li><li>Fine-tune-CoT<\/li><li>DISCO<\/li><li>SCOTT<\/li><li>SOCRATIC CoT<\/li><\/ul>\n\n\n\n<p>Instruction Following\uff1a<\/p>\n\n\n\n<ul><li>Lion<\/li><\/ul>\n\n\n\n<h3>\u4f4e\u79e9\u5206\u89e3<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E4%BD%8E%E7%A7%A9%E5%88%86%E8%A7%A3\"><\/a><\/p>\n\n\n\n<p>\u4f4e\u79e9\u5206\u89e3\u65e8\u5728\u901a\u8fc7\u5c06\u7ed9\u5b9a\u7684\u6743\u91cd\u77e9\u9635\u5206\u89e3\u6210\u4e24\u4e2a\u6216\u591a\u4e2a\u8f83\u5c0f\u7ef4\u5ea6\u7684\u77e9\u9635\uff0c\u4ece\u800c\u5bf9\u5176\u8fdb\u884c\u8fd1\u4f3c\u3002\u4f4e\u79e9\u5206\u89e3\u80cc\u540e\u7684\u6838\u5fc3\u601d\u60f3\u662f\u627e\u5230\u4e00\u4e2a\u5927\u7684\u6743\u91cd\u77e9\u9635W\u7684\u5206\u89e3\uff0c\u5f97\u5230\u4e24\u4e2a\u77e9\u9635U\u548cV\uff0c\u4f7f\u5f97W\u2248U V\uff0c\u5176\u4e2dU\u662f\u4e00\u4e2am\u00d7k\u77e9\u9635\uff0cV\u662f\u4e00\u4e2ak\u00d7n\u77e9\u9635\uff0c\u5176\u4e2dk\u8fdc\u5c0f\u4e8em\u548cn\u3002U\u548cV\u7684\u4e58\u79ef\u8fd1\u4f3c\u4e8e\u539f\u59cb\u7684\u6743\u91cd\u77e9\u9635\uff0c\u4ece\u800c\u5927\u5e45\u51cf\u5c11\u4e86\u53c2\u6570\u6570\u91cf\u548c\u8ba1\u7b97\u5f00\u9500\u3002<\/p>\n\n\n\n<p>\u5728LLM\u7814\u7a76\u7684\u6a21\u578b\u538b\u7f29\u9886\u57df\uff0c\u7814\u7a76\u4eba\u5458\u901a\u5e38\u5c06\u591a\u79cd\u6280\u672f\u4e0e\u4f4e\u79e9\u5206\u89e3\u76f8\u7ed3\u5408\uff0c\u5305\u62ec\u4fee\u526a\u3001\u91cf\u5316\u7b49\u3002<\/p>\n\n\n\n<ul><li>ZeroQuant-FP\uff08\u4f4e\u79e9\u5206\u89e3+\u91cf\u5316\uff09<\/li><li>LoRAPrune\uff08\u4f4e\u79e9\u5206\u89e3+\u526a\u679d\uff09<\/li><\/ul>\n\n\n\n<h2>LLM\u6570\u636e\u5de5\u7a0b<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E6%95%B0%E6%8D%AE%E5%B7%A5%E7%A8%8B\"><\/a><\/p>\n\n\n\n<p>LLM Data Engineering<\/p>\n\n\n\n<h3>\u9884\u8bad\u7ec3\u8bed\u6599\u5904\u7406\u6280\u672f<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E9%A2%84%E8%AE%AD%E7%BB%83%E8%AF%AD%E6%96%99%E5%A4%84%E7%90%86%E6%8A%80%E6%9C%AF\"><\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/pic\/llm\/train\/pretrain\/llm-pretrain-pipeline-v2.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img src=\"https:\/\/github.com\/liguodongiot\/llm-action\/raw\/main\/pic\/llm\/train\/pretrain\/llm-pretrain-pipeline-v2.png\" alt=\"llm-pretrain-pipeline\"\/><\/a><\/figure>\n\n\n\n<ul><li>\u6570\u636e\u6536\u96c6<\/li><li>\u6570\u636e\u5904\u7406<ul><li>\u53bb\u91cd<\/li><li>\u8fc7\u6ee4<\/li><li>\u9009\u62e9<\/li><li>\u7ec4\u5408<\/li><\/ul><\/li><\/ul>\n\n\n\n<h3>LLM\u5fae\u8c03\u9ad8\u6548\u6570\u636e\u7b5b\u9009\u6280\u672f<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%BE%AE%E8%B0%83%E9%AB%98%E6%95%88%E6%95%B0%E6%8D%AE%E7%AD%9B%E9%80%89%E6%8A%80%E6%9C%AF\"><\/a><\/p>\n\n\n\n<ul><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\">LLM\u5fae\u8c03\u9ad8\u6548\u6570\u636e\u7b5b\u9009\u6280\u672f\u539f\u7406-DEITA<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\">LLM\u5fae\u8c03\u9ad8\u6548\u6570\u636e\u7b5b\u9009\u6280\u672f\u539f\u7406-MoDS<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\">LLM\u5fae\u8c03\u9ad8\u6548\u6570\u636e\u7b5b\u9009\u6280\u672f\u539f\u7406-IFD<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\">LLM\u5fae\u8c03\u9ad8\u6548\u6570\u636e\u7b5b\u9009\u6280\u672f\u539f\u7406-CaR<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/686007325\">LESS\uff1a\u4ec5\u9009\u62e95%\u6709\u5f71\u54cd\u529b\u7684\u6570\u636e\u4f18\u4e8e\u5168\u91cf\u6570\u636e\u96c6\u8fdb\u884c\u76ee\u6807\u6307\u4ee4\u5fae\u8c03<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/686687923\">LESS \u5b9e\u8df5\uff1a\u7528\u5c11\u91cf\u7684\u6570\u636e\u8fdb\u884c\u76ee\u6807\u6307\u4ee4\u5fae\u8c03<\/a><\/li><\/ul>\n\n\n\n<h2>\u63d0\u793a\u5de5\u7a0b<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E6%8F%90%E7%A4%BA%E5%B7%A5%E7%A8%8B\"><\/a><\/p>\n\n\n\n<ul><li>Zero-Shot Prompting<\/li><li>Few-Shot Prompting<\/li><li>Chain-of-Thought (CoT) Prompting<\/li><li>Automatic Chain-of-Thought (Auto-CoT) Prompting<\/li><li>Tree-of-Thoughts (ToT) Prompting<\/li><\/ul>\n\n\n\n<h2><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/tree\/main\/docs\/llm-base\/ai-algo\">LLM\u7b97\u6cd5\u67b6\u6784<\/a><\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E7%AE%97%E6%B3%95%E6%9E%B6%E6%9E%84\"><\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/pic\/llm\/model\/llm-famliy.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img src=\"https:\/\/github.com\/liguodongiot\/llm-action\/raw\/main\/pic\/llm\/model\/llm-famliy.jpg\" alt=\"llm-famliy\"\/><\/a><\/figure>\n\n\n\n<ul><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/600016134\">\u5927\u6a21\u578b\u7b97\u6cd5\u6f14\u8fdb<\/a><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/pic\/llm\/model\/llm-timeline-v2.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img src=\"https:\/\/github.com\/liguodongiot\/llm-action\/raw\/main\/pic\/llm\/model\/llm-timeline-v2.png\" alt=\"llm-famliy\"\/><\/a><\/figure>\n\n\n\n<ul><li>ChatGLM \/ ChatGLM2 \/ ChatGLM3 \u5927\u6a21\u578b\u89e3\u6790<\/li><li>Bloom \u5927\u6a21\u578b\u89e3\u6790<\/li><li>LLaMA \/ LLaMA2 \u5927\u6a21\u578b\u89e3\u6790<\/li><li><a href=\"https:\/\/www.zhihu.com\/question\/606757218\/answer\/3075464500\">\u767e\u5ddd\u667a\u80fd\u5f00\u6e90\u5927\u6a21\u578bbaichuan-7B\u6280\u672f\u5256\u6790<\/a><\/li><li><a href=\"https:\/\/www.zhihu.com\/question\/611507751\/answer\/3114988669\">\u767e\u5ddd\u667a\u80fd\u5f00\u6e90\u5927\u6a21\u578bbaichuan-13B\u6280\u672f\u5256\u6790<\/a><\/li><li><a href=\"https:\/\/www.zhihu.com\/question\/653374932\/answer\/3470909634\">LLaMA3 \u6280\u672f\u5256\u6790<\/a><\/li><li>QWen \u5927\u6a21\u578b\u5256\u6790<\/li><\/ul>\n\n\n\n<h2>LLM\u5e94\u7528\u5f00\u53d1<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%BA%94%E7%94%A8%E5%BC%80%E5%8F%91\"><\/a><\/p>\n\n\n\n<p>\u5927\u6a21\u578b\u662f\u57fa\u5ea7\uff0c\u8981\u60f3\u8ba9\u5176\u53d8\u6210\u4e00\u6b3e\u4ea7\u54c1\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u4e00\u4e9b\u5176\u4ed6\u76f8\u5173\u7684\u6280\u672f\uff0c\u6bd4\u5982\uff1a\u5411\u91cf\u6570\u636e\u5e93\uff08Pinecone\u3001Milvus\u3001Vespa\u3001Weaviate\uff09\uff0cLangChain\u7b49\u3002<\/p>\n\n\n\n<ul><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/476025527\">\u4e91\u539f\u751f\u5411\u91cf\u6570\u636e\u5e93Milvus\uff08\u4e00\uff09-\u7b80\u8ff0\u3001\u7cfb\u7edf\u67b6\u6784\u53ca\u5e94\u7528\u573a\u666f<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/477231485\">\u4e91\u539f\u751f\u5411\u91cf\u6570\u636e\u5e93Milvus\uff08\u4e8c\uff09-\u6570\u636e\u4e0e\u7d22\u5f15\u7684\u5904\u7406\u6d41\u7a0b\u3001\u7d22\u5f15\u7c7b\u578b\u53caSchema<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/651921120\">\u5173\u4e8e\u5927\u6a21\u578b\u9a71\u52a8\u7684AI\u667a\u80fd\u4f53Agent\u7684\u4e00\u4e9b\u601d\u8003<\/a><\/li><\/ul>\n\n\n\n<h2><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/tree\/main\/docs\/llm_localization\">LLM\u56fd\u4ea7\u5316\u9002\u914d<\/a><\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E5%9B%BD%E4%BA%A7%E5%8C%96%E9%80%82%E9%85%8D\"><\/a><\/p>\n\n\n\n<p>\u968f\u7740 ChatGPT \u7684\u73b0\u8c61\u7ea7\u8d70\u7ea2\uff0c\u5f15\u9886\u4e86AI\u5927\u6a21\u578b\u65f6\u4ee3\u7684\u53d8\u9769\uff0c\u4ece\u800c\u5bfc\u81f4 AI \u7b97\u529b\u65e5\u76ca\u7d27\u7f3a\u3002\u4e0e\u6b64\u540c\u65f6\uff0c\u4e2d\u7f8e\u8d38\u6613\u6218\u4ee5\u53ca\u7f8e\u56fd\u5bf9\u534e\u8fdb\u884cAI\u82af\u7247\u76f8\u5173\u7684\u5236\u88c1\u5bfc\u81f4 AI \u7b97\u529b\u7684\u56fd\u4ea7\u5316\u9002\u914d\u52bf\u5728\u5fc5\u884c\u3002\u672c\u7cfb\u5217\u5c06\u5bf9\u4e00\u4e9b\u56fd\u4ea7\u5316 AI \u52a0\u901f\u5361\u8fdb\u884c\u8bb2\u89e3\u3002<\/p>\n\n\n\n<ul><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/637918406\">\u5927\u6a21\u578b\u56fd\u4ea7\u5316\u9002\u914d1-\u534e\u4e3a\u6607\u817eAI\u5168\u6808\u8f6f\u786c\u4ef6\u5e73\u53f0\u603b\u7ed3<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/650730807\">\u5927\u6a21\u578b\u56fd\u4ea7\u5316\u9002\u914d2-\u57fa\u4e8e\u6607\u817e910\u4f7f\u7528ChatGLM-6B\u8fdb\u884c\u6a21\u578b\u63a8\u7406<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/651324599\">\u5927\u6a21\u578b\u56fd\u4ea7\u5316\u9002\u914d3-\u57fa\u4e8e\u6607\u817e910\u4f7f\u7528ChatGLM-6B\u8fdb\u884c\u6a21\u578b\u8bad\u7ec3<\/a><ul><li>MindRecord\u6570\u636e\u683c\u5f0f\u8bf4\u660e\u3001\u5168\u91cf\u5fae\u8c03\u3001LoRA\u5fae\u8c03<\/li><\/ul><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/655902796\">\u5927\u6a21\u578b\u56fd\u4ea7\u5316\u9002\u914d4-\u57fa\u4e8e\u6607\u817e910\u4f7f\u7528LLaMA-13B\u8fdb\u884c\u591a\u673a\u591a\u5361\u8bad\u7ec3<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/665807431\">\u5927\u6a21\u578b\u56fd\u4ea7\u5316\u9002\u914d5-\u767e\u5ea6\u98de\u6d46PaddleNLP\u5927\u8bed\u8a00\u6a21\u578b\u5de5\u5177\u94fe\u603b\u7ed3<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/677799157\">\u5927\u6a21\u578b\u56fd\u4ea7\u5316\u9002\u914d6-\u57fa\u4e8e\u6607\u817e910B\u5feb\u901f\u9a8c\u8bc1ChatGLM3-6B\/BaiChuan2-7B\u6a21\u578b\u63a8\u7406<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/692377206\">\u5927\u6a21\u578b\u56fd\u4ea7\u5316\u9002\u914d7-\u534e\u4e3a\u6607\u817eLLM\u843d\u5730\u53ef\u9009\u89e3\u51b3\u65b9\u6848\uff08MindFormers\u3001ModelLink\u3001MindIE\uff09<\/a><\/li><li><a href=\"https:\/\/www.zhihu.com\/question\/654472145\/answer\/3482521709\">MindIE 1.0.RC1 \u53d1\u5e03\uff0c\u534e\u4e3a\u6607\u817e\u7ec8\u4e8e\u63a8\u51fa\u4e86\u9488\u5bf9LLM\u7684\u5b8c\u6574\u90e8\u7f72\u65b9\u6848\uff0c\u7ed3\u675f\u5c0f\u7c73\u52a0\u6b65\u67aa\u65f6\u4ee3<\/a><\/li><li><a href=\"https:\/\/juejin.cn\/post\/7365879319598727180\">\u5927\u6a21\u578b\u56fd\u4ea7\u5316\u9002\u914d8-\u57fa\u4e8e\u6607\u817eMindIE\u63a8\u7406\u5de5\u5177\u90e8\u7f72Qwen-72B\u5b9e\u6218\uff08\u63a8\u7406\u5f15\u64ce\u3001\u63a8\u7406\u670d\u52a1\u5316\uff09<\/a><ul><li>Qwen-72B\u3001Baichuan2-7B\u3001ChatGLM3-6B<\/li><\/ul><\/li><li><a href=\"https:\/\/juejin.cn\/post\/7370925923455713320\">\u5927\u6a21\u578b\u56fd\u4ea7\u5316\u9002\u914d9-LLM\u63a8\u7406\u6846\u67b6MindIE-Service\u6027\u80fd\u57fa\u51c6\u6d4b\u8bd5<\/a><\/li><li><a href=\"https:\/\/juejin.cn\/post\/7375351908896866323\">\u5927\u6a21\u578b\u56fd\u4ea7\u5316\u9002\u914d10-\u5feb\u901f\u8fc1\u79fb\u5927\u6a21\u578b\u5230\u6607\u817e910B\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff08Pytorch\u7248\uff09<\/a><\/li><li><a href=\"https:\/\/juejin.cn\/post\/7380995631790964772\">\u5927\u6a21\u578b\u56fd\u4ea7\u5316\u9002\u914d11-LLM\u8bad\u7ec3\u6027\u80fd\u57fa\u51c6\u6d4b\u8bd5\uff08\u6607\u817e910B3\uff09<\/a><\/li><\/ul>\n\n\n\n<p><strong><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E7%9B%AE%E5%BD%95\">\u2b06 \u4e00\u952e\u8fd4\u56de\u76ee\u5f55<\/a><\/strong><\/p>\n\n\n\n<h2><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/tree\/main\/ai-compiler\">AI\u7f16\u8bd1\u5668<\/a><\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#ai%E7%BC%96%E8%AF%91%E5%99%A8\"><\/a><\/p>\n\n\n\n<p>AI\u7f16\u8bd1\u5668\u662f\u6307\u5c06\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u4ece\u5f00\u53d1\u9636\u6bb5\uff0c\u901a\u8fc7\u53d8\u6362\u548c\u4f18\u5316\u7b97\u6cd5\uff0c\u4f7f\u5176\u53d8\u6210\u90e8\u7f72\u72b6\u6001\u3002<\/p>\n\n\n\n<ul><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/669347560\">AI\u7f16\u8bd1\u5668\u6280\u672f\u5256\u6790\uff08\u4e00\uff09-\u6982\u8ff0<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/671477784\">AI\u7f16\u8bd1\u5668\u6280\u672f\u5256\u6790\uff08\u4e8c\uff09-\u4f20\u7edf\u7f16\u8bd1\u5668<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/676723324\">AI\u7f16\u8bd1\u5668\u6280\u672f\u5256\u6790\uff08\u4e09\uff09-\u6811\u6a21\u578b\u7f16\u8bd1\u5de5\u5177 Treelite \u8be6\u89e3<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\">AI\u7f16\u8bd1\u5668\u6280\u672f\u5256\u6790\uff08\u56db\uff09-\u7f16\u8bd1\u5668\u524d\u7aef<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\">AI\u7f16\u8bd1\u5668\u6280\u672f\u5256\u6790\uff08\u4e94\uff09-\u7f16\u8bd1\u5668\u540e\u7aef<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\">AI\u7f16\u8bd1\u5668\u6280\u672f\u5256\u6790\uff08\u516d\uff09-\u4e3b\u6d41\u7f16\u8bd1\u6846\u67b6<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\">AI\u7f16\u8bd1\u5668\u6280\u672f\u5256\u6790\uff08\u4e03\uff09-\u6df1\u5ea6\u5b66\u4e60\u6a21\u578b\u7f16\u8bd1\u4f18\u5316<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/672584013\">lleaves\uff1a\u4f7f\u7528 LLVM \u7f16\u8bd1\u68af\u5ea6\u63d0\u5347\u51b3\u7b56\u6811\u5c06\u9884\u6d4b\u901f\u5ea6\u63d0\u534710+\u500d<\/a><\/li><\/ul>\n\n\n\n<p>\u6846\u67b6\uff1a<\/p>\n\n\n\n<ul><li>MLIR<\/li><li>XLA<\/li><li>TVM<\/li><\/ul>\n\n\n\n<h2>AI\u57fa\u7840\u8bbe\u65bd<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#ai%E5%9F%BA%E7%A1%80%E8%AE%BE%E6%96%BD\"><\/a><\/p>\n\n\n\n<ul><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/672098336\">AI \u96c6\u7fa4\u57fa\u7840\u8bbe\u65bd NVMe SSD \u8be6\u89e3<\/a><\/li><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/673903240\">AI \u96c6\u7fa4\u57fa\u7840\u8bbe\u65bd InfiniBand \u8be6\u89e3<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\">\u5927\u6a21\u578b\u8bad\u7ec3\u57fa\u7840\u8bbe\u65bd\uff1a\u7b97\u529b\u7bc7<\/a><\/li><\/ul>\n\n\n\n<h3>AI\u52a0\u901f\u5361<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#ai%E5%8A%A0%E9%80%9F%E5%8D%A1\"><\/a><\/p>\n\n\n\n<ul><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/667686665\">AI\u82af\u7247\u6280\u672f\u539f\u7406\u5256\u6790\uff08\u4e00\uff09\uff1a\u56fd\u5185\u5916AI\u82af\u7247\u6982\u8ff0<\/a><\/li><li>AI\u82af\u7247\u6280\u672f\u539f\u7406\u5256\u6790\uff08\u4e8c\uff09\uff1a\u82f1\u4f1f\u8fbeGPU<\/li><li>AI\u82af\u7247\u6280\u672f\u539f\u7406\u5256\u6790\uff08\u4e09\uff09\uff1a\u8c37\u6b4cTPU<\/li><\/ul>\n\n\n\n<h3>AI\u96c6\u7fa4<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#ai%E9%9B%86%E7%BE%A4\"><\/a><\/p>\n\n\n\n<p>\u5f85\u66f4\u65b0&#8230;<\/p>\n\n\n\n<h3><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/tree\/main\/docs\/llm-base\/network-communication\">AI\u96c6\u7fa4\u7f51\u7edc\u901a\u4fe1<\/a><\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#ai%E9%9B%86%E7%BE%A4%E7%BD%91%E7%BB%9C%E9%80%9A%E4%BF%A1\"><\/a><\/p>\n\n\n\n<p>\u5f85\u66f4\u65b0&#8230;<\/p>\n\n\n\n<ul><li>\u5206\u5e03\u5f0f\u8bad\u7ec3\u7f51\u7edc\u901a\u8baf\u539f\u8bed<\/li><li>AI \u96c6\u7fa4\u901a\u4fe1\u8f6f\u786c\u4ef6<\/li><\/ul>\n\n\n\n<h2>LLMOps<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llmops\"><\/a><\/p>\n\n\n\n<ul><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/676389726\">\u5728 Kubernetes \u4e0a\u90e8\u7f72\u673a\u5668\u5b66\u4e60\u6a21\u578b\u7684\u6307\u5357<\/a><\/li><li><a href=\"https:\/\/juejin.cn\/post\/7320513026188099619\">\u4f7f\u7528 Kubernetes \u90e8\u7f72\u673a\u5668\u5b66\u4e60\u6a21\u578b\u7684\u4f18\u52bf<\/a><\/li><\/ul>\n\n\n\n<h2>LLM\u751f\u6001\u76f8\u5173\u6280\u672f<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E7%94%9F%E6%80%81%E7%9B%B8%E5%85%B3%E6%8A%80%E6%9C%AF\"><\/a><\/p>\n\n\n\n<ul><li><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/630696264\">\u5927\u6a21\u578b\u8bcd\u8868\u6269\u5145\u5fc5\u5907\u5de5\u5177SentencePiece<\/a><\/li><li><a href=\"https:\/\/www.zhihu.com\/question\/601594836\/answer\/3032763174\">\u5927\u6a21\u578b\u5b9e\u8df5\u603b\u7ed3<\/a><\/li><li><a href=\"https:\/\/www.zhihu.com\/question\/604393963\/answer\/3061358152\">ChatGLM \u548c ChatGPT \u7684\u6280\u672f\u533a\u522b\u5728\u54ea\u91cc\uff1f<\/a><\/li><li><a href=\"https:\/\/www.zhihu.com\/question\/602504880\/answer\/3041965998\">\u73b0\u5728\u4e3a\u4ec0\u4e48\u90a3\u4e48\u591a\u4eba\u4ee5\u6e05\u534e\u5927\u5b66\u7684ChatGLM-6B\u4e3a\u57fa\u5ea7\u8fdb\u884c\u8bd5\u9a8c\uff1f<\/a><\/li><li><a href=\"https:\/\/www.zhihu.com\/question\/616600181\/answer\/3195333332\">\u4e3a\u4ec0\u4e48\u5f88\u591a\u65b0\u53d1\u5e03\u7684\u5927\u6a21\u578b\u9ed8\u8ba4\u4f7f\u7528BF16\u800c\u4e0d\u662fFP16\uff1f<\/a><\/li><li><a href=\"https:\/\/www.zhihu.com\/question\/652836990\/answer\/3468210626\">\u5927\u6a21\u578b\u8bad\u7ec3\u65f6ZeRO-2\u3001ZeRO-3\u80fd\u5426\u548cPipeline\u5e76\u884c\u76f8\u7ed3\u5408\uff1f<\/a><\/li><\/ul>\n\n\n\n<h2><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/llm-interview\/README.md\">LLM\u9762\u8bd5\u9898<\/a><\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#llm%E9%9D%A2%E8%AF%95%E9%A2%98\"><\/a><\/p>\n\n\n\n<p>\u6b63\u5728\u6536\u96c6\u4e2d&#8230;<\/p>\n\n\n\n<ul><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/llm-interview\/base.md\">\u5927\u6a21\u578b\u57fa\u7840\u5e38\u89c1\u9762\u8bd5\u9898<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/llm-interview\/llm-algo.md\">\u5927\u6a21\u578b\u7b97\u6cd5\u5e38\u89c1\u9762\u8bd5\u9898<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/llm-interview\/llm-train.md\">\u5927\u6a21\u578b\u8bad\u7ec3\u5e38\u89c1\u9762\u8bd5\u9898<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/llm-interview\/llm-ft.md\">\u5927\u6a21\u578b\u5fae\u8c03\u5e38\u89c1\u9762\u8bd5\u9898<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/llm-interview\/llm-eval.md\">\u5927\u6a21\u578b\u8bc4\u4f30\u5e38\u89c1\u9762\u8bd5\u9898<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/llm-interview\/llm-compress.md\">\u5927\u6a21\u578b\u538b\u7f29\u5e38\u89c1\u9762\u8bd5\u9898<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/llm-interview\/llm-inference.md\">\u5927\u6a21\u578b\u63a8\u7406\u5e38\u89c1\u9762\u8bd5\u9898<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/llm-interview\/llm-app.md\">\u5927\u6a21\u578b\u5e94\u7528\u5e38\u89c1\u9762\u8bd5\u9898<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/llm-interview\/comprehensive.md\">\u5927\u6a21\u578b\u7efc\u5408\u6027\u9762\u8bd5\u9898<\/a><\/li><\/ul>\n\n\n\n<p><strong><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E7%9B%AE%E5%BD%95\">\u2b06 \u4e00\u952e\u8fd4\u56de\u76ee\u5f55<\/a><\/strong><\/p>\n\n\n\n<h2>\u670d\u52a1\u5668\u57fa\u7840\u73af\u5883\u5b89\u88c5\u53ca\u5e38\u7528\u5de5\u5177<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-ov-file#%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%9F%BA%E7%A1%80%E7%8E%AF%E5%A2%83%E5%AE%89%E8%A3%85%E5%8F%8A%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7\"><\/a><\/p>\n\n\n\n<p>\u57fa\u7840\u73af\u5883\u5b89\u88c5\uff1a<\/p>\n\n\n\n<ul><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/docs\/llm-base\/a800-env-install.md\">\u82f1\u4f1f\u8fbeA800\u52a0\u901f\u5361\u5e38\u89c1\u8f6f\u4ef6\u5305\u5b89\u88c5\u547d\u4ee4<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/docs\/llm-base\/h800-env-install.md\">\u82f1\u4f1f\u8fbeH800\u52a0\u901f\u5361\u5e38\u89c1\u8f6f\u4ef6\u5305\u5b89\u88c5\u547d\u4ee4<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/llm_localization\/ascend910-env-install.md\">\u6607\u817e910\u52a0\u901f\u5361\u5e38\u89c1\u8f6f\u4ef6\u5305\u5b89\u88c5\u547d\u4ee4<\/a><\/li><\/ul>\n\n\n\n<p>\u5e38\u7528\u5de5\u5177\uff1a<\/p>\n\n\n\n<ul><li><a href=\"https:\/\/juejin.cn\/post\/6992742028605915150\">Linux \u5e38\u89c1\u547d\u4ee4\u5927\u5168<\/a><\/li><li><a href=\"https:\/\/juejin.cn\/post\/7089093437223338015\">Conda \u5e38\u7528\u547d\u4ee4\u5927\u5168<\/a><\/li><li><a href=\"https:\/\/juejin.cn\/post\/6999405667261874183\">Poetry \u5e38\u7528\u547d\u4ee4\u5927\u5168<\/a><\/li><li><a href=\"https:\/\/juejin.cn\/post\/7016238524286861325\">Docker \u5e38\u7528\u547d\u4ee4\u5927\u5168<\/a><\/li><li><a href=\"https:\/\/juejin.cn\/post\/7016595442062327844\">Docker Dockerfile \u6307\u4ee4\u5927\u5168<\/a><\/li><li><a href=\"https:\/\/juejin.cn\/post\/7031201391553019911\">Kubernetes \u5e38\u7528\u547d\u4ee4\u5927\u5168<\/a><\/li><li><a href=\"https:\/\/github.com\/liguodongiot\/llm-action\/blob\/main\/docs\/llm-base\/dcgmi.md\">\u96c6\u7fa4\u73af\u5883 GPU \u7ba1\u7406\u548c\u76d1\u63a7\u5de5\u5177 DCGM \u5e38\u7528\u547d\u4ee4\u5927\u5168<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/github.com\/liguodongiot\/llm-action?tab=readme-o &hellip; <a href=\"http:\/\/139.9.1.231\/index.php\/2024\/07\/17\/llm-action\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u5927\u6a21\u578b\u7cfb\u5217\u6559\u7a0b<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21,4,38],"tags":[],"_links":{"self":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/16235"}],"collection":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/comments?post=16235"}],"version-history":[{"count":1,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/16235\/revisions"}],"predecessor-version":[{"id":16236,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/16235\/revisions\/16236"}],"wp:attachment":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/media?parent=16235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/categories?post=16235"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/tags?post=16235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}