{"id":34745,"date":"2025-04-30T19:35:43","date_gmt":"2025-04-30T11:35:43","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/34745.html"},"modified":"2025-04-30T19:35:43","modified_gmt":"2025-04-30T11:35:43","slug":"%e5%9c%a8ubuntu%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e9%83%a8%e7%bd%b2xinference","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/34745.html","title":{"rendered":"\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u90e8\u7f72xinference"},"content":{"rendered":"<p>\u4e00\u3001\u62c9\u53d6\u955c\u50cf<\/p>\n<p>docker pull xprobe\/xinference:latest<\/p>\n<p>\u4e8c\u3001\u542f\u52a8\u5bb9\u5668&#xff08;GPU&#xff09;<\/p>\n<p>docker run -d &#8211;name xinference -e XINFERENCE_MODEL_SRC&#061;modelscope -p 9997:9997 &#8211;gpus all xprobe\/xinference:latest xinference-local -H 0.0.0.0<br \/>\n# \u542f\u52a8\u4e00\u4e2a\u65b0\u7684Docker\u5bb9\u5668<br \/>\ndocker run<br \/>\n# \u4ee5\u5206\u79bb&#xff08;\u540e\u53f0&#xff09;\u6a21\u5f0f\u8fd0\u884c\u5bb9\u5668<br \/>\n-d<br \/>\n# \u5c06\u5bb9\u5668\u547d\u540d\u4e3a&#034;xinference&#034;<br \/>\n&#8211;name xinference<br \/>\n# \u8bbe\u7f6e\u73af\u5883\u53d8\u91cf&#xff0c;\u6307\u5b9aXinference\u7684\u4e3b\u76ee\u5f55\u4e3a\u5bb9\u5668\u5185\u7684<br \/>\n-e XINFERENCE_MODEL_SRC&#061;modelscope<br \/>\n# \u5c06\u5bb9\u5668\u76849997\u7aef\u53e3\u6620\u5c04\u5230\u4e3b\u673a\u76849997\u7aef\u53e3<br \/>\n-p 9997:9997<br \/>\n# \u5141\u8bb8\u5bb9\u5668\u4f7f\u7528\u4e3b\u673a\u4e0a\u7684\u6240\u6709GPU\u8d44\u6e90<br \/>\n&#8211;gpus all<br \/>\n# \u4f7f\u7528\u6700\u65b0\u7248\u672c\u7684xprobe\/xinference\u955c\u50cf<br \/>\nxprobe\/xinference:latest<br \/>\n# \u5728\u5bb9\u5668\u5185\u8fd0\u884cxinference-local\u547d\u4ee4&#xff0c;\u5e76\u8bbe\u7f6e\u4e3b\u673a\u5730\u5740\u4e3a0.0.0.0&#xff08;\u5141\u8bb8\u4ece\u4efb\u4f55IP\u5730\u5740\u8bbf\u95ee&#xff09;<br \/>\nxinference-local -H 0.0.0.0 <\/p>\n<p>\u4e09\u3001\u8bbf\u95ee<\/p>\n<p>\u7f51\u5740&#xff1a;http:\/\/localhost:9997 <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"920\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250430113541-68120b0dea3c5.png\" width=\"1912\" \/><\/p>\n<p>\u53c2\u8003\u94fe\u63a5&#xff1a;<\/p>\n<p>Docker \u955c\u50cf \u2014 Xinference<\/p>\n<p>\u672c\u5730\u5982\u4f55\u4f7f\u7528docker\u90e8\u7f72\u548c\u4f7f\u7528Xinference_xinference docker\u90e8\u7f72-CSDN\u535a\u5ba2<\/p>\n<p>Xinference\u672c\u5730\u76f4\u63a5\u5b89\u88c5\u3001\u6253\u5f00\u3001\u90e8\u7f72\u3001\u6d4b\u8bd5\u6a21\u578b\u3001api\u8c03\u7528_xinference\u672c\u5730\u90e8\u7f72-CSDN\u535a\u5ba2<\/p>\n<p>DeepSeek&#043;Ollama&#043;Xinference&#043;RAGFlow&#043;Dify\u90e8\u7f72\u6559\u7a0b&#xff0c;RAG\u843d\u57305\u4ef6\u5957&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb628\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf5\u6b21\u3002xinference \u5728\u670d\u52a1\u5668\u90e8\u7f72_ubuntu docker xinference<\/p>\n","protected":false},"author":2,"featured_media":34744,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2944,75,103,50,43,44],"topic":[],"class_list":["post-34745","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-deploy","tag-llm","tag-ubuntu","tag-50","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u90e8\u7f72xinference - \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\/34745.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u90e8\u7f72xinference - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb628\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf5\u6b21\u3002xinference \u5728\u670d\u52a1\u5668\u90e8\u7f72_ubuntu docker xinference\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/34745.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-30T11:35:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250430113541-68120b0dea3c5.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<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/34745.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/34745.html\",\"name\":\"\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u90e8\u7f72xinference - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-30T11:35:43+00:00\",\"dateModified\":\"2025-04-30T11:35:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/34745.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/34745.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/34745.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u90e8\u7f72xinference\"}]},{\"@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":"\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u90e8\u7f72xinference - \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\/34745.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u90e8\u7f72xinference - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb628\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf5\u6b21\u3002xinference \u5728\u670d\u52a1\u5668\u90e8\u7f72_ubuntu docker xinference","og_url":"https:\/\/www.wsisp.com\/helps\/34745.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-30T11:35:43+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250430113541-68120b0dea3c5.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/34745.html","url":"https:\/\/www.wsisp.com\/helps\/34745.html","name":"\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u90e8\u7f72xinference - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-30T11:35:43+00:00","dateModified":"2025-04-30T11:35:43+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/34745.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/34745.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/34745.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u90e8\u7f72xinference"}]},{"@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\/34745","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=34745"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/34745\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/34744"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=34745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=34745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=34745"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=34745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}