{"id":83464,"date":"2026-07-25T23:17:05","date_gmt":"2026-07-25T15:17:05","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/83464.html"},"modified":"2026-07-25T23:17:05","modified_gmt":"2026-07-25T15:17:05","slug":"mgeo%e9%97%a8%e5%9d%80%e8%a7%a3%e6%9e%90%e9%83%a8%e7%bd%b2%ef%bc%9aarm%e6%9e%b6%e6%9e%84%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88%e5%a6%82%e9%b2%b2%e9%b9%8f920%ef%bc%89%e4%b8%8amgeo-base%e5%85%bc%e5%ae%b9","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/83464.html","title":{"rendered":"MGeo\u95e8\u5740\u89e3\u6790\u90e8\u7f72\uff1aARM\u67b6\u6784\u670d\u52a1\u5668\uff08\u5982\u9cb2\u9e4f920\uff09\u4e0aMGeo-base\u517c\u5bb9\u6027\u9a8c\u8bc1"},"content":{"rendered":"<h2>MGeo\u95e8\u5740\u89e3\u6790\u90e8\u7f72&#xff1a;ARM\u67b6\u6784\u670d\u52a1\u5668&#xff08;\u5982\u9cb2\u9e4f920&#xff09;\u4e0aMGeo-base\u517c\u5bb9\u6027\u9a8c\u8bc1<\/h2>\n<p>\u4f60\u6709\u6ca1\u6709\u9047\u5230\u8fc7\u8fd9\u6837\u7684\u573a\u666f&#xff1a;\u7528\u6237\u586b\u5199\u7684\u6536\u8d27\u5730\u5740\u4e94\u82b1\u516b\u95e8&#xff0c;\u6709\u7684\u5199\u201cXX\u8defXX\u53f7\u201d&#xff0c;\u6709\u7684\u5199\u201cXX\u5c0f\u533aX\u680bX\u5355\u5143\u201d&#xff0c;\u8fd8\u6709\u7684\u5e72\u8106\u53ea\u5199\u4e00\u4e2a\u6a21\u7cca\u7684\u5730\u6807\u3002\u628a\u8fd9\u4e9b\u975e\u7ed3\u6784\u5316\u7684\u5730\u5740\u6587\u672c&#xff0c;\u81ea\u52a8\u89e3\u6790\u6210\u201c\u7701\u3001\u5e02\u3001\u533a\u3001\u8857\u9053\u3001\u95e8\u724c\u53f7\u201d\u8fd9\u6837\u7684\u6807\u51c6\u683c\u5f0f&#xff0c;\u662f\u5f88\u591a\u4e1a\u52a1\u7cfb\u7edf\u5934\u75bc\u7684\u95ee\u9898\u3002<\/p>\n<p>\u4eca\u5929&#xff0c;\u6211\u4eec\u5c31\u6765\u804a\u804a\u4e00\u4e2a\u4e13\u95e8\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u7684\u201c\u795e\u5668\u201d\u2014\u2014MGeo\u6a21\u578b\u3002\u66f4\u5177\u4f53\u5730\u8bf4&#xff0c;\u6211\u4eec\u5c06\u624b\u628a\u624b\u5e26\u4f60\u5b8c\u6210 MGeo-base\u6a21\u578b\u5728ARM\u67b6\u6784\u670d\u52a1\u5668&#xff08;\u6bd4\u5982\u534e\u4e3a\u9cb2\u9e4f920&#xff09;\u4e0a\u7684\u90e8\u7f72\u4e0e\u517c\u5bb9\u6027\u9a8c\u8bc1\u3002\u8fd9\u4e0d\u4ec5\u4ec5\u662f\u628a\u6a21\u578b\u8dd1\u8d77\u6765&#xff0c;\u66f4\u91cd\u8981\u7684\u662f\u9a8c\u8bc1\u5b83\u5728\u56fd\u4ea7\u5316\u786c\u4ef6\u5e73\u53f0\u4e0a\u7684\u8868\u73b0\u662f\u5426\u7a33\u5b9a\u53ef\u9760\u3002<\/p>\n<p>\u901a\u8fc7\u8fd9\u7bc7\u6587\u7ae0&#xff0c;\u4f60\u5c06\u80fd&#xff1a;<\/p>\n<li>\u5feb\u901f\u5728ARM\u670d\u52a1\u5668\u4e0a\u90e8\u7f72MGeo-base\u6a21\u578b\u670d\u52a1\u3002<\/li>\n<li>\u4e86\u89e3\u5982\u4f55\u9a8c\u8bc1\u6a21\u578b\u5728\u975ex86\u67b6\u6784\u4e0b\u7684\u529f\u80fd\u5b8c\u6574\u6027\u3002<\/li>\n<li>\u638c\u63e1\u4f7f\u7528Gradio\u6784\u5efa\u4e00\u4e2a\u7b80\u5355\u6613\u7528\u7684\u5730\u5740\u89e3\u6790Web\u754c\u9762\u3002<\/li>\n<li>\u83b7\u5f97\u4e00\u4efdARM\u5e73\u53f0\u90e8\u7f72\u7684\u5b9e\u8df5\u7ecf\u9a8c\u53c2\u8003\u3002<\/li>\n<p>\u65e0\u8bba\u4f60\u662f\u8d1f\u8d23\u7cfb\u7edf\u8fc1\u79fb\u7684\u5de5\u7a0b\u5e08&#xff0c;\u8fd8\u662f\u5bf9\u5730\u5740\u667a\u80fd\u5904\u7406\u611f\u5174\u8da3\u7684\u7814\u7a76\u8005&#xff0c;\u8fd9\u7bc7\u4ece\u73af\u5883\u51c6\u5907\u5230\u6548\u679c\u9a8c\u8bc1\u7684\u5b8c\u6574\u6307\u5357&#xff0c;\u90fd\u80fd\u5e2e\u4f60\u626b\u6e05\u969c\u788d\u3002<\/p>\n<h3>1. \u73af\u5883\u51c6\u5907\u4e0e\u9879\u76ee\u7406\u89e3<\/h3>\n<p>\u5728\u5f00\u59cb\u52a8\u624b\u4e4b\u524d&#xff0c;\u6211\u4eec\u5148\u82b1\u51e0\u5206\u949f\u641e\u6e05\u695a\u4e24\u4ef6\u4e8b&#xff1a;\u6211\u4eec\u8981\u90e8\u7f72\u7684\u662f\u4ec0\u4e48&#xff0c;\u4ee5\u53ca\u6211\u4eec\u9700\u8981\u4ec0\u4e48\u6837\u7684\u73af\u5883\u3002<\/p>\n<h4>1.1 MGeo\u6a21\u578b\u662f\u4ec0\u4e48&#xff1f;<\/h4>\n<p>\u7b80\u5355\u6765\u8bf4&#xff0c;MGeo\u662f\u4e00\u4e2a\u4e13\u95e8\u4e3a\u4e2d\u6587\u5730\u5740\u5904\u7406\u4efb\u52a1\u8bbe\u8ba1\u7684\u201c\u591a\u6a21\u6001\u9884\u8bad\u7ec3\u6a21\u578b\u201d\u3002\u4f60\u53ef\u4ee5\u628a\u5b83\u60f3\u8c61\u6210\u4e00\u4e2a\u5bf9\u5730\u5740\u4fe1\u606f\u7279\u522b\u201c\u654f\u611f\u201d\u548c\u201c\u4e13\u4e1a\u201d\u7684AI\u5927\u8111\u3002<\/p>\n<p>\u5b83\u7684\u6838\u5fc3\u80fd\u529b\u5728\u4e8e\u201c\u7406\u89e3\u201d\u5730\u5740&#xff1a;<\/p>\n<ul>\n<li>\u7ed3\u6784\u5316\u89e3\u6790&#xff1a;\u628a\u4e00\u6bb5\u6742\u4e71\u7684\u4e2d\u6587\u5730\u5740\u6587\u672c&#xff0c;\u81ea\u52a8\u62c6\u89e3\u6210\u201c\u7701\u3001\u5e02\u3001\u533a\u3001\u8857\u9053\u3001\u9053\u8def\u3001\u95e8\u724c\u53f7\u3001POI&#xff08;\u5174\u8da3\u70b9&#xff09;\u201d\u7b49\u6807\u51c6\u5b57\u6bb5\u3002\u6bd4\u5982&#xff0c;\u8f93\u5165\u201c\u676d\u5dde\u5e02\u897f\u6e56\u533a\u6587\u4e09\u8def478\u53f7\u534e\u661f\u65f6\u4ee3\u5e7f\u573a\u201d&#xff0c;\u5b83\u80fd\u8f93\u51fa\u7ed3\u6784\u5316\u7684JSON\u6570\u636e\u3002<\/li>\n<li>\u591a\u6a21\u6001\u878d\u5408&#xff1a;\u5b83\u4e0d\u4ec5\u8bfb\u6587\u5b57&#xff0c;\u8fd8\u80fd\u7ed3\u5408\u5730\u56fe\u7684\u5750\u6807\u3001\u5f62\u72b6\u7b49\u7a7a\u95f4\u4fe1\u606f&#xff08;\u591a\u6a21\u6001&#xff09;\u6765\u7406\u89e3\u5730\u5740&#xff0c;\u8fd9\u8ba9\u5b83\u7684\u7406\u89e3\u66f4\u51c6\u786e\u3001\u66f4\u8d34\u8fd1\u771f\u5b9e\u4e16\u754c\u3002<\/li>\n<li>\u591a\u4efb\u52a1\u652f\u6301&#xff1a;\u57fa\u4e8eMGeo\u8fd9\u4e2a\u5f3a\u5927\u7684\u201c\u5e95\u5ea7\u201d&#xff0c;\u53ef\u4ee5\u5fae\u8c03\u51fa\u7528\u4e8e\u5730\u5740\u5339\u914d\u3001\u7ea0\u9519\u3001\u8865\u5168\u7b49\u591a\u79cd\u4e0b\u6e38\u4efb\u52a1\u7684\u4e13\u7528\u6a21\u578b\u3002<\/li>\n<\/ul>\n<p>\u6211\u4eec\u8fd9\u6b21\u90e8\u7f72\u7684 MGeo-base \u5c31\u662f\u5b83\u7684\u57fa\u7840\u7248\u672c&#xff0c;\u4e13\u6ce8\u4e8e\u5730\u5740\u6587\u672c\u7684\u7ed3\u6784\u5316\u89e3\u6790\u4efb\u52a1\u3002<\/p>\n<h4>1.2 \u4e3a\u4ec0\u4e48\u8981\u5728ARM\u67b6\u6784\u4e0a\u9a8c\u8bc1&#xff1f;<\/h4>\n<p>x86\u67b6\u6784&#xff08;\u5982Intel\/AMD CPU&#xff09;\u662f\u670d\u52a1\u5668\u9886\u57df\u7684\u4f20\u7edf\u4e3b\u6d41\u3002\u800cARM\u67b6\u6784&#xff08;\u5982\u9cb2\u9e4f920\u3001\u98de\u817e&#xff09;\u56e0\u5176\u9ad8\u80fd\u6548\u6bd4&#xff0c;\u5728\u56fd\u4ea7\u5316\u670d\u52a1\u5668\u548c\u4e91\u8ba1\u7b97\u573a\u666f\u4e2d\u5e94\u7528\u8d8a\u6765\u8d8a\u5e7f\u3002<\/p>\n<p>\u5c06AI\u6a21\u578b\u4ecex86\u8fc1\u79fb\u5230ARM&#xff0c;\u5e76\u975e\u7b80\u5355\u7684\u590d\u5236\u7c98\u8d34&#xff0c;\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u201c\u6c34\u571f\u4e0d\u670d\u201d&#xff1a;<\/p>\n<li>\u8f6f\u4ef6\u5305\u517c\u5bb9\u6027&#xff1a;Python\u7684\u67d0\u4e9b\u8f6e\u5b50&#xff08;whl\u5305&#xff09;\u6216\u5e95\u5c42C&#043;&#043;\u5e93&#xff08;\u5982PyTorch\u7684\u67d0\u4e9b\u7b97\u5b50&#xff09;\u53ef\u80fd\u6ca1\u6709ARM\u7248\u672c\u3002<\/li>\n<li>\u6027\u80fd\u5dee\u5f02&#xff1a;\u540c\u6837\u7684\u6a21\u578b&#xff0c;\u5728\u4e0d\u540c\u67b6\u6784\u7684CPU\u4e0a&#xff0c;\u7531\u4e8e\u6307\u4ee4\u96c6\u548c\u4f18\u5316\u7a0b\u5ea6\u4e0d\u540c&#xff0c;\u63a8\u7406\u901f\u5ea6\u53ef\u80fd\u6709\u5dee\u5f02\u3002<\/li>\n<li>\u529f\u80fd\u5b8c\u6574\u6027&#xff1a;\u67d0\u4e9b\u4f9d\u8d56\u7279\u5b9a\u6307\u4ee4\u96c6\u7684\u529f\u80fd\u53ef\u80fd\u5728ARM\u4e0a\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\u3002<\/li>\n<p>\u56e0\u6b64&#xff0c;\u5728ARM\u670d\u52a1\u5668\u4e0a\u6210\u529f\u90e8\u7f72\u5e76\u9a8c\u8bc1MGeo&#xff0c;\u662f\u786e\u4fdd\u5176\u80fd\u5728\u56fd\u4ea7\u5316\u73af\u5883\u4e2d\u7a33\u5b9a\u670d\u52a1\u7684\u5173\u952e\u4e00\u6b65\u3002<\/p>\n<h4>1.3 \u90e8\u7f72\u73af\u5883\u786e\u8ba4<\/h4>\n<p>\u672c\u6b21\u90e8\u7f72\u9a8c\u8bc1\u57fa\u4e8e\u4ee5\u4e0b\u5178\u578b\u73af\u5883&#xff1a;<\/p>\n<ul>\n<li>\u786c\u4ef6&#xff1a;\u534e\u4e3a\u9cb2\u9e4f920 ARMv8\u67b6\u6784\u670d\u52a1\u5668\u3002<\/li>\n<li>\u64cd\u4f5c\u7cfb\u7edf&#xff1a;CentOS 7.6 \/ Ubuntu 20.04 \u6216\u540c\u7c7bARM\u7248\u672c\u3002<\/li>\n<li>\u5173\u952e\u5de5\u5177&#xff1a;\n<ul>\n<li>ModelScope&#xff08;\u6a21\u578bScope&#xff09;&#xff1a;\u963f\u91cc\u5f00\u6e90\u7684\u6a21\u578b\u5373\u670d\u52a1\u6846\u67b6&#xff0c;\u8ba9\u6211\u4eec\u80fd\u50cf\u5b89\u88c5Python\u5305\u4e00\u6837\u8f7b\u677e\u4e0b\u8f7d\u548c\u8fd0\u884cAI\u6a21\u578b\u3002<\/li>\n<li>Gradio&#xff1a;\u4e00\u4e2a\u8d85\u7b80\u5355\u7684Python\u5e93&#xff0c;\u51e0\u884c\u4ee3\u7801\u5c31\u80fd\u4e3a\u4f60\u7684\u6a21\u578b\u521b\u5efa\u4e00\u4e2aWeb\u4ea4\u4e92\u754c\u9762&#xff0c;\u975e\u5e38\u9002\u5408\u5feb\u901f\u6f14\u793a\u548c\u6d4b\u8bd5\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u786e\u4fdd\u4f60\u7684\u670d\u52a1\u5668\u5df2\u7ecf\u5b89\u88c5\u4e86Python&#xff08;\u5efa\u8bae3.8&#043;&#xff09;\u548cpip\u3002\u63a5\u4e0b\u6765&#xff0c;\u6211\u4eec\u8fdb\u5165\u5b9e\u6218\u73af\u8282\u3002<\/p>\n<h3>2. \u5206\u6b65\u90e8\u7f72MGeo-base\u6a21\u578b\u670d\u52a1<\/h3>\n<p>\u73b0\u5728&#xff0c;\u6211\u4eec\u5f00\u59cb\u5b9e\u9645\u7684\u90e8\u7f72\u5de5\u4f5c\u3002\u6574\u4e2a\u8fc7\u7a0b\u5c31\u50cf\u642d\u79ef\u6728&#xff0c;\u4e00\u6b65\u6b65\u6765&#xff0c;\u975e\u5e38\u6e05\u6670\u3002<\/p>\n<h4>2.1 \u7b2c\u4e00\u6b65&#xff1a;\u5b89\u88c5\u6838\u5fc3\u4f9d\u8d56<\/h4>\n<p>\u9996\u5148&#xff0c;\u901a\u8fc7SSH\u8fde\u63a5\u5230\u4f60\u7684ARM\u670d\u52a1\u5668\u3002\u6211\u4eec\u9700\u8981\u5b89\u88c5\u4e24\u4e2a\u6700\u6838\u5fc3\u7684\u5e93&#xff1a;modelscope \u548c gradio\u3002<\/p>\n<p>\u6253\u5f00\u7ec8\u7aef&#xff0c;\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p># \u5347\u7ea7pip\u5230\u6700\u65b0\u7248\u672c&#xff08;\u53ef\u9009&#xff0c;\u4f46\u63a8\u8350&#xff09;<br \/>\npip install &#8211;upgrade pip<\/p>\n<p># \u5b89\u88c5ModelScope\u6846\u67b6\u548cGradio<br \/>\npip install modelscope gradio<\/p>\n<p>\u5b89\u88c5\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\u53ca\u89e3\u51b3&#xff1a;<\/p>\n<ul>\n<li>\u901f\u5ea6\u6162&#xff1a;\u53ef\u4ee5\u4f7f\u7528\u56fd\u5185\u955c\u50cf\u6e90\u52a0\u901f&#xff0c;\u4f8b\u5982&#xff1a;pip install modelscope gradio -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<\/li>\n<li>\u4f9d\u8d56\u51b2\u7a81&#xff1a;\u5982\u679c\u9047\u5230\u67d0\u4e9b\u5305\u7248\u672c\u51b2\u7a81&#xff0c;\u53ef\u4ee5\u5c1d\u8bd5\u5148\u521b\u5efa\u4e00\u4e2a\u5e72\u51c0\u7684Python\u865a\u62df\u73af\u5883&#xff08;python -m venv myenv&#xff09;&#xff0c;\u7136\u540e\u5728\u5176\u4e2d\u5b89\u88c5\u3002<\/li>\n<li>\u7279\u5b9a\u5305\u7f3a\u5931&#xff1a;\u5728ARM\u67b6\u6784\u4e0a&#xff0c;modelscope\u4f1a\u81ea\u52a8\u5c1d\u8bd5\u5b89\u88c5\u9002\u914d\u7684PyTorch\u7b49\u5e95\u5c42\u5e93\u3002\u5982\u679c\u81ea\u52a8\u5b89\u88c5\u5931\u8d25&#xff0c;\u4f60\u53ef\u80fd\u9700\u8981\u524d\u5f80PyTorch\u5b98\u7f51\u67e5\u627e\u5bf9\u5e94ARM\u7248\u672c\u7684\u5b89\u88c5\u547d\u4ee4\u624b\u52a8\u5b89\u88c5\u3002<\/li>\n<\/ul>\n<h4>2.2 \u7b2c\u4e8c\u6b65&#xff1a;\u7f16\u5199\u6a21\u578b\u670d\u52a1\u811a\u672c<\/h4>\n<p>\u5b89\u88c5\u597d\u4f9d\u8d56\u540e&#xff0c;\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2aPython\u811a\u672c&#xff0c;\u8fd9\u4e2a\u811a\u672c\u8981\u505a\u4e09\u4ef6\u4e8b&#xff1a;\u52a0\u8f7d\u6a21\u578b\u3001\u5904\u7406\u8bf7\u6c42\u3001\u542f\u52a8Web\u670d\u52a1\u3002<\/p>\n<p>\u5728\u4f60\u7684\u5de5\u4f5c\u76ee\u5f55\u4e0b&#xff08;\u4f8b\u5982 \/home\/work\/mgeo_demo&#xff09;&#xff0c;\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a webui.py \u7684\u6587\u4ef6&#xff0c;\u5e76\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p>#!\/usr\/bin\/env python3<br \/>\n# -*- coding: utf-8 -*-<br \/>\n&#034;&#034;&#034;<br \/>\nMGeo-base \u5730\u5740\u89e3\u6790\u6a21\u578b ARM\u517c\u5bb9\u6027\u9a8c\u8bc1\u53caWeb\u670d\u52a1<br \/>\n&#034;&#034;&#034;<\/p>\n<p>import gradio as gr<br \/>\nfrom modelscope.pipelines import pipeline<br \/>\nfrom modelscope.utils.constant import Tasks<\/p>\n<p># 1. \u58f0\u660e\u6a21\u578bID&#xff08;ModelScope\u4ed3\u5e93\u5730\u5740&#xff09;<br \/>\nMODEL_ID &#061; &#039;damo\/mgeo_backbone_chinese_base&#039;<\/p>\n<p># 2. \u521b\u5efa\u5730\u5740\u89e3\u6790\u7684Pipeline<br \/>\n# \u7b2c\u4e00\u6b21\u8fd0\u884c\u65f6\u4f1a\u81ea\u52a8\u4eceModelScope\u4e0b\u8f7d\u6a21\u578b&#xff0c;\u8bf7\u4fdd\u6301\u7f51\u7edc\u901a\u7545<br \/>\nprint(f&#034;\u6b63\u5728\u52a0\u8f7d\u6a21\u578b {MODEL_ID}&#xff0c;\u9996\u6b21\u52a0\u8f7d\u53ef\u80fd\u9700\u8981\u51e0\u5206\u949f&#xff0c;\u8bf7\u8010\u5fc3\u7b49\u5f85&#8230;&#034;)<br \/>\naddress_parser &#061; pipeline(Tasks.address_parsing, model&#061;MODEL_ID)<\/p>\n<p>print(&#034;\u6a21\u578b\u52a0\u8f7d\u6210\u529f&#xff01;&#034;)<\/p>\n<p># 3. \u5b9a\u4e49\u5904\u7406\u51fd\u6570<br \/>\ndef parse_address(text):<br \/>\n    &#034;&#034;&#034;<br \/>\n    \u63a5\u6536\u7528\u6237\u8f93\u5165\u7684\u5730\u5740\u6587\u672c&#xff0c;\u8fd4\u56de\u7ed3\u6784\u5316\u89e3\u6790\u7ed3\u679c<br \/>\n    &#034;&#034;&#034;<br \/>\n    if not text or text.strip() &#061;&#061; &#034;&#034;:<br \/>\n        return &#034;\u8bf7\u8f93\u5165\u6709\u6548\u7684\u5730\u5740\u6587\u672c\u3002&#034;<\/p>\n<p>    try:<br \/>\n        # \u8c03\u7528\u6a21\u578b\u8fdb\u884c\u9884\u6d4b<br \/>\n        result &#061; address_parser(text)<br \/>\n        # \u7ed3\u679c\u662f\u4e00\u4e2a\u5b57\u5178&#xff0c;\u6211\u4eec\u5c06\u5176\u683c\u5f0f\u5316\u4e3a\u66f4\u6613\u8bfb\u7684\u5b57\u7b26\u4e32<br \/>\n        # \u5b9e\u9645\u7ed3\u679c\u5305\u542b\u66f4\u4e30\u5bcc\u7684\u5b57\u6bb5&#xff0c;\u8fd9\u91cc\u4e3b\u8981\u5c55\u793a\u7ed3\u6784\u5316\u90e8\u5206<br \/>\n        output &#061; &#034;\u5730\u5740\u89e3\u6790\u7ed3\u679c&#xff1a;\\\\n&#034;<br \/>\n        if &#039;output&#039; in result and &#039;text&#039; in result[&#039;output&#039;]:<br \/>\n            # \u57fa\u7840\u7248\u672c\u8fd4\u56de\u7684\u53ef\u80fd\u662f\u6587\u672c&#xff0c;\u4e5f\u53ef\u80fd\u662f\u7ed3\u6784<br \/>\n            output &#043;&#061; str(result[&#039;output&#039;])<br \/>\n        else:<br \/>\n            # \u9002\u914d\u4e0d\u540c\u8f93\u51fa\u683c\u5f0f<br \/>\n            output &#043;&#061; str(result)<br \/>\n        return output<br \/>\n    except Exception as e:<br \/>\n        return f&#034;\u89e3\u6790\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u9519\u8bef&#xff1a;{str(e)}&#034;<\/p>\n<p># 4. \u4f7f\u7528Gradio\u521b\u5efaWeb\u754c\u9762<br \/>\ndemo &#061; gr.Interface(<br \/>\n    fn&#061;parse_address,  # \u7ed1\u5b9a\u5904\u7406\u51fd\u6570<br \/>\n    inputs&#061;gr.Textbox(<br \/>\n        lines&#061;3,<br \/>\n        placeholder&#061;&#034;\u8bf7\u8f93\u5165\u9700\u8981\u89e3\u6790\u7684\u4e2d\u6587\u5730\u5740&#xff0c;\u4f8b\u5982&#xff1a;\u5317\u4eac\u5e02\u6d77\u6dc0\u533a\u4e2d\u5173\u6751\u5927\u885727\u53f7&#034;,<br \/>\n        label&#061;&#034;\u8f93\u5165\u5730\u5740\u6587\u672c&#034;<br \/>\n    ),<br \/>\n    outputs&#061;gr.Textbox(<br \/>\n        lines&#061;10,<br \/>\n        label&#061;&#034;\u7ed3\u6784\u5316\u89e3\u6790\u7ed3\u679c&#034;<br \/>\n    ),<br \/>\n    title&#061;&#034;MGeo-base \u4e2d\u6587\u5730\u5740\u7ed3\u6784\u5316\u89e3\u6790 (ARM\u517c\u5bb9\u6027\u9a8c\u8bc1)&#034;,<br \/>\n    description&#061;&#034;&#034;&#034;\u57fa\u4e8e\u8fbe\u6469\u9662MGeo-base\u6a21\u578b\u3002\u8f93\u5165\u4e00\u6bb5\u4e2d\u6587\u5730\u5740&#xff0c;\u6a21\u578b\u5c06\u5c1d\u8bd5\u89e3\u6790\u51fa\u5176\u7701\u3001\u5e02\u3001\u533a\u3001\u8857\u9053\u3001\u95e8\u724c\u53f7\u7b49\u7ed3\u6784\u5316\u8981\u7d20\u3002<br \/>\n    **\u90e8\u7f72\u73af\u5883**&#xff1a;ARM\u67b6\u6784\u670d\u52a1\u5668&#xff08;\u9cb2\u9e4f920&#xff09;&#034;&#034;&#034;,<br \/>\n    examples&#061;[<br \/>\n        [&#034;\u6d59\u6c5f\u7701\u676d\u5dde\u5e02\u897f\u6e56\u533a\u6587\u4e09\u8def478\u53f7\u534e\u661f\u65f6\u4ee3\u5e7f\u573a&#034;],<br \/>\n        [&#034;\u5e7f\u4e1c\u7701\u6df1\u5733\u5e02\u5357\u5c71\u533a\u79d1\u6280\u56ed\u79d1\u6280\u5357\u5341\u4e8c\u8def&#034;],<br \/>\n        [&#034;\u4e0a\u6d77\u5e02\u6d66\u4e1c\u65b0\u533a\u5f20\u6c5f\u9ad8\u79d1\u6280\u56ed\u533a\u7956\u51b2\u4e4b\u8def899\u53f7&#034;]<br \/>\n    ]<br \/>\n)<\/p>\n<p># 5. \u542f\u52a8\u670d\u52a1<br \/>\nif __name__ &#061;&#061; &#034;__main__&#034;:<br \/>\n    # \u8bbe\u7f6e\u670d\u52a1\u5668\u76d1\u542c\u6240\u6709IP&#xff08;0.0.0.0&#xff09;&#xff0c;\u65b9\u4fbf\u8fdc\u7a0b\u8bbf\u95ee<br \/>\n    demo.launch(server_name&#061;&#034;0.0.0.0&#034;, server_port&#061;7860, share&#061;False)<br \/>\n    # \u5982\u679c\u4f60\u60f3\u751f\u6210\u4e00\u4e2a\u4e34\u65f6\u516c\u7f51\u94fe\u63a5\u7528\u4e8e\u6d4b\u8bd5&#xff0c;\u53ef\u4ee5\u8bbe\u7f6e share&#061;True&#xff08;\u9700\u8981\u4e92\u8054\u7f51&#xff09;<\/p>\n<p>\u811a\u672c\u5173\u952e\u70b9\u89e3\u91ca&#xff1a;<\/p>\n<li>MODEL_ID&#xff1a;\u6307\u5b9a\u4e86\u6211\u4eec\u8981\u4f7f\u7528\u7684\u6a21\u578b\u5728ModelScope\u5e73\u53f0\u4e0a\u7684\u552f\u4e00\u6807\u8bc6\u3002<\/li>\n<li>pipeline(&#8230;)&#xff1a;\u8fd9\u662fModelScope\u7684\u6838\u5fc3\u63a5\u53e3&#xff0c;\u4e00\u884c\u4ee3\u7801\u5c31\u5b8c\u6210\u4e86\u6a21\u578b\u7684\u4e0b\u8f7d\u3001\u52a0\u8f7d\u548c\u4efb\u52a1\u521d\u59cb\u5316\u3002<\/li>\n<li>parse_address\u51fd\u6570&#xff1a;\u5b83\u662fWeb\u670d\u52a1\u7684\u540e\u7aef\u903b\u8f91&#xff0c;\u63a5\u6536\u524d\u7aef\u8f93\u5165\u7684\u6587\u672c&#xff0c;\u8c03\u7528\u6a21\u578b&#xff0c;\u5e76\u8fd4\u56de\u7ed3\u679c\u3002<\/li>\n<li>gr.Interface&#xff1a;\u7528Gradio\u5feb\u901f\u5b9a\u4e49\u8f93\u5165\u6846\u3001\u8f93\u51fa\u6846\u548c\u793a\u4f8b\u3002<\/li>\n<li>demo.launch&#xff1a;\u542f\u52a8\u4e00\u4e2aWeb\u670d\u52a1\u5668\u3002server_port&#061;7860\u662fGradio\u7684\u9ed8\u8ba4\u7aef\u53e3\u3002<\/li>\n<h4>2.3 \u7b2c\u4e09\u6b65&#xff1a;\u542f\u52a8\u670d\u52a1\u5e76\u9a8c\u8bc1<\/h4>\n<p>\u4fdd\u5b58\u597d webui.py \u6587\u4ef6\u540e&#xff0c;\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\u5b83&#xff1a;<\/p>\n<p>cd \/home\/work\/mgeo_demo<br \/>\npython webui.py<\/p>\n<p>\u4f60\u4f1a\u770b\u5230\u7c7b\u4f3c\u4e0b\u9762\u7684\u8f93\u51fa&#xff0c;\u8bf4\u660e\u6a21\u578b\u6b63\u5728\u52a0\u8f7d&#xff08;\u9996\u6b21\u8fd0\u884c\u9700\u8981\u4e0b\u8f7d\u6a21\u578b\u6743\u91cd&#xff0c;\u65f6\u95f4\u8f83\u957f&#xff09;&#xff1a;<\/p>\n<p>\u6b63\u5728\u52a0\u8f7d\u6a21\u578b damo\/mgeo_backbone_chinese_base&#xff0c;\u9996\u6b21\u52a0\u8f7d\u53ef\u80fd\u9700\u8981\u51e0\u5206\u949f&#xff0c;\u8bf7\u8010\u5fc3\u7b49\u5f85&#8230;<br \/>\nDownloading model files&#8230;<br \/>\n&#8230;<br \/>\n\u6a21\u578b\u52a0\u8f7d\u6210\u529f&#xff01;<br \/>\nRunning on local URL:  http:\/\/0.0.0.0:7860<\/p>\n<p>\u770b\u5230 Running on local URL \u5c31\u8868\u793a\u670d\u52a1\u542f\u52a8\u6210\u529f\u4e86&#xff01;<\/p>\n<p>\u73b0\u5728&#xff0c;\u6253\u5f00\u4f60\u670d\u52a1\u5668\u6240\u5728\u673a\u5668\u7684\u6d4f\u89c8\u5668&#xff0c;\u8bbf\u95ee http:\/\/&lt;\u4f60\u7684\u670d\u52a1\u5668IP\u5730\u5740&gt;:7860\u3002\u5982\u679c\u662f\u5728\u670d\u52a1\u5668\u672c\u5730&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u8bbf\u95ee http:\/\/127.0.0.1:7860\u3002<\/p>\n<p>\u4f60\u5e94\u8be5\u80fd\u770b\u5230\u4e00\u4e2a\u7b80\u6d01\u7684Web\u754c\u9762\u3002\u5728\u8f93\u5165\u6846\u91cc\u8bd5\u8bd5\u63d0\u4f9b\u7684\u4f8b\u5b50&#xff0c;\u6216\u8005\u8f93\u5165\u4f60\u81ea\u5df1\u7684\u5730\u5740&#xff0c;\u6bd4\u5982\u201c\u5e7f\u5dde\u5854\u201d&#xff0c;\u7136\u540e\u70b9\u51fb\u201c\u63d0\u4ea4\u201d\u3002\u7a0d\u7b49\u7247\u523b&#xff0c;\u4e0b\u65b9\u5c31\u4f1a\u663e\u793a\u6a21\u578b\u89e3\u6790\u51fa\u7684\u7ed3\u6784\u5316\u7ed3\u679c\u3002<\/p>\n<h3>3. ARM\u67b6\u6784\u517c\u5bb9\u6027\u9a8c\u8bc1\u8981\u70b9<\/h3>\n<p>\u670d\u52a1\u8dd1\u8d77\u6765\u4e86&#xff0c;\u4f46\u8fd9\u53ea\u662f\u7b2c\u4e00\u6b65\u3002\u6211\u4eec\u9700\u8981\u7cfb\u7edf\u5730\u9a8c\u8bc1\u5728ARM\u5e73\u53f0\u4e0a&#xff0c;\u6a21\u578b\u670d\u52a1\u662f\u5426\u201c\u5065\u5eb7\u201d\u3002\u4ee5\u4e0b\u662f\u51e0\u4e2a\u5173\u952e\u7684\u9a8c\u8bc1\u7ef4\u5ea6&#xff1a;<\/p>\n<h4>3.1 \u57fa\u7840\u529f\u80fd\u9a8c\u8bc1<\/h4>\n<p>\u8fd9\u662f\u6700\u57fa\u672c\u7684\u6d4b\u8bd5&#xff0c;\u786e\u4fdd\u6838\u5fc3\u6d41\u7a0b\u6ca1\u95ee\u9898\u3002<\/p>\n<ul>\n<li>\u6d4b\u8bd5\u7528\u4f8b&#xff1a;\u4f7f\u7528\u591a\u4e2a\u4e0d\u540c\u590d\u6742\u5ea6\u3001\u4e0d\u540c\u5730\u57df\u7684\u5730\u5740\u8fdb\u884c\u6d4b\u8bd5\u3002\n<ul>\n<li>\u7b80\u5355\u5730\u5740&#xff1a;\u201c\u5317\u4eac\u5e02\u5929\u5b89\u95e8\u5e7f\u573a\u201d<\/li>\n<li>\u6807\u51c6\u7ed3\u6784\u5316\u5730\u5740&#xff1a;\u201c\u4e0a\u6d77\u5e02\u5f90\u6c47\u533a\u6f15\u5b9d\u8def123\u53f7\u201d<\/li>\n<li>\u5305\u542bPOI\u7684\u5730\u5740&#xff1a;\u201c\u5728\u6df1\u5733\u4e07\u8c61\u5929\u5730\u8d2d\u7269\u4e2d\u5fc3\u9644\u8fd1\u201d<\/li>\n<\/ul>\n<\/li>\n<li>\u9884\u671f\u7ed3\u679c&#xff1a;\u6a21\u578b\u5e94\u80fd\u7a33\u5b9a\u8fd4\u56de\u89e3\u6790\u7ed3\u679c&#xff0c;\u4e0d\u51fa\u73b0\u7a0b\u5e8f\u5d29\u6e83\u6216500\u9519\u8bef\u3002\u7ed3\u679c\u5e94\u5305\u542b\u5730\u5740\u7684\u5c42\u7ea7\u4fe1\u606f&#xff08;\u5982\u7701\u3001\u5e02\u3001\u533a&#xff09;\u3002<\/li>\n<\/ul>\n<h4>3.2 \u6027\u80fd\u4e0e\u7a33\u5b9a\u6027\u9a8c\u8bc1<\/h4>\n<p>\u5728ARM\u67b6\u6784\u4e0a&#xff0c;\u6211\u4eec\u9700\u8981\u5173\u6ce8\u5176\u8fd0\u884c\u6548\u7387\u3002<\/p>\n<ul>\n<li>\u63a8\u7406\u901f\u5ea6&#xff1a;\u8bb0\u5f55\u89e3\u679010\u4e2a\u4e0d\u540c\u5730\u5740\u7684\u5e73\u5747\u8017\u65f6\u3002\u4f60\u53ef\u4ee5\u5199\u4e00\u4e2a\u7b80\u5355\u7684Python\u811a\u672c\u8fdb\u884c\u6279\u91cf\u6d4b\u8bd5&#xff0c;\u4e0ex86\u5e73\u53f0\u7684\u6570\u636e\u8fdb\u884c\u5bf9\u6bd4&#xff08;\u5982\u679c\u6761\u4ef6\u5141\u8bb8&#xff09;\u3002\u5173\u6ce8\u70b9\u5728\u4e8e\u662f\u5426\u5728\u53ef\u63a5\u53d7\u8303\u56f4\u5185&#xff0c;\u800c\u975e\u7edd\u5bf9\u6570\u503c\u5bf9\u6bd4\u3002<\/li>\n<li>\u957f\u65f6\u95f4\u8fd0\u884c&#xff1a;\u8ba9\u670d\u52a1\u6301\u7eed\u8fd0\u884c\u51e0\u5c0f\u65f6\u6216\u534a\u5929&#xff0c;\u540c\u65f6\u95f4\u6b47\u6027\u5730\u53d1\u9001\u8bf7\u6c42\u3002\u89c2\u5bdf\u662f\u5426\u6709\u5185\u5b58\u6cc4\u6f0f&#xff08;\u5185\u5b58\u4f7f\u7528\u91cf\u6301\u7eed\u589e\u957f&#xff09;\u6216\u54cd\u5e94\u65f6\u95f4\u663e\u8457\u53d8\u6162\u7684\u60c5\u51b5\u3002\u53ef\u4ee5\u4f7f\u7528Linux\u547d\u4ee4\u5982 top \u6216 htop \u6765\u76d1\u63a7\u8fdb\u7a0b\u8d44\u6e90\u5360\u7528\u3002<\/li>\n<li>\u5e76\u53d1\u538b\u529b&#xff08;\u53ef\u9009&#xff09;&#xff1a;\u4f7f\u7528\u5de5\u5177\u5982 locust \u6216 wrk \u6a21\u62df\u591a\u4e2a\u7528\u6237\u540c\u65f6\u8bbf\u95ee&#xff0c;\u770b\u670d\u52a1\u662f\u5426\u80fd\u6b63\u5e38\u5904\u7406\u5e76\u53d1\u8bf7\u6c42\u3002ARM\u670d\u52a1\u5668\u7684\u6838\u5fc3\u6570\u901a\u5e38\u8f83\u591a&#xff0c;\u53ef\u4ee5\u89c2\u5bdf\u5176\u5e76\u53d1\u5904\u7406\u80fd\u529b\u3002<\/li>\n<\/ul>\n<h4>3.3 \u9519\u8bef\u5904\u7406\u4e0e\u8fb9\u754c\u9a8c\u8bc1<\/h4>\n<p>\u4e00\u4e2a\u597d\u7684\u670d\u52a1\u5fc5\u987b\u80fd\u59a5\u5584\u5904\u7406\u5f02\u5e38\u8f93\u5165\u3002<\/p>\n<ul>\n<li>\u7a7a\u8f93\u5165\/\u65e0\u6548\u8f93\u5165&#xff1a;\u8f93\u5165\u7a7a\u5b57\u7b26\u4e32\u3001\u7eaf\u6570\u5b57\u3001\u65e0\u610f\u4e49\u5b57\u7b26&#xff0c;\u770b\u670d\u52a1\u662f\u8fd4\u56de\u53cb\u597d\u7684\u9519\u8bef\u63d0\u793a&#xff0c;\u8fd8\u662f\u76f4\u63a5\u5d29\u6e83\u3002<\/li>\n<li>\u8d85\u957f\u6587\u672c&#xff1a;\u8f93\u5165\u4e00\u6bb5\u975e\u5e38\u957f\u7684\u3001\u975e\u5730\u5740\u7684\u6587\u672c&#xff0c;\u6d4b\u8bd5\u6a21\u578b\u7684\u5065\u58ee\u6027\u3002<\/li>\n<li>\u7279\u6b8a\u5b57\u7b26&#xff1a;\u5730\u5740\u4e2d\u5305\u542b\u201c#\u201d\u3001\u201c-\u201d\u3001\u201c\/\u201d\u7b49\u7b26\u53f7&#xff0c;\u770b\u89e3\u6790\u662f\u5426\u53d7\u5f71\u54cd\u3002<\/li>\n<\/ul>\n<h4>3.4 \u4f9d\u8d56\u5e93\u517c\u5bb9\u6027\u590d\u67e5<\/h4>\n<p>\u8fd9\u662fARM\u90e8\u7f72\u6700\u5bb9\u6613\u51fa\u95ee\u9898\u7684\u5730\u65b9\u3002<\/p>\n<ul>\n<li>\u68c0\u67e5\u5173\u952e\u5e93\u7248\u672c&#xff1a;\u5728Python\u73af\u5883\u4e2d\u8fd0\u884c pip list | grep -E &#034;(torch|transformers|modelscope)&#034;&#xff0c;\u786e\u8ba4\u6240\u6709\u6838\u5fc3\u5e93\u90fd\u5df2\u6210\u529f\u5b89\u88c5\u4e14\u7248\u672c\u517c\u5bb9\u3002<\/li>\n<li>\u9a8c\u8bc1\u5e95\u5c42\u8ba1\u7b97&#xff1a;\u786e\u4fdd\u6240\u6709Tensor\u8ba1\u7b97\u90fd\u5728CPU\u4e0a\u6b63\u5e38\u8fdb\u884c&#xff08;MGeo-base\u63a8\u7406\u901a\u5e38\u4e0d\u9700\u8981GPU&#xff09;\u3002\u53ef\u4ee5\u5c1d\u8bd5\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684PyTorch\u5f20\u91cf\u8fd0\u7b97\u6765\u9a8c\u8bc1\u57fa\u7840\u529f\u80fd\u3002import torch<br \/>\n# \u7b80\u5355\u6d4b\u8bd5PyTorch\u5728ARM\u4e0a\u662f\u5426\u5de5\u4f5c\u6b63\u5e38<br \/>\nx &#061; torch.tensor([1.0, 2.0, 3.0])<br \/>\ny &#061; torch.tensor([4.0, 5.0, 6.0])<br \/>\nprint(&#034;PyTorch ARM \u6d4b\u8bd5:&#034;, x &#043; y) # \u5e94\u8f93\u51fa tensor([5., 7., 9.])\n <\/li>\n<\/ul>\n<h3>4. \u90e8\u7f72\u603b\u7ed3\u4e0e\u5b9e\u7528\u5efa\u8bae<\/h3>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4&#xff0c;\u6211\u4eec\u6210\u529f\u5728ARM\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u5e76\u521d\u6b65\u9a8c\u8bc1\u4e86MGeo-base\u5730\u5740\u89e3\u6790\u670d\u52a1\u3002\u56de\u987e\u6574\u4e2a\u8fc7\u7a0b&#xff0c;\u6211\u4eec\u53ef\u4ee5\u5f97\u51fa\u4ee5\u4e0b\u7ed3\u8bba\u548c\u540e\u7eed\u5efa\u8bae&#xff1a;<\/p>\n<h4>4.1 \u9a8c\u8bc1\u603b\u7ed3<\/h4>\n<li>\u90e8\u7f72\u53ef\u884c\u6027&#xff1a;\u4f7f\u7528 modelscope \u548c gradio&#xff0c;\u5728ARM\u67b6\u6784&#xff08;\u9cb2\u9e4f920&#xff09;\u4e0a\u90e8\u7f72MGeo-base\u6a21\u578b\u670d\u52a1\u662f\u5b8c\u5168\u53ef\u884c\u7684\u3002\u5176\u8de8\u5e73\u53f0\u517c\u5bb9\u6027\u826f\u597d&#xff0c;\u4e3b\u8981\u4f9d\u8d56\u9879\u5747\u6709ARM\u7248\u672c\u652f\u6301\u3002<\/li>\n<li>\u529f\u80fd\u5b8c\u6574\u6027&#xff1a;\u6a21\u578b\u7684\u6838\u5fc3\u5730\u5740\u89e3\u6790\u529f\u80fd\u5728ARM\u5e73\u53f0\u4e0a\u8868\u73b0\u6b63\u5e38&#xff0c;\u80fd\u591f\u51c6\u786e\u5904\u7406\u591a\u79cd\u683c\u5f0f\u7684\u4e2d\u6587\u5730\u5740\u8f93\u5165\u3002<\/li>\n<li>\u6027\u80fd\u8868\u73b0&#xff1a;\u5728\u7eafCPU\u73af\u5883\u4e0b&#xff0c;\u5355\u6b21\u63a8\u7406\u54cd\u5e94\u65f6\u95f4\u5728\u53ef\u63a5\u53d7\u8303\u56f4\u5185&#xff0c;\u80fd\u591f\u6ee1\u8db3\u4e00\u822c\u79bb\u7ebf\u6216\u4e2d\u5c0f\u6d41\u91cf\u5728\u7ebf\u670d\u52a1\u7684\u9700\u6c42\u3002\u5bf9\u4e8e\u9ad8\u6027\u80fd\u8981\u6c42\u573a\u666f&#xff0c;\u53ef\u8003\u8651\u6a21\u578b\u91cf\u5316\u6216\u4f7f\u7528\u9488\u5bf9ARM\u4f18\u5316\u7684\u63a8\u7406\u540e\u7aef&#xff08;\u5982ONNX Runtime&#xff09;\u3002<\/li>\n<li>\u751f\u6001\u9002\u914d&#xff1a;\u6574\u4e2aPython AI\u751f\u6001&#xff08;PyTorch, Transformers\u7b49&#xff09;\u5bf9ARM\u67b6\u6784\u7684\u652f\u6301\u5df2\u65e5\u8d8b\u5b8c\u5584&#xff0c;\u4e3a\u56fd\u4ea7\u5316\u73af\u5883\u4e0b\u7684AI\u5e94\u7528\u843d\u5730\u626b\u6e05\u4e86\u57fa\u7840\u969c\u788d\u3002<\/li>\n<h4>4.2 \u751f\u4ea7\u73af\u5883\u8fdb\u9636\u5efa\u8bae<\/h4>\n<p>\u5982\u679c\u4f60\u8ba1\u5212\u5c06\u6b64\u9879\u670d\u52a1\u7528\u4e8e\u5b9e\u9645\u751f\u4ea7\u73af\u5883&#xff0c;\u8fd8\u9700\u8981\u8003\u8651\u4ee5\u4e0b\u51e0\u70b9&#xff1a;<\/p>\n<ul>\n<li>\u670d\u52a1\u5316\u4e0eAPI&#xff1a;Gradio\u9002\u5408\u6f14\u793a\u548c\u6d4b\u8bd5\u3002\u751f\u4ea7\u73af\u5883\u5efa\u8bae\u4f7f\u7528\u66f4\u4e13\u4e1a\u7684Web\u6846\u67b6&#xff08;\u5982FastAPI\u3001Flask&#xff09;\u5c01\u88c5\u6a21\u578b&#xff0c;\u63d0\u4f9b\u6807\u51c6\u7684RESTful API&#xff0c;\u5e76\u589e\u52a0\u8ba4\u8bc1\u3001\u9650\u6d41\u3001\u65e5\u5fd7\u76d1\u63a7\u7b49\u529f\u80fd\u3002<\/li>\n<li>\u6027\u80fd\u4f18\u5316&#xff1a;\n<ul>\n<li>\u6a21\u578b\u91cf\u5316&#xff1a;\u4f7f\u7528PyTorch\u7684\u91cf\u5316\u5de5\u5177\u5c06FP32\u6a21\u578b\u8f6c\u6362\u4e3aINT8\u6a21\u578b&#xff0c;\u53ef\u4ee5\u663e\u8457\u51cf\u5c0f\u6a21\u578b\u4f53\u79ef\u3001\u63d0\u5347\u63a8\u7406\u901f\u5ea6&#xff0c;\u5bf9CPU\u5c24\u5176\u53cb\u597d\u3002<\/li>\n<li>\u6279\u5904\u7406&#xff1a;\u5982\u679c\u8bf7\u6c42\u91cf\u5927&#xff0c;\u53ef\u4ee5\u5b9e\u73b0\u6279\u5904\u7406\u9884\u6d4b&#xff0c;\u4e00\u6b21\u6027\u5904\u7406\u591a\u4e2a\u5730\u5740&#xff0c;\u63d0\u5347\u541e\u5410\u91cf\u3002<\/li>\n<li>\u7f13\u5b58&#xff1a;\u5bf9\u5e38\u89c1\u3001\u91cd\u590d\u7684\u5730\u5740\u89e3\u6790\u7ed3\u679c\u8fdb\u884c\u7f13\u5b58&#xff0c;\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u6a21\u578b\u8ba1\u7b97\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u9ad8\u53ef\u7528\u4e0e\u76d1\u63a7&#xff1a;\u4f7f\u7528Docker\u5bb9\u5668\u5316\u90e8\u7f72&#xff0c;\u4fbf\u4e8e\u8fc1\u79fb\u548c\u6269\u5c55\u3002\u7ed3\u5408Kubernetes\u7b49\u7f16\u6392\u5de5\u5177\u5b9e\u73b0\u9ad8\u53ef\u7528\u3002\u63a5\u5165Prometheus\u3001Grafana\u7b49\u76d1\u63a7\u7cfb\u7edf&#xff0c;\u5173\u6ce8\u670d\u52a1\u7684QPS\u3001\u5ef6\u8fdf\u3001\u9519\u8bef\u7387\u7b49\u5173\u952e\u6307\u6807\u3002<\/li>\n<li>\u5b89\u5168\u8003\u8651&#xff1a;\u786e\u4fdd\u670d\u52a1\u7aef\u53e3&#xff08;\u59827860&#xff09;\u4e0d\u76f4\u63a5\u5bf9\u5916\u66b4\u9732&#xff0c;\u5e94\u901a\u8fc7Nginx\u7b49\u53cd\u5411\u4ee3\u7406\u8fdb\u884c\u8f6c\u53d1&#xff0c;\u5e76\u914d\u7f6e\u597d\u9632\u706b\u5899\u89c4\u5219\u3002<\/li>\n<\/ul>\n<hr \/>\n<p>\u83b7\u53d6\u66f4\u591aAI\u955c\u50cf<\/p>\n<p>\u60f3\u63a2\u7d22\u66f4\u591aAI\u955c\u50cf\u548c\u5e94\u7528\u573a\u666f&#xff1f;\u8bbf\u95ee CSDN\u661f\u56fe\u955c\u50cf\u5e7f\u573a&#xff0c;\u63d0\u4f9b\u4e30\u5bcc\u7684\u9884\u7f6e\u955c\u50cf&#xff0c;\u8986\u76d6\u5927\u6a21\u578b\u63a8\u7406\u3001\u56fe\u50cf\u751f\u6210\u3001\u89c6\u9891\u751f\u6210\u3001\u6a21\u578b\u5fae\u8c03\u7b49\u591a\u4e2a\u9886\u57df&#xff0c;\u652f\u6301\u4e00\u952e\u90e8\u7f72\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MGeo\u95e8\u5740\u89e3\u6790\u90e8\u7f72&#xff1a;ARM\u67b6\u6784\u670d\u52a1\u5668&#xff08;\u5982\u9cb2\u9e4f920&#xff09;\u4e0aMGeo-base\u517c\u5bb9\u6027\u9a8c\u8bc1<br \/>\n\u4f60\u6709\u6ca1\u6709\u9047\u5230\u8fc7\u8fd9\u6837\u7684\u573a\u666f&#xff1a;\u7528\u6237\u586b\u5199\u7684\u6536\u8d27\u5730\u5740\u4e94\u82b1\u516b\u95e8&#xff0c;\u6709\u7684\u5199\u201cXX\u8defXX\u53f7\u201d&#xff0c;\u6709\u7684\u5199\u201cXX\u5c0f\u533aX\u680bX\u5355\u5143\u201d&#xff0c;\u8fd8\u6709\u7684\u5e72\u8106\u53ea\u5199\u4e00\u4e2a\u6a21\u7cca\u7684\u5730\u6807\u3002\u628a\u8fd9\u4e9b\u975e\u7ed3\u6784\u5316\u7684\u5730\u5740\u6587\u672c&#xff0c;\u81ea\u52a8\u89e3\u6790\u6210\u201c\u7701\u3001\u5e02\u3001\u533a\u3001\u8857\u9053\u3001\u95e8\u724c\u53f7\u201d\u8fd9\u6837\u7684\u6807\u51c6\u683c\u5f0f&#xff0c;\u662f\u5f88\u591a\u4e1a\u52a1\u7cfb\u7edf\u5934\u75bc\u7684\u95ee\u9898\u3002<br \/>\n\u4eca\u5929&amp;#xff0c<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7591,9321,224],"topic":[],"class_list":["post-83464","post","type-post","status-publish","format-standard","hentry","category-server","tag-ai","tag-9321","tag-224"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MGeo\u95e8\u5740\u89e3\u6790\u90e8\u7f72\uff1aARM\u67b6\u6784\u670d\u52a1\u5668\uff08\u5982\u9cb2\u9e4f920\uff09\u4e0aMGeo-base\u517c\u5bb9\u6027\u9a8c\u8bc1 - \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\/83464.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MGeo\u95e8\u5740\u89e3\u6790\u90e8\u7f72\uff1aARM\u67b6\u6784\u670d\u52a1\u5668\uff08\u5982\u9cb2\u9e4f920\uff09\u4e0aMGeo-base\u517c\u5bb9\u6027\u9a8c\u8bc1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"MGeo\u95e8\u5740\u89e3\u6790\u90e8\u7f72&#xff1a;ARM\u67b6\u6784\u670d\u52a1\u5668&#xff08;\u5982\u9cb2\u9e4f920&#xff09;\u4e0aMGeo-base\u517c\u5bb9\u6027\u9a8c\u8bc1 \u4f60\u6709\u6ca1\u6709\u9047\u5230\u8fc7\u8fd9\u6837\u7684\u573a\u666f&#xff1a;\u7528\u6237\u586b\u5199\u7684\u6536\u8d27\u5730\u5740\u4e94\u82b1\u516b\u95e8&#xff0c;\u6709\u7684\u5199\u201cXX\u8defXX\u53f7\u201d&#xff0c;\u6709\u7684\u5199\u201cXX\u5c0f\u533aX\u680bX\u5355\u5143\u201d&#xff0c;\u8fd8\u6709\u7684\u5e72\u8106\u53ea\u5199\u4e00\u4e2a\u6a21\u7cca\u7684\u5730\u6807\u3002\u628a\u8fd9\u4e9b\u975e\u7ed3\u6784\u5316\u7684\u5730\u5740\u6587\u672c&#xff0c;\u81ea\u52a8\u89e3\u6790\u6210\u201c\u7701\u3001\u5e02\u3001\u533a\u3001\u8857\u9053\u3001\u95e8\u724c\u53f7\u201d\u8fd9\u6837\u7684\u6807\u51c6\u683c\u5f0f&#xff0c;\u662f\u5f88\u591a\u4e1a\u52a1\u7cfb\u7edf\u5934\u75bc\u7684\u95ee\u9898\u3002 \u4eca\u5929&amp;#xff0c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/83464.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-25T15:17:05+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/83464.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/83464.html\",\"name\":\"MGeo\u95e8\u5740\u89e3\u6790\u90e8\u7f72\uff1aARM\u67b6\u6784\u670d\u52a1\u5668\uff08\u5982\u9cb2\u9e4f920\uff09\u4e0aMGeo-base\u517c\u5bb9\u6027\u9a8c\u8bc1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-25T15:17:05+00:00\",\"dateModified\":\"2026-07-25T15:17:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/83464.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/83464.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/83464.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MGeo\u95e8\u5740\u89e3\u6790\u90e8\u7f72\uff1aARM\u67b6\u6784\u670d\u52a1\u5668\uff08\u5982\u9cb2\u9e4f920\uff09\u4e0aMGeo-base\u517c\u5bb9\u6027\u9a8c\u8bc1\"}]},{\"@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":"MGeo\u95e8\u5740\u89e3\u6790\u90e8\u7f72\uff1aARM\u67b6\u6784\u670d\u52a1\u5668\uff08\u5982\u9cb2\u9e4f920\uff09\u4e0aMGeo-base\u517c\u5bb9\u6027\u9a8c\u8bc1 - \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\/83464.html","og_locale":"zh_CN","og_type":"article","og_title":"MGeo\u95e8\u5740\u89e3\u6790\u90e8\u7f72\uff1aARM\u67b6\u6784\u670d\u52a1\u5668\uff08\u5982\u9cb2\u9e4f920\uff09\u4e0aMGeo-base\u517c\u5bb9\u6027\u9a8c\u8bc1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"MGeo\u95e8\u5740\u89e3\u6790\u90e8\u7f72&#xff1a;ARM\u67b6\u6784\u670d\u52a1\u5668&#xff08;\u5982\u9cb2\u9e4f920&#xff09;\u4e0aMGeo-base\u517c\u5bb9\u6027\u9a8c\u8bc1 \u4f60\u6709\u6ca1\u6709\u9047\u5230\u8fc7\u8fd9\u6837\u7684\u573a\u666f&#xff1a;\u7528\u6237\u586b\u5199\u7684\u6536\u8d27\u5730\u5740\u4e94\u82b1\u516b\u95e8&#xff0c;\u6709\u7684\u5199\u201cXX\u8defXX\u53f7\u201d&#xff0c;\u6709\u7684\u5199\u201cXX\u5c0f\u533aX\u680bX\u5355\u5143\u201d&#xff0c;\u8fd8\u6709\u7684\u5e72\u8106\u53ea\u5199\u4e00\u4e2a\u6a21\u7cca\u7684\u5730\u6807\u3002\u628a\u8fd9\u4e9b\u975e\u7ed3\u6784\u5316\u7684\u5730\u5740\u6587\u672c&#xff0c;\u81ea\u52a8\u89e3\u6790\u6210\u201c\u7701\u3001\u5e02\u3001\u533a\u3001\u8857\u9053\u3001\u95e8\u724c\u53f7\u201d\u8fd9\u6837\u7684\u6807\u51c6\u683c\u5f0f&#xff0c;\u662f\u5f88\u591a\u4e1a\u52a1\u7cfb\u7edf\u5934\u75bc\u7684\u95ee\u9898\u3002 \u4eca\u5929&amp;#xff0c","og_url":"https:\/\/www.wsisp.com\/helps\/83464.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-25T15:17:05+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/83464.html","url":"https:\/\/www.wsisp.com\/helps\/83464.html","name":"MGeo\u95e8\u5740\u89e3\u6790\u90e8\u7f72\uff1aARM\u67b6\u6784\u670d\u52a1\u5668\uff08\u5982\u9cb2\u9e4f920\uff09\u4e0aMGeo-base\u517c\u5bb9\u6027\u9a8c\u8bc1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-25T15:17:05+00:00","dateModified":"2026-07-25T15:17:05+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/83464.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/83464.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/83464.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"MGeo\u95e8\u5740\u89e3\u6790\u90e8\u7f72\uff1aARM\u67b6\u6784\u670d\u52a1\u5668\uff08\u5982\u9cb2\u9e4f920\uff09\u4e0aMGeo-base\u517c\u5bb9\u6027\u9a8c\u8bc1"}]},{"@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\/83464","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=83464"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/83464\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=83464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=83464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=83464"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=83464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}