{"id":53298,"date":"2025-08-12T08:04:23","date_gmt":"2025-08-12T00:04:23","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/53298.html"},"modified":"2025-08-12T08:04:23","modified_gmt":"2025-08-12T00:04:23","slug":"ollama-v0-11-4-%e9%87%8d%e7%a3%85%e6%9b%b4%e6%96%b0%ef%bc%9a%e5%b7%a5%e5%85%b7%e8%b0%83%e7%94%a8%e4%b8%8e%e6%8e%a8%e7%90%86%e8%83%bd%e5%8a%9b%e5%85%a8%e9%9d%a2%e5%8d%87%e7%ba%a7%e7%9a%84%e6%8a%80","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/53298.html","title":{"rendered":"ollama v0.11.4 \u91cd\u78c5\u66f4\u65b0\uff1a\u5de5\u5177\u8c03\u7528\u4e0e\u63a8\u7406\u80fd\u529b\u5168\u9762\u5347\u7ea7\u7684\u6280\u672f\u89e3\u6790"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812000422-689a85068884a.png\" alt=\"# Ollama v0.11.4 \u91cd\u78c5\u66f4\u65b0&#xff1a;\u5de5\u5177\u8c03\u7528\u4e0e\u63a8\u7406\u80fd\u529b\u5168\u9762\u5347\u7ea7\u7684\u6280\u672f\u89e3\u6790\" \/><\/p>\n<h3>\u5f15\u8a00<\/h3>\n<p>Ollama\u4f5c\u4e3a\u5f53\u524d\u6700\u53d7\u6b22\u8fce\u7684\u672c\u5730\u5316\u5927\u578b\u8bed\u8a00\u6a21\u578b(LLM)\u8fd0\u884c\u5de5\u5177&#xff0c;\u57282025\u5e748\u67087\u65e5\u53d1\u5e03\u4e86v0.11.4\u7248\u672c\u66f4\u65b0\u3002\u672c\u6b21\u66f4\u65b0\u867d\u7136\u770b\u4f3c\u7248\u672c\u53f7\u8fed\u4ee3\u4e0d\u5927&#xff0c;\u4f46\u5728\u5de5\u5177\u8c03\u7528(Tool Calling)\u548c\u6a21\u578b\u63a8\u7406\u80fd\u529b\u65b9\u9762\u5e26\u6765\u4e86\u591a\u9879\u91cd\u8981\u6539\u8fdb&#xff0c;\u8fdb\u4e00\u6b65\u5f3a\u5316\u4e86Ollama\u4f5c\u4e3a\u4f01\u4e1a\u7ea7LLM\u90e8\u7f72\u5e73\u53f0\u7684\u6838\u5fc3\u7ade\u4e89\u529b\u3002\u672c\u6587\u5c06\u6df1\u5165\u89e3\u6790v0.11.4\u7248\u672c\u7684\u6280\u672f\u7ec6\u8282&#xff0c;\u5e2e\u52a9\u5f00\u53d1\u8005\u5168\u9762\u4e86\u89e3\u65b0\u7279\u6027\u5e76\u638c\u63e1\u6700\u4f73\u5b9e\u8df5\u3002<\/p>\n<h3>\u6838\u5fc3\u66f4\u65b0\u6982\u89c8<\/h3>\n<p>v0.11.4\u7248\u672c\u4e3b\u8981\u56f4\u7ed5\u4e09\u5927\u6838\u5fc3\u65b9\u5411\u8fdb\u884c\u4e86\u4f18\u5316&#xff1a;<\/p>\n<li>\u5de5\u5177\u8c03\u7528\u529f\u80fd\u589e\u5f3a&#xff1a;\u5141\u8bb8\u5728\u6d88\u606f\u4e2d\u540c\u65f6\u5305\u542b\u5185\u5bb9\u548c\u5de5\u5177\u8c03\u7528&#xff0c;\u5e76\u6539\u8fdb\u5de5\u5177\u540d\u79f0\u4f20\u64ad\u673a\u5236<\/li>\n<li>\u63a8\u7406\u8fc7\u7a0b\u4f18\u5316&#xff1a;\u786e\u4fdd\u6a21\u578b\u59cb\u7ec8\u63d0\u4f9b\u63a8\u7406\u8fc7\u7a0b(reasoning)&#xff0c;\u589e\u5f3a\u51b3\u7b56\u900f\u660e\u5ea6<\/li>\n<li>GPU\u8d44\u6e90\u7ba1\u7406&#xff1a;\u9488\u5bf9gpt-oss\u6a21\u578b\u7684VRAM\u4f7f\u7528\u8fdb\u884c\u4f18\u5316&#xff0c;\u63d0\u5347\u8d44\u6e90\u5229\u7528\u7387<\/li>\n<p>\u8fd9\u4e9b\u6539\u8fdb\u4f7f\u5f97Ollama\u5728\u590d\u6742\u4efb\u52a1\u5904\u7406\u3001\u591a\u6b65\u9aa4\u63a8\u7406\u548c\u8d44\u6e90\u53d7\u9650\u73af\u5883\u4e0b\u7684\u8868\u73b0\u66f4\u52a0\u51fa\u8272&#xff0c;\u4e3a\u5f00\u53d1\u8005\u6784\u5efa\u57fa\u4e8eLLM\u7684\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u4e86\u66f4\u5f3a\u5927\u7684\u57fa\u7840\u652f\u6491\u3002<\/p>\n<h3>\u5de5\u5177\u8c03\u7528\u529f\u80fd\u7684\u6df1\u5ea6\u89e3\u6790<\/h3>\n<h4>\u6d88\u606f\u5185\u5bb9\u4e0e\u5de5\u5177\u8c03\u7528\u7684\u534f\u540c\u5904\u7406<\/h4>\n<p>\u5728v0.11.4\u4e4b\u524d&#xff0c;Ollama\u5904\u7406\u5de5\u5177\u8c03\u7528\u65f6\u5b58\u5728\u4e00\u4e2a\u9650\u5236&#xff1a;\u5f53\u6a21\u578b\u51b3\u5b9a\u8c03\u7528\u5de5\u5177\u65f6&#xff0c;\u5176\u54cd\u5e94\u6d88\u606f\u8981\u4e48\u53ea\u5305\u542b\u5de5\u5177\u8c03\u7528\u6307\u4ee4&#xff0c;\u8981\u4e48\u53ea\u5305\u542b\u6587\u672c\u5185\u5bb9&#xff0c;\u65e0\u6cd5\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\u8fd9\u79cd\u9650\u5236\u5728\u67d0\u4e9b\u9700\u8981\u4e0a\u4e0b\u6587\u8fde\u8d2f\u6027\u7684\u573a\u666f\u4e2d\u4f1a\u9020\u6210\u4f53\u9a8c\u4e0a\u7684\u5272\u88c2\u3002<\/p>\n<p>\u65b0\u7248\u672c\u901a\u8fc7\u91cd\u6784openai\u517c\u5bb9\u5c42\u7684\u6d88\u606f\u5904\u7406\u903b\u8f91&#xff0c;\u5b9e\u73b0\u4e86\u5185\u5bb9\u4e0e\u5de5\u5177\u8c03\u7528\u7684\u65e0\u7f1d\u7ed3\u5408\u3002\u5177\u4f53\u8868\u73b0\u4e3a&#xff1a;<\/p>\n<p><span class=\"token keyword\">type<\/span> Message <span class=\"token keyword\">struct<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    Role       <span class=\"token builtin\">string<\/span>     <span class=\"token string\">&#096;json:&#034;role&#034;&#096;<\/span><br \/>\n    Content    any        <span class=\"token string\">&#096;json:&#034;content&#034;&#096;<\/span><br \/>\n    Reasoning  <span class=\"token builtin\">string<\/span>     <span class=\"token string\">&#096;json:&#034;reasoning,omitempty&#034;&#096;<\/span><br \/>\n    ToolCalls  <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span>ToolCall <span class=\"token string\">&#096;json:&#034;tool_calls,omitempty&#034;&#096;<\/span><br \/>\n    Name       <span class=\"token builtin\">string<\/span>     <span class=\"token string\">&#096;json:&#034;name,omitempty&#034;&#096;<\/span><br \/>\n    ToolCallID <span class=\"token builtin\">string<\/span>     <span class=\"token string\">&#096;json:&#034;tool_call_id,omitempty&#034;&#096;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u8fd9\u79cd\u6539\u8fdb\u4f7f\u5f97\u6a21\u578b\u53ef\u4ee5\u5728\u751f\u6210\u81ea\u7136\u8bed\u8a00\u54cd\u5e94\u7684\u540c\u65f6\u53d1\u8d77\u5de5\u5177\u8c03\u7528&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;role&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;assistant&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;content&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u6211\u5c06\u4e3a\u60a8\u67e5\u8be2\u5df4\u9ece\u7684\u5929\u6c14\u60c5\u51b5&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;tool_calls&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;id&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;call_123&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;type&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;function&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;function&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;name&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;get_current_weather&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string-property property\">&#034;arguments&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;{\\\\&#034;location\\\\&#034;:\\\\&#034;Paris\\\\&#034;,\\\\&#034;unit\\\\&#034;:\\\\&#034;celsius\\\\&#034;}&#034;<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u8fd9\u79cd\u534f\u540c\u5904\u7406\u80fd\u529b\u5bf9\u4e8e\u6784\u5efa\u6d41\u7545\u7684\u5bf9\u8bdd\u4f53\u9a8c\u81f3\u5173\u91cd\u8981&#xff0c;\u7279\u522b\u662f\u5728\u9700\u8981\u591a\u8f6e\u4ea4\u4e92\u7684\u590d\u6742\u573a\u666f\u4e2d\u3002<\/p>\n<h4>\u5de5\u5177\u540d\u79f0\u4f20\u64ad\u673a\u5236\u7684\u6539\u8fdb<\/h4>\n<p>v0.11.4\u7248\u672c\u8fd8\u4f18\u5316\u4e86\u5de5\u5177\u8c03\u7528\u4e2d\u540d\u79f0\u4fe1\u606f\u7684\u4f20\u64ad\u673a\u5236\u3002\u5f53\u6a21\u578b\u8fd4\u56de\u5de5\u5177\u8c03\u7528\u7ed3\u679c\u65f6&#xff0c;\u7cfb\u7edf\u73b0\u5728\u80fd\u591f\u66f4\u51c6\u786e\u5730\u8ffd\u8e2a\u548c\u4f20\u64ad\u5de5\u5177\u540d\u79f0\u4fe1\u606f\u3002\u8fd9\u901a\u8fc7\u4e24\u79cd\u65b9\u5f0f\u5b9e\u73b0&#xff1a;<\/p>\n<li>\u901a\u8fc7tool_call_id\u56de\u6eaf&#xff1a;\u5f53\u5de5\u5177\u54cd\u5e94\u6d88\u606f\u4e2d\u53ea\u5305\u542btool_call_id\u65f6&#xff0c;\u7cfb\u7edf\u4f1a\u4ece\u5bf9\u8bdd\u5386\u53f2\u4e2d\u67e5\u627e\u5bf9\u5e94\u7684\u5de5\u5177\u8c03\u7528\u8bb0\u5f55&#xff0c;\u81ea\u52a8\u586b\u5145\u5de5\u5177\u540d\u79f0<\/li>\n<li>\u76f4\u63a5\u540d\u79f0\u6307\u5b9a&#xff1a;\u5de5\u5177\u54cd\u5e94\u6d88\u606f\u53ef\u4ee5\u76f4\u63a5\u5305\u542bname\u5b57\u6bb5&#xff0c;\u663e\u5f0f\u6307\u5b9a\u5de5\u5177\u540d\u79f0<\/li>\n<p>\u5bf9\u5e94\u7684Go\u5b9e\u73b0\u903b\u8f91\u5982\u4e0b&#xff1a;<\/p>\n<p><span class=\"token keyword\">func<\/span> <span class=\"token function\">nameFromToolCallID<\/span><span class=\"token punctuation\">(<\/span>messages <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span>Message<span class=\"token punctuation\">,<\/span> toolCallID <span class=\"token builtin\">string<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token builtin\">string<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> i <span class=\"token operator\">:&#061;<\/span> <span class=\"token function\">len<\/span><span class=\"token punctuation\">(<\/span>messages<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#8211;<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">;<\/span> i <span class=\"token operator\">&gt;&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> i<span class=\"token operator\">&#8212;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        msg <span class=\"token operator\">:&#061;<\/span> messages<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span><br \/>\n        <span class=\"token keyword\">for<\/span> <span class=\"token boolean\">_<\/span><span class=\"token punctuation\">,<\/span> tc <span class=\"token operator\">:&#061;<\/span> <span class=\"token keyword\">range<\/span> msg<span class=\"token punctuation\">.<\/span>ToolCalls <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token keyword\">if<\/span> tc<span class=\"token punctuation\">.<\/span>ID <span class=\"token operator\">&#061;&#061;<\/span> toolCallID <span class=\"token punctuation\">{<\/span><br \/>\n                <span class=\"token keyword\">return<\/span> tc<span class=\"token punctuation\">.<\/span>Function<span class=\"token punctuation\">.<\/span>Name<br \/>\n            <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token string\">&#034;&#034;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u8fd9\u79cd\u6539\u8fdb\u786e\u4fdd\u4e86\u5de5\u5177\u8c03\u7528\u94fe\u8def\u7684\u5b8c\u6574\u6027\u548c\u4e00\u81f4\u6027&#xff0c;\u4e3a\u6784\u5efa\u590d\u6742\u7684\u5de5\u5177\u8c03\u7528\u5de5\u4f5c\u6d41\u5960\u5b9a\u4e86\u57fa\u7840\u3002<\/p>\n<h3>\u63a8\u7406\u8fc7\u7a0b\u900f\u660e\u5316\u7684\u6280\u672f\u5b9e\u73b0<\/h3>\n<h4>\u5f3a\u5236\u63a8\u7406\u8f93\u51fa\u7684\u8bbe\u8ba1\u8003\u91cf<\/h4>\n<p>v0.11.4\u7248\u672c\u5f15\u5165\u4e86\u4e00\u9879\u91cd\u8981\u53d8\u66f4&#xff1a;\u6a21\u578b\u73b0\u5728\u4f1a\u59cb\u7ec8\u63d0\u4f9b\u63a8\u7406\u8fc7\u7a0b(reasoning)&#xff0c;\u65e0\u8bba\u662f\u5426\u542f\u7528\u4e86\u601d\u8003(thinking)\u529f\u80fd\u3002\u8fd9\u4e00\u6539\u53d8\u6e90\u4e8e\u5b9e\u9645\u5e94\u7528\u4e2d\u53d1\u73b0\u7684\u5173\u952e\u95ee\u9898&#xff1a;\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b&#xff0c;\u5373\u4f7f\u7981\u7528\u4e86\u601d\u8003\u529f\u80fd&#xff0c;\u4e86\u89e3\u6a21\u578b\u7684\u63a8\u7406\u8fc7\u7a0b\u5bf9\u4e8e\u8c03\u8bd5\u548c\u4f18\u5316\u7cfb\u7edf\u884c\u4e3a\u4ecd\u7136\u975e\u5e38\u6709\u4ef7\u503c\u3002<\/p>\n<p>\u6280\u672f\u5b9e\u73b0\u4e0a&#xff0c;\u8fd9\u6d89\u53ca\u5bf9OpenAI\u517c\u5bb9API\u5c42\u7684\u4fee\u6539&#xff1a;<\/p>\n<p><span class=\"token keyword\">func<\/span> <span class=\"token function\">fromChatRequest<\/span><span class=\"token punctuation\">(<\/span>r ChatCompletionRequest<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token operator\">*<\/span>api<span class=\"token punctuation\">.<\/span>ChatRequest<span class=\"token punctuation\">,<\/span> <span class=\"token builtin\">error<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token comment\">\/\/ &#8230;\u5176\u4ed6\u5904\u7406\u903b\u8f91&#8230;<\/span><br \/>\n    messages <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">append<\/span><span class=\"token punctuation\">(<\/span>messages<span class=\"token punctuation\">,<\/span> api<span class=\"token punctuation\">.<\/span>Message<span class=\"token punctuation\">{<\/span><br \/>\n        Role<span class=\"token punctuation\">:<\/span>     msg<span class=\"token punctuation\">.<\/span>Role<span class=\"token punctuation\">,<\/span><br \/>\n        Content<span class=\"token punctuation\">:<\/span>  content<span class=\"token punctuation\">,<\/span><br \/>\n        Thinking<span class=\"token punctuation\">:<\/span> msg<span class=\"token punctuation\">.<\/span>Reasoning<span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ \u59cb\u7ec8\u4fdd\u7559\u63a8\u7406\u8fc7\u7a0b<\/span><br \/>\n        ToolCalls<span class=\"token punctuation\">:<\/span> toolCalls<span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token comment\">\/\/ &#8230;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h4>\u601d\u8003\u529f\u80fd\u7684\u5e94\u7528\u573a\u666f<\/h4>\n<p>Ollama\u5728\u4e4b\u524d\u7684\u7248\u672c\u4e2d\u5df2\u7ecf\u5f15\u5165\u4e86&#034;\u601d\u8003&#034;(Thinking)\u529f\u80fd&#xff0c;\u5141\u8bb8\u7528\u6237\u9009\u62e9\u662f\u5426\u67e5\u770b\u6a21\u578b\u7684\u4e2d\u95f4\u63a8\u7406\u8fc7\u7a0b\u3002v0.11.4\u7248\u672c\u8fdb\u4e00\u6b65\u5f3a\u5316\u4e86\u8fd9\u4e00\u529f\u80fd\u7684\u5e94\u7528\u573a\u666f&#xff1a;<\/p>\n<li>\u8c03\u8bd5\u4e0e\u4f18\u5316&#xff1a;\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7\u63a8\u7406\u8fc7\u7a0b\u5206\u6790\u6a21\u578b\u7684\u884c\u4e3a\u903b\u8f91&#xff0c;\u8bc6\u522b\u6f5c\u5728\u95ee\u9898<\/li>\n<li>\u6559\u80b2\u5e94\u7528&#xff1a;\u5728\u6559\u5b66\u573a\u666f\u4e2d\u5c55\u793aAI\u7684\u601d\u8003\u8fc7\u7a0b&#xff0c;\u5e2e\u52a9\u5b66\u4e60\u8005\u7406\u89e3AI\u51b3\u7b56\u673a\u5236<\/li>\n<li>\u590d\u6742\u4efb\u52a1\u5206\u89e3&#xff1a;\u5bf9\u4e8e\u9700\u8981\u591a\u6b65\u9aa4\u89e3\u51b3\u7684\u4efb\u52a1&#xff0c;\u601d\u8003\u8fc7\u7a0b\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u7406\u89e3\u4efb\u52a1\u5206\u89e3\u903b\u8f91<\/li>\n<p>\u5bf9\u5e94\u7684API\u8c03\u7528\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u542f\u7528\u601d\u8003\u529f\u80fd<\/span><br \/>\nollama run model-name <span class=\"token parameter variable\">&#8211;think<\/span><\/p>\n<p><span class=\"token comment\"># \u7981\u7528\u601d\u8003\u529f\u80fd<\/span><br \/>\nollama run model-name <span class=\"token parameter variable\">&#8211;think<\/span><span class=\"token operator\">&#061;<\/span>false<\/p>\n<h3>GPU\u8d44\u6e90\u7ba1\u7406\u7684\u4f18\u5316\u7b56\u7565<\/h3>\n<h4>gpt-oss\u6a21\u578b\u7684VRAM\u4f18\u5316<\/h4>\n<p>v0.11.4\u7248\u672c\u9488\u5bf9gpt-oss\u6a21\u578b\u7684VRAM\u4f7f\u7528\u8fdb\u884c\u4e86\u4e13\u95e8\u4f18\u5316&#xff0c;\u89e3\u51b3\u4e86\u5728GPU\u548cCPU\u4e4b\u95f4\u6216\u8de8\u591a\u4e2aGPU\u5206\u5272\u6a21\u578b\u65f6\u7684\u5185\u5b58\u7ba1\u7406\u95ee\u9898\u3002\u8fd9\u4e00\u6539\u8fdb\u7279\u522b\u91cd\u8981&#xff0c;\u56e0\u4e3a&#xff1a;<\/p>\n<li>\u8d44\u6e90\u5229\u7528\u7387\u63d0\u5347&#xff1a;\u66f4\u9ad8\u6548\u7684VRAM\u4f7f\u7528\u5141\u8bb8\u5728\u76f8\u540c\u786c\u4ef6\u4e0a\u8fd0\u884c\u66f4\u5927\u7684\u6a21\u578b\u6216\u5904\u7406\u66f4\u957f\u7684\u4e0a\u4e0b\u6587<\/li>\n<li>\u6210\u672c\u6548\u76ca&#xff1a;\u4f01\u4e1a\u7528\u6237\u53ef\u4ee5\u5728\u73b0\u6709\u786c\u4ef6\u57fa\u7840\u8bbe\u65bd\u4e0a\u5b9e\u73b0\u66f4\u9ad8\u7684\u6027\u80fd\u4ea7\u51fa\u6bd4<\/li>\n<li>\u7a33\u5b9a\u6027\u589e\u5f3a&#xff1a;\u51cf\u5c11\u4e86\u56e0\u5185\u5b58\u4e0d\u8db3\u5bfc\u81f4\u7684\u4e2d\u65ad\u98ce\u9669<\/li>\n<p>\u6280\u672f\u5b9e\u73b0\u4e0a&#xff0c;Ollama\u56e2\u961f\u5f15\u5165\u4e86\u66f4\u7cbe\u7ec6\u7684\u5185\u5b58\u7ba1\u7406\u7b56\u7565&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ Low VRAM\u6a21\u5f0f\u57fa\u4e8e\u603bVRAM(\u975e\u7a7a\u95f2)\u89e6\u53d1\u67d0\u4e9b\u6a21\u578b\u7684\u4e0a\u4e0b\u6587\u957f\u5ea6\u51cf\u5c11<\/span><br \/>\n<span class=\"token keyword\">var<\/span> lowVRAMThreshold <span class=\"token builtin\">uint64<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">20<\/span> <span class=\"token operator\">*<\/span> format<span class=\"token punctuation\">.<\/span>GibiByte<\/p>\n<p><span class=\"token comment\">\/\/ \u5728\u670d\u52a1\u5668\u521d\u59cb\u5316\u65f6\u68c0\u6d4bVRAM\u60c5\u51b5<\/span><br \/>\n<span class=\"token keyword\">var<\/span> totalVRAM <span class=\"token builtin\">uint64<\/span><br \/>\n<span class=\"token keyword\">for<\/span> <span class=\"token boolean\">_<\/span><span class=\"token punctuation\">,<\/span> gpu <span class=\"token operator\">:&#061;<\/span> <span class=\"token keyword\">range<\/span> gpus <span class=\"token punctuation\">{<\/span><br \/>\n    totalVRAM <span class=\"token operator\">&#043;&#061;<\/span> gpu<span class=\"token punctuation\">.<\/span>TotalMemory <span class=\"token operator\">&#8211;<\/span> envconfig<span class=\"token punctuation\">.<\/span><span class=\"token function\">GpuOverhead<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token keyword\">if<\/span> totalVRAM <span class=\"token operator\">&lt;<\/span> lowVRAMThreshold <span class=\"token punctuation\">{<\/span><br \/>\n    s<span class=\"token punctuation\">.<\/span>lowVRAM <span class=\"token operator\">&#061;<\/span> <span class=\"token boolean\">true<\/span><br \/>\n    slog<span class=\"token punctuation\">.<\/span><span class=\"token function\">Info<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;entering low vram mode&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string\">&#034;total vram&#034;<\/span><span class=\"token punctuation\">,<\/span> format<span class=\"token punctuation\">.<\/span><span class=\"token function\">HumanBytes2<\/span><span class=\"token punctuation\">(<\/span>totalVRAM<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string\">&#034;threshold&#034;<\/span><span class=\"token punctuation\">,<\/span> format<span class=\"token punctuation\">.<\/span><span class=\"token function\">HumanBytes2<\/span><span class=\"token punctuation\">(<\/span>lowVRAMThreshold<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h4>\u4e0a\u4e0b\u6587\u957f\u5ea6\u7684\u667a\u80fd\u8c03\u6574<\/h4>\n<p>\u9488\u5bf9\u4e0d\u540c\u786c\u4ef6\u914d\u7f6e&#xff0c;v0.11.4\u7248\u672c\u5b9e\u73b0\u4e86\u4e0a\u4e0b\u6587\u957f\u5ea6\u7684\u52a8\u6001\u8c03\u6574&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ \u9664\u975e\u5bf9\u6027\u80fd\u5f71\u54cd\u592a\u5927&#xff0c;\u5426\u5219\u4e3agptoss\u6a21\u578b\u8bbe\u7f6e\u66f4\u5927\u7684\u4e0a\u4e0b\u6587<\/span><br \/>\n<span class=\"token keyword\">if<\/span> <span class=\"token operator\">!<\/span>s<span class=\"token punctuation\">.<\/span>lowVRAM <span class=\"token operator\">&amp;&amp;<\/span> slices<span class=\"token punctuation\">.<\/span><span class=\"token function\">Contains<\/span><span class=\"token punctuation\">(<\/span>model<span class=\"token punctuation\">.<\/span>Config<span class=\"token punctuation\">.<\/span>ModelFamilies<span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;gptoss&#034;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    opts<span class=\"token punctuation\">.<\/span>NumCtx <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">max<\/span><span class=\"token punctuation\">(<\/span>opts<span class=\"token punctuation\">.<\/span>NumCtx<span class=\"token punctuation\">,<\/span> <span class=\"token number\">8192<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u8fd9\u79cd\u667a\u80fd\u8c03\u6574\u786e\u4fdd\u4e86\u6a21\u578b\u5728\u5404\u79cd\u786c\u4ef6\u73af\u5883\u4e0b\u90fd\u80fd\u53d1\u6325\u6700\u4f73\u6027\u80fd\u3002<\/p>\n<h3>\u4f01\u4e1a\u7ea7\u90e8\u7f72\u7684\u6700\u4f73\u5b9e\u8df5<\/h3>\n<h4>\u6027\u80fd\u8c03\u4f18\u914d\u7f6e<\/h4>\n<p>\u57fa\u4e8ev0.11.4\u7248\u672c\u7684\u7279\u6027&#xff0c;\u63a8\u8350\u4ee5\u4e0b\u6027\u80fd\u8c03\u4f18\u914d\u7f6e&#xff1a;<\/p>\n<li>\u73af\u5883\u53d8\u91cf\u4f18\u5316&#xff1a;<\/li>\n<p><span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">OLLAMA_NUM_PARALLEL<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">4<\/span>  <span class=\"token comment\"># \u6839\u636eCPU\u6838\u5fc3\u6570\u8c03\u6574<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">OLLAMA_GPU_LAYERS<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">40<\/span>   <span class=\"token comment\"># \u6839\u636eGPU\u80fd\u529b\u8c03\u6574<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">OLLAMA_KEEP_ALIVE<\/span><span class=\"token operator\">&#061;<\/span>5m   <span class=\"token comment\"># \u6a21\u578b\u5185\u5b58\u7f13\u5b58\u65f6\u95f4<\/span><\/p>\n<li>\u5185\u5b58\u7ba1\u7406&#xff1a;<\/li>\n<p><span class=\"token comment\"># \u9501\u5b9a\u5185\u5b58\u9632\u6b62\u4ea4\u6362<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">sysctl<\/span> <span class=\"token parameter variable\">-w<\/span> <span class=\"token assign-left variable\">vm.swappiness<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">0<\/span><br \/>\n<span class=\"token comment\"># \u8fd0\u884c\u524d\u6e05\u7406\u5185\u5b58<\/span><br \/>\n<span class=\"token function\">sync<\/span> <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token builtin class-name\">echo<\/span> <span class=\"token number\">3<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> \/proc\/sys\/vm\/drop_caches<\/p>\n<li>\u6279\u5904\u7406\u53c2\u6570\u8c03\u6574&#xff1a;<\/li>\n<p>ollama serve <span class=\"token parameter variable\">&#8211;num_ctx<\/span> <span class=\"token number\">2048<\/span> <span class=\"token parameter variable\">&#8211;num_batch<\/span> <span class=\"token number\">256<\/span><\/p>\n<h4>\u5b89\u5168\u589e\u5f3a\u63aa\u65bd<\/h4>\n<p>v0.11.4\u7248\u672c\u867d\u7136\u6ca1\u6709\u76f4\u63a5\u4fee\u6539\u5b89\u5168\u76f8\u5173\u4ee3\u7801&#xff0c;\u4f46\u57fa\u4e8e\u5176\u5de5\u5177\u8c03\u7528\u80fd\u529b\u7684\u589e\u5f3a&#xff0c;\u5efa\u8bae\u4f01\u4e1a\u7528\u6237\u91c7\u53d6\u4ee5\u4e0b\u5b89\u5168\u63aa\u65bd&#xff1a;<\/p>\n<li>API\u8bbf\u95ee\u63a7\u5236&#xff1a;<\/li>\n<p><span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">OLLAMA_HOST<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">127.0<\/span>.0.1:11434  <span class=\"token comment\"># \u9650\u5236\u76d1\u542cIP<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">OLLAMA_ORIGINS<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;http:\/\/localhost:*&#034;<\/span>  <span class=\"token comment\"># \u9650\u5236\u8de8\u57df\u8bf7\u6c42<\/span><\/p>\n<li>\u8d44\u6e90\u9694\u79bb&#xff1a;<\/li>\n<p><span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">OLLAMA_RUNAS_USER<\/span><span class=\"token operator\">&#061;<\/span>ollama-user  <span class=\"token comment\"># \u4f7f\u7528\u975eroot\u7528\u6237\u8fd0\u884c<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">OLLAMA_TMPDIR<\/span><span class=\"token operator\">&#061;<\/span>\/tmp\/ollama  <span class=\"token comment\"># \u6307\u5b9a\u4e34\u65f6\u76ee\u5f55<\/span><\/p>\n<li>\u65e5\u5fd7\u5ba1\u8ba1&#xff1a;<\/li>\n<p><span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">OLLAMA_DEBUG<\/span><span class=\"token operator\">&#061;<\/span>true  <span class=\"token comment\"># \u542f\u7528\u8be6\u7ec6\u65e5\u5fd7<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">OLLAMA_LOG_DIR<\/span><span class=\"token operator\">&#061;<\/span>\/var\/log\/ollama  <span class=\"token comment\"># \u96c6\u4e2d\u7ba1\u7406\u65e5\u5fd7<\/span><\/p>\n<h3>\u591a\u6a21\u6001\u652f\u6301\u7684\u672a\u6765\u5c55\u671b<\/h3>\n<p>\u867d\u7136v0.11.4\u7248\u672c\u4e3b\u8981\u805a\u7126\u4e8e\u5de5\u5177\u8c03\u7528\u548c\u63a8\u7406\u4f18\u5316&#xff0c;\u4f46\u503c\u5f97\u6ce8\u610f\u7684\u662f&#xff0c;Ollama\u56e2\u961f\u5728\u8fd1\u671f\u5df2\u7ecf\u53d1\u5e03\u4e86\u5168\u65b0\u7684\u591a\u6a21\u6001\u5f15\u64ce\u3002\u8fd9\u4e00\u5f15\u64ce\u7684\u6280\u672f\u7279\u70b9\u5305\u62ec&#xff1a;<\/p>\n<li>\u6a21\u5757\u5316\u8bbe\u8ba1&#xff1a;\u6bcf\u4e2a\u6a21\u578b\u72ec\u7acb\u5c01\u88c5\u89c6\u89c9\u7f16\u7801\u5668\u4e0e\u6587\u672c\u89e3\u7801\u5668&#xff0c;\u9519\u8bef\u9694\u79bb\u7387\u63d0\u5347\u81f399.5%<\/li>\n<li>\u56fe\u50cf\u5904\u7406\u4f18\u5316&#xff1a;\u5f15\u5165\u56fe\u50cf\u5143\u6570\u636e\u6807\u7b7e\u4e0e2D\u65cb\u8f6c\u5d4c\u5165\u6280\u672f&#xff0c;\u4f4d\u7f6e\u7f16\u7801\u8bef\u5dee\u4ece12%\u964d\u81f30.8%<\/li>\n<li>\u5185\u5b58\u7ba1\u7406&#xff1a;\u52a8\u6001\u56fe\u50cf\u7f13\u5b58\u529f\u80fd\u4f7f\u8fde\u7eed\u63a8\u7406\u4efb\u52a1\u7684\u5185\u5b58\u5360\u7528\u51cf\u5c1140%<\/li>\n<p>\u53ef\u4ee5\u9884\u89c1&#xff0c;\u672a\u6765\u7684Ollama\u7248\u672c\u5c06\u8fdb\u4e00\u6b65\u6574\u5408\u8fd9\u4e9b\u591a\u6a21\u6001\u80fd\u529b&#xff0c;\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u66f4\u5168\u9762\u7684\u672c\u5730\u5316AI\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<h3>\u7ed3\u8bba\u4e0e\u5347\u7ea7\u5efa\u8bae<\/h3>\n<p>Ollama v0.11.4\u7248\u672c\u867d\u7136\u5728\u8868\u9762\u4e0a\u662f\u5e38\u89c4\u8fed\u4ee3\u66f4\u65b0&#xff0c;\u4f46\u5176\u5728\u5de5\u5177\u8c03\u7528\u3001\u63a8\u7406\u900f\u660e\u5ea6\u548c\u8d44\u6e90\u7ba1\u7406\u65b9\u9762\u7684\u6539\u8fdb&#xff0c;\u663e\u8457\u63d0\u5347\u4e86\u5e73\u53f0\u7684\u5b9e\u7528\u6027\u548c\u53ef\u9760\u6027\u3002\u7279\u522b\u662f\u5bf9\u4e8e\u9700\u8981\u6784\u5efa\u590d\u6742AI\u5de5\u4f5c\u6d41\u7684\u4f01\u4e1a\u7528\u6237&#xff0c;\u8fd9\u4e9b\u6539\u8fdb\u610f\u5473\u7740\u66f4\u9ad8\u7684\u5f00\u53d1\u6548\u7387\u548c\u66f4\u7a33\u5b9a\u7684\u8fd0\u884c\u8868\u73b0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb31\u6b21\u3002Ollama v0.11.4\u7248\u672c\u867d\u7136\u5728\u8868\u9762\u4e0a\u662f\u5e38\u89c4\u8fed\u4ee3\u66f4\u65b0\uff0c\u4f46\u5176\u5728\u5de5\u5177\u8c03\u7528\u3001\u63a8\u7406\u900f\u660e\u5ea6\u548c\u8d44\u6e90\u7ba1\u7406\u65b9\u9762\u7684\u6539\u8fdb\uff0c\u663e\u8457\u63d0\u5347\u4e86\u5e73\u53f0\u7684\u5b9e\u7528\u6027\u548c\u53ef\u9760\u6027\u3002\u5728v0.11.4\u4e4b\u524d\uff0cOllama\u5904\u7406\u5de5\u5177\u8c03\u7528\u65f6\u5b58\u5728\u4e00\u4e2a\u9650\u5236\uff1a\u5f53\u6a21\u578b\u51b3\u5b9a\u8c03\u7528\u5de5\u5177\u65f6\uff0c\u5176\u54cd\u5e94\u6d88\u606f\u8981\u4e48\u53ea\u5305\u542b\u5de5\u5177\u8c03\u7528\u6307\u4ee4\uff0c\u8981\u4e48\u53ea\u5305\u542b\u6587\u672c\u5185\u5bb9\uff0c\u65e0\u6cd5\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\u867d\u7136v0.11.4\u7248\u672c\u4e3b\u8981\u805a\u7126\u4e8e\u5de5\u5177\u8c03\u7528\u548c\u63a8\u7406\u4f18\u5316\uff0c\u4f46\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0cOllama\u56e2\u961f\u5728\u8fd1\u671f\u5df2\u7ecf\u53d1\u5e03\u4e86\u5168\u65b0\u7684\u591a\u6a21\u6001\u5f15\u64ce\u3002\u8fd9\u79cd\u6539\u8fdb\u786e\u4fdd\u4e86\u5de5\u5177\u8c03\u7528\u94fe\u8def\u7684\u5b8c\u6574\u6027\u548c\u4e00\u81f4\u6027\uff0c\u4e3a\u6784\u5efa\u590d\u6742\u7684\u5de5\u5177\u8c03\u7528\u5de5\u4f5c\u6d41\u5960\u5b9a\u4e86\u57fa\u7840\u3002<\/p>\n","protected":false},"author":2,"featured_media":53297,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[92,50,87,4084],"topic":[],"class_list":["post-53298","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-github","tag-50","tag-87","tag-vschatgpt"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ollama v0.11.4 \u91cd\u78c5\u66f4\u65b0\uff1a\u5de5\u5177\u8c03\u7528\u4e0e\u63a8\u7406\u80fd\u529b\u5168\u9762\u5347\u7ea7\u7684\u6280\u672f\u89e3\u6790 - \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\/53298.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ollama v0.11.4 \u91cd\u78c5\u66f4\u65b0\uff1a\u5de5\u5177\u8c03\u7528\u4e0e\u63a8\u7406\u80fd\u529b\u5168\u9762\u5347\u7ea7\u7684\u6280\u672f\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb31\u6b21\u3002Ollama v0.11.4\u7248\u672c\u867d\u7136\u5728\u8868\u9762\u4e0a\u662f\u5e38\u89c4\u8fed\u4ee3\u66f4\u65b0\uff0c\u4f46\u5176\u5728\u5de5\u5177\u8c03\u7528\u3001\u63a8\u7406\u900f\u660e\u5ea6\u548c\u8d44\u6e90\u7ba1\u7406\u65b9\u9762\u7684\u6539\u8fdb\uff0c\u663e\u8457\u63d0\u5347\u4e86\u5e73\u53f0\u7684\u5b9e\u7528\u6027\u548c\u53ef\u9760\u6027\u3002\u5728v0.11.4\u4e4b\u524d\uff0cOllama\u5904\u7406\u5de5\u5177\u8c03\u7528\u65f6\u5b58\u5728\u4e00\u4e2a\u9650\u5236\uff1a\u5f53\u6a21\u578b\u51b3\u5b9a\u8c03\u7528\u5de5\u5177\u65f6\uff0c\u5176\u54cd\u5e94\u6d88\u606f\u8981\u4e48\u53ea\u5305\u542b\u5de5\u5177\u8c03\u7528\u6307\u4ee4\uff0c\u8981\u4e48\u53ea\u5305\u542b\u6587\u672c\u5185\u5bb9\uff0c\u65e0\u6cd5\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\u867d\u7136v0.11.4\u7248\u672c\u4e3b\u8981\u805a\u7126\u4e8e\u5de5\u5177\u8c03\u7528\u548c\u63a8\u7406\u4f18\u5316\uff0c\u4f46\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0cOllama\u56e2\u961f\u5728\u8fd1\u671f\u5df2\u7ecf\u53d1\u5e03\u4e86\u5168\u65b0\u7684\u591a\u6a21\u6001\u5f15\u64ce\u3002\u8fd9\u79cd\u6539\u8fdb\u786e\u4fdd\u4e86\u5de5\u5177\u8c03\u7528\u94fe\u8def\u7684\u5b8c\u6574\u6027\u548c\u4e00\u81f4\u6027\uff0c\u4e3a\u6784\u5efa\u590d\u6742\u7684\u5de5\u5177\u8c03\u7528\u5de5\u4f5c\u6d41\u5960\u5b9a\u4e86\u57fa\u7840\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/53298.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-12T00:04:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812000422-689a85068884a.png\" \/>\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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/53298.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/53298.html\",\"name\":\"ollama v0.11.4 \u91cd\u78c5\u66f4\u65b0\uff1a\u5de5\u5177\u8c03\u7528\u4e0e\u63a8\u7406\u80fd\u529b\u5168\u9762\u5347\u7ea7\u7684\u6280\u672f\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-12T00:04:23+00:00\",\"dateModified\":\"2025-08-12T00:04:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/53298.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/53298.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/53298.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ollama v0.11.4 \u91cd\u78c5\u66f4\u65b0\uff1a\u5de5\u5177\u8c03\u7528\u4e0e\u63a8\u7406\u80fd\u529b\u5168\u9762\u5347\u7ea7\u7684\u6280\u672f\u89e3\u6790\"}]},{\"@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":"ollama v0.11.4 \u91cd\u78c5\u66f4\u65b0\uff1a\u5de5\u5177\u8c03\u7528\u4e0e\u63a8\u7406\u80fd\u529b\u5168\u9762\u5347\u7ea7\u7684\u6280\u672f\u89e3\u6790 - \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\/53298.html","og_locale":"zh_CN","og_type":"article","og_title":"ollama v0.11.4 \u91cd\u78c5\u66f4\u65b0\uff1a\u5de5\u5177\u8c03\u7528\u4e0e\u63a8\u7406\u80fd\u529b\u5168\u9762\u5347\u7ea7\u7684\u6280\u672f\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb31\u6b21\u3002Ollama v0.11.4\u7248\u672c\u867d\u7136\u5728\u8868\u9762\u4e0a\u662f\u5e38\u89c4\u8fed\u4ee3\u66f4\u65b0\uff0c\u4f46\u5176\u5728\u5de5\u5177\u8c03\u7528\u3001\u63a8\u7406\u900f\u660e\u5ea6\u548c\u8d44\u6e90\u7ba1\u7406\u65b9\u9762\u7684\u6539\u8fdb\uff0c\u663e\u8457\u63d0\u5347\u4e86\u5e73\u53f0\u7684\u5b9e\u7528\u6027\u548c\u53ef\u9760\u6027\u3002\u5728v0.11.4\u4e4b\u524d\uff0cOllama\u5904\u7406\u5de5\u5177\u8c03\u7528\u65f6\u5b58\u5728\u4e00\u4e2a\u9650\u5236\uff1a\u5f53\u6a21\u578b\u51b3\u5b9a\u8c03\u7528\u5de5\u5177\u65f6\uff0c\u5176\u54cd\u5e94\u6d88\u606f\u8981\u4e48\u53ea\u5305\u542b\u5de5\u5177\u8c03\u7528\u6307\u4ee4\uff0c\u8981\u4e48\u53ea\u5305\u542b\u6587\u672c\u5185\u5bb9\uff0c\u65e0\u6cd5\u540c\u65f6\u5305\u542b\u4e24\u8005\u3002\u867d\u7136v0.11.4\u7248\u672c\u4e3b\u8981\u805a\u7126\u4e8e\u5de5\u5177\u8c03\u7528\u548c\u63a8\u7406\u4f18\u5316\uff0c\u4f46\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0cOllama\u56e2\u961f\u5728\u8fd1\u671f\u5df2\u7ecf\u53d1\u5e03\u4e86\u5168\u65b0\u7684\u591a\u6a21\u6001\u5f15\u64ce\u3002\u8fd9\u79cd\u6539\u8fdb\u786e\u4fdd\u4e86\u5de5\u5177\u8c03\u7528\u94fe\u8def\u7684\u5b8c\u6574\u6027\u548c\u4e00\u81f4\u6027\uff0c\u4e3a\u6784\u5efa\u590d\u6742\u7684\u5de5\u5177\u8c03\u7528\u5de5\u4f5c\u6d41\u5960\u5b9a\u4e86\u57fa\u7840\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/53298.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-12T00:04:23+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812000422-689a85068884a.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/53298.html","url":"https:\/\/www.wsisp.com\/helps\/53298.html","name":"ollama v0.11.4 \u91cd\u78c5\u66f4\u65b0\uff1a\u5de5\u5177\u8c03\u7528\u4e0e\u63a8\u7406\u80fd\u529b\u5168\u9762\u5347\u7ea7\u7684\u6280\u672f\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-12T00:04:23+00:00","dateModified":"2025-08-12T00:04:23+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/53298.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/53298.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/53298.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"ollama v0.11.4 \u91cd\u78c5\u66f4\u65b0\uff1a\u5de5\u5177\u8c03\u7528\u4e0e\u63a8\u7406\u80fd\u529b\u5168\u9762\u5347\u7ea7\u7684\u6280\u672f\u89e3\u6790"}]},{"@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\/53298","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=53298"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/53298\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/53297"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=53298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=53298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=53298"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=53298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}