{"id":3272,"date":"2024-08-23T09:59:57","date_gmt":"2024-08-23T09:59:57","guid":{"rendered":"https:\/\/howtogeek.blog\/zh\/?p=3272"},"modified":"2024-08-23T09:59:57","modified_gmt":"2024-08-23T09:59:57","slug":"what-is-ollama-and-how-to-use-it-on-windows-zh-tw","status":"publish","type":"post","link":"https:\/\/howtogeek.blog\/zh\/what-is-ollama-and-how-to-use-it-on-windows-zh-tw\/","title":{"rendered":"\u4ec0\u9ebc\u662f Ollama \u4ee5\u53ca\u5982\u4f55\u5728 Windows \u4e0a\u4f7f\u7528\u5b83"},"content":{"rendered":"<p>\u5982\u679c\u60a8\u60f3\u5728\u96fb\u8166\u4e0a\u57f7\u884c\u5927\u578b\u8a9e\u8a00\u6a21\u578b\u6216 LLM\uff0c\u6700\u7c21\u55ae\u7684\u65b9\u6cd5\u4e4b\u4e00\u5c31\u662f\u900f\u904e Ollama\u3002 Ollama \u662f\u4e00\u500b\u529f\u80fd\u5f37\u5927\u7684\u958b\u6e90\u5e73\u53f0\uff0c\u63d0\u4f9b\u53ef\u81ea\u8a02\u4e14\u6613\u65bc\u5b58\u53d6\u7684 AI \u9ad4\u9a57\u3002\u5b83\u53ef\u4ee5\u8f15\u9b06\u4e0b\u8f09\u3001\u5b89\u88dd\u5404\u7a2e\u6cd5\u5b78\u78a9\u58eb\u4e26\u8207\u4e4b\u4ea4\u4e92\uff0c\u7121\u9700\u4f9d\u8cf4\u57fa\u65bc\u96f2\u7aef\u7684\u5e73\u53f0\u6216\u9700\u8981\u4efb\u4f55\u6280\u8853\u5c08\u696d\u77e5\u8b58\u3002<\/p>\n<p>\u9664\u4e86\u4e0a\u8ff0\u512a\u9ede\u4e4b\u5916\uff0cOllama \u76f8\u7576\u8f15\u91cf\u7d1a\u4e14\u5b9a\u671f\u66f4\u65b0\uff0c\u9019\u4f7f\u5f97\u5b83\u975e\u5e38\u9069\u5408\u5728\u672c\u6a5f\u4e0a\u5efa\u7f6e\u548c\u7ba1\u7406 LLM\u3002\u56e0\u6b64\uff0c\u60a8\u4e0d\u9700\u8981\u4efb\u4f55\u5916\u90e8\u4f3a\u670d\u5668\u6216\u8907\u96dc\u7684\u914d\u7f6e\u3002 Ollama \u9084\u652f\u63f4\u591a\u7a2e\u4f5c\u696d\u7cfb\u7d71\uff0c\u5305\u62ec Windows\u3001Linux \u548c macOS\uff0c\u4ee5\u53ca\u5404\u7a2e Docker \u74b0\u5883\u3002<\/p>\n<h2 id=\"downloading-and-installing-ollama\">\u4e0b\u8f09\u4e26\u5b89\u88dd Ollama<\/h2>\n<ul>\n<li>\u9996\u5148\uff0c\u9020\u8a2a Ollama \u4e0b\u8f09\u9801\u9762\u4e26\u9078\u64c7\u60a8\u7684\u4f5c\u696d\u7cfb\u7d71\uff0c\u7136\u5f8c\u6309\u4e00\u4e0b\u300c\u4e0b\u8f09\u300d\u6309\u9215\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"466\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/08\/2024-08-22-14-56-32-1.webp\" title=\"\" width=\"829\"\/><\/figure>\n<ul>\n<li>\u4e0b\u8f09\u5b8c\u6210\u5f8c\uff0c\u6253\u958b\u5b83\u4e26\u5c07\u5176\u5b89\u88dd\u5230\u60a8\u7684\u96fb\u8166\u4e0a\u3002\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u5b89\u88dd\u7a0b\u5f0f\u5c07\u81ea\u52d5\u95dc\u9589\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"506\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/08\/2024-08-22-15-01-54-1.webp\" title=\"\" width=\"899\"\/><\/figure>\n<ul>\n<li>\u5728 Windows \u4e0a\uff0c\u60a8\u53ef\u4ee5\u900f\u904e\u9ede\u64ca\u5de5\u4f5c\u5217\u6ea2\u4f4d\u6309\u9215\u4f86\u67e5\u770b\u96b1\u85cf\u5716\u793a\u4f86\u6aa2\u67e5 Ollama \u662f\u5426\u6b63\u5728\u57f7\u884c\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"453\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/08\/2024-08-22-15-12-41-1.webp\" title=\"\" width=\"805\"\/><\/figure>\n<h2 id=\"customizing-and-using-ollama\">\u5ba2\u88fd\u5316\u548c\u4f7f\u7528Ollama<\/h2>\n<p>\u4e00\u65e6 Ollama \u5b89\u88dd\u5728\u60a8\u7684\u96fb\u8166\u4e0a\uff0c\u60a8\u61c9\u8a72\u505a\u7684\u7b2c\u4e00\u4ef6\u4e8b\u5c31\u662f\u66f4\u6539\u5b83\u5132\u5b58\u8cc7\u6599\u7684\u4f4d\u7f6e\u3002\u9810\u8a2d\u60c5\u6cc1\u4e0b\uff0c\u5132\u5b58\u4f4d\u7f6e\u662f<code>C:\\Users\\%username%\\.ollama\\models<\/code>\uff0c\u4f46\u7531\u65bc AI \u6a21\u578b\u53ef\u80fd\u975e\u5e38\u5927\uff0c\u56e0\u6b64\u60a8\u7684 C \u789f\u5f88\u5feb\u5c31\u6703\u88ab\u586b\u6eff\u3002\u70ba\u6b64\uff0c<\/p>\n<ul>\n<li>\u9996\u5148\uff0c\u6309\u4e00\u4e0b\u5de5\u4f5c\u5217\u4e2d\u7684 Ollama \u5716\u6a19\uff0c\u7136\u5f8c\u6309\u4e00\u4e0b\u300c\u9000\u51fa Ollama\u300d\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"448\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/08\/2024-08-22-15-32-00-1.webp\" title=\"\" width=\"797\"\/><\/figure>\n<ul>\n<li>Ollama \u9000\u51fa\u5f8c\uff0c\u958b\u555f\u300c\u958b\u59cb\u300d\u529f\u80fd\u8868\uff0c\u9375\u5165<code>environment variables<\/code>\u4e26\u6309\u4e00\u4e0b\u300c\u7de8\u8f2f\u7cfb\u7d71\u74b0\u5883\u8b8a\u6578\u300d\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"591\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/08\/2024-08-22-15-37-24-1.webp\" title=\"\" width=\"1050\"\/><\/figure>\n<ul>\n<li>\u7576\u300c\u7cfb\u7d71\u8b8a\u6578\u300d\u5c0d\u8a71\u65b9\u584a\u958b\u555f\u6642\uff0c\u6309\u4e00\u4e0b\u300c\u9032\u968e\u300d\u6a19\u7c64\u4e0a\u7684\u300c\u74b0\u5883\u8b8a\u6578\u300d\u6309\u9215\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"556\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/08\/2024-08-22-15-44-31-1.webp\" title=\"\" width=\"988\"\/><\/figure>\n<ul>\n<li>\u6309\u4e00\u4e0b\u60a8\u7684\u4f7f\u7528\u8005\u5e33\u6236\u7684\u300c\u65b0\u5efa\u300d\u6309\u9215\uff0c\u7136\u5f8c\u5efa\u7acb\u4e00\u500b<code>OLLAMA_MODELS<\/code>\u5728\u300c\u8b8a\u6578\u540d\u7a31\u300d\u6b04\u4f4d\u4e2d\u547d\u540d\u7684\u8b8a\u6578\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"545\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/08\/2024-08-22-15-48-26-1-1.webp\" title=\"\" width=\"968\"\/><\/figure>\n<ul>\n<li>\u7136\u5f8c\u5728\u300c\u8b8a\u6578\u503c\u300d\u6b04\u4f4d\u4e2d\u8f38\u200b\u200b\u5165\u60a8\u5e0c\u671b Ollama \u5132\u5b58\u5176\u6a21\u578b\u7684\u76ee\u9304\u4f4d\u7f6e\u3002\u7136\u5f8c\u6309\u4e00\u4e0b\u300c\u78ba\u5b9a\u300d\u6309\u9215\uff0c\u7136\u5f8c\u5f9e\u300c\u958b\u59cb\u300d\u529f\u80fd\u8868\u555f\u52d5 Ollama\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"565\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/08\/2024-08-22-16-03-07-1.webp\" title=\"\" width=\"1005\"\/><\/figure>\n<ul>\n<li>\u73fe\u5728\u60a8\u5df2\u6e96\u5099\u597d\u958b\u59cb\u4f7f\u7528 Ollama\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 Meta \u7684 Llama 3 8B\uff08\u8a72\u516c\u53f8\u6700\u65b0\u7684\u958b\u6e90 AI \u6a21\u578b\uff09\u4f86\u5b8c\u6210\u6b64\u64cd\u4f5c\u3002\u82e5\u8981\u57f7\u884c\u6a21\u578b\uff0c\u8acb\u5f9e\u300c\u958b\u59cb\u300d\u529f\u80fd\u8868\u555f\u52d5\u547d\u4ee4\u63d0\u793a\u5b57\u5143\u3001Powershell \u6216 Windows \u7d42\u7aef\u6a5f\u8996\u7a97\u3002<\/li>\n<li>\u547d\u4ee4\u63d0\u793a\u5b57\u5143\u8996\u7a97\u958b\u555f\u5f8c\uff0c\u9375\u5165<code>ollama run llama3<\/code>\u4e26\u6309 Enter\u3002\u8a72\u578b\u865f\u63a5\u8fd15 GB\uff0c\u56e0\u6b64\u4e0b\u8f09\u9700\u8981\u6642\u9593\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"516\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/08\/2024-08-22-16-26-25-1.webp\" title=\"\" width=\"917\"\/><\/figure>\n<ul>\n<li>\u4e0b\u8f09\u5b8c\u6210\u5f8c\uff0c\u60a8\u5c31\u53ef\u4ee5\u958b\u59cb\u4f7f\u7528 Llama 3 8B \u4e26\u76f4\u63a5\u5728\u547d\u4ee4\u5217\u8996\u7a97\u4e2d\u8207\u4e4b\u5c0d\u8a71\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u8a62\u554f\u6a21\u578b<code>Who are you?<\/code>\u4e26\u6309 Enter \u4ee5\u7372\u5f97\u7b54\u6848\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"579\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/08\/2024-08-22-16-33-17-1.webp\" title=\"\" width=\"1030\"\/><\/figure>\n<ul>\n<li>\u73fe\u5728\uff0c\u60a8\u53ef\u4ee5\u7e7c\u7e8c\u5c0d\u8a71\u4e26\u5411 AI \u6a21\u578b\u8a62\u554f\u5404\u7a2e\u4e3b\u984c\u7684\u554f\u984c\u3002\u8acb\u8a18\u4f4f\uff0cLlama 3 \u53ef\u80fd\u6703\u72af\u932f\u4e26\u7522\u751f\u5e7b\u89ba\uff0c\u56e0\u6b64\u4f7f\u7528\u6642\u61c9\u5c0f\u5fc3\u3002<\/li>\n<li>\u60a8\u4e5f\u53ef\u4ee5\u9020\u8a2a Ollama \u6a21\u578b\u5eab\u9801\u9762\u4f86\u5617\u8a66\u5176\u4ed6\u6a21\u578b\u3002\u6b64\u5916\uff0c\u60a8\u53ef\u4ee5\u57f7\u884c\u5404\u7a2e\u547d\u4ee4\u4f86\u5617\u8a66 Ollama \u63d0\u4f9b\u7684\u4e0d\u540c\u529f\u80fd\u3002<\/li>\n<li>\u60a8\u4e5f\u53ef\u4ee5\u5728\u57f7\u884c\u6a21\u578b\u6642\u57f7\u884c\u5404\u7a2e\u64cd\u4f5c\uff0c\u4f8b\u5982\u8a2d\u5b9a\u6703\u8a71\u8b8a\u6578\u3001\u986f\u793a\u6a21\u578b\u8cc7\u8a0a\u3001\u5132\u5b58\u6703\u8a71\u7b49\u3002<\/li>\n<li>Ollama \u9084\u5141\u8a31\u60a8\u5229\u7528\u591a\u6a21\u5f0f AI \u6a21\u578b\u4f86\u8b58\u5225\u5f71\u50cf\u3002\u4f8b\u5982\uff0cLLava \u6a21\u578b\u53ef\u4ee5\u8fa8\u8b58 DALLE-3 \u7522\u751f\u7684\u5f71\u50cf\u3002\u5b83\u53ef\u4ee5\u8a73\u7d30\u5730\u63cf\u8ff0\u5716\u50cf\u3002<\/li>\n<li>\u5982\u679c\u60a8\u5728\u57f7\u884c Ollama \u6642\u9047\u5230\u932f\u8aa4\uff0c\u60a8\u53ef\u4ee5\u6aa2\u67e5\u65e5\u8a8c\u4ee5\u627e\u51fa\u554f\u984c\u6240\u5728\u3002\u4f7f\u7528<code>Win + R<\/code>\u6377\u5f91\u958b\u555f\u300c\u57f7\u884c\u300d\u5c0d\u8a71\u6846\uff0c\u7136\u5f8c<code>explorer %LOCALAPPDATA%\\\\Ollama # View logs<\/code>\u5728\u6309 Enter \u9375\u4e4b\u524d\u5728\u5176\u4e2d\u9375\u5165\u5167\u5bb9\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"473\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/08\/2024-08-23-09-59-46-1.webp\" title=\"\" width=\"840\"\/><\/figure>\n<ul>\n<li>\u60a8\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u547d\u4ee4\uff08\u4f8b\u5982<code>explorer %LOCALAPPDATA%\\\\Programs\\\\Ollama<\/code>\u548c \uff09<code>explorer %HOMEPATH%\\\\.ollama<\/code>\u4f86\u6aa2\u67e5\u4e8c\u9032\u4f4d\u6a94\u6848\u3001\u6a21\u578b\u548c\u914d\u7f6e\u5132\u5b58\u4f4d\u7f6e\u3002<\/li>\n<\/ul>\n<h3 id=\"things-to-know\">\u8981\u77e5\u9053\u7684\u4e8b\u60c5<\/h3>\n<ul>\n<li>Ollama \u6703\u81ea\u52d5\u5075\u6e2c\u60a8\u7684 GPU \u4f86\u57f7\u884c AI \u6a21\u578b\uff0c\u4f46\u5728\u5177\u6709\u591a\u500b GPU \u7684\u6a5f\u5668\u4e2d\uff0c\u5b83\u53ef\u80fd\u6703\u9078\u64c7\u932f\u8aa4\u7684 GPU\u3002\u70ba\u4e86\u907f\u514d\u9019\u7a2e\u60c5\u6cc1\uff0c\u8acb\u958b\u555f Nvidia \u63a7\u5236\u9762\u677f\u4e26\u5c07\u986f\u793a\u8a2d\u70ba\u300c\u50c5\u9650 Nvidia GPU\u300d\u3002<\/li>\n<li>\u986f\u793a\u6a21\u5f0f\u53ef\u80fd\u4e26\u975e\u5728\u6bcf\u53f0\u96fb\u8166\u4e0a\u90fd\u53ef\u4f7f\u7528\uff0c\u4e14\u7576\u60a8\u5c07\u96fb\u8166\u9023\u63a5\u5230\u5916\u90e8\u986f\u793a\u5668\u6642\u4e5f\u4e0d\u5b58\u5728\u3002<\/li>\n<li>\u5728 Windows \u4e0a\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5de5\u4f5c\u7ba1\u7406\u54e1\u6aa2\u67e5 Ollama \u662f\u5426\u4f7f\u7528\u6b63\u78ba\u7684 GPU\uff0c\u5de5\u4f5c\u7ba1\u7406\u54e1\u5c07\u986f\u793a GPU \u4f7f\u7528\u60c5\u6cc1\u4e26\u8b93\u60a8\u77e5\u9053\u6b63\u5728\u4f7f\u7528\u54ea\u4e00\u500b\u3002<\/li>\n<li>\u96d6\u7136\u5728 macOS \u548c Linux \u4e0a\u5b89\u88dd Ollama \u8207 Windows \u6709\u9ede\u4e0d\u540c\uff0c\u4f46\u900f\u904e\u5b83\u904b\u884c LLM \u7684\u904e\u7a0b\u975e\u5e38\u76f8\u4f3c\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u679c\u60a8\u60f3\u5728\u96fb\u8166\u4e0a\u57f7\u884c\u5927\u578b\u8a9e\u8a00\u6a21\u578b\u6216 LLM\uff0c\u6700\u7c21\u55ae\u7684\u65b9\u6cd5\u4e4b\u4e00\u5c31\u662f\u900f\u904e Ollama\u3002 Ollama \u662f\u4e00\u500b\u529f\u80fd\u5f37\u5927\u7684\u958b\u6e90\u5e73\u53f0\uff0c\u63d0\u4f9b\u53ef\u81ea\u8a02\u4e14\u6613\u65bc\u5b58\u53d6\u7684 AI \u9ad4\u9a57\u3002\u5b83\u53ef\u4ee5\u8f15\u9b06\u4e0b\u8f09\u3001\u5b89\u88dd\u5404\u7a2e\u6cd5\u5b78\u78a9\u58eb\u4e26\u8207\u4e4b\u4ea4\u4e92\uff0c\u7121\u9700\u4f9d\u8cf4\u57fa\u65bc\u96f2\u7aef\u7684\u5e73\u53f0\u6216\u9700\u8981\u4efb\u4f55\u6280\u8853\u5c08\u696d\u77e5\u8b58\u3002 \u9664\u4e86\u4e0a\u8ff0\u512a\u9ede\u4e4b\u5916\uff0cOllama \u76f8\u7576\u8f15\u91cf\u7d1a\u4e14\u5b9a\u671f\u66f4\u65b0\uff0c\u9019\u4f7f\u5f97\u5b83\u975e\u5e38\u9069\u5408\u5728\u672c\u6a5f\u4e0a\u5efa\u7f6e\u548c\u7ba1\u7406 LLM\u3002\u56e0\u6b64\uff0c\u60a8\u4e0d\u9700\u8981\u4efb\u4f55\u5916\u90e8\u4f3a\u670d\u5668\u6216\u8907\u96dc\u7684\u914d\u7f6e\u3002 Ollama \u9084\u652f\u63f4\u591a\u7a2e\u4f5c\u696d\u7cfb\u7d71\uff0c\u5305\u62ec Windows\u3001Linux \u548c macOS\uff0c\u4ee5\u53ca\u5404\u7a2e Docker \u74b0\u5883\u3002 \u4e0b\u8f09\u4e26\u5b89\u88dd Ollama \u9996\u5148\uff0c\u9020\u8a2a Ollama \u4e0b\u8f09\u9801\u9762\u4e26\u9078\u64c7\u60a8\u7684\u4f5c\u696d\u7cfb\u7d71\uff0c\u7136\u5f8c\u6309\u4e00\u4e0b\u300c\u4e0b\u8f09\u300d\u6309\u9215\u3002 \u4e0b\u8f09\u5b8c\u6210\u5f8c\uff0c\u6253\u958b\u5b83\u4e26\u5c07\u5176\u5b89\u88dd\u5230\u60a8\u7684\u96fb\u8166\u4e0a\u3002\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u5b89\u88dd\u7a0b\u5f0f\u5c07\u81ea\u52d5\u95dc\u9589\u3002 \u5728 Windows \u4e0a\uff0c\u60a8\u53ef\u4ee5\u900f\u904e\u9ede\u64ca\u5de5\u4f5c\u5217\u6ea2\u4f4d\u6309\u9215\u4f86\u67e5\u770b\u96b1\u85cf\u5716\u793a\u4f86\u6aa2\u67e5 Ollama \u662f\u5426\u6b63\u5728\u57f7\u884c\u3002 \u5ba2\u88fd\u5316\u548c\u4f7f\u7528Ollama \u4e00\u65e6 Ollama \u5b89\u88dd\u5728\u60a8\u7684\u96fb\u8166\u4e0a\uff0c\u60a8\u61c9\u8a72\u505a\u7684\u7b2c\u4e00\u4ef6\u4e8b\u5c31\u662f\u66f4\u6539\u5b83\u5132\u5b58\u8cc7\u6599\u7684\u4f4d\u7f6e\u3002\u9810\u8a2d\u60c5\u6cc1\u4e0b\uff0c\u5132\u5b58\u4f4d\u7f6e\u662fC:\\Users\\%username%\\.ollama\\models\uff0c\u4f46\u7531\u65bc AI \u6a21\u578b\u53ef\u80fd\u975e\u5e38\u5927\uff0c\u56e0\u6b64\u60a8\u7684 C \u789f\u5f88\u5feb\u5c31\u6703\u88ab\u586b\u6eff\u3002\u70ba\u6b64\uff0c \u9996\u5148\uff0c\u6309\u4e00\u4e0b\u5de5\u4f5c\u5217\u4e2d\u7684 Ollama \u5716\u6a19\uff0c\u7136\u5f8c\u6309\u4e00\u4e0b\u300c\u9000\u51fa Ollama\u300d\u3002 Ollama \u9000\u51fa\u5f8c\uff0c\u958b\u555f\u300c\u958b\u59cb\u300d\u529f\u80fd\u8868\uff0c\u9375\u5165environment variables\u4e26\u6309\u4e00\u4e0b\u300c\u7de8\u8f2f\u7cfb\u7d71\u74b0\u5883\u8b8a\u6578\u300d\u3002 \u7576\u300c\u7cfb\u7d71\u8b8a\u6578\u300d\u5c0d\u8a71\u65b9\u584a\u958b\u555f\u6642\uff0c\u6309\u4e00\u4e0b\u300c\u9032\u968e\u300d\u6a19\u7c64\u4e0a\u7684\u300c\u74b0\u5883\u8b8a\u6578\u300d\u6309\u9215\u3002 \u6309\u4e00\u4e0b\u60a8\u7684\u4f7f\u7528\u8005\u5e33\u6236\u7684\u300c\u65b0\u5efa\u300d\u6309\u9215\uff0c\u7136\u5f8c\u5efa\u7acb\u4e00\u500bOLLAMA_MODELS\u5728\u300c\u8b8a\u6578\u540d\u7a31\u300d\u6b04\u4f4d\u4e2d\u547d\u540d\u7684\u8b8a\u6578\u3002 \u7136\u5f8c\u5728\u300c\u8b8a\u6578\u503c\u300d\u6b04\u4f4d\u4e2d\u8f38\u200b\u200b\u5165\u60a8\u5e0c\u671b Ollama \u5132\u5b58\u5176\u6a21\u578b\u7684\u76ee\u9304\u4f4d\u7f6e\u3002\u7136\u5f8c\u6309\u4e00\u4e0b\u300c\u78ba\u5b9a\u300d\u6309\u9215\uff0c\u7136\u5f8c\u5f9e\u300c\u958b\u59cb\u300d\u529f\u80fd\u8868\u555f\u52d5 Ollama\u3002 \u73fe\u5728\u60a8\u5df2\u6e96\u5099\u597d\u958b\u59cb\u4f7f\u7528 Ollama\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 Meta \u7684 Llama 3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[181,129],"class_list":["post-3272","post","type-post","status-publish","format-standard","hentry","category-how-to","tag-artificial-intelligence","tag-microsoft"],"acf":[],"_links":{"self":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/3272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/comments?post=3272"}],"version-history":[{"count":1,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/3272\/revisions"}],"predecessor-version":[{"id":3273,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/3272\/revisions\/3273"}],"wp:attachment":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/media?parent=3272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/categories?post=3272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/tags?post=3272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}