{"id":87437,"date":"2026-07-30T10:24:27","date_gmt":"2026-07-30T02:24:27","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/87437.html"},"modified":"2026-07-30T10:24:27","modified_gmt":"2026-07-30T02:24:27","slug":"ai%e5%a4%a7%e6%a8%a1%e5%9e%8b%e5%ad%a6%e4%b9%a0%e5%88%86%e4%ba%ab%e7%ac%ac%e4%b8%80%e5%a4%a9","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/87437.html","title":{"rendered":"AI\u5927\u6a21\u578b\u5b66\u4e60\u5206\u4eab\u7b2c\u4e00\u5929"},"content":{"rendered":"<h2>Ollama \u672c\u5730\u79c1\u6709\u5316\u5927\u6a21\u578b\u5feb\u901f\u4e0a\u624b\u5b8c\u6574\u6559\u7a0b&#xff08;\u4ece\u73af\u5883\u51c6\u5907\u5230\u547d\u4ee4\u5b9e\u64cd&#xff09;<\/h2>\n<h3>\u4e00\u3001\u524d\u8a00<\/h3>\n<p>\u5f53\u4e0b\u5927\u6a21\u578b\u5e94\u7528\u666e\u53ca&#xff0c;\u4f46\u76f4\u63a5\u4f7f\u7528\u516c\u6709\u5728\u7ebf\u5927\u6a21\u578b\u5b58\u5728\u4f01\u4e1a\u6570\u636e\u6cc4\u9732\u3001\u9690\u79c1\u5b89\u5168\u7b49\u81f4\u547d\u95ee\u9898&#xff08;\u5982\u4e09\u661f\u5458\u5de5\u4f7f\u7528 ChatGPT \u6cc4\u9732\u5185\u90e8\u8d44\u6599\u4e8b\u4ef6&#xff09;&#xff0c;\u79c1\u6709\u5316\u672c\u5730\u90e8\u7f72\u5927\u6a21\u578b\u6210\u4e3a\u4f01\u4e1a\u3001\u5f00\u53d1\u8005\u521a\u9700\u3002Ollama \u4f5c\u4e3a\u5f00\u6e90\u8f7b\u91cf\u5316\u672c\u5730 LLM \u8fd0\u884c\u5de5\u5177&#xff0c;\u8de8\u5e73\u53f0\u3001\u96f6\u590d\u6742\u4f9d\u8d56\u3001\u547d\u4ee4\u884c\u6613\u64cd\u4f5c&#xff0c;\u662f\u65b0\u624b\u672c\u5730\u8dd1\u5927\u6a21\u578b\u3001\u5f00\u53d1\u804a\u5929\u673a\u5668\u4eba\u7684\u9996\u9009\u65b9\u6848\u3002\u672c\u6587\u7ed3\u5408\u8bfe\u7a0b\u5b9e\u64cd\u5185\u5bb9&#xff0c;\u5b8c\u6574\u68b3\u7406\u73af\u5883\u914d\u7f6e\u3001\u5927\u6a21\u578b\u57fa\u7840\u3001Ollama \u5b89\u88c5\u3001\u5168\u5957\u547d\u4ee4\u3001\u5bf9\u8bdd\u4ea4\u4e92\u6307\u4ee4\u5168\u6d41\u7a0b\u3002<\/p>\n<h3>\u4e8c\u3001\u524d\u671f\u7edf\u4e00\u5f00\u53d1\u73af\u5883\u5de5\u5177\u914d\u7f6e<\/h3>\n<h4>1. \u5fc5\u5907\u5de5\u5177\u6e05\u5355 &amp; \u7528\u9014<\/h4>\n<p>\u6240\u6709\u8f6f\u4ef6\u7981\u6b62\u5b89\u88c5\u81f3 C \u76d8&#xff0c;\u5b89\u88c5\u8def\u5f84\u65e0\u4e2d\u6587\u3001\u65e0\u7a7a\u683c&#xff0c;\u5982\u9700\u66f4\u6362\u8def\u5f84\u5fc5\u987b\u5378\u8f7d\u91cd\u88c5\u3002<\/p>\n<p>\u8868\u683c<\/p>\n<table>\n<tr>\u5de5\u5177\u4f5c\u7528<\/tr>\n<tbody>\n<tr>\n<td>Typora\/Notepad&#043;&#043;<\/td>\n<td>Markdown \u7b14\u8bb0\u3001\u4ee3\u7801\u6587\u672c\u7f16\u8f91&#xff0c;\u8bfe\u7a0b\u6587\u6863\u8bb0\u5f55<\/td>\n<\/tr>\n<tr>\n<td>Xmind<\/td>\n<td>\u601d\u7ef4\u5bfc\u56fe\u68b3\u7406\u8bfe\u7a0b\u77e5\u8bc6\u70b9<\/td>\n<\/tr>\n<tr>\n<td>Snipaste<\/td>\n<td>\u622a\u56fe\u5de5\u5177&#xff0c;F1 \u5feb\u901f\u622a\u56fe<\/td>\n<\/tr>\n<tr>\n<td>Everything<\/td>\n<td>\u672c\u5730\u6587\u4ef6\u5168\u5c40\u5feb\u901f\u641c\u7d22<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>2. Typora \u57fa\u7840\u8bed\u6cd5<\/h4>\n<p>markdown<\/p>\n<p># \u4e00\u7ea7\u6807\u9898&#xff08;Ctrl&#043;1&#xff09;<br \/>\n## \u4e8c\u7ea7\u6807\u9898&#xff08;Ctrl&#043;2&#xff09;<br \/>\n* \u65e0\u5e8f\u5217\u8868<br \/>\n&gt; \u5f15\u7528\u533a\u5757<br \/>\n&#096;&#096;&#096;\u4ee3\u7801\u5757&#096;&#096;&#096;<\/p>\n<h3>\u4e09\u3001\u804a\u5929\u673a\u5668\u4eba\u9879\u76ee\u6574\u4f53\u4ecb\u7ecd<\/h3>\n<h4>1. \u804a\u5929\u673a\u5668\u4eba\u5b9a\u4e49<\/h4>\n<p>\u4f9d\u6258 NLP \u81ea\u7136\u8bed\u8a00\u5904\u7406\u6280\u672f&#xff0c;\u652f\u6301\u6587\u672c \/ \u8bed\u97f3\u4eba\u673a\u5bf9\u8bdd&#xff0c;\u5177\u5907\u7406\u89e3\u610f\u56fe\u3001\u591a\u8f6e\u4e0a\u4e0b\u6587\u3001\u4efb\u52a1\u6267\u884c\u80fd\u529b\u3002<\/p>\n<h5>\u6838\u5fc3\u7279\u70b9<\/h5>\n<li>\u81ea\u7136\u8bed\u8a00\u7406\u89e3&#xff1a;\u63d0\u53d6\u7528\u6237\u610f\u56fe\u3001\u5173\u952e\u8bcd&#xff1b;<\/li>\n<li>\u5bf9\u8bdd\u7ba1\u7406&#xff1a;\u7ef4\u6301\u591a\u8f6e\u4e0a\u4e0b\u6587\u8fde\u8d2f&#xff1b;<\/li>\n<li>\u4e2a\u6027\u5316\u4ea4\u4e92&#xff1a;\u6839\u636e\u5386\u53f2\u8bb0\u5f55\u5b9a\u5236\u56de\u590d&#xff1b;<\/li>\n<li>\u591a\u529f\u80fd&#xff1a;\u5ba2\u670d\u3001\u6559\u80b2\u3001\u667a\u80fd\u5bb6\u5c45\u3001\u5065\u5eb7\u54a8\u8be2\u7b49\u3002<\/li>\n<h5>\u4e3b\u6d41\u5927\u6a21\u578b\u52a9\u624b<\/h5>\n<p>DeepSeek\u3001Kimi\u3001\u901a\u4e49\u5343\u95ee\u3001\u8baf\u98de\u661f\u706b\u3001\u8c46\u5305&#xff0c;\u5404\u6709\u573a\u666f\u4fa7\u91cd&#xff1a;\u957f\u6587\u672c\u3001\u8bed\u97f3\u3001\u5185\u5bb9\u521b\u4f5c\u3001\u4ee3\u7801\u7b49\u3002<\/p>\n<h4>2. \u672c\u8bfe\u7a0b\u9879\u76ee\u9700\u6c42\u4e0e\u67b6\u6784<\/h4>\n<h5>\u529f\u80fd\u9700\u6c42<\/h5>\n<li>\u5bf9\u8bdd&#xff1a;\u4e2d\u82f1\u6587\u4ea4\u4e92\u3001\u5b9e\u65f6\u56de\u590d\u5ef6\u8fdf\u22643s&#xff1b;<\/li>\n<li>\u754c\u9762&#xff1a;Streamlit \u642d\u5efa Web \u524d\u7aef&#xff0c;\u8f93\u5165\u6846 &#043; \u5bf9\u8bdd\u5c55\u793a\u533a&#xff1b;<\/li>\n<h5>\u6574\u4f53\u67b6\u6784<\/h5>\n<ul>\n<li>\u540e\u7aef&#xff1a;Ollama \u90e8\u7f72 Qwen \u7cfb\u5217\u5f00\u6e90\u5927\u6a21\u578b&#xff0c;\u8d1f\u8d23\u63a8\u7406\u751f\u6210&#xff1b;<\/li>\n<li>\u524d\u7aef&#xff1a;Python Streamlit \u5feb\u901f\u6784\u5efa\u53ef\u89c6\u5316\u7f51\u9875&#xff1b;<\/li>\n<li>\u4ea4\u4e92\u94fe\u8def&#xff1a;\u7528\u6237\u8f93\u5165\u2192\u524d\u7aef\u4f20\u9012\u81f3 Ollama \u6a21\u578b\u2192\u63a8\u7406\u8fd4\u56de\u7ed3\u679c\u9875\u9762\u6e32\u67d3\u3002<\/li>\n<\/ul>\n<h3>\u56db\u3001\u5927\u6a21\u578b\u6838\u5fc3\u57fa\u7840\u6982\u5ff5<\/h3>\n<h4>1. \u5927\u6a21\u578b\u56db\u5927\u5206\u7c7b<\/h4>\n<li>NLP \u6587\u672c\u5927\u6a21\u578b&#xff1a;\u5904\u7406\u6587\u672c\u751f\u6210\u3001\u7ffb\u8bd1\u3001\u95ee\u7b54&#xff1b;\u4ee3\u8868&#xff1a;GPT\u3001BERT\u3001Qwen<\/li>\n<li>CV \u89c6\u89c9\u5927\u6a21\u578b&#xff1a;\u56fe\u50cf\u8bc6\u522b\u3001\u7ed8\u56fe\u3001\u68c0\u6d4b&#xff1b;\u4ee3\u8868&#xff1a;Stable Diffusion\u3001ViT<\/li>\n<li>\u8bed\u97f3\u5927\u6a21\u578b&#xff1a;\u8bed\u97f3\u8bc6\u522b ASR\u3001\u8bed\u97f3\u5408\u6210 TTS&#xff1b;\u4ee3\u8868&#xff1a;Whisper\u3001\u8baf\u98de\u661f\u706b<\/li>\n<li>\u591a\u6a21\u6001\u5927\u6a21\u578b&#xff1a;\u540c\u65f6\u5904\u7406\u6587\u672c\u3001\u56fe\u7247\u3001\u97f3\u9891&#xff1b;\u4ee3\u8868&#xff1a;GPT-4\u3001BLIP<\/li>\n<h4>2. \u901a\u7528\u843d\u5730\u573a\u666f<\/h4>\n<p>\u667a\u80fd\u5ba2\u670d\u3001\u6587\u6848 \/ \u4ee3\u7801\u751f\u6210\u3001\u673a\u5668\u7ffb\u8bd1\u3001\u77e5\u8bc6\u5e93\u95ee\u7b54\u3001\u56fe\u50cf\u8bc6\u522b\u3001\u81ea\u52a8\u9a7e\u9a76\u89c6\u89c9\u68c0\u6d4b\u3002<\/p>\n<h3>\u4e94\u3001\u79c1\u6709\u5316\u90e8\u7f72\u5927\u6a21\u578b&#xff1a;\u4e3a\u4ec0\u4e48\u9009 Ollama<\/h3>\n<h4>1. \u79c1\u6709\u90e8\u7f72\u6838\u5fc3\u4ef7\u503c<\/h4>\n<li>\u6570\u636e\u5b89\u5168&#xff1a;\u654f\u611f\u4e1a\u52a1\u6570\u636e\u672c\u5730\u6d41\u8f6c&#xff0c;\u4e0d\u4e0a\u4f20\u7b2c\u4e09\u65b9\u4e91\u7aef&#xff0c;\u675c\u7edd\u6cc4\u5bc6&#xff1b;<\/li>\n<li>\u6210\u672c\u53ef\u63a7&#xff1a;\u65e0\u9700\u4e91\u7aef API \u8c03\u7528\u4ed8\u8d39&#xff0c;\u672c\u5730\u786c\u4ef6\u4e00\u6b21\u6027\u6295\u5165&#xff1b;<\/li>\n<li>\u5185\u7f51\u79bb\u7ebf\u53ef\u7528&#xff1a;\u65e0\u7f51\u7edc\u73af\u5883\u4e5f\u80fd\u8fd0\u884c\u6a21\u578b&#xff1b;<\/li>\n<li>\u53ef\u5b9a\u5236\u5316&#xff1a;\u81ea\u5b9a\u4e49\u63d0\u793a\u8bcd\u3001\u6a21\u578b\u53c2\u6570\u3001\u5fae\u8c03\u6a21\u578b\u3002<\/li>\n<h4>2. \u672c\u5730\u8fd0\u884c\u5de5\u5177\u5bf9\u6bd4&#xff1a;Ollama vs LM Studio<\/h4>\n<li>Ollama&#xff1a;\u5f00\u6e90\u3001\u547d\u4ee4\u884c\u53cb\u597d\u3001\u5b8c\u5584 API\u3001\u9002\u914d\u5f00\u53d1\u8005&#xff0c;\u8f7b\u91cf\u6613\u4e0a\u624b&#xff0c;\u8bfe\u7a0b\u4e3b\u63a8&#xff1b;<\/li>\n<li>LM Studio&#xff1a;\u95ed\u6e90\u3001\u53ef\u89c6\u5316\u754c\u9762\u5b8c\u5584&#xff0c;\u9002\u5408\u7eaf\u65b0\u624b&#xff0c;\u4f46\u751f\u6001\u4e0e\u5f00\u53d1\u517c\u5bb9\u6027\u5f31\u4e8e Ollama&#xff1b;<\/li>\n<li>\u751f\u4ea7\u591a\u5361\u9ad8\u5e76\u53d1\u573a\u666f&#xff1a;VLLM\u3001K8s \u96c6\u7fa4\u90e8\u7f72\u65b9\u6848\u3002<\/li>\n<h4>3. Ollama \u6838\u5fc3\u4f18\u52bf<\/h4>\n<li>\u4e00\u7ad9\u5f0f\u5c01\u88c5&#xff1a;\u6a21\u578b\u6743\u91cd\u3001\u914d\u7f6e\u3001GPU \u9002\u914d\u6574\u5408\u4e3a Modelfile&#xff1b;<\/li>\n<li>\u70ed\u5207\u6362\u6a21\u578b&#xff0c;\u65e0\u9700\u91cd\u542f\u670d\u52a1&#xff1b;<\/li>\n<li>\u6d77\u91cf\u5f00\u6e90\u6a21\u578b\u5e93&#xff08;Qwen\u3001DeepSeek\u3001Llama \u7cfb\u5217&#xff09;&#xff1b;<\/li>\n<li>Windows\/Mac\/Linux \u5168\u5e73\u53f0\u652f\u6301&#xff0c;CPU \/ \u663e\u5361\u5747\u53ef\u63a8\u7406&#xff1b;<\/li>\n<li>\u4f9d\u8d56\u6781\u7b80&#xff0c;\u4f4e\u914d\u7535\u8111\u4e5f\u80fd\u8fd0\u884c\u5c0f\u53c2\u6570\u91cf\u6a21\u578b\u3002<\/li>\n<h3>\u516d\u3001Ollama \u4e0b\u8f7d\u3001\u5b89\u88c5\u4e0e\u6a21\u578b\u8def\u5f84\u4fee\u6539<\/h3>\n<h4>1. \u5b98\u65b9\u4e0b\u8f7d\u5730\u5740<\/h4>\n<ul>\n<li>Windows&#xff1a;https:\/\/ollama.com\/download\/OllamaSetup.exe<\/li>\n<li>Mac&#xff1a;https:\/\/ollama.com\/download\/Ollama-darwin.zip<\/li>\n<li>Linux&#xff1a;https:\/\/ollama.com\/download\/ollama-linux-amd64 \u5b98\u65b9\u6a21\u578b\u5e93&#xff1a;https:\/\/ollama.com\/library<\/li>\n<\/ul>\n<h4>2. Windows \u5b89\u88c5\u6b65\u9aa4<\/h4>\n<li>\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u5b89\u88c5\u5305&#xff1b;<\/li>\n<li>\u81ea\u5b9a\u4e49\u975e C \u76d8\u8def\u5f84\u5b89\u88c5&#xff1b;<\/li>\n<li>CMD \u9a8c\u8bc1&#xff1a;ollama -v \u8f93\u51fa\u7248\u672c\u53f7\u5373\u6210\u529f&#xff1b;<\/li>\n<li>\u5feb\u901f\u62c9\u53d6\u8fd0\u884c\u6a21\u578b\u793a\u4f8b&#xff1a;<\/li>\n<p>shell<\/p>\n<p>ollama run qwen2:0.5b<br \/>\nollama run deepseek-r1:1.5b<\/p>\n<h4>3. \u9ed8\u8ba4\u6a21\u578b\u5b58\u50a8\u8def\u5f84 &amp; \u81ea\u5b9a\u4e49\u4fee\u6539<\/h4>\n<li>Windows \u9ed8\u8ba4\u8def\u5f84&#xff1a;C:\\\\Users\\\\\u7528\u6237\u540d\\\\.ollama\\\\models<\/li>\n<li>\u81ea\u5b9a\u4e49\u6a21\u578b\u5b58\u653e\u76ee\u5f55&#xff1a;\n<ul>\n<li>\u65b0\u5efa\u6587\u4ef6\u5939&#xff08;\u5982D:\\\\AI\\\\Models&#xff09;&#xff1b;<\/li>\n<li>\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u65b0\u589e OLLAMA_MODELS&#061;D:\\\\AI\\\\Models&#xff1b;<\/li>\n<li>\u91cd\u542f\u7535\u8111\u751f\u6548&#xff0c;\u540e\u7eed\u4e0b\u8f7d\u6a21\u578b\u81ea\u52a8\u5b58\u5165\u65b0\u76ee\u5f55\u3002<\/li>\n<\/ul>\n<\/li>\n<h3>\u4e03\u3001Ollama \u5168\u5c40\u5ba2\u6237\u7aef\u547d\u4ee4&#xff08;\u5fc5\u638c\u63e1&#xff09;<\/h3>\n<h4>1. ollama run \u8fd0\u884c\u6a21\u578b<\/h4>\n<p>\u683c\u5f0f&#xff1a;ollama run \u6a21\u578b\u540d:\u7248\u672c [\u63d0\u793a\u8bcd] [\u53c2\u6570]<\/p>\n<ul>\n<li>\u793a\u4f8b\u5355\u6b21\u5bf9\u8bdd&#xff1a;ollama run qwen2:0.5b &#034;\u4f60\u597d&#034;<\/li>\n<li>\u6301\u7eed\u5bf9\u8bdd&#xff1a;ollama run qwen2&#xff08;\u9ed8\u8ba4 latest \u6700\u65b0\u7248&#xff09; \u5e38\u7528\u53c2\u6570&#xff1a; &#8211;verbose&#xff1a;\u8f93\u51fa token \u8017\u65f6\u7edf\u8ba1&#xff1b;&#8211;format json&#xff1a;\u8fd4\u56de JSON \u683c\u5f0f\u7ed3\u679c&#xff1b;&#8211;keepalive \u8bbe\u7f6e\u5185\u5b58\u9a7b\u7559\u65f6\u95f4&#xff1b;Ctrl&#043;C \u5f3a\u5236\u7ec8\u6b62\u63a8\u7406\u3002<\/li>\n<\/ul>\n<h4>2. ollama pull \u62c9\u53d6\u6a21\u578b<\/h4>\n<p>\u4ec5\u4e0b\u8f7d\u4e0d\u542f\u52a8&#xff1a;ollama pull qwen2:0.5b &#8211;insecure \u53c2\u6570&#xff1a;\u5ffd\u7565\u8bc1\u4e66&#xff0c;\u5185\u7f51\u79bb\u7ebf\u4e0b\u8f7d\u4f7f\u7528\u3002<\/p>\n<h4>3. ollama list \/ ollama ls<\/h4>\n<p>\u67e5\u770b\u672c\u5730\u5df2\u4e0b\u8f7d\u5168\u90e8\u6a21\u578b&#xff0c;\u5c55\u793a\u540d\u79f0\u3001ID\u3001\u5927\u5c0f\u3001\u4fee\u6539\u65f6\u95f4\u3002<\/p>\n<h4>4. ollama ps<\/h4>\n<p>\u67e5\u770b\u5f53\u524d\u6b63\u5728\u5185\u5b58\u8fd0\u884c\u7684\u6a21\u578b&#xff0c;\u663e\u793a\u663e\u5b58 \/ CPU \u5360\u7528\u3001\u9a7b\u7559\u65f6\u957f\u3002<\/p>\n<h4>5. ollama show \u67e5\u770b\u6a21\u578b\u8be6\u60c5<\/h4>\n<p>shell<\/p>\n<p>ollama show qwen2:0.5b &#8211;template  # \u67e5\u770b\u5bf9\u8bdd\u63d0\u793a\u8bcd\u6a21\u677f<br \/>\nollama show qwen2:0.5b &#8211;parameters # \u67e5\u770b\u6a21\u578b\u5185\u7f6e\u53c2\u6570<br \/>\nollama show qwen2:0.5b &#8211;system # \u67e5\u770b\u9ed8\u8ba4\u7cfb\u7edf\u89d2\u8272<\/p>\n<h4>6. ollama rm \u5220\u9664\u672c\u5730\u6a21\u578b<\/h4>\n<p>ollama rm qwen2:0.5b \u6e05\u7406\u78c1\u76d8\u7a7a\u95f4\u3002<\/p>\n<h3>\u516b\u3001Ollama \u5bf9\u8bdd\u5185\u4ea4\u4e92\u6307\u4ee4&#xff08;\u8fdb\u5165 run \u5bf9\u8bdd\u540e\u4f7f\u7528&#xff09;<\/h3>\n<p>\u8f93\u5165\/?\u67e5\u770b\u5168\u90e8\u5bf9\u8bdd\u6307\u4ee4&#xff0c;\u6838\u5fc3\u5e38\u7528\u6307\u4ee4\u6c47\u603b&#xff1a;<\/p>\n<li>\/bye \/ Ctrl&#043;D&#xff1a;\u9000\u51fa\u5bf9\u8bdd\u4f1a\u8bdd&#xff1b;<\/li>\n<li>\/clear&#xff1a;\u6e05\u7a7a\u4e0a\u4e0b\u6587\u8bb0\u5fc6&#xff0c;\u5f00\u542f\u5168\u65b0\u5bf9\u8bdd&#xff1b;<\/li>\n<li>\/load \u6a21\u578b\u540d&#xff1a;\u4e0d\u9000\u51fa\u7ec8\u7aef&#xff0c;\u5728\u7ebf\u5207\u6362\u5927\u6a21\u578b&#xff1b;<\/li>\n<li>\/save \u65b0\u6a21\u578b\u540d&#xff1a;\u5c06\u5f53\u524d\u4f1a\u8bdd\u914d\u7f6e\u4fdd\u5b58\u4e3a\u81ea\u5b9a\u4e49\u6a21\u578b&#xff1b;<\/li>\n<li>&#034;&#034;&#034; \u591a\u884c\u5185\u5bb9 &#034;&#034;&#034;&#xff1a;\u591a\u884c\u6587\u672c\u8f93\u5165&#xff1b;<\/li>\n<li>\/set \u4f1a\u8bdd\u52a8\u6001\u53c2\u6570\u914d\u7f6e&#xff1a;\n<ul>\n<li>\/set format json&#xff1a;\u8f93\u51fa JSON \u7ed3\u6784\u5316\u6570\u636e&#xff1b;<\/li>\n<li>\/set verbose&#xff1a;\u5f00\u542f token \u8017\u65f6\u65e5\u5fd7&#xff1b;<\/li>\n<li>\/set temperature 0.7&#xff1a;\u8c03\u6574\u751f\u6210\u968f\u673a\u6027&#xff08;0 \u4e25\u8c28&#xff0c;1 \u521b\u610f&#xff09;&#xff1b;<\/li>\n<li>\/set num_ctx 4096&#xff1a;\u6269\u957f\u4e0a\u4e0b\u6587\u7a97\u53e3&#xff1b;<\/li>\n<li>\/set seed 42&#xff1a;\u56fa\u5b9a\u968f\u673a\u79cd\u5b50&#xff0c;\u4fdd\u8bc1\u76f8\u540c\u63d0\u95ee\u56de\u590d\u4e00\u81f4&#xff1b;<\/li>\n<\/ul>\n<\/li>\n<li>\/show&#xff1a;\u67e5\u770b\u5f53\u524d\u52a0\u8f7d\u6a21\u578b\u4fe1\u606f&#xff1b;<\/li>\n<li>\/? shortcuts&#xff1a;\u67e5\u770b\u7ec8\u7aef\u5168\u90e8\u5feb\u6377\u952e&#xff08;\u6e05\u5c4f\u3001\u5220\u9664\u3001\u8df3\u8f6c\u884c\u7b49&#xff09;\u3002<\/li>\n<h4>\u5173\u952e\u53c2\u6570\u8bf4\u660e<\/h4>\n<p>\u8868\u683c<\/p>\n<table>\n<tr>\u53c2\u6570\u4f5c\u7528<\/tr>\n<tbody>\n<tr>\n<td>temperature<\/td>\n<td>\u751f\u6210\u521b\u9020\u6027&#xff0c;\u8d8a\u9ad8\u56de\u7b54\u8d8a\u53d1\u6563<\/td>\n<\/tr>\n<tr>\n<td>top_k \/ top_p<\/td>\n<td>\u63a7\u5236\u8f93\u51fa\u591a\u6837\u6027&#xff0c;\u964d\u4f4e\u7ed3\u679c\u5e7b\u89c9<\/td>\n<\/tr>\n<tr>\n<td>num_ctx<\/td>\n<td>\u4e0a\u4e0b\u6587 token \u4e0a\u9650&#xff0c;\u957f\u6587\u6863\u95ee\u7b54\u8c03\u5927<\/td>\n<\/tr>\n<tr>\n<td>repeat_penalty<\/td>\n<td>\u6291\u5236\u6a21\u578b\u91cd\u590d\u8bdd\u672f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u4e5d\u3001\u603b\u7ed3<\/h3>\n<li>\u79c1\u6709\u5316\u672c\u5730\u5927\u6a21\u578b\u6838\u5fc3\u89e3\u51b3\u6570\u636e\u9690\u79c1\u5b89\u5168\u95ee\u9898&#xff0c;Ollama \u662f\u5165\u95e8\u6700\u4f18\u5de5\u5177&#xff1b;<\/li>\n<li>\u6574\u4f53\u5b66\u4e60\u8def\u7ebf&#xff1a;\u73af\u5883\u5de5\u5177\u5b89\u88c5 \u2192 \u5927\u6a21\u578b\u57fa\u7840\u8ba4\u77e5 \u2192 Ollama \u90e8\u7f72\u8fd0\u884c \u2192 \u547d\u4ee4\u884c\u7ba1\u7406\u6a21\u578b \u2192 Python&#043;Streamlit \u642d\u5efa\u53ef\u89c6\u5316\u804a\u5929\u673a\u5668\u4eba&#xff1b;<\/li>\n<li>\u5b9e\u64cd\u91cd\u70b9&#xff1a;\u719f\u7ec3\u638c\u63e1 pull\/run\/list\/rm\/ps \u5168\u5c40\u547d\u4ee4&#xff0c;\u5bf9\u8bdd\u5185\/clear\u3001\/load\u3001\/set\u53c2\u6570\u8c03\u4f18&#xff1b;<\/li>\n<li>\u62d3\u5c55\u65b9\u5411&#xff1a;\u57fa\u4e8e Ollama \u63d0\u4f9b\u7684 API&#xff0c;\u7ed3\u5408 Python \u5f00\u53d1\u4e13\u5c5e\u79bb\u7ebf\u804a\u5929\u673a\u5668\u4eba&#xff0c;\u5b9e\u73b0\u4f01\u4e1a\u5185\u90e8\u77e5\u8bc6\u5e93\u95ee\u7b54\u3001\u672c\u5730\u4ee3\u7801\u52a9\u624b\u7b49\u573a\u666f\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>Ollama \u672c\u5730\u79c1\u6709\u5316\u5927\u6a21\u578b\u5feb\u901f\u4e0a\u624b\u5b8c\u6574\u6559\u7a0b&#xff08;\u4ece\u73af\u5883\u51c6\u5907\u5230\u547d\u4ee4\u5b9e\u64cd&#xff09;<br \/>\n\u4e00\u3001\u524d\u8a00<br \/>\n\u5f53\u4e0b\u5927\u6a21\u578b\u5e94\u7528\u666e\u53ca&#xff0c;\u4f46\u76f4\u63a5\u4f7f\u7528\u516c\u6709\u5728\u7ebf\u5927\u6a21\u578b\u5b58\u5728\u4f01\u4e1a\u6570\u636e\u6cc4\u9732\u3001\u9690\u79c1\u5b89\u5168\u7b49\u81f4\u547d\u95ee\u9898&#xff08;\u5982\u4e09\u661f\u5458\u5de5\u4f7f\u7528 ChatGPT \u6cc4\u9732\u5185\u90e8\u8d44\u6599\u4e8b\u4ef6&#xff09;&#xff0c;\u79c1\u6709\u5316\u672c\u5730\u90e8\u7f72\u5927\u6a21\u578b\u6210\u4e3a\u4f01\u4e1a\u3001\u5f00\u53d1\u8005\u521a\u9700\u3002Ollama \u4f5c\u4e3a\u5f00\u6e90\u8f7b\u91cf\u5316\u672c\u5730 LLM \u8fd0\u884c\u5de5\u5177&#xff0c;\u8de8\u5e73\u53f0\u3001\u96f6\u590d\u6742\u4f9d\u8d56\u3001\u547d\u4ee4\u884c\u6613\u64cd\u4f5c&#xff0c;\u662f\u65b0\u624b\u672c\u5730\u8dd1\u5927\u6a21\u578b\u3001<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9098,50,371],"topic":[],"class_list":["post-87437","post","type-post","status-publish","format-standard","hentry","category-server","tag-it","tag-50","tag-371"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>AI\u5927\u6a21\u578b\u5b66\u4e60\u5206\u4eab\u7b2c\u4e00\u5929 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/87437.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AI\u5927\u6a21\u578b\u5b66\u4e60\u5206\u4eab\u7b2c\u4e00\u5929 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Ollama \u672c\u5730\u79c1\u6709\u5316\u5927\u6a21\u578b\u5feb\u901f\u4e0a\u624b\u5b8c\u6574\u6559\u7a0b&#xff08;\u4ece\u73af\u5883\u51c6\u5907\u5230\u547d\u4ee4\u5b9e\u64cd&#xff09; \u4e00\u3001\u524d\u8a00 \u5f53\u4e0b\u5927\u6a21\u578b\u5e94\u7528\u666e\u53ca&#xff0c;\u4f46\u76f4\u63a5\u4f7f\u7528\u516c\u6709\u5728\u7ebf\u5927\u6a21\u578b\u5b58\u5728\u4f01\u4e1a\u6570\u636e\u6cc4\u9732\u3001\u9690\u79c1\u5b89\u5168\u7b49\u81f4\u547d\u95ee\u9898&#xff08;\u5982\u4e09\u661f\u5458\u5de5\u4f7f\u7528 ChatGPT \u6cc4\u9732\u5185\u90e8\u8d44\u6599\u4e8b\u4ef6&#xff09;&#xff0c;\u79c1\u6709\u5316\u672c\u5730\u90e8\u7f72\u5927\u6a21\u578b\u6210\u4e3a\u4f01\u4e1a\u3001\u5f00\u53d1\u8005\u521a\u9700\u3002Ollama \u4f5c\u4e3a\u5f00\u6e90\u8f7b\u91cf\u5316\u672c\u5730 LLM \u8fd0\u884c\u5de5\u5177&#xff0c;\u8de8\u5e73\u53f0\u3001\u96f6\u590d\u6742\u4f9d\u8d56\u3001\u547d\u4ee4\u884c\u6613\u64cd\u4f5c&#xff0c;\u662f\u65b0\u624b\u672c\u5730\u8dd1\u5927\u6a21\u578b\u3001\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/87437.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-30T02:24:27+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/87437.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/87437.html\",\"name\":\"AI\u5927\u6a21\u578b\u5b66\u4e60\u5206\u4eab\u7b2c\u4e00\u5929 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-30T02:24:27+00:00\",\"dateModified\":\"2026-07-30T02:24:27+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/87437.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/87437.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/87437.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI\u5927\u6a21\u578b\u5b66\u4e60\u5206\u4eab\u7b2c\u4e00\u5929\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AI\u5927\u6a21\u578b\u5b66\u4e60\u5206\u4eab\u7b2c\u4e00\u5929 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/87437.html","og_locale":"zh_CN","og_type":"article","og_title":"AI\u5927\u6a21\u578b\u5b66\u4e60\u5206\u4eab\u7b2c\u4e00\u5929 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Ollama \u672c\u5730\u79c1\u6709\u5316\u5927\u6a21\u578b\u5feb\u901f\u4e0a\u624b\u5b8c\u6574\u6559\u7a0b&#xff08;\u4ece\u73af\u5883\u51c6\u5907\u5230\u547d\u4ee4\u5b9e\u64cd&#xff09; \u4e00\u3001\u524d\u8a00 \u5f53\u4e0b\u5927\u6a21\u578b\u5e94\u7528\u666e\u53ca&#xff0c;\u4f46\u76f4\u63a5\u4f7f\u7528\u516c\u6709\u5728\u7ebf\u5927\u6a21\u578b\u5b58\u5728\u4f01\u4e1a\u6570\u636e\u6cc4\u9732\u3001\u9690\u79c1\u5b89\u5168\u7b49\u81f4\u547d\u95ee\u9898&#xff08;\u5982\u4e09\u661f\u5458\u5de5\u4f7f\u7528 ChatGPT \u6cc4\u9732\u5185\u90e8\u8d44\u6599\u4e8b\u4ef6&#xff09;&#xff0c;\u79c1\u6709\u5316\u672c\u5730\u90e8\u7f72\u5927\u6a21\u578b\u6210\u4e3a\u4f01\u4e1a\u3001\u5f00\u53d1\u8005\u521a\u9700\u3002Ollama \u4f5c\u4e3a\u5f00\u6e90\u8f7b\u91cf\u5316\u672c\u5730 LLM \u8fd0\u884c\u5de5\u5177&#xff0c;\u8de8\u5e73\u53f0\u3001\u96f6\u590d\u6742\u4f9d\u8d56\u3001\u547d\u4ee4\u884c\u6613\u64cd\u4f5c&#xff0c;\u662f\u65b0\u624b\u672c\u5730\u8dd1\u5927\u6a21\u578b\u3001","og_url":"https:\/\/www.wsisp.com\/helps\/87437.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-30T02:24:27+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/87437.html","url":"https:\/\/www.wsisp.com\/helps\/87437.html","name":"AI\u5927\u6a21\u578b\u5b66\u4e60\u5206\u4eab\u7b2c\u4e00\u5929 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-30T02:24:27+00:00","dateModified":"2026-07-30T02:24:27+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/87437.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/87437.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/87437.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"AI\u5927\u6a21\u578b\u5b66\u4e60\u5206\u4eab\u7b2c\u4e00\u5929"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/87437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=87437"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/87437\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=87437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=87437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=87437"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=87437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}