{"id":21177,"date":"2024-07-16T10:06:30","date_gmt":"2024-07-16T02:06:30","guid":{"rendered":"https:\/\/aif.amtbbs.org\/?p=21177"},"modified":"2024-07-16T10:06:30","modified_gmt":"2024-07-16T02:06:30","slug":"%e4%bd%bf%e7%94%a8-open-webui-%e5%9c%a8-kubernetes-%e9%9b%86%e7%be%a4%e4%b8%8a%e9%83%a8%e7%bd%b2-llama3","status":"publish","type":"post","link":"https:\/\/aif.amtbbs.org\/index.php\/2024\/07\/16\/21177\/","title":{"rendered":"\u4f7f\u7528 Open WebUI \u5728 Kubernetes \u96c6\u7fa4\u4e0a\u90e8\u7f72 \u200b\u200bllama3\u200b\u200b"},"content":{"rendered":"<div><img data-dominant-color=\"12416b\" data-has-transparency=\"false\" style=\"--dominant-color: #12416b;\" loading=\"lazy\" decoding=\"async\" class=\"not-transparent alignnone size-full wp-image-21178\" src=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2024\/07\/b9d96f356de6cd1d5ea2307c9034f747ff63c0.png\" width=\"416\" height=\"232\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2024\/07\/b9d96f356de6cd1d5ea2307c9034f747ff63c0.png 416w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2024\/07\/b9d96f356de6cd1d5ea2307c9034f747ff63c0-300x167.png 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2024\/07\/b9d96f356de6cd1d5ea2307c9034f747ff63c0-150x84.png 150w\" sizes=\"auto, (max-width: 416px) 100vw, 416px\" \/><\/div>\n<div class=\"article-desc\">\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u63a2\u8ba8\u4e86\u4f7f\u7528 Open WebUI \u5728 Kubernetes \u96c6\u7fa4\u4e0a\u90e8\u7f72 llama3\u200b \u7684\u8fc7\u7a0b\u3002\u901a\u8fc7\u5bb9\u5668\u5316\u548c\u7f16\u6392\u6280\u672f\uff0c\u6211\u4eec\u6210\u529f\u5730\u5c06 AI powered \u7684\u804a\u5929\u673a\u5668\u4eba\u90e8\u7f72\u5230\u4e86\u53ef\u6269\u5c55\u548c\u7ef4\u62a4\u7684\u73af\u5883\u4e2d\u3002<\/div>\n<div id=\"postspictures\" class=\"article-content\">\n<div id=\"container\" class=\"container am-engine\" data-v-1d7a5742=\"\" data-element=\"root\">\n<p>\u4ece\u4eca\u5e74\u5f00\u59cb\uff0c\u4eba\u4eec\u5bf9\u5927\u578b\u8bed\u8a00\u6a21\u578b (LLM) \u53ca\u5176\u5728 GPU \u57fa\u7840\u8bbe\u65bd\u4e0a\u7684\u90e8\u7f72\u7684\u5174\u8da3\u663e\u7740\u589e\u52a0\u3002\u8fd9\u79cd\u4e0d\u65ad\u589e\u957f\u7684\u70ed\u60c5\u662f\u7531\u4eba\u5de5\u667a\u80fd\u548c\u673a\u5668\u5b66\u4e60\u7684\u8fdb\u6b65\u63a8\u52a8\u7684\uff0c\u8fd9\u9700\u8981 GPU \u80fd\u591f\u6709\u6548\u63d0\u4f9b\u5927\u91cf\u7684\u8ba1\u7b97\u80fd\u529b\u3002GPU \u9886\u5148\u5236\u9020\u5546 Nvidia \u7684\u80a1\u4ef7\u4e5f\u56e0\u8fd9\u4e00\u8d8b\u52bf\u800c\u98d9\u5347\u3002\u540c\u6837\u8bde\u751f\u4e86\u5927\u91cf\u7684\u5927\u6a21\u578b\uff0c\u5bf9\u4e8e\u8fd9\u4e9b\u6a21\u578b\u7684\u90e8\u7f72\u548c\u7ba1\u7406\u4e5f\u53d8\u5f97\u8d8a\u6765\u8d8a\u91cd\u8981\uff0c\u5728\u8fd9\u65b9\u9762\u00a0Ollama\u00a0\u548c\u00a0OpenUI\u00a0\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/p>\n<p>Ollama \u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u673a\u5668\u5b66\u4e60\u6a21\u578b\u90e8\u7f72\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u60a8\u5c06\u6a21\u578b\u90e8\u7f72\u5230\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u7b80\u5316\u5927\u578b\u8bed\u8a00\u6a21\u578b (LLM) \u7684\u7ba1\u7406\u548c\u4ea4\u4e92\u3002Ollama \u62e5\u6709\u5404\u79cd\u4e00\u6d41\u7684\u5f00\u6e90\u6a21\u578b\uff0c\u4f8b\u5982\u00a0Llama 3\u3001Phi 3\u3001Mistral\u00a0\u7b49\u7b49\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06 Ollama \u770b\u6210\u662f Docker\uff0c\u4f46\u662f\u4e13\u6ce8\u4e8e\u673a\u5668\u5b66\u4e60\u6a21\u578b\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s9.51cto.com\/oss\/202407\/16\/08ed7622120140428331368e7b0138d898d57e.webp\" alt=\"\" data-type=\"block\" \/><\/p>\n<p>\u4f7f\u7528\u00a0Ollama\u00a0\u90e8\u7f72\u6a21\u578b\u975e\u5e38\u7b80\u5355\uff0c\u5c31\u7c7b\u4f3c\u4e8e\u4f7f\u7528 Docker \u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u4e00\u6837\u3002\u4f46\u662f\uff0c\u5982\u679c\u4f60\u5bf9 CLI \u4e0d\u719f\u6089\uff0c\u90a3\u4e48\u4f7f\u7528\u00a0Ollama\u00a0\u4f1a\u6709\u70b9\u75db\u82e6\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a open-webui \u7684\u9879\u76ee\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u6f02\u4eae\u7684\u754c\u9762\uff0c\u53ef\u4ee5\u8ba9\u60a8\u66f4\u8f7b\u677e\u5730\u90e8\u7f72\u6a21\u578b\u3002<\/p>\n<p>\u4e3a\u4e86\u66f4\u597d\u5730\u7ba1\u7406 Ollama\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06 Ollama \u90e8\u7f72\u5230 Kubernetes \u96c6\u7fa4\u4e2d\u3002\u8fd9\u6837\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u66f4\u597d\u5730\u7ba1\u7406 Ollama\uff0c\u800c\u4e0d\u9700\u8981\u62c5\u5fc3 Ollama \u7684\u9ad8\u53ef\u7528\u6027\u3001\u6269\u5c55\u6027\u7b49\u95ee\u9898\u3002<\/p>\n<p>\u5f53\u7136\u9996\u5148\u9700\u8981\u4e00\u4e2a Kubernetes \u96c6\u7fa4\uff0c\u6700\u597d\u5e26\u6709 GPU\uff0c\u4f46\u5373\u4f7f\u6ca1\u6709 GPU\uff0cllama3\u00a0\u6a21\u578b\u5728\u4ec5\u4f7f\u7528 CPU \u7684\u60c5\u51b5\u4e0b\u4e5f\u80fd\u8868\u73b0\u5f97\u76f8\u5bf9\u8f83\u597d\u3002<\/p>\n<div>\n<div class=\"hljs-cto\">\n<div class=\"hljs-cto\"><button class=\"copy_btn disable\" data-clipboard-target=\"#code_id_0\">\u590d\u5236<\/button><\/p>\n<div class=\"code-toolbar\">\n<pre class=\"has-pre-numbering language-plain\" tabindex=\"0\"><code class=\"language-plain\">$ kubectl version\r\nClient Version: v1.28.11\r\nKustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3\r\nServer Version: v1.28.7<\/code><\/pre>\n<ul id=\"code_id_0\" class=\"pre-numbering\">\n<li>1.<\/li>\n<li>2.<\/li>\n<li>3.<\/li>\n<li>4.<\/li>\n<\/ul>\n<div class=\"toolbar\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3>\u90e8\u7f72 Ollama \u5230 Kubernetes<\/h3>\n<p>\u8981\u90e8\u7f72 Ollama \u548c Open-WebUI \u5230 Kubernetes \u5f88\u7b80\u5355\uff0c\u56e0\u4e3a Open-WebUI \u9879\u76ee\u63d0\u4f9b\u4e86\u4e00\u4e2a Helm Chart\uff0c\u53ef\u4ee5\u8ba9\u6211\u4eec\u66f4\u8f7b\u677e\u5730\u90e8\u7f72 Ollama \u548c Open-WebUI\u3002\u8fd9\u4e2a charts \u5305\u88ab\u6258\u7ba1\u5728 https:\/\/helm.openwebui.com\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 Helm \u6dfb\u52a0\u8fd9\u4e2a repo\uff1a<\/p>\n<div>\n<div class=\"hljs-cto\">\n<div class=\"hljs-cto\"><button class=\"copy_btn disable\" data-clipboard-target=\"#code_id_1\">\u590d\u5236<\/button><\/p>\n<div class=\"code-toolbar\">\n<pre class=\"has-pre-numbering language-plain\" tabindex=\"0\"><code class=\"language-plain\">helm repo add open-webui https:\/\/helm.openwebui.com\/\r\nhelm repo update<\/code><\/pre>\n<ul id=\"code_id_1\" class=\"pre-numbering\">\n<li>1.<\/li>\n<li>2.<\/li>\n<\/ul>\n<div class=\"toolbar\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>open-webui\u00a0\u8fd9\u4e2a charts \u5305\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4f1a\u90e8\u7f72\u00a0Ollama\uff0c\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u8fdb\u884c\u914d\u7f6e\uff0c\u4f8b\u5982\u6211\u4eec\u53ef\u4ee5\u914d\u7f6e\u00a0Ollama\u00a0\u662f\u5426\u4f7f\u7528 GPU\uff0c\u662f\u5426\u5f00\u542f\u6570\u636e\u6301\u4e45\u5316\u7b49\u7b49\uff0c\u6211\u4eec\u53ef\u4ee5\u8986\u76d6\u9ed8\u8ba4\u7684\u914d\u7f6e\u6765\u8fdb\u884c\u914d\u7f6e\uff0c\u5982\u4e0b\uff1a<\/p>\n<div>\n<div class=\"hljs-cto\">\n<div class=\"hljs-cto\"><button class=\"copy_btn disable\" data-clipboard-target=\"#code_id_2\">\u590d\u5236<\/button><\/p>\n<div class=\"code-toolbar\">\n<pre class=\"has-pre-numbering language-plain\" tabindex=\"0\"><code class=\"language-plain\"># myvalues.yaml\r\nollama:\r\n  enabled: true # \u81ea\u52a8\u5b89\u88c5 Ollama Helm Chart\r\n  ollama: # \u914d\u7f6e Ollama\r\n    gpu:\r\n      enabled: false # \u662f\u5426\u4f7f\u7528 GPU\r\n    #   type: 'nvidia'\r\n    #   number: 1\r\n    # models:  # \u5bb9\u5668\u542f\u52a8\u7684\u65f6\u5019\u52a0\u8f7d\u7684\u6a21\u578b\r\n    #  - llama3\r\n    #  - mistral\r\n  persistentVolume: # \u914d\u7f6e\u6301\u4e45\u5316\u5b58\u50a8\r\n    enabled: true\r\n    storageClass: nfs-client # \u6307\u5b9a storageClass\r\n    # existingClaim: \"\"  # \u4e5f\u53ef\u4ee5\u4f7f\u7528\u5df2\u7ecf\u5b58\u5728\u7684 PVC\r\n\r\n# ========== Pipelines \u914d\u7f6e ==========\r\n\r\npipelines: # OpenAI API \u63d2\u4ef6\u6846\u67b6\r\n  enabled: true\r\n\r\n  persistence:\r\n    enabled: true\r\n    storageClass: \"nfs-client\"\r\n\r\n  service:\r\n    type: NodePort\r\n\r\n# ========== open-webui \u914d\u7f6e ==========\r\n# ingress: # \u914d\u7f6e Ingress\r\n#   enabled: false\r\n#   host: \"open-webui.example.com\"\r\n\r\n# \u914d\u7f6e\u6301\u4e45\u5316\u5b58\u50a8\r\npersistence:\r\n  enabled: true\r\n  #   existingClaim: \"\"  # \u4e5f\u53ef\u4ee5\u4f7f\u7528\u5df2\u7ecf\u5b58\u5728\u7684 PVC\r\n  storageClass: \"nfs-client\" # \u6307\u5b9a storageClass\r\n\r\nservice:\r\n  type: NodePort # \u8bbe\u7f6e Service \u7c7b\u578b\r\n\r\n# \u6307\u5b9a OpenAI API URL\uff0c\u5982\u679c\u4e0d\u6307\u5b9a\uff0c\u9ed8\u8ba4\u4f7f\u7528 Pipelines \u670d\u52a1\u7684\u7aef\u70b9  https:\/\/api.openai.com\/v1\r\n# openaiBaseApiUrl: \"\"\r\n\r\n# \u914d\u7f6e\u989d\u5916\u7684\u73af\u5883\u53d8\u91cf\r\nextraEnvVars:\r\n  - name: HF_ENDPOINT\r\n    value: https:\/\/hf-mirror.com\r\n# - name: OPENAI_API_KEY # \u6307\u5b9a OpenAI API Key\r\n#   value: \"0p3n-w3bu!\"<\/code><\/pre>\n<ul id=\"code_id_2\" class=\"pre-numbering\">\n<li>1.<\/li>\n<li>2.<\/li>\n<li>3.<\/li>\n<li>4.<\/li>\n<li>5.<\/li>\n<li>6.<\/li>\n<li>7.<\/li>\n<li>8.<\/li>\n<li>9.<\/li>\n<li>10.<\/li>\n<li>11.<\/li>\n<li>12.<\/li>\n<li>13.<\/li>\n<li>14.<\/li>\n<li>15.<\/li>\n<li>16.<\/li>\n<li>17.<\/li>\n<li>18.<\/li>\n<li>19.<\/li>\n<li>20.<\/li>\n<li>21.<\/li>\n<li>22.<\/li>\n<li>23.<\/li>\n<li>24.<\/li>\n<li>25.<\/li>\n<li>26.<\/li>\n<li>27.<\/li>\n<li>28.<\/li>\n<li>29.<\/li>\n<li>30.<\/li>\n<li>31.<\/li>\n<li>32.<\/li>\n<li>33.<\/li>\n<li>34.<\/li>\n<li>35.<\/li>\n<li>36.<\/li>\n<li>37.<\/li>\n<li>38.<\/li>\n<li>39.<\/li>\n<li>40.<\/li>\n<li>41.<\/li>\n<li>42.<\/li>\n<li>43.<\/li>\n<li>44.<\/li>\n<li>45.<\/li>\n<li>46.<\/li>\n<li>47.<\/li>\n<li>48.<\/li>\n<li>49.<\/li>\n<li>50.<\/li>\n<li>51.<\/li>\n<\/ul>\n<div class=\"toolbar\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>\u5728\u4e0a\u9762\u7684\u914d\u7f6e\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u914d\u7f6e\u00a0Ollama\u00a0\u662f\u5426\u4f7f\u7528 GPU\uff0c\u662f\u5426\u5f00\u542f\u6570\u636e\u6301\u4e45\u5316\u7b49\u7b49\uff0c\u5bf9\u4e8e\u00a0open-webui\u00a0\u90e8\u5206\uff0c\u6211\u4eec\u914d\u7f6e\u7684\u662f\u4e00\u4e2a\u00a0NodePort\u00a0\u7c7b\u578b\u7684 Service\uff0c\u8fd9\u6837\u6211\u4eec\u5c31\u53ef\u4ee5\u901a\u8fc7 Node \u7684 IP \u548c NodePort \u6765\u8bbf\u95ee Open-WebUI \u9879\u76ee\uff0c\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u914d\u7f6e Ingress \u6765\u8bbf\u95ee\u3002<\/p>\n<blockquote><p>\u6ce8\u610f\uff1aOpen-WebUI \u9879\u76ee\u9ed8\u8ba4\u4f1a\u53bb\u8bbf\u95ee\u00a0huggingface\u00a0\u7684\u6a21\u578b\u4ed3\u5e93\uff0c\u56e0\u4e3a\u67d0\u4e9b\u539f\u56e0\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u56fd\u5185\u662f\u65e0\u6cd5\u8bbf\u95ee\u7684\uff0c\u6240\u4ee5\u6211\u4eec\u9700\u8981\u914d\u7f6e\u00a0HF_ENDPOINT\u00a0\u73af\u5883\u53d8\u91cf\u6765\u6307\u5b9a\u4e00\u4e2a\u955c\u50cf\u5730\u5740\u00a0https:\/\/hf-mirror.com\uff0c\u5426\u5219\u4f1a\u51fa\u9519\u3002<\/p><\/blockquote>\n<p>\u7136\u540e\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 Helm \u5b89\u88c5\u8fd9\u4e2a charts \u5305\uff1a<\/p>\n<div>\n<div class=\"hljs-cto\">\n<div class=\"hljs-cto\"><button class=\"copy_btn disable\" data-clipboard-target=\"#code_id_3\">\u590d\u5236<\/button><\/p>\n<div class=\"code-toolbar\">\n<pre class=\"has-pre-numbering language-plain\" tabindex=\"0\"><code class=\"language-plain\">helm upgrade --install ollama open-webui\/open-webui -f myvalues.yaml --create-namespace --namespace kube-ai<\/code><\/pre>\n<ul id=\"code_id_3\" class=\"pre-numbering\">\n<li>1.<\/li>\n<\/ul>\n<div class=\"toolbar\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>\u90e8\u7f72\u5b8c\u6210\u540e\uff0c\u4f1a\u5728\u00a0kube-ai\u00a0\u8fd9\u4e2a\u547d\u540d\u7a7a\u95f4\u4e0b\u8fd0\u884c\u51e0\u4e2a Pod\uff0c\u6211\u4eec\u53ef\u4ee5\u67e5\u770b Pod \u7684\u72b6\u6001\uff1a<\/p>\n<div>\n<div class=\"hljs-cto\">\n<div class=\"hljs-cto\"><button class=\"copy_btn disable\" data-clipboard-target=\"#code_id_4\">\u590d\u5236<\/button><\/p>\n<div class=\"code-toolbar\">\n<pre class=\"has-pre-numbering language-plain\" tabindex=\"0\"><code class=\"language-plain\">$ kubectl get pods -n kube-ai\r\nNAME                                    READY   STATUS    RESTARTS        AGE\r\nopen-webui-0                            1\/1     Running   0               2m11s\r\nopen-webui-ollama-944dd68fc-wxsjf       1\/1     Running   0               24h\r\nopen-webui-pipelines-557f6f95cd-dfgh8   1\/1     Running   0               25h<\/code><\/pre>\n<ul id=\"code_id_4\" class=\"pre-numbering\">\n<li>1.<\/li>\n<li>2.<\/li>\n<li>3.<\/li>\n<li>4.<\/li>\n<li>5.<\/li>\n<\/ul>\n<div class=\"toolbar\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>\u56e0\u4e3a\u4e0a\u9762\u6211\u4eec\u914d\u7f6e\u7684\u662f\u00a0NodePort\u00a0\u7c7b\u578b\u7684 Service\uff0c\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7 Node \u7684 IP \u548c NodePort \u6765\u8bbf\u95ee Open-WebUI \u9879\u76ee\uff1a<\/p>\n<div>\n<div class=\"hljs-cto\">\n<div class=\"hljs-cto\"><button class=\"copy_btn disable\" data-clipboard-target=\"#code_id_5\">\u590d\u5236<\/button><\/p>\n<div class=\"code-toolbar\">\n<pre class=\"has-pre-numbering language-plain\" tabindex=\"0\"><code class=\"language-plain\">$ kubectl get svc -n kube-ai\r\nNAME                   TYPE        CLUSTER-IP    EXTERNAL-IP   PORT(S)          AGE\r\nopen-webui             NodePort    10.96.1.212   &lt;none&gt;        80:31009\/TCP     25h\r\nopen-webui-ollama      ClusterIP   10.96.2.112   &lt;none&gt;        11434\/TCP        25h\r\nopen-webui-pipelines   NodePort    10.96.2.170   &lt;none&gt;        9099:32322\/TCP   25h<\/code><\/pre>\n<ul id=\"code_id_5\" class=\"pre-numbering\">\n<li>1.<\/li>\n<li>2.<\/li>\n<li>3.<\/li>\n<li>4.<\/li>\n<li>5.<\/li>\n<\/ul>\n<div class=\"toolbar\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3>\u4f7f\u7528<\/h3>\n<p>\u73b0\u5728\u6211\u4eec\u5c31\u53ef\u4ee5\u901a\u8fc7\u00a0http:\/\/NodeIP:31009\u00a0\u6765\u8bbf\u95ee Open-WebUI \u9879\u76ee\u4e86\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s3.51cto.com\/oss\/202407\/16\/315334a7262523f5ebf48730daee8440c88c49.webp\" alt=\"\" data-type=\"block\" \/><\/p>\n<p>\u7b2c\u4e00\u6b21\u4f7f\u7528\u7684\u65f6\u5019\u9700\u8981\u6ce8\u518c\u4e00\u4e2a\u8d26\u53f7\uff0c\u7136\u540e\u6211\u4eec\u5c31\u53ef\u4ee5\u767b\u5f55\u5230 Open-WebUI \u9879\u76ee\u4e3b\u9875\u4e86\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s3.51cto.com\/oss\/202407\/16\/53afe736719499248d4698a24fa9098b5206fb.webp\" alt=\"\" data-type=\"block\" \/><\/p>\n<p>\u5982\u679c\u4f60\u6709\u00a0ollama\u00a0\u5728\u5176\u4ed6\u5730\u65b9\u8fd0\u884c\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u5176\u6dfb\u52a0\u4e3a\u53e6\u4e00\u4e2a\u8fde\u63a5\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s9.51cto.com\/oss\/202407\/16\/845f43d20425cf32bac81953566ee950f08c09.webp\" alt=\"\" data-type=\"block\" \/><\/p>\n<p>\u9996\u5148\u9700\u8981\u914d\u7f6e\u8fde\u63a5\u00a0ollama\u00a0\u7684\u5730\u5740\uff0c\u7136\u540e\u6211\u4eec\u5c31\u53ef\u4ee5\u8fde\u63a5\u5230\u00a0ollama\u00a0\u4e86\uff0c\u8fde\u63a5\u6210\u529f\u540e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u770b\u5230\u00a0ollama\u00a0\u7684\u6a21\u578b\u5217\u8868\u4e86\u3002<\/p>\n<p>\u70b9\u51fb\u5de6\u4e0b\u89d2\u7684\u7528\u6237\u5934\u50cf\uff0c\u7136\u540e\u9009\u62e9\u00a0\u7ba1\u7406\u5458\u9762\u677f\uff0c\u5728\u7ba1\u7406\u5458\u9762\u677f\u9875\u9762\u9009\u62e9\u00a0\u8bbe\u7f6e\u00a0\u6807\u7b7e\u9875\uff0c\u7136\u540e\u5207\u6362\u5230\u00a0\u5916\u90e8\u8fde\u63a5\u00a0\u914d\u7f6e\u9879\uff0c\u6211\u4eec\u53ef\u4ee5\u8bbe\u7f6e\u00a0Ollama API\u00a0\u5730\u5740\uff0c\u6211\u4eec\u8fd9\u91cc\u4f7f\u7528\u7684\u662f Helm \u90e8\u7f72\u7684\u00a0Ollama\uff0c\u9ed8\u8ba4\u5df2\u7ecf\u4e3a\u6211\u4eec\u914d\u7f6e\u597d\u4e86\u00a0Ollama API\u00a0\u5730\u5740\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\u5207\u6362\u5230\u00a0\u6a21\u578b\u00a0\u6807\u7b7e\u9875\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u4ece\u00a0Ollama\u00a0\u7684\u6a21\u578b\u4ed3\u5e93\u4e2d\u62c9\u53d6\u6a21\u578b\u4e86\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u7684\u6a21\u578b\u53ef\u4ee5\u4ece\u00a0https:\/\/ollama.com\/library\u00a0\u67e5\u770b\u3002\u6bd4\u5982\u6211\u4eec\u8fd9\u91cc\u9009\u62e9\u00a0llama3\u00a0\u6a21\u578b\uff0c\u8f93\u5165\u00a0llama3\u00a0\u7136\u540e\u70b9\u51fb\u53f3\u4fa7\u7684\u62c9\u53d6\u4e0b\u8f7d\u6309\u94ae\uff0c\u5c31\u4f1a\u5f00\u59cb\u4e0b\u8f7d\u8fd9\u4e2a\u6a21\u578b\u4e86\uff0c\u5728\u9875\u9762\u4e2d\u4e5f\u53ef\u4ee5\u770b\u5230\u4e0b\u8f7d\u7684\u8fdb\u5ea6\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s3.51cto.com\/oss\/202407\/16\/d9233fb92fca215e5a7356e72b57a4bf8e66b9.webp\" alt=\"\" data-type=\"block\" \/><\/p>\n<p>\u6a21\u578b\u62c9\u53d6\u5b8c\u6210\u540e\uff0c\u5207\u56de\u5230\u9996\u9875\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u9009\u62e9\u5207\u6362\u5230\u00a0llama3\u00a0\u6a21\u578b\u4e86\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s2.51cto.com\/oss\/202407\/16\/963de7f952124f2ec1471821b2bc2d3cb50b17.webp\" alt=\"\" data-type=\"block\" \/><\/p>\n<p>\u63a5\u4e0b\u6765\u6211\u4eec\u5c31\u53ef\u4ee5\u4f7f\u7528\u00a0llama3\u00a0\u6a21\u578b\u4e3a\u6211\u4eec\u670d\u52a1\u4e86\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u56fe\u7247\" src=\"https:\/\/s4.51cto.com\/oss\/202407\/16\/f9f3593264c5d47234f4242c044f44a8517cd5.webp\" alt=\"\" data-type=\"block\" \/><\/p>\n<h3>\u603b\u7ed3<\/h3>\n<p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u63a2\u8ba8\u4e86\u4f7f\u7528 Open WebUI \u5728 Kubernetes \u96c6\u7fa4\u4e0a\u90e8\u7f72\u00a0llama3\u00a0\u7684\u8fc7\u7a0b\u3002\u901a\u8fc7\u5bb9\u5668\u5316\u548c\u7f16\u6392\u6280\u672f\uff0c\u6211\u4eec\u6210\u529f\u5730\u5c06 AI powered \u7684\u804a\u5929\u673a\u5668\u4eba\u90e8\u7f72\u5230\u4e86\u53ef\u6269\u5c55\u548c\u7ef4\u62a4\u7684\u73af\u5883\u4e2d\u3002Open WebUI \u7684\u7b80\u6d01\u754c\u9762\u548c Kubernetes \u7684\u5f3a\u5927\u81ea\u52a8\u5316\u80fd\u529b\uff0c\u8ba9\u6211\u4eec\u7b80\u5316\u4e86\u90e8\u7f72\u8fc7\u7a0b\uff0c\u51cf\u5c11\u4e86\u624b\u52a8\u5e72\u9884\u3002\u968f\u7740\u4e16\u754c\u5bf9 AI \u9a71\u52a8\u89e3\u51b3\u65b9\u6848\u7684\u4e0d\u65ad\u4f9d\u8d56\uff0c\u8fd9\u79cd\u6280\u672f\u7ec4\u5408\u5c06\u626e\u6f14\u5173\u952e\u89d2\u8272\uff0c\u5feb\u901f\u5730\u5e26\u9886\u521b\u65b0\u5e94\u7528\u7a0b\u5e8f llama3 \u544a\u8bc9\u5e02\u573a\u3002AI Powered \u7684\u804a\u5929\u673a\u5668\u4eba\u7684\u672a\u6765\u770b\u8d77\u6765\u975e\u5e38\u5149\u660e\uff0cOpen WebUI \u548c Kubernetes \u5c06\u7ee7\u7eed\u9886\u5148\uff0c\u671f\u5f85\u7740\u4e0b\u4e00\u4e2a\u4ee4\u4eba\u5174\u594b\u7684\u53d1\u5c55\uff01\uff08\u8fd9\u4e00\u6bb5\u5c31\u6765\u81ea\u00a0llama3\u00a0\u6a21\u578b\u751f\u6210\uff09<\/p>\n<\/div>\n<\/div>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_21177\" class=\"pvc_stats total_only  \" data-element-id=\"21177\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.0\" viewBox=\"0 0 502 315\" preserveAspectRatio=\"xMidYMid meet\"><g transform=\"translate(0,332) scale(0.1,-0.1)\" fill=\"\" stroke=\"none\"><path d=\"M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z\"\/><path d=\"M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z\"\/><path d=\"M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z\"\/><path d=\"M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z\"\/><path d=\"M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z\"\/><path d=\"M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z\"\/><path d=\"M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z\"\/><path d=\"M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z\"\/><path d=\"M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z\"\/><\/g><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u63a2\u8ba8\u4e86\u4f7f\u7528 Open WebUI \u5728 Kubernetes \u96c6\u7fa4\u4e0a\u90e8\u7f72 llama3\u200b \u7684\u8fc7\u7a0b\u3002 [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_21177\" class=\"pvc_stats total_only  \" data-element-id=\"21177\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.0\" viewBox=\"0 0 502 315\" preserveAspectRatio=\"xMidYMid meet\"><g transform=\"translate(0,332) scale(0.1,-0.1)\" fill=\"\" stroke=\"none\"><path d=\"M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z\"\/><path d=\"M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z\"\/><path d=\"M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z\"\/><path d=\"M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z\"\/><path d=\"M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z\"\/><path d=\"M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z\"\/><path d=\"M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z\"\/><path d=\"M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z\"\/><path d=\"M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z\"\/><\/g><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":56,"featured_media":21178,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,80],"tags":[1206],"class_list":["post-21177","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-23","category-80","tag-kubernete-open-webui-llama3"],"_links":{"self":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/21177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/users\/56"}],"replies":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/comments?post=21177"}],"version-history":[{"count":1,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/21177\/revisions"}],"predecessor-version":[{"id":21179,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/21177\/revisions\/21179"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/media\/21178"}],"wp:attachment":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/media?parent=21177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/categories?post=21177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/tags?post=21177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}