{"id":5301,"date":"2023-04-02T16:46:56","date_gmt":"2023-04-02T08:46:56","guid":{"rendered":"http:\/\/www.menglanglang.cn\/?p=5301"},"modified":"2023-04-02T17:21:41","modified_gmt":"2023-04-02T09:21:41","slug":"chatgpt-%e6%9c%ac%e5%9c%b0%e9%83%a8%e7%bd%b2%e5%8f%8a%e6%90%ad%e5%bb%ba","status":"publish","type":"post","link":"http:\/\/www.menglanglang.cn\/?p=5301","title":{"rendered":"ChatGPT \u672c\u5730\u90e8\u7f72\u53ca\u642d\u5efa"},"content":{"rendered":"\n<p>\u200b<\/p>\n\n\n\n<p>\u8fd9\u7bc7\u7b80\u8981\u8bf4\u4e0b\u6e05\u534e\u5f00\u6e90\u9879\u76ee ChatGLM \u672c\u5730\u90e8\u7f72\u7684\u8be6\u7ec6\u6559\u7a0b\u3002\u6e05\u534e\u5f00\u6e90\u9879\u76ee ChatGLM-6B \u5df2\u53d1\u5e03\u5f00\u6e90\u7248\u672c\uff0c\u8fd9\u4e00\u9879\u76ee\u53ef\u4ee5\u76f4\u63a5\u90e8\u7f72\u5728\u672c\u5730\u8ba1\u7b97\u673a\u4e0a\u505a\u6d4b\u8bd5\uff0c\u65e0\u9700\u8054\u7f51\u5373\u53ef\u4f53\u9a8c\u4e0e AI \u804a\u5929\u7684\u4e50\u8da3\u3002<\/p>\n\n\n\n<p>\u9879\u76ee\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/THUDM\/ChatGLM-6B\">GitHub - THUDM\/ChatGLM-6B: ChatGLM-6B\uff1a\u5f00\u6e90\u53cc\u8bed\u5bf9\u8bdd\u8bed\u8a00\u6a21\u578b | An Open Bilingual Dialogue Language Model<\/a><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>\u5b98\u7f51\u4ecb\u7ecd\uff1a<\/strong><\/p>\n\n\n\n<p>ChatGLM-6B \u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u3001\u652f\u6301\u4e2d\u82f1\u53cc\u8bed\u7684\u5bf9\u8bdd\u8bed\u8a00\u6a21\u578b\uff0c\u57fa\u4e8e&nbsp;<a href=\"https:\/\/github.com\/THUDM\/GLM\">General Language Model (GLM)<\/a>&nbsp;\u67b6\u6784\uff0c\u5177\u6709 62 \u4ebf\u53c2\u6570\u3002\u7ed3\u5408\u6a21\u578b\u91cf\u5316\u6280\u672f\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u6d88\u8d39\u7ea7\u7684\u663e\u5361\u4e0a\u8fdb\u884c\u672c\u5730\u90e8\u7f72\uff08INT4 \u91cf\u5316\u7ea7\u522b\u4e0b\u6700\u4f4e\u53ea\u9700 6GB \u663e\u5b58\uff09\u3002 ChatGLM-6B \u4f7f\u7528\u4e86\u548c ChatGPT \u76f8\u4f3c\u7684\u6280\u672f\uff0c\u9488\u5bf9\u4e2d\u6587\u95ee\u7b54\u548c\u5bf9\u8bdd\u8fdb\u884c\u4e86\u4f18\u5316\u3002\u7ecf\u8fc7\u7ea6 1T \u6807\u8bc6\u7b26\u7684\u4e2d\u82f1\u53cc\u8bed\u8bad\u7ec3\uff0c\u8f85\u4ee5\u76d1\u7763\u5fae\u8c03\u3001\u53cd\u9988\u81ea\u52a9\u3001\u4eba\u7c7b\u53cd\u9988\u5f3a\u5316\u5b66\u4e60\u7b49\u6280\u672f\u7684\u52a0\u6301\uff0c62 \u4ebf\u53c2\u6570\u7684 ChatGLM-6B \u5df2\u7ecf\u80fd\u751f\u6210\u76f8\u5f53\u7b26\u5408\u4eba\u7c7b\u504f\u597d\u7684\u56de\u7b54\uff0c\u66f4\u591a\u4fe1\u606f\u8bf7\u53c2\u8003\u6211\u4eec\u7684<a href=\"https:\/\/chatglm.cn\/blog\">\u535a\u5ba2<\/a>\u3002<\/p>\n\n\n\n<p>\u4e3a\u4e86\u65b9\u4fbf\u4e0b\u6e38\u5f00\u53d1\u8005\u9488\u5bf9\u81ea\u5df1\u7684\u5e94\u7528\u573a\u666f\u5b9a\u5236\u6a21\u578b\uff0c\u6211\u4eec\u540c\u65f6\u5b9e\u73b0\u4e86\u57fa\u4e8e&nbsp;<a href=\"https:\/\/github.com\/THUDM\/P-tuning-v2\">P-Tuning v2<\/a>&nbsp;\u7684\u9ad8\u6548\u53c2\u6570\u5fae\u8c03\u65b9\u6cd5&nbsp;<a href=\"https:\/\/github.com\/THUDM\/ChatGLM-6B\/blob\/main\/ptuning\/README.md\">(\u4f7f\u7528\u6307\u5357)<\/a>&nbsp;\uff0cINT4 \u91cf\u5316\u7ea7\u522b\u4e0b\u6700\u4f4e\u53ea\u9700 7GB \u663e\u5b58\u5373\u53ef\u542f\u52a8\u5fae\u8c03\u3002<\/p>\n\n\n\n<p>\u4e0d\u8fc7\uff0c\u7531\u4e8e ChatGLM-6B \u7684\u89c4\u6a21\u8f83\u5c0f\uff0c\u76ee\u524d\u5df2\u77e5\u5176\u5177\u6709\u76f8\u5f53\u591a\u7684<a href=\"https:\/\/github.com\/THUDM\/ChatGLM-6B#%E5%B1%80%E9%99%90%E6%80%A7\">\u5c40\u9650\u6027<\/a>\uff0c\u5982\u4e8b\u5b9e\u6027\/\u6570\u5b66\u903b\u8f91\u9519\u8bef\uff0c\u53ef\u80fd\u751f\u6210\u6709\u5bb3\/\u6709\u504f\u89c1\u5185\u5bb9\uff0c\u8f83\u5f31\u7684\u4e0a\u4e0b\u6587\u80fd\u529b\uff0c\u81ea\u6211\u8ba4\u77e5\u6df7\u4e71\uff0c\u4ee5\u53ca\u5bf9\u82f1\u6587\u6307\u793a\u751f\u6210\u4e0e\u4e2d\u6587\u6307\u793a\u5b8c\u5168\u77db\u76fe\u7684\u5185\u5bb9\u3002\u8bf7\u5927\u5bb6\u5728\u4f7f\u7528\u524d\u4e86\u89e3\u8fd9\u4e9b\u95ee\u9898\uff0c\u4ee5\u514d\u4ea7\u751f\u8bef\u89e3\u3002\u66f4\u5927\u7684\u57fa\u4e8e 1300 \u4ebf\u53c2\u6570&nbsp;<a href=\"https:\/\/github.com\/THUDM\/GLM-130B\">GLM-130B<\/a>&nbsp;\u7684 ChatGLM \u6b63\u5728\u5185\u6d4b\u5f00\u53d1\u4e2d\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u4e00\u6b65\uff0c\u672c\u5730\u5b89\u88c5 Python<\/h3>\n\n\n\n<p>\u8fd9\u4e00\u6b65\u6682\u7565\uff0c\u53ef\u4ee5\u81ea\u884c\u4e0b\u8f7d\u5b89\u88c5 Python \u73af\u5883\u3002<\/p>\n\n\n\n<p>Python \u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/www.python.org\/downloads\/\">Download Python | Python.org<\/a><\/p>\n\n\n\n<p><strong>\u6ce8\u610f\uff1a\u5b89\u88c5 &gt;9 \u4ee5\u4e0a\u7248\u672c\uff0c\u5efa\u8bae\u5b89\u88c5 10\u3002<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u4e8c\u6b65\uff0c\u4e0b\u8f7d\u9879\u76ee\u7a0b\u5e8f\u5305<\/h3>\n\n\n\n<p>\u5730\u5740\u89c1\u4e0a\u9762\u7684\u9879\u76ee\u5730\u5740\uff0c\u76f4\u63a5\u4e0b\u8f7d\u4e0b\u6765\u5e76\u89e3\u538b\u3002\u6211\u8fd9\u91cc\u89e3\u538b\u5230 E:\\chatGPT\\ \u4e0b\u3002<\/p>\n\n\n\n<p><img decoding=\"async\" style=\"\" src=\"\/\/images.weserv.nl\/?url=https:\/\/img-blog.csdnimg.cn\/5981343d3d0e4df9a0e03cd586e04aba.png\" alt=\"\"\/><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u4e09\u6b65\uff0c\u4e0b\u8f7d\u6a21\u578b\u5305&nbsp;chatglm<\/h3>\n\n\n\n<p>\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/huggingface.co\/THUDM\/chatglm-6b\/tree\/main\">https:\/\/huggingface.co\/THUDM\/chatglm-6b\/tree\/main<\/a><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>\u5b98\u7f51\u4ecb\u7ecd\uff1a<\/strong><\/p>\n\n\n\n<p>ChatGLM-6B \u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u3001\u652f\u6301\u4e2d\u82f1\u53cc\u8bed\u95ee\u7b54\u7684\u5bf9\u8bdd\u8bed\u8a00\u6a21\u578b\uff0c\u57fa\u4e8e&nbsp;<a href=\"https:\/\/github.com\/THUDM\/GLM\">General Language Model (GLM)<\/a>&nbsp;\u67b6\u6784\uff0c\u5177\u6709 62 \u4ebf\u53c2\u6570\u3002\u7ed3\u5408\u6a21\u578b\u91cf\u5316\u6280\u672f\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u6d88\u8d39\u7ea7\u7684\u663e\u5361\u4e0a\u8fdb\u884c\u672c\u5730\u90e8\u7f72\uff08INT4 \u91cf\u5316\u7ea7\u522b\u4e0b\u6700\u4f4e\u53ea\u9700 6GB \u663e\u5b58\uff09\u3002ChatGLM-6B \u4f7f\u7528\u4e86\u548c&nbsp;<a href=\"https:\/\/chatglm.cn\/\">ChatGLM<\/a>&nbsp;\u76f8\u540c\u7684\u6280\u672f\uff0c\u9488\u5bf9\u4e2d\u6587\u95ee\u7b54\u548c\u5bf9\u8bdd\u8fdb\u884c\u4e86\u4f18\u5316\u3002\u7ecf\u8fc7\u7ea6 1T \u6807\u8bc6\u7b26\u7684\u4e2d\u82f1\u53cc\u8bed\u8bad\u7ec3\uff0c\u8f85\u4ee5\u76d1\u7763\u5fae\u8c03\u3001\u53cd\u9988\u81ea\u52a9\u3001\u4eba\u7c7b\u53cd\u9988\u5f3a\u5316\u5b66\u4e60\u7b49\u6280\u672f\u7684\u52a0\u6301\uff0c62 \u4ebf\u53c2\u6570\u7684 ChatGLM-6B \u5df2\u7ecf\u80fd\u751f\u6210\u76f8\u5f53\u7b26\u5408\u4eba\u7c7b\u504f\u597d\u7684\u56de\u7b54\u3002<\/p>\n<\/blockquote>\n\n\n\n<p><strong>\u6ce8\u610f\uff1a\u4e0b\u8f7d\u540e\u653e\u5230\u7b2c\u4e8c\u6b65\u7a0b\u5e8f\u5305\u4e0b\uff0c\u81ea\u884c\u521b\u5efa\u76ee\u5f55&nbsp;chatglm-6b<\/strong>\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p><img decoding=\"async\" style=\"\" src=\"\/\/images.weserv.nl\/?url=https:\/\/img-blog.csdnimg.cn\/dad8f10bb7384d6da29a3ddf4e7e43b9.png\" alt=\"\"\/><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u56db\u6b65\uff0c\u4e0b\u8f7d\u4f9d\u8d56\u5305<\/h3>\n\n\n\n<p>Window + R \u5feb\u6377\u952e\u6253\u5f00\u8fd0\u884c\u7a97\u53e3\uff0c\u8f93\u5165 cmd \u6253\u5f00\u63a7\u5236\u53f0\u547d\u4ee4\u884c\uff0c\u8fdb\u5165\u5230\u7a0b\u5e8f\u76ee\u5f55\u4e0b\u3002<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" height=\"396\" width=\"607\" src=\"\/\/images.weserv.nl\/?url=https:\/\/img-blog.csdnimg.cn\/b84147a4b59a4e7199a108bc7f0674d8.png\" alt=\"\"\/><\/p>\n\n\n\n<p>\u5206\u522b\u6267\u884c\u5982\u4e0b\u4e24\u6761\u547d\u4ee4\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>pip install -r requirements.txt<\/p>\n\n\n\n<p>pip install gradio<\/p>\n<\/blockquote>\n\n\n\n<p><strong>\u6ce8\u610f\uff1a\u5982\u679c\u6267\u884c\u6709\u62a5\u9519\uff0c\u8bf7\u67e5\u9605\u6587\u7ae0\u672b\u5c3e\u7684\u9519\u8bef\u5904\u7406\u3002<\/strong><\/p>\n\n\n\n<p><img decoding=\"async\" style=\"\" src=\"\/\/images.weserv.nl\/?url=https:\/\/img-blog.csdnimg.cn\/292f8c2067df47a5876a737d311a81b9.png\" alt=\"\"\/>\u200b<\/p>\n\n\n\n<p>\u7b49\u5f85\u4f9d\u8d56\u5305\u4e0b\u8f7d\u6210\u529f\uff0c\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p><img decoding=\"async\" style=\"\" src=\"\/\/images.weserv.nl\/?url=https:\/\/img-blog.csdnimg.cn\/05f0654088a84c4eb73d9634f0c22cd0.png\" alt=\"\"\/>\u200b<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u4e94\u6b65\uff0c\u8fd0\u884c\u7f51\u9875\u7248 demo<\/h3>\n\n\n\n<p>\u6267\u884c\u5982\u4e0b\u547d\u4ee4\uff0c\u8fd0\u884c\u7f51\u9875\u7248\u672c\u7684 demo\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>python web_demo.py<\/p>\n<\/blockquote>\n\n\n\n<p>\u7a0b\u5e8f\u4f1a\u8fd0\u884c\u4e00\u4e2a Web Server\uff0c\u5e76\u8f93\u51fa\u5730\u5740\u3002\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u8f93\u51fa\u7684\u5730\u5740\u5373\u53ef\u4f7f\u7528\u3002\u6700\u65b0\u7248 Demo \u5b9e\u73b0\u4e86\u6253\u5b57\u673a\u6548\u679c\uff0c\u901f\u5ea6\u4f53\u9a8c\u5927\u5927\u63d0\u5347\u3002\u6ce8\u610f\uff0c\u7531\u4e8e\u56fd\u5185 Gradio \u7684\u7f51\u7edc\u8bbf\u95ee\u8f83\u4e3a\u7f13\u6162\uff0c\u542f\u7528&nbsp;<code>demo.queue().launch(share=True, inbrowser=True)<\/code>&nbsp;\u65f6\u6240\u6709\u7f51\u7edc\u4f1a\u7ecf\u8fc7 Gradio \u670d\u52a1\u5668\u8f6c\u53d1\uff0c\u5bfc\u81f4\u6253\u5b57\u673a\u4f53\u9a8c\u5927\u5e45\u4e0b\u964d\uff0c\u73b0\u5728\u9ed8\u8ba4\u542f\u52a8\u65b9\u5f0f\u5df2\u7ecf\u6539\u4e3a&nbsp;<code>share=False<\/code>\uff0c\u5982\u6709\u9700\u8981\u516c\u7f51\u8bbf\u95ee\u7684\u9700\u6c42\uff0c\u53ef\u4ee5\u91cd\u65b0\u4fee\u6539\u4e3a&nbsp;<code>share=True<\/code>&nbsp;\u542f\u52a8\u3002<\/p>\n\n\n\n<p>\u6267\u884c\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" height=\"188\" width=\"900\" src=\"\/\/images.weserv.nl\/?url=https:\/\/img-blog.csdnimg.cn\/b4940325d6f74990b7db36fa4f45ae21.png\" alt=\"\"\/>\u200b<\/p>\n\n\n\n<p><strong>\u6ce8\u610f\uff1a\u5982\u679c\u6267\u884c\u63d0\u793a\u4fe1\u606f\u548c\u4e0a\u56fe\u5bf9\u4e0d\u4e0a\uff0c\u8bf7\u67e5\u9605\u6587\u7ae0\u672b\u5c3e\u7684\u9519\u8bef\u5904\u7406\u3002<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u7b2c\u4e03\u6b65\uff0c\u6d4b\u8bd5\u7f51\u9875\u7248\u7a0b\u5e8f<\/strong><\/h3>\n\n\n\n<p>\u6d4f\u89c8\u5668\u6253\u5f00\u5730\u5740 \u5e76\u8bbf\u95ee\uff0c\u8f93\u5165\u95ee\u9898\uff0c\u53ef\u4ee5\u770b\u5230&nbsp;ChatGLM \u4f1a\u7ed9\u4e88\u56de\u590d\u3002<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" height=\"417\" width=\"900\" src=\"\/\/images.weserv.nl\/?url=https:\/\/img-blog.csdnimg.cn\/8a280841e9a541458b3fa518ff129c98.png\" alt=\"\"\/>\u200b<\/p>\n\n\n\n<p>Very Good\uff01\u67e5\u770b\u7535\u8111\u6027\u80fd\uff0c\u611f\u89c9 CPU \u548c\u5185\u5b58\u90fd\u8981\u7206\u6389\u4e86 ^ ^<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" height=\"707\" width=\"900\" src=\"\/\/images.weserv.nl\/?url=https:\/\/img-blog.csdnimg.cn\/aa5993f0de954b6e95437c1c816a2063.png\" alt=\"\"\/>\u200b<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" height=\"710\" width=\"900\" src=\"\/\/images.weserv.nl\/?url=https:\/\/img-blog.csdnimg.cn\/9f5d59322a2146c79dad33659e3a2f80.png\" alt=\"\"\/>\u200b<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u516b\u6b65\uff0c\u8fd0\u884c\u547d\u4ee4\u884c Demo<\/h3>\n\n\n\n<p>\u6267\u884c\u5982\u4e0b\u547d\u4ee4\uff0c\u8fd0\u884c\u547d\u4ee4\u884c\u7248\u672c\u7684 demo\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>python cli_demo.py<\/p>\n<\/blockquote>\n\n\n\n<p>\u7a0b\u5e8f\u4f1a\u5728\u547d\u4ee4\u884c\u4e2d\u8fdb\u884c\u4ea4\u4e92\u5f0f\u7684\u5bf9\u8bdd\uff0c\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u6307\u793a\u5e76\u56de\u8f66\u5373\u53ef\u751f\u6210\u56de\u590d\uff0c\u8f93\u5165&nbsp;<code>clear<\/code>&nbsp;\u53ef\u4ee5\u6e05\u7a7a\u5bf9\u8bdd\u5386\u53f2\uff0c\u8f93\u5165&nbsp;<code>stop<\/code>&nbsp;\u7ec8\u6b62\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" height=\"657\" width=\"879\" src=\"\/\/images.weserv.nl\/?url=https:\/\/img-blog.csdnimg.cn\/717ef18631b946b18ac72ab2f2358bd7.png\" alt=\"\"\/>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u9519\u8bef\u4e00\uff1a\u4e0b\u8f7d\u4f9d\u8d56\u5305\u8d85\u65f6<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>E:\\chatGPT\\ChatGLM-6B-main&gt;pip install -r requirements.txt\nCollecting protobuf&lt;3.20.1,&gt;=3.19.5\n&nbsp; Downloading protobuf-3.20.0-cp310-cp310-win_amd64.whl (903 kB)\n&nbsp; &nbsp; &nbsp;---------------------------------------- 903.8\/903.8 kB 4.0 kB\/s eta 0:00:00\nCollecting transformers==4.27.1\n&nbsp; Downloading transformers-4.27.1-py3-none-any.whl (6.7 MB)\n&nbsp; &nbsp; &nbsp;----------- ---------------------------- 2.0\/6.7 MB 5.4 kB\/s eta 0:14:29\nERROR: Exception:\nTraceback (most recent call last):\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_vendor\\urllib3\\response.py\", line 438, in _error_catcher\n&nbsp; &nbsp; yield\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_vendor\\urllib3\\response.py\", line 561, in read\n&nbsp; &nbsp; data = self._fp_read(amt) if not fp_closed else b\"\"\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_vendor\\urllib3\\response.py\", line 527, in _fp_read\n&nbsp; &nbsp; return self._fp.read(amt) if amt is not None else self._fp.read()\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_vendor\\cachecontrol\\filewrapper.py\", line 90, in read\n&nbsp; &nbsp; data = self.__fp.read(amt)\n&nbsp; File \"D:\\Python\\Python310\\lib\\http\\client.py\", line 465, in read\n&nbsp; &nbsp; s = self.fp.read(amt)\n&nbsp; File \"D:\\Python\\Python310\\lib\\socket.py\", line 705, in readinto\n&nbsp; &nbsp; return self._sock.recv_into(b)\n&nbsp; File \"D:\\Python\\Python310\\lib\\ssl.py\", line 1274, in recv_into\n&nbsp; &nbsp; return self.read(nbytes, buffer)\n&nbsp; File \"D:\\Python\\Python310\\lib\\ssl.py\", line 1130, in read\n&nbsp; &nbsp; return self._sslobj.read(len, buffer)\nTimeoutError: The read operation timed out\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\cli\\base_command.py\", line 160, in exc_logging_wrapper\n&nbsp; &nbsp; status = run_func(*args)\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\cli\\req_command.py\", line 247, in wrapper\n&nbsp; &nbsp; return func(self, options, args)\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\commands\\install.py\", line 419, in run\n&nbsp; &nbsp; requirement_set = resolver.resolve(\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\resolution\\resolvelib\\resolver.py\", line 92, in resolve\n&nbsp; &nbsp; result = self._result = resolver.resolve(\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_vendor\\resolvelib\\resolvers.py\", line 481, in resolve\n&nbsp; &nbsp; state = resolution.resolve(requirements, max_rounds=max_rounds)\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_vendor\\resolvelib\\resolvers.py\", line 348, in resolve\n&nbsp; &nbsp; self._add_to_criteria(self.state.criteria, r, parent=None)\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_vendor\\resolvelib\\resolvers.py\", line 172, in _add_to_criteria\n&nbsp; &nbsp; if not criterion.candidates:\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_vendor\\resolvelib\\structs.py\", line 151, in __bool__\n&nbsp; &nbsp; return bool(self._sequence)\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\resolution\\resolvelib\\found_candidates.py\", line 155, in __bool__\n&nbsp; &nbsp; return any(self)\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\resolution\\resolvelib\\found_candidates.py\", line 143, in &lt;genexpr&gt;\n&nbsp; &nbsp; return (c for c in iterator if id(c) not in self._incompatible_ids)\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\resolution\\resolvelib\\found_candidates.py\", line 47, in _iter_built\n&nbsp; &nbsp; candidate = func()\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\resolution\\resolvelib\\factory.py\", line 206, in _make_candidate_from_link\n&nbsp; &nbsp; self._link_candidate_cache&#91;link] = LinkCandidate(\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\resolution\\resolvelib\\candidates.py\", line 297, in __init__\n&nbsp; &nbsp; super().__init__(\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\resolution\\resolvelib\\candidates.py\", line 162, in __init__\n&nbsp; &nbsp; self.dist = self._prepare()\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\resolution\\resolvelib\\candidates.py\", line 231, in _prepare\n&nbsp; &nbsp; dist = self._prepare_distribution()\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\resolution\\resolvelib\\candidates.py\", line 308, in _prepare_distribution\n&nbsp; &nbsp; return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\operations\\prepare.py\", line 491, in prepare_linked_requirement\n&nbsp; &nbsp; return self._prepare_linked_requirement(req, parallel_builds)\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\operations\\prepare.py\", line 536, in _prepare_linked_requirement\n&nbsp; &nbsp; local_file = unpack_url(\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\operations\\prepare.py\", line 166, in unpack_url\n&nbsp; &nbsp; file = get_http_url(\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\operations\\prepare.py\", line 107, in get_http_url\n&nbsp; &nbsp; from_path, content_type = download(link, temp_dir.path)\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\network\\download.py\", line 147, in __call__\n&nbsp; &nbsp; for chunk in chunks:\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\cli\\progress_bars.py\", line 53, in _rich_progress_bar\n&nbsp; &nbsp; for chunk in iterable:\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_internal\\network\\utils.py\", line 63, in response_chunks\n&nbsp; &nbsp; for chunk in response.raw.stream(\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_vendor\\urllib3\\response.py\", line 622, in stream\n&nbsp; &nbsp; data = self.read(amt=amt, decode_content=decode_content)\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_vendor\\urllib3\\response.py\", line 560, in read\n&nbsp; &nbsp; with self._error_catcher():\n&nbsp; File \"D:\\Python\\Python310\\lib\\contextlib.py\", line 153, in __exit__\n&nbsp; &nbsp; self.gen.throw(typ, value, traceback)\n&nbsp; File \"D:\\Python\\Python310\\lib\\site-packages\\pip\\_vendor\\urllib3\\response.py\", line 443, in _error_catcher\n&nbsp; &nbsp; raise ReadTimeoutError(self._pool, None, \"Read timed out.\")\npip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.\n\nE:\\chatGPT\\ChatGLM-6B-main&gt;<\/code><\/pre>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230\u9519\u8bef\u4fe1\u606f\u63d0\u793a\u8d85\u65f6\uff0c\u5e94\u8be5\u662f\u7f51\u7edc\u95ee\u9898\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u5728\u547d\u4ee4\u4e2d\u52a0\u4e0a\u8d85\u65f6\u65f6\u95f4\u8bbe\u7f6e\u7684\u53c2\u6570\uff0c\u547d\u4ee4\u4fee\u6539\u540e\u5982\u4e0b\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>pip <strong>--default-timeout=1688<\/strong> install -r requirements.txt<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u95ee\u9898\u4e8c\uff1a\u53c8\u4e00\u6b21\u5b9e\u65f6\u4e0b\u8f7d\u6a21\u578b\u5305<\/h3>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" height=\"507\" width=\"900\" src=\"\/\/images.weserv.nl\/?url=https:\/\/img-blog.csdnimg.cn\/0a9111a9d8b14627b41e489b671b6221.png\" alt=\"\"\/>\u200b<\/p>\n\n\n\n<p>\u5f53\u8fd0\u884c\u7a0b\u5e8f\u65f6\uff0c\u5982\u679c\u63d0\u793a\u4fe1\u606f\u4e2d\u770b\u5230\u53c8\u4e00\u6b21\u4e0b\u8f7d\u6a21\u578b\u5305\uff0c\u800c\u6ca1\u6709\u4f7f\u7528\u7b2c\u4e09\u6b65\u63d0\u524d\u51c6\u5907\u7684\u6a21\u578b\u5305\u65f6\uff0c\u9700\u8981\u628a\u6a21\u578b\u5305\u590d\u5236\u5230\u7a0b\u5e8f\u8fd0\u884c\u65f6\u7684\u7f13\u5b58\u76ee\u5f55\u4e2d\uff0c\u7f13\u5b58\u8def\u5f84\u53ef\u80fd\u5982\u4e0b\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>C:\\Users\\\u7528\u6237\u76ee\u5f55\\.cache\\huggingface\\hub\\models--THUDM--chatglm-6b\\snapshots\\fb23542cfe773f89b72a6ff58c3a57895b664a23<\/p>\n<\/blockquote>\n\n\n\n<p>\u6a21\u578b\u5305\u62f7\u8d1d\u5230\u8be5\u76ee\u5f55\u540e\u518d\u6b21\u8fd0\u884c\u7a0b\u5e8f\u5373\u53ef\u3002<\/p>\n\n\n\n<p>Good Luck\uff01 \u200b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u200b \u8fd9\u7bc7\u7b80\u8981\u8bf4\u4e0b\u6e05\u534e\u5f00\u6e90\u9879\u76ee ChatGLM \u672c\u5730\u90e8\u7f72\u7684\u8be6\u7ec6\u6559\u7a0b\u3002\u6e05\u534e\u5f00\u6e90\u9879\u76ee ChatGLM-6B \u5df2\u53d1\u5e03\u5f00 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[907],"tags":[905,908,906,461,909],"class_list":["post-5301","post","type-post","status-publish","format-standard","hentry","category-ai","tag-ai","tag-chatglm","tag-chatgpt","tag-461","tag-909"],"_links":{"self":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts\/5301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5301"}],"version-history":[{"count":2,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts\/5301\/revisions"}],"predecessor-version":[{"id":5304,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts\/5301\/revisions\/5304"}],"wp:attachment":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5301"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}