id: b019d90ff4704ad286ac530bc81d645f
parent_id: 
item_type: 1
item_id: 91eab99e27dc437ba37aa9972f44cb0d
item_updated_time: 1764345621115
title_diff: "[{\"diffs\":[[1,\"ollama 部署 deepseek-r1 70B 模型完整指南\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":32}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>ollama 部署 deepseek-r1 70B 模型完整指南</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <meta name=\\\"content-class\\\" content=\\\"yinxiang.peso.superNote\\\"/>\\\r\\\n  <meta name=\\\"application-data:yinxiang.noteLayout\\\" content=\\\"{\\\"lineSpace\\\":\\\"recommend\\\",\\\"paragraphSpace\\\":\\\"recommend\\\"}\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"37465\\\"></a>\\\r\\\n<h1>ollama 部署 deepseek-r1 70B 模型完整指南</h1>\\\r\\\n\\\r\\\n<div><span style=\\\"margin:0px;\\\"><div style=\\\"padding:8px 0px;margin:8px auto;max-width:700px;\\\"> <div><span></span></div>\\\n<p></p>\\\n<div style=\\\"--en-blockquote:true;box-sizing: border-box; padding-left: 19px; padding-top: 6px; padding-bottom: 6px; border-left: 3px solid #b4c0cc; background-position: initial initial; background-repeat: initial initial; margin-top: 6px\\\"><div>原文链接: <a href=\\\"http://mp.weixin.qq.com/s?__biz=Mzg2NzY2NTUyMg==&amp;mid=2247485174&amp;idx=1&amp;sn=f8152d37cd2e8c2add5848a13ee70e8f&amp;chksm=cf1b853399371a2c7bf6ac2f3e79fc2bf260eadb56c4e9ebef8ea6f4c9b335321282aad073f8&amp;mpshare=1&amp;scene=1&amp;srcid=0128uYSsRdRkTSnAuoSTCwnO&amp;sharer_shareinfo=66ac29ee25294453ab9e160735113c8b&amp;sharer_shareinfo_first=66ac29ee25294453ab9e160735113c8b#rd\\\"><span>http://mp.weixin.qq.com/s?__biz=Mzg2NzY2NTUyMg==&amp;mid=2247485...</span></a></div></div>\\\n<p></p>\\\n<div><span></span></div>\\\n<div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><h1 style=\\\"-webkit-tap-highlight-color:transparent;margin:0\\\"> ollama 部署 deepseek-r1 70B 模型完整指南 </h1><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;position:relative\\\">原创</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;position:relative\\\">未平</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><a style=\\\"-webkit-tap-highlight-color:transparent;position:relative\\\"> coding日记 </a></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><em style=\\\"-webkit-tap-highlight-color:transparent\\\"></em></span></div><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:10px;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;font-family:Optima,'Microsoft YaHei',PingFangSC-regular,serif;font-size:16px;color:rgb(0,0,0);line-height:1.5em;word-spacing:0;letter-spacing:0;word-break:break-word;overflow-wrap:break-word;text-align:left;\\\"><h1 style=\\\"-webkit-tap-highlight-color:transparent;margin:0;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:flex;flex-direction:unset;float:unset;height:auto;justify-content:center;line-height:1.5em;overflow-x:unset;overflow-y:unset;text-align:left;text-shadow:none;transform:none;width:100%;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:22px;border-bottom-color:rgb(0,150,136);color:rgb(0,150,136);line-height:1.5em;letter-spacing:0;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:100%;height:auto;align-items:unset;border-top-style:none;border-bottom-style:solid;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:10px;padding-left:0;padding-right:0;text-align:center;text-indent:0;text-shadow:none;transform:none;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">ollama 部署 deepseek-r1 70B 模型完整指南</span></span></h1><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;display:flex;flex-direction:column;justify-content:center;align-items:center;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\":/f102a9fbe3874de8b3b3b016b4a68df2\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;display:block;margin-top:0;margin-right:auto;margin-bottom:0;margin-left:auto;max-width:100%;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0;object-fit:fill;box-shadow:rgba(0,0,0,0) 0 0 0 0\\\"/></span><div style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(136,136,136);font-size:14px;line-height:1.5em;letter-spacing:0;text-align:center;font-weight:normal;margin-top:5px;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Ollama运行界面</span></div></div><h2 style=\\\"-webkit-tap-highlight-color:transparent;margin:0;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:20px;color:rgb(0,150,136);line-height:1.8em;letter-spacing:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:3px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,150,136);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;height:auto;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;text-align:left;text-indent:0;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">一、模型下载与准备</span></span></h2><h3 style=\\\"-webkit-tap-highlight-color:transparent;margin:0;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(34,34,34);line-height:1.8em;letter-spacing:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:2px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,150,136);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;height:auto;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;text-align:left;text-indent:0;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">1. 获取GGUF格式模型文件</span></span></h3><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;color:rgb(0,0,0);font-size:16px;line-height:1.8em;letter-spacing:0;text-align:justify;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">通过ModelScope平台下载量化后的模型文件（推荐Q5_K_M中等量化级别）：</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/oLU121BePGlfCqLfSwPiccb0TgefkhIpXeibEiaAwFGwx8VuK17XtoCmJ3BiaUnjtnEu2vXHEAQBraUK7Io3a98bat0pklfL7KLv/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">pip install modelscope</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">modelscope download --model unsloth/DeepSeek-R1-Distill-Llama-70B-GGUF DeepSeek-R1-Distill-Llama-70B-Q5_K_M.gguf --local_dir  /DeepSeek-R1-Distill-Llama-70B-GGUF</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><blockquote style=\\\"-webkit-tap-highlight-color:transparent;margin-top:20px;margin-bottom:20px;margin-left:0;margin-right:0;padding-top:10px;padding-bottom:10px;padding-left:20px;padding-right:10px;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:solid;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgb(0,150,136);border-right-color:rgba(0,150,136,0.3);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0.05);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;box-shadow:rgba(0,0,0,0) 0 0 0 0;display:block;overflow-x:auto;overflow-y:auto\\\"><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;text-indent:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0;color:rgb(119,119,119);font-size:16px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(0,150,136);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">技术说明</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">：GGUF（GPT-Generated Unified Format）是专为LLM设计的跨平台格式，支持CPU/GPU混合推理，特别适合在苹果芯片设备或纯CPU环境运行。Q5_K_M量化在保持94%精度的同时，将模型体积压缩至49GB。</span></p></blockquote><h2 style=\\\"-webkit-tap-highlight-color:transparent;margin:0;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:20px;color:rgb(0,150,136);line-height:1.8em;letter-spacing:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:3px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,150,136);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;height:auto;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;text-align:left;text-indent:0;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">二、Ollama环境配置</span></span></h2><h3 style=\\\"-webkit-tap-highlight-color:transparent;margin:0;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(34,34,34);line-height:1.8em;letter-spacing:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:2px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,150,136);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;height:auto;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;text-align:left;text-indent:0;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">1. 安装Ollama推理框架</span></span></h3><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;color:rgb(0,0,0);font-size:16px;line-height:1.8em;letter-spacing:0;text-align:justify;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">参考官网</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">ollama/ollama: Get up and running with Llama 3.3, Phi 4, Gemma 2, and other large language models.</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/oLU121BePGlfCqLfSwPiccb0TgefkhIpXeibEiaAwFGwx8VuK17XtoCmJ3BiaUnjtnEu2vXHEAQBraUK7Io3a98bat0pklfL7KLv/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">curl -fsSL https://ollama.com/install.sh | sudo sh</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><h3 style=\\\"-webkit-tap-highlight-color:transparent;margin:0;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(34,34,34);line-height:1.8em;letter-spacing:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:2px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,150,136);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;height:auto;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;text-align:left;text-indent:0;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2. 配置远程访问（可选）</span></span></h3><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;color:rgb(0,0,0);font-size:16px;line-height:1.8em;letter-spacing:0;text-align:justify;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">参考</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">ollama/docs/faq.md at main · ollama/ollama</span></p><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;color:rgb(0,0,0);font-size:16px;line-height:1.8em;letter-spacing:0;text-align:justify;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">如需通过其他设备访问，需修改服务配置：</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/oLU121BePGlfCqLfSwPiccb0TgefkhIpXeibEiaAwFGwx8VuK17XtoCmJ3BiaUnjtnEu2vXHEAQBraUK7Io3a98bat0pklfL7KLv/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">sudo nano /etc/systemd/system/ollama.service</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;color:rgb(0,0,0);font-size:16px;line-height:1.8em;letter-spacing:0;text-align:justify;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">在</span><code style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(0,150,136);font-size:14px;line-height:1.8em;letter-spacing:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(27,31,35,0.05);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:2px;margin-right:2px;padding-top:2px;padding-bottom:2px;padding-left:4px;padding-right:4px;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgb(0,0,0);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;overflow-wrap:break-word;font-family:'Operator Mono',Consolas,Monaco,Menlo,monospace;word-break:break-all\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">[Service]</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">部分添加：</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/oLU121BePGlfCqLfSwPiccb0TgefkhIpXeibEiaAwFGwx8VuK17XtoCmJ3BiaUnjtnEu2vXHEAQBraUK7Io3a98bat0pklfL7KLv/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Environment=&quot;OLLAMA_HOST=0.0.0.0&quot;</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Environment=&quot;OLLAMA_ORIGINS=*&quot;</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;color:rgb(0,0,0);font-size:16px;line-height:1.8em;letter-spacing:0;text-align:justify;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">刷新服务配置：</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/oLU121BePGlfCqLfSwPiccb0TgefkhIpXeibEiaAwFGwx8VuK17XtoCmJ3BiaUnjtnEu2vXHEAQBraUK7Io3a98bat0pklfL7KLv/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">sudo systemctl daemon-reload</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">sudo systemctl restart ollama</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><h2 style=\\\"-webkit-tap-highlight-color:transparent;margin:0;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:20px;color:rgb(0,150,136);line-height:1.8em;letter-spacing:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:3px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,150,136);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;height:auto;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;text-align:left;text-indent:0;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">三、模型配置文件编写</span></span></h2><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;color:rgb(0,0,0);font-size:16px;line-height:1.8em;letter-spacing:0;text-align:justify;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">创建</span><code style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(0,150,136);font-size:14px;line-height:1.8em;letter-spacing:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(27,31,35,0.05);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:2px;margin-right:2px;padding-top:2px;padding-bottom:2px;padding-left:4px;padding-right:4px;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgb(0,0,0);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;overflow-wrap:break-word;font-family:'Operator Mono',Consolas,Monaco,Menlo,monospace;word-break:break-all\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Modelfile</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">配置文件：</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/oLU121BePGlfCqLfSwPiccb0TgefkhIpXeibEiaAwFGwx8VuK17XtoCmJ3BiaUnjtnEu2vXHEAQBraUK7Io3a98bat0pklfL7KLv/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 这里填入gguf文件路径</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">FROM /home/DeepSeek-R1-Distill-Llama-70B-GGUF/DeepSeek-R1-Distill-Llama-70B-Q5_K_M.gguf</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 以下为模型模板配置</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">TEMPLATE &quot;&quot;&quot;{{- if .System }}{{ .System }}{{ end }}</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">{{- range $i, $_ := .Messages }}</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">{{- $last := eq (len (slice $.Messages $i)) 1}}</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">{{- if eq .Role &quot;user&quot; }}&lt;｜User｜&gt;{{ .Content }}</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">{{- else if eq .Role &quot;assistant&quot; }}&lt;｜Assistant｜&gt;{{ .Content }}{{- if not $last }}&lt;｜end▁of▁sentence｜&gt;{{- end }}</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">{{- end }}</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">{{- if and $last (ne .Role &quot;assistant&quot;) }}&lt;｜Assistant｜&gt;{{- end }}</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">{{- end }}&quot;&quot;&quot;</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">PARAMETER stop &quot;&lt;｜begin▁of▁sentence｜&gt;&quot;</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">PARAMETER stop &quot;&lt;｜end▁of▁sentence｜&gt;&quot;</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">PARAMETER stop &quot;&lt;｜User｜&gt;&quot;</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">PARAMETER stop &quot;&lt;｜Assistant｜&gt;&quot;</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">PARAMETER num_ctx 12800</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><blockquote style=\\\"-webkit-tap-highlight-color:transparent;margin-top:20px;margin-bottom:20px;margin-left:0;margin-right:0;padding-top:10px;padding-bottom:10px;padding-left:20px;padding-right:10px;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:solid;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgb(0,150,136);border-right-color:rgba(0,150,136,0.3);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0.05);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;box-shadow:rgba(0,0,0,0) 0 0 0 0;display:block;overflow-x:auto;overflow-y:auto\\\"><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;text-indent:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0;color:rgb(119,119,119);font-size:16px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(0,150,136);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">参数解析</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">：</span></p><ul style=\\\"-webkit-tap-highlight-color:transparent;margin:0;list-style-type:disc;margin-top:8px;margin-bottom:8px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:25px;padding-right:0;color:rgb(0,0,0)\\\"><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:16px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal;\\\"><code style=\\\"-webkit-tap-highlight-color:transparent;background-attachment:scroll;background-clip:border-box;background-color:rgba(27,31,35,0.05);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;margin-top:0;margin-bottom:0;margin-left:2px;margin-right:2px;padding-top:2px;padding-bottom:2px;padding-left:4px;padding-right:4px;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgb(0,0,0);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;overflow-wrap:break-word;font-family:'Operator Mono',Consolas,Monaco,Menlo,monospace;word-break:break-all\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">stop</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: 设置对话终止符</span></div></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:16px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal;\\\"><code style=\\\"-webkit-tap-highlight-color:transparent;background-attachment:scroll;background-clip:border-box;background-color:rgba(27,31,35,0.05);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;margin-top:0;margin-bottom:0;margin-left:2px;margin-right:2px;padding-top:2px;padding-bottom:2px;padding-left:4px;padding-right:4px;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgb(0,0,0);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;overflow-wrap:break-word;font-family:'Operator Mono',Consolas,Monaco,Menlo,monospace;word-break:break-all\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">num_ctx</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: 扩展上下文窗口至12800 tokens</span></div></li></ul></blockquote><h2 style=\\\"-webkit-tap-highlight-color:transparent;margin:0;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:20px;color:rgb(0,150,136);line-height:1.8em;letter-spacing:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:3px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,150,136);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;height:auto;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;text-align:left;text-indent:0;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">四、模型加载与运行</span></span></h2><h3 style=\\\"-webkit-tap-highlight-color:transparent;margin:0;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(34,34,34);line-height:1.8em;letter-spacing:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:2px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,150,136);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;height:auto;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;text-align:left;text-indent:0;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">1. 创建Ollama模型实例</span></span></h3><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/oLU121BePGlfCqLfSwPiccb0TgefkhIpXeibEiaAwFGwx8VuK17XtoCmJ3BiaUnjtnEu2vXHEAQBraUK7Io3a98bat0pklfL7KLv/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">ollama create DeepSeek-R1-Distill-Llama-70B-Q5_K_M -f /home/DeepSeek-R1-Distill-Llama-70B-GGUF/Modelfile</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><h3 style=\\\"-webkit-tap-highlight-color:transparent;margin:0;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(34,34,34);line-height:1.8em;letter-spacing:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:2px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,150,136);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;height:auto;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;text-align:left;text-indent:0;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2. 验证模型列表</span></span></h3><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/oLU121BePGlfCqLfSwPiccb0TgefkhIpXeibEiaAwFGwx8VuK17XtoCmJ3BiaUnjtnEu2vXHEAQBraUK7Io3a98bat0pklfL7KLv/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">ollama list</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#5c6370;font-style:italic;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 预期输出</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">NAME                                           ID              SIZE     MODIFIED</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">DeepSeek-R1-Distill-Llama-70B-Q5_K_M:latest    dd7ae729f6fc    49 GB    46 minutes ago</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><h3 style=\\\"-webkit-tap-highlight-color:transparent;margin:0;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(34,34,34);line-height:1.8em;letter-spacing:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:2px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,150,136);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;height:auto;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;text-align:left;text-indent:0;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">3. 启动模型服务</span></span></h3><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/oLU121BePGlfCqLfSwPiccb0TgefkhIpXeibEiaAwFGwx8VuK17XtoCmJ3BiaUnjtnEu2vXHEAQBraUK7Io3a98bat0pklfL7KLv/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">ollama run DeepSeek-R1-Distill-Llama-70B-Q5_K_M:latest</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;color:rgb(0,0,0);font-size:16px;line-height:1.8em;letter-spacing:0;text-align:justify;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">成功运行后将进入交互式命令行界面。</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;display:flex;flex-direction:column;justify-content:center;align-items:center;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\":/a90ac51a820e463e8205229e5aaae485\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;display:block;margin-top:0;margin-right:auto;margin-bottom:0;margin-left:auto;max-width:100%;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0;object-fit:fill;box-shadow:rgba(0,0,0,0) 0 0 0 0\\\"/></span><div style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(136,136,136);font-size:14px;line-height:1.5em;letter-spacing:0;text-align:center;font-weight:normal;margin-top:5px;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">image.png</span></div></div><h2 style=\\\"-webkit-tap-highlight-color:transparent;margin:0;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:20px;color:rgb(0,150,136);line-height:1.8em;letter-spacing:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:3px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,150,136);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;height:auto;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;text-align:left;text-indent:0;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">五、远程访问验证</span></span></h2><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;color:rgb(0,0,0);font-size:16px;line-height:1.8em;letter-spacing:0;text-align:justify;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">访问</span><code style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(0,150,136);font-size:14px;line-height:1.8em;letter-spacing:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(27,31,35,0.05);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:2px;margin-right:2px;padding-top:2px;padding-bottom:2px;padding-left:4px;padding-right:4px;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgb(0,0,0);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;overflow-wrap:break-word;font-family:'Operator Mono',Consolas,Monaco,Menlo,monospace;word-break:break-all\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">http://{服务器IP}:11434/</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">，出现以下界面即表示服务正常运行：</span></p><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;color:rgb(0,0,0);font-size:16px;line-height:1.8em;letter-spacing:0;text-align:justify;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">界面显示 </span><code style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(0,150,136);font-size:14px;line-height:1.8em;letter-spacing:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(27,31,35,0.05);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:2px;margin-right:2px;padding-top:2px;padding-bottom:2px;padding-left:4px;padding-right:4px;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgb(0,0,0);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;overflow-wrap:break-word;font-family:'Operator Mono',Consolas,Monaco,Menlo,monospace;word-break:break-all\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Ollama is running</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">，表示可以远程访问</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;display:flex;flex-direction:column;justify-content:center;align-items:center;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\":/6725451cb78c4394b303158a5bfd2566\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;display:block;margin-top:0;margin-right:auto;margin-bottom:0;margin-left:auto;max-width:100%;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0;object-fit:fill;box-shadow:rgba(0,0,0,0) 0 0 0 0\\\"/></span><div style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(136,136,136);font-size:14px;line-height:1.5em;letter-spacing:0;text-align:center;font-weight:normal;margin-top:5px;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Ollama服务状态</span></div></div><h2 style=\\\"-webkit-tap-highlight-color:transparent;margin:0;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:20px;color:rgb(0,150,136);line-height:1.8em;letter-spacing:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:3px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,150,136);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;height:auto;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;text-align:left;text-indent:0;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">六、高级应用场景</span></span></h2><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;color:rgb(0,0,0);font-size:16px;line-height:1.8em;letter-spacing:0;text-align:justify;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">现在可通过以下方式接入模型：</span></p><ol style=\\\"-webkit-tap-highlight-color:transparent;margin:0;list-style-type:decimal;margin-top:8px;margin-bottom:8px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:25px;padding-right:0;color:rgb(0,0,0)\\\"><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:16px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal;\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(0,150,136);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Open WebUI</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">：搭建可视化聊天界面</span></div></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:16px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal;\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(0,150,136);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">API集成</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">：通过RESTful API对接应用程序</span></div></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:16px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal;\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(0,150,136);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">LangChain</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">：构建自动化AI工作流</span></div></li></ol></div><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></div></div><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;display:flex;color:rgba(0,0,0,.3);\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;color:rgba(0,0,0,.3);\\\">个人观点，仅供参考</div></div></div></div></div></div></div></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":78925}]"
metadata_diff: {"new":{"id":"91eab99e27dc437ba37aa9972f44cb0d","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764348827586,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T21:04:03.260Z
created_time: 2025-11-28T21:04:03.260Z
type_: 13