{"id":83227,"date":"2026-07-25T18:25:37","date_gmt":"2026-07-25T10:25:37","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/83227.html"},"modified":"2026-07-25T18:25:37","modified_gmt":"2026-07-25T10:25:37","slug":"ostrakon-vl-8b%e9%83%a8%e7%bd%b2%e6%95%99%e7%a8%8b%ef%bc%9aarm%e6%9e%b6%e6%9e%84%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88%e5%a6%82nvidia-grace%ef%bc%89%e4%b8%8a%e7%9a%84vllm%e5%85%bc%e5%ae%b9%e9%83%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/83227.html","title":{"rendered":"Ostrakon-VL-8B\u90e8\u7f72\u6559\u7a0b\uff1aARM\u67b6\u6784\u670d\u52a1\u5668\uff08\u5982NVIDIA Grace\uff09\u4e0a\u7684vLLM\u517c\u5bb9\u90e8\u7f72"},"content":{"rendered":"<h2>Ostrakon-VL-8B\u90e8\u7f72\u6559\u7a0b&#xff1a;ARM\u67b6\u6784\u670d\u52a1\u5668&#xff08;\u5982NVIDIA Grace&#xff09;\u4e0a\u7684vLLM\u517c\u5bb9\u90e8\u7f72<\/h2>\n<h3>1. \u5f00\u7bc7&#xff1a;\u4e3a\u4ec0\u4e48\u4f60\u9700\u8981\u5173\u6ce8\u8fd9\u4e2a\u6a21\u578b&#xff1f;<\/h3>\n<p>\u5982\u679c\u4f60\u6b63\u5728\u5bfb\u627e\u4e00\u4e2a\u80fd\u771f\u6b63\u770b\u61c2\u96f6\u552e\u548c\u9910\u996e\u573a\u666f\u56fe\u7247\u7684AI\u52a9\u624b&#xff0c;\u90a3\u4e48Ostrakon-VL-8B\u7edd\u5bf9\u503c\u5f97\u4f60\u82b1\u65f6\u95f4\u4e86\u89e3\u4e00\u4e0b\u3002<\/p>\n<p>\u60f3\u8c61\u4e00\u4e0b\u8fd9\u6837\u7684\u573a\u666f&#xff1a;\u4f60\u6709\u4e00\u5bb6\u8fde\u9501\u8d85\u5e02&#xff0c;\u6bcf\u5929\u8981\u5904\u7406\u6210\u5343\u4e0a\u4e07\u7684\u8d27\u67b6\u7167\u7247&#xff0c;\u9700\u8981\u68c0\u67e5\u5546\u54c1\u6446\u653e\u662f\u5426\u5408\u89c4\u3001\u4ef7\u683c\u6807\u7b7e\u662f\u5426\u6b63\u786e\u3001\u5e93\u5b58\u662f\u5426\u5145\u8db3\u3002\u4f20\u7edf\u65b9\u6cd5\u8981\u4e48\u9760\u4eba\u5de5\u4e00\u5f20\u5f20\u770b&#xff0c;\u6548\u7387\u4f4e\u4e0b&#xff1b;\u8981\u4e48\u7528\u901a\u7528AI\u6a21\u578b&#xff0c;\u4f46\u6548\u679c\u603b\u662f\u4e0d\u5c3d\u5982\u4eba\u610f\u2014\u2014\u5b83\u4eec\u53ef\u80fd\u8ba4\u8bc6\u201c\u82f9\u679c\u201d&#xff0c;\u4f46\u5206\u4e0d\u6e05\u201c\u7ea2\u5bcc\u58eb\u201d\u548c\u201c\u560e\u5566\u201d&#xff0c;\u66f4\u770b\u4e0d\u61c2\u4fc3\u9500\u6d77\u62a5\u4e0a\u7684\u590d\u6742\u4fe1\u606f\u3002<\/p>\n<p>Ostrakon-VL-8B\u5c31\u662f\u4e3a\u89e3\u51b3\u8fd9\u7c7b\u95ee\u9898\u800c\u751f\u7684\u3002\u5b83\u4e0d\u662f\u4e00\u4e2a\u666e\u901a\u7684\u56fe\u6587\u5bf9\u8bdd\u6a21\u578b&#xff0c;\u800c\u662f\u4e13\u95e8\u9488\u5bf9\u98df\u54c1\u670d\u52a1\u548c\u96f6\u552e\u5546\u5e97\u573a\u666f\u8bad\u7ec3\u7684\u201c\u9886\u57df\u4e13\u5bb6\u201d\u3002\u6700\u8ba9\u4eba\u60ca\u559c\u7684\u662f&#xff0c;\u8fd9\u4e2a\u53ea\u670980\u4ebf\u53c2\u6570\u7684\u201c\u5c0f\u201d\u6a21\u578b&#xff0c;\u5728\u67d0\u4e9b\u4e13\u4e1a\u4efb\u52a1\u4e0a\u7684\u8868\u73b0&#xff0c;\u7adf\u7136\u80fd\u8d85\u8fc7\u90a3\u4e9b\u53c2\u6570\u5927\u51e0\u5341\u500d\u7684\u901a\u7528\u5927\u6a21\u578b\u3002<\/p>\n<p>\u4eca\u5929\u6211\u8981\u5e26\u4f60\u505a\u7684&#xff0c;\u5c31\u662f\u5728ARM\u67b6\u6784\u7684\u670d\u52a1\u5668\u4e0a&#xff08;\u6bd4\u5982NVIDIA Grace\u5e73\u53f0&#xff09;&#xff0c;\u7528vLLM\u6846\u67b6\u5feb\u901f\u90e8\u7f72\u8fd9\u4e2a\u6a21\u578b&#xff0c;\u5e76\u7528\u4e00\u4e2a\u7b80\u5355\u7684\u524d\u7aef\u754c\u9762\u6765\u8c03\u7528\u5b83\u3002\u6574\u4e2a\u8fc7\u7a0b\u5c31\u50cf\u642d\u79ef\u6728\u4e00\u6837\u7b80\u5355&#xff0c;\u5373\u4f7f\u4f60\u4e0d\u662f\u6df1\u5ea6\u5b66\u4e60\u4e13\u5bb6&#xff0c;\u4e5f\u80fd\u8ddf\u7740\u4e00\u6b65\u6b65\u5b8c\u6210\u3002<\/p>\n<h3>2. \u90e8\u7f72\u524d\u7684\u51c6\u5907\u5de5\u4f5c<\/h3>\n<h4>2.1 \u4e86\u89e3\u4f60\u7684\u201c\u5de5\u5177\u7bb1\u201d<\/h4>\n<p>\u5728\u5f00\u59cb\u4e4b\u524d&#xff0c;\u6211\u4eec\u5148\u5feb\u901f\u4e86\u89e3\u4e00\u4e0b\u8981\u7528\u5230\u7684\u51e0\u4e2a\u5173\u952e\u7ec4\u4ef6&#xff1a;<\/p>\n<p>Ostrakon-VL-8B&#xff1a;\u8fd9\u662f\u4eca\u5929\u7684\u4e3b\u89d2\u3002\u5b83\u57fa\u4e8eQwen3-VL-8B\u6784\u5efa&#xff0c;\u4e13\u95e8\u9488\u5bf9\u96f6\u552e\u548c\u9910\u996e\u573a\u666f\u505a\u4e86\u6df1\u5ea6\u4f18\u5316\u3002\u7b80\u5355\u8bf4&#xff0c;\u5b83\u7279\u522b\u64c5\u957f&#xff1a;<\/p>\n<ul>\n<li>\u8bc6\u522b\u5e97\u94fa\u73af\u5883\u4e2d\u7684\u5404\u79cd\u7269\u4f53&#xff08;\u5e73\u5747\u6bcf\u5f20\u56fe\u80fd\u8ba4\u51fa13\u4e2a\u7269\u4f53&#xff09;<\/li>\n<li>\u7406\u89e3\u590d\u6742\u7684\u89c6\u89c9\u573a\u666f&#xff08;\u6bd4\u5982\u8d27\u67b6\u5e03\u5c40\u3001\u53a8\u623f\u8bbe\u5907\u6446\u653e&#xff09;<\/li>\n<li>\u56de\u7b54\u4e13\u4e1a\u95ee\u9898&#xff08;\u6bd4\u5982\u201c\u8fd9\u4e2a\u5546\u54c1\u662f\u5426\u7b26\u5408\u98df\u54c1\u5b89\u5168\u6807\u51c6&#xff1f;\u201d&#xff09;<\/li>\n<\/ul>\n<p>vLLM&#xff1a;\u8fd9\u662f\u4e00\u4e2a\u9ad8\u6027\u80fd\u7684\u63a8\u7406\u6846\u67b6\u3002\u4f60\u53ef\u4ee5\u628a\u5b83\u60f3\u8c61\u6210\u4e00\u4e2a\u201c\u6a21\u578b\u52a0\u901f\u5668\u201d&#xff0c;\u5b83\u80fd\u8ba9\u5927\u6a21\u578b\u8dd1\u5f97\u66f4\u5feb\u3001\u66f4\u7701\u5185\u5b58\u3002\u7279\u522b\u662f\u5728ARM\u67b6\u6784\u7684\u670d\u52a1\u5668\u4e0a&#xff0c;vLLM\u7684\u517c\u5bb9\u6027\u505a\u5f97\u5f88\u597d\u3002<\/p>\n<p>Chainlit&#xff1a;\u8fd9\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684Web\u524d\u7aef\u6846\u67b6\u3002\u6211\u4eec\u7528\u5b83\u6765\u642d\u5efa\u4e00\u4e2a\u804a\u5929\u754c\u9762&#xff0c;\u8ba9\u4f60\u53ef\u4ee5\u901a\u8fc7\u7f51\u9875\u76f4\u63a5\u548c\u6a21\u578b\u5bf9\u8bdd&#xff0c;\u4e0a\u4f20\u56fe\u7247\u3001\u63d0\u95ee\u3001\u770b\u56de\u7b54&#xff0c;\u5c31\u50cf\u7528ChatGPT\u4e00\u6837\u7b80\u5355\u3002<\/p>\n<p>ARM\u67b6\u6784\u670d\u52a1\u5668&#xff1a;\u6211\u4eec\u4eca\u5929\u7684\u90e8\u7f72\u73af\u5883\u3002ARM\u67b6\u6784\u73b0\u5728\u5728\u670d\u52a1\u5668\u9886\u57df\u8d8a\u6765\u8d8a\u6d41\u884c&#xff0c;\u7279\u522b\u662fNVIDIA\u7684Grace\u5e73\u53f0&#xff0c;\u6027\u80fd\u5f88\u5f3a\u52b2\u3002\u5982\u679c\u4f60\u7528\u7684\u662f\u5176\u4ed6ARM\u670d\u52a1\u5668&#xff0c;\u6bd4\u5982AWS\u7684Graviton\u6216\u8005\u82f9\u679c\u7684M\u7cfb\u5217\u82af\u7247&#xff0c;\u65b9\u6cd5\u4e5f\u57fa\u672c\u901a\u7528\u3002<\/p>\n<h4>2.2 \u73af\u5883\u68c0\u67e5\u6e05\u5355<\/h4>\n<p>\u5f00\u59cb\u90e8\u7f72\u524d&#xff0c;\u8bf7\u786e\u8ba4\u4f60\u7684\u73af\u5883\u6ee1\u8db3\u4ee5\u4e0b\u8981\u6c42&#xff1a;<\/p>\n<ul>\n<li>\u64cd\u4f5c\u7cfb\u7edf&#xff1a;Ubuntu 20.04\u621622.04&#xff08;\u5176\u4ed6Linux\u53d1\u884c\u7248\u4e5f\u53ef\u4ee5&#xff0c;\u4f46\u547d\u4ee4\u53ef\u80fd\u7a0d\u6709\u4e0d\u540c&#xff09;<\/li>\n<li>Python\u7248\u672c&#xff1a;Python 3.8\u52303.11\u4e4b\u95f4<\/li>\n<li>\u5185\u5b58&#xff1a;\u81f3\u5c1132GB RAM&#xff08;\u6a21\u578b\u672c\u8eab\u9700\u8981\u7ea616GB&#xff0c;\u8fd0\u884c\u8fd8\u9700\u8981\u989d\u5916\u5185\u5b58&#xff09;<\/li>\n<li>\u5b58\u50a8\u7a7a\u95f4&#xff1a;\u81f3\u5c1150GB\u53ef\u7528\u7a7a\u95f4&#xff08;\u6a21\u578b\u6587\u4ef6\u5927\u7ea615GB&#xff09;<\/li>\n<li>\u7f51\u7edc&#xff1a;\u80fd\u7a33\u5b9a\u8bbf\u95eeGitHub\u548cHugging Face&#xff08;\u4e0b\u8f7d\u6a21\u578b\u9700\u8981&#xff09;<\/li>\n<\/ul>\n<p>\u5982\u679c\u4f60\u7528\u7684\u662f\u4e91\u670d\u52a1\u5668&#xff0c;\u5efa\u8bae\u9009\u62e9\u6709GPU\u7684\u5b9e\u4f8b&#xff0c;\u867d\u7136\u8fd9\u4e2a\u6a21\u578b\u5728CPU\u4e0a\u4e5f\u80fd\u8dd1&#xff0c;\u4f46\u6709GPU\u4f1a\u5feb\u5f88\u591a\u3002ARM\u67b6\u6784\u7684GPU&#xff08;\u6bd4\u5982NVIDIA Grace\u4e0a\u7684GPU&#xff09;\u5b8c\u5168\u6ca1\u95ee\u9898\u3002<\/p>\n<h3>3. \u4e00\u6b65\u6b65\u90e8\u7f72Ostrakon-VL-8B<\/h3>\n<h4>3.1 \u7b2c\u4e00\u6b65&#xff1a;\u521b\u5efa\u9879\u76ee\u76ee\u5f55\u548c\u73af\u5883<\/h4>\n<p>\u6253\u5f00\u4f60\u7684\u7ec8\u7aef&#xff0c;\u6211\u4eec\u4ece\u5934\u5f00\u59cb&#xff1a;<\/p>\n<p># \u521b\u5efa\u4e00\u4e2a\u4e13\u95e8\u7684\u9879\u76ee\u76ee\u5f55<br \/>\nmkdir ostrakon-vl-deployment<br \/>\ncd ostrakon-vl-deployment<\/p>\n<p># \u521b\u5efaPython\u865a\u62df\u73af\u5883&#xff08;\u63a8\u8350&#xff0c;\u907f\u514d\u5305\u51b2\u7a81&#xff09;<br \/>\npython3 -m venv venv<\/p>\n<p># \u6fc0\u6d3b\u865a\u62df\u73af\u5883<br \/>\nsource venv\/bin\/activate<\/p>\n<p># \u5982\u679c\u4f60\u7684\u7cfb\u7edf\u662fARM\u67b6\u6784&#xff0c;\u786e\u8ba4\u4e00\u4e0b<br \/>\nuname -m<br \/>\n# \u5e94\u8be5\u663e\u793a aarch64 \u6216 arm64<\/p>\n<p>\u770b\u5230aarch64\u6216arm64\u5c31\u8bf4\u660e\u4f60\u786e\u5b9e\u5728ARM\u67b6\u6784\u4e0a\u3002\u522b\u62c5\u5fc3&#xff0c;vLLM\u5bf9ARM\u7684\u652f\u6301\u5f88\u597d&#xff0c;\u6211\u4eec\u7528\u7684\u90fd\u662f\u517c\u5bb9\u7684\u7248\u672c\u3002<\/p>\n<h4>3.2 \u7b2c\u4e8c\u6b65&#xff1a;\u5b89\u88c5\u5fc5\u8981\u7684\u8f6f\u4ef6\u5305<\/h4>\n<p>\u73b0\u5728\u5b89\u88c5\u6211\u4eec\u9700\u8981\u7684Python\u5305\u3002\u8fd9\u91cc\u6709\u4e2a\u5c0f\u6280\u5de7&#xff1a;\u56e0\u4e3a\u6211\u4eec\u8981\u5728ARM\u4e0a\u8dd1&#xff0c;\u6709\u4e9b\u5305\u9700\u8981\u4ece\u6e90\u7801\u7f16\u8bd1&#xff0c;\u6240\u4ee5\u5148\u786e\u4fdd\u7cfb\u7edf\u6709\u7f16\u8bd1\u5de5\u5177&#xff1a;<\/p>\n<p># \u66f4\u65b0\u5305\u5217\u8868\u5e76\u5b89\u88c5\u7f16\u8bd1\u5de5\u5177<br \/>\nsudo apt update<br \/>\nsudo apt install -y build-essential python3-dev<\/p>\n<p># \u5b89\u88c5PyTorch&#xff08;ARM\u517c\u5bb9\u7248\u672c&#xff09;<br \/>\n# \u8bbf\u95ee https:\/\/pytorch.org\/get-started\/locally\/ \u67e5\u770b\u6700\u65b0\u7684ARM\u7248\u672c<br \/>\n# \u8fd9\u91cc\u4ee5PyTorch 2.3\u4e3a\u4f8b<br \/>\npip install torch torchvision torchaudio &#8211;index-url https:\/\/download.pytorch.org\/whl\/cpu<\/p>\n<p># \u5b89\u88c5vLLM&#xff08;\u6ce8\u610f\u7248\u672c&#xff0c;\u8981\u517c\u5bb9ARM&#xff09;<br \/>\npip install vllm&#061;&#061;0.4.2<\/p>\n<p># \u5b89\u88c5Chainlit\u548c\u5176\u4ed6\u4f9d\u8d56<br \/>\npip install chainlit transformers accelerate pillow<\/p>\n<p>\u5b89\u88c5\u8fc7\u7a0b\u53ef\u80fd\u9700\u8981\u51e0\u5206\u949f&#xff0c;\u7279\u522b\u662fvLLM&#xff0c;\u56e0\u4e3a\u5b83\u8981\u5728\u4f60\u7684\u673a\u5668\u4e0a\u7f16\u8bd1\u4e00\u4e9bC&#043;&#043;\u6269\u5c55\u3002\u5982\u679c\u9047\u5230\u7f51\u7edc\u95ee\u9898&#xff0c;\u53ef\u4ee5\u8bd5\u8bd5\u56fd\u5185\u7684\u955c\u50cf\u6e90&#xff1a;<\/p>\n<p>pip install vllm&#061;&#061;0.4.2 -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<\/p>\n<h4>3.3 \u7b2c\u4e09\u6b65&#xff1a;\u4e0b\u8f7dOstrakon-VL-8B\u6a21\u578b<\/h4>\n<p>\u6a21\u578b\u53ef\u4ee5\u4eceHugging Face\u4e0b\u8f7d\u3002\u6211\u4eec\u5148\u521b\u5efa\u4e00\u4e2aPython\u811a\u672c\u6765\u5904\u7406\u4e0b\u8f7d&#xff1a;<\/p>\n<p># download_model.py<br \/>\nfrom transformers import AutoModelForCausalLM, AutoTokenizer<br \/>\nimport torch<\/p>\n<p>model_name &#061; &#034;OstrakonAI\/Ostrakon-VL-8B&#034;<br \/>\nsave_path &#061; &#034;.\/ostrakon-vl-8b&#034;<\/p>\n<p>print(&#034;\u5f00\u59cb\u4e0b\u8f7dOstrakon-VL-8B\u6a21\u578b&#8230;&#034;)<br \/>\nprint(&#034;\u8fd9\u53ef\u80fd\u9700\u8981\u4e00\u4e9b\u65f6\u95f4&#xff0c;\u6a21\u578b\u5927\u5c0f\u7ea615GB&#034;)<\/p>\n<p># \u4e0b\u8f7d\u6a21\u578b\u548ctokenizer<br \/>\nmodel &#061; AutoModelForCausalLM.from_pretrained(<br \/>\n    model_name,<br \/>\n    torch_dtype&#061;torch.float16,  # \u7528\u534a\u7cbe\u5ea6\u8282\u7701\u5185\u5b58<br \/>\n    device_map&#061;&#034;auto&#034;,  # \u81ea\u52a8\u5206\u914d\u5230\u53ef\u7528\u8bbe\u5907<br \/>\n    trust_remote_code&#061;True<br \/>\n)<\/p>\n<p>tokenizer &#061; AutoTokenizer.from_pretrained(model_name, trust_remote_code&#061;True)<\/p>\n<p># \u4fdd\u5b58\u5230\u672c\u5730<br \/>\nmodel.save_pretrained(save_path)<br \/>\ntokenizer.save_pretrained(save_path)<\/p>\n<p>print(f&#034;\u6a21\u578b\u5df2\u4fdd\u5b58\u5230: {save_path}&#034;)<\/p>\n<p>\u8fd0\u884c\u8fd9\u4e2a\u811a\u672c&#xff1a;<\/p>\n<p>python download_model.py<\/p>\n<p>\u4e0b\u8f7d\u65f6\u95f4\u53d6\u51b3\u4e8e\u4f60\u7684\u7f51\u901f&#xff0c;\u5927\u6982\u9700\u898130\u5206\u949f\u52301\u5c0f\u65f6\u3002\u5982\u679c\u4e0b\u8f7d\u4e2d\u65ad&#xff0c;\u53ef\u4ee5\u91cd\u65b0\u8fd0\u884c&#xff0c;\u5b83\u4f1a\u81ea\u52a8\u7eed\u4f20\u3002<\/p>\n<h4>3.4 \u7b2c\u56db\u6b65&#xff1a;\u7528vLLM\u542f\u52a8\u6a21\u578b\u670d\u52a1<\/h4>\n<p>\u6a21\u578b\u4e0b\u8f7d\u597d\u540e&#xff0c;\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u542f\u52a8\u811a\u672c\u3002vLLM\u7684\u597d\u5904\u662f\u5b83\u5185\u7f6e\u4e86\u4e00\u4e2aOpenAI\u517c\u5bb9\u7684API\u670d\u52a1\u5668&#xff0c;\u6211\u4eec\u76f4\u63a5\u7528\u5b83\u5c31\u884c&#xff1a;<\/p>\n<p># start_server.py<br \/>\nfrom vllm import LLM, SamplingParams<br \/>\nfrom vllm.entrypoints.openai import api_server<br \/>\nimport argparse<br \/>\nimport uvicorn<\/p>\n<p>def main():<br \/>\n    parser &#061; argparse.ArgumentParser()<br \/>\n    parser.add_argument(&#034;&#8211;model&#034;, type&#061;str, default&#061;&#034;.\/ostrakon-vl-8b&#034;)<br \/>\n    parser.add_argument(&#034;&#8211;host&#034;, type&#061;str, default&#061;&#034;0.0.0.0&#034;)<br \/>\n    parser.add_argument(&#034;&#8211;port&#034;, type&#061;int, default&#061;8000)<br \/>\n    parser.add_argument(&#034;&#8211;gpu-memory-utilization&#034;, type&#061;float, default&#061;0.9)<br \/>\n    args &#061; parser.parse_args()<\/p>\n<p>    print(&#034;\u6b63\u5728\u52a0\u8f7dOstrakon-VL-8B\u6a21\u578b&#8230;&#034;)<br \/>\n    print(f&#034;\u6a21\u578b\u8def\u5f84: {args.model}&#034;)<br \/>\n    print(f&#034;\u670d\u52a1\u5730\u5740: http:\/\/{args.host}:{args.port}&#034;)<\/p>\n<p>    # \u521b\u5efaLLM\u5b9e\u4f8b<br \/>\n    llm &#061; LLM(<br \/>\n        model&#061;args.model,<br \/>\n        tokenizer&#061;args.model,<br \/>\n        tensor_parallel_size&#061;1,  # \u5982\u679c\u6709\u591aGPU\u53ef\u4ee5\u8c03\u6574<br \/>\n        gpu_memory_utilization&#061;args.gpu_memory_utilization,<br \/>\n        trust_remote_code&#061;True,<br \/>\n        max_model_len&#061;8192  # \u6700\u5927\u4e0a\u4e0b\u6587\u957f\u5ea6<br \/>\n    )<\/p>\n<p>    # \u542f\u52a8API\u670d\u52a1\u5668<br \/>\n    app &#061; api_server.create_app(llm&#061;llm)<\/p>\n<p>    print(&#034;\u6a21\u578b\u52a0\u8f7d\u5b8c\u6210&#xff01;\u670d\u52a1\u5df2\u542f\u52a8\u3002&#034;)<br \/>\n    print(&#034;\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u6d4b\u8bd5:&#034;)<br \/>\n    print(f&#034;curl http:\/\/{args.host}:{args.port}\/v1\/completions \\\\\\\\&#034;)<br \/>\n    print(&#039;  -H &#034;Content-Type: application\/json&#034; \\\\\\\\&#039;)<br \/>\n    print(&#039;  -d \\\\&#039;{&#034;model&#034;: &#034;ostrakon-vl-8b&#034;, &#034;prompt&#034;: &#034;Hello&#034;, &#034;max_tokens&#034;: 100}\\\\&#039;&#039;)<\/p>\n<p>    uvicorn.run(app, host&#061;args.host, port&#061;args.port)<\/p>\n<p>if __name__ &#061;&#061; &#034;__main__&#034;:<br \/>\n    main()<\/p>\n<p>\u4fdd\u5b58\u4e3astart_server.py&#xff0c;\u7136\u540e\u8fd0\u884c&#xff1a;<\/p>\n<p># \u5728\u540e\u53f0\u8fd0\u884c\u670d\u52a1&#xff0c;\u8f93\u51fa\u91cd\u5b9a\u5411\u5230\u65e5\u5fd7\u6587\u4ef6<br \/>\nnohup python start_server.py &gt; llm.log 2&gt;&amp;1 &amp;<\/p>\n<p># \u67e5\u770b\u65e5\u5fd7&#xff0c;\u786e\u8ba4\u670d\u52a1\u542f\u52a8<br \/>\ntail -f llm.log<\/p>\n<p>\u4f60\u5e94\u8be5\u80fd\u770b\u5230\u7c7b\u4f3c\u8fd9\u6837\u7684\u8f93\u51fa&#xff1a;<\/p>\n<p>\u6b63\u5728\u52a0\u8f7dOstrakon-VL-8B\u6a21\u578b&#8230;<br \/>\n\u6a21\u578b\u8def\u5f84: .\/ostrakon-vl-8b<br \/>\n\u670d\u52a1\u5730\u5740: http:\/\/0.0.0.0:8000<br \/>\n\u6a21\u578b\u52a0\u8f7d\u5b8c\u6210&#xff01;\u670d\u52a1\u5df2\u542f\u52a8\u3002<\/p>\n<p>\u670d\u52a1\u542f\u52a8\u540e&#xff0c;\u6a21\u578b\u9700\u8981\u4e00\u4e9b\u65f6\u95f4\u52a0\u8f7d\u5230\u5185\u5b58&#xff08;\u6216GPU\u663e\u5b58&#xff09;\u3002\u4f60\u53ef\u4ee5\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u68c0\u67e5\u8fdb\u5ea6&#xff1a;<\/p>\n<p># \u67e5\u770b\u6a21\u578b\u670d\u52a1\u662f\u5426\u90e8\u7f72\u6210\u529f<br \/>\ncat llm.log<\/p>\n<p>\u5f53\u770b\u5230&#034;\u6a21\u578b\u52a0\u8f7d\u5b8c\u6210&#xff01;\u670d\u52a1\u5df2\u542f\u52a8\u3002&#034;\u65f6&#xff0c;\u5c31\u8bf4\u660e\u51c6\u5907\u597d\u4e86\u3002<\/p>\n<h4>3.5 \u7b2c\u4e94\u6b65&#xff1a;\u521b\u5efaChainlit\u524d\u7aef\u754c\u9762<\/h4>\n<p>\u73b0\u5728\u6a21\u578b\u670d\u52a1\u8dd1\u8d77\u6765\u4e86&#xff0c;\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684Web\u754c\u9762\u6765\u8c03\u7528\u5b83\u3002Chainlit\u8ba9\u8fd9\u4ef6\u4e8b\u53d8\u5f97\u7279\u522b\u7b80\u5355&#xff1a;<\/p>\n<p># app.py &#8211; Chainlit\u5e94\u7528<br \/>\nimport chainlit as cl<br \/>\nimport requests<br \/>\nimport base64<br \/>\nfrom PIL import Image<br \/>\nimport io<br \/>\nimport json<\/p>\n<p># vLLM\u670d\u52a1\u5668\u7684\u5730\u5740<br \/>\nVLLM_SERVER &#061; &#034;http:\/\/localhost:8000&#034;<\/p>\n<p>&#064;cl.on_chat_start<br \/>\nasync def start_chat():<br \/>\n    await cl.Message(<br \/>\n        content&#061;&#034;\u4f60\u597d&#xff01;\u6211\u662fOstrakon-VL-8B\u52a9\u624b&#xff0c;\u4e13\u95e8\u5904\u7406\u96f6\u552e\u548c\u9910\u996e\u573a\u666f\u7684\u56fe\u6587\u95ee\u9898\u3002\u4f60\u53ef\u4ee5\u4e0a\u4f20\u5e97\u94fa\u7167\u7247\u3001\u5546\u54c1\u56fe\u7247\u7b49&#xff0c;\u6211\u4f1a\u5e2e\u4f60\u5206\u6790\u3002&#034;<br \/>\n    ).send()<\/p>\n<p>&#064;cl.on_message<br \/>\nasync def handle_message(message: cl.Message):<br \/>\n    # \u68c0\u67e5\u6d88\u606f\u4e2d\u662f\u5426\u6709\u56fe\u7247<br \/>\n    images &#061; []<br \/>\n    if message.elements:<br \/>\n        for element in message.elements:<br \/>\n            if &#034;image&#034; in element.mime:<br \/>\n                # \u5c06\u56fe\u7247\u8f6c\u6362\u4e3abase64<br \/>\n                img_bytes &#061; element.content<br \/>\n                img_base64 &#061; base64.b64encode(img_bytes).decode(&#039;utf-8&#039;)<br \/>\n                images.append(f&#034;data:image\/jpeg;base64,{img_base64}&#034;)<\/p>\n<p>    if images:<br \/>\n        # \u5982\u679c\u6709\u56fe\u7247&#xff0c;\u6784\u5efa\u591a\u6a21\u6001\u8bf7\u6c42<br \/>\n        user_message &#061; message.content<\/p>\n<p>        # \u6784\u5efa\u7b26\u5408Ostrakon-VL\u683c\u5f0f\u7684prompt<br \/>\n        # \u6ce8\u610f&#xff1a;Ostrakon-VL\u4f7f\u7528\u7279\u6b8a\u7684\u56fe\u6587\u683c\u5f0f<br \/>\n        prompt_parts &#061; []<\/p>\n<p>        for img in images:<br \/>\n            prompt_parts.append(f&#039;&lt;img src&#061;&#034;{img}&#034; \/&gt;&#039;)<\/p>\n<p>        prompt_parts.append(f&#034;\\\\n\u7528\u6237\u95ee\u9898: {user_message}&#034;)<br \/>\n        prompt_parts.append(&#034;\\\\n\u52a9\u624b\u56de\u7b54:&#034;)<\/p>\n<p>        full_prompt &#061; &#034;&#034;.join(prompt_parts)<\/p>\n<p>        # \u53d1\u9001\u5230vLLM\u670d\u52a1\u5668<br \/>\n        response &#061; requests.post(<br \/>\n            f&#034;{VLLM_SERVER}\/v1\/completions&#034;,<br \/>\n            json&#061;{<br \/>\n                &#034;model&#034;: &#034;ostrakon-vl-8b&#034;,<br \/>\n                &#034;prompt&#034;: full_prompt,<br \/>\n                &#034;max_tokens&#034;: 500,<br \/>\n                &#034;temperature&#034;: 0.1,  # \u4f4e\u6e29\u5ea6\u8ba9\u56de\u7b54\u66f4\u786e\u5b9a<br \/>\n                &#034;stop&#034;: [&#034;&lt;|endoftext|&gt;&#034;, &#034;\u7528\u6237\u95ee\u9898:&#034;, &#034;\u52a9\u624b\u56de\u7b54:&#034;]<br \/>\n            }<br \/>\n        )<\/p>\n<p>        if response.status_code &#061;&#061; 200:<br \/>\n            result &#061; response.json()<br \/>\n            answer &#061; result[&#034;choices&#034;][0][&#034;text&#034;].strip()<br \/>\n            await cl.Message(content&#061;answer).send()<br \/>\n        else:<br \/>\n            await cl.Message(<br \/>\n                content&#061;f&#034;\u8bf7\u6c42\u5931\u8d25: {response.status_code}\\\\n{response.text}&#034;<br \/>\n            ).send()<br \/>\n    else:<br \/>\n        # \u5982\u679c\u6ca1\u6709\u56fe\u7247&#xff0c;\u53ea\u5904\u7406\u6587\u672c<br \/>\n        response &#061; requests.post(<br \/>\n            f&#034;{VLLM_SERVER}\/v1\/completions&#034;,<br \/>\n            json&#061;{<br \/>\n                &#034;model&#034;: &#034;ostrakon-vl-8b&#034;,<br \/>\n                &#034;prompt&#034;: f&#034;\u7528\u6237\u95ee\u9898: {message.content}\\\\n\u52a9\u624b\u56de\u7b54:&#034;,<br \/>\n                &#034;max_tokens&#034;: 300,<br \/>\n                &#034;temperature&#034;: 0.7<br \/>\n            }<br \/>\n        )<\/p>\n<p>        if response.status_code &#061;&#061; 200:<br \/>\n            result &#061; response.json()<br \/>\n            answer &#061; result[&#034;choices&#034;][0][&#034;text&#034;].strip()<br \/>\n            await cl.Message(content&#061;answer).send()<br \/>\n        else:<br \/>\n            await cl.Message(<br \/>\n                content&#061;f&#034;\u8bf7\u6c42\u5931\u8d25: {response.status_code}&#034;<br \/>\n            ).send()<\/p>\n<p>&#064;cl.on_stop<br \/>\ndef on_stop():<br \/>\n    print(&#034;\u804a\u5929\u4f1a\u8bdd\u7ed3\u675f&#034;)<\/p>\n<p>\u4fdd\u5b58\u4e3aapp.py&#xff0c;\u7136\u540e\u542f\u52a8Chainlit\u670d\u52a1&#xff1a;<\/p>\n<p># \u542f\u52a8Chainlit&#xff0c;\u6307\u5b9a\u7aef\u53e3<br \/>\nchainlit run app.py -p 7860<\/p>\n<p>\u73b0\u5728\u6253\u5f00\u6d4f\u89c8\u5668&#xff0c;\u8bbf\u95ee http:\/\/\u4f60\u7684\u670d\u52a1\u5668IP:7860&#xff0c;\u5c31\u80fd\u770b\u5230\u804a\u5929\u754c\u9762\u4e86\u3002<\/p>\n<h3>4. \u5b9e\u9645\u6d4b\u8bd5&#xff1a;\u770b\u770b\u6a21\u578b\u80fd\u505a\u4ec0\u4e48<\/h3>\n<h4>4.1 \u6d4b\u8bd5\u4e00&#xff1a;\u57fa\u7840\u56fe\u6587\u5bf9\u8bdd<\/h4>\n<p>\u8ba9\u6211\u4eec\u8bd5\u8bd5\u6a21\u578b\u7684\u57fa\u672c\u80fd\u529b\u3002\u5728Chainlit\u754c\u9762\u4e2d&#xff1a;<\/p>\n<li>\u4e0a\u4f20\u4e00\u5f20\u5e97\u94fa\u7167\u7247&#xff08;\u4f60\u53ef\u4ee5\u7528\u624b\u673a\u62cd\u4e00\u5f20\u8d85\u5e02\u8d27\u67b6\u3001\u9910\u5385\u53a8\u623f\u6216\u8005\u96f6\u552e\u5e97\u9762\u7684\u7167\u7247&#xff09;<\/li>\n<li>\u63d0\u95ee&#xff1a;&#034;\u56fe\u7247\u4e2d\u7684\u5e97\u94fa\u540d\u662f\u4ec0\u4e48&#xff1f;&#034;<\/li>\n<li>\u7b49\u5f85\u56de\u7b54<\/li>\n<p>\u6a21\u578b\u5e94\u8be5\u80fd\u8bc6\u522b\u51fa\u5e97\u94fa\u62db\u724c\u4e0a\u7684\u6587\u5b57\u3002\u5982\u679c\u7167\u7247\u6e05\u6670&#xff0c;\u8bc6\u522b\u51c6\u786e\u7387\u5f88\u9ad8\u3002<\/p>\n<h4>4.2 \u6d4b\u8bd5\u4e8c&#xff1a;\u96f6\u552e\u573a\u666f\u4e13\u4e1a\u95ee\u9898<\/h4>\n<p>\u8bd5\u8bd5\u66f4\u4e13\u4e1a\u7684\u95ee\u9898&#xff1a;<\/p>\n<li>\u4e0a\u4f20\u4e00\u5f20\u8d27\u67b6\u7167\u7247<\/li>\n<li>\u63d0\u95ee&#xff1a;&#034;\u8d27\u67b6\u4e0a\u7684\u5546\u54c1\u6446\u653e\u6574\u9f50\u5417&#xff1f;\u6709\u6ca1\u6709\u7f3a\u8d27\u7684\u60c5\u51b5&#xff1f;&#034;<\/li>\n<li>\u89c2\u5bdf\u56de\u7b54<\/li>\n<p>Ostrakon-VL\u5728\u8fd9\u65b9\u9762\u7279\u522b\u5f3a&#xff0c;\u5b83\u80fd\u6570\u5546\u54c1\u6570\u91cf\u3001\u5224\u65ad\u6446\u653e\u662f\u5426\u6574\u9f50&#xff0c;\u751a\u81f3\u80fd\u8bc6\u522b\u67d0\u4e9b\u5546\u54c1\u662f\u5426\u7f3a\u8d27\u3002<\/p>\n<h4>4.3 \u6d4b\u8bd5\u4e09&#xff1a;\u98df\u54c1\u5b89\u5168\u68c0\u67e5<\/h4>\n<p>\u5bf9\u4e8e\u9910\u996e\u573a\u666f&#xff1a;<\/p>\n<li>\u4e0a\u4f20\u4e00\u5f20\u53a8\u623f\u5de5\u4f5c\u53f0\u7167\u7247<\/li>\n<li>\u63d0\u95ee&#xff1a;&#034;\u8fd9\u5f20\u56fe\u7247\u4e2d\u662f\u5426\u5b58\u5728\u98df\u54c1\u5b89\u5168\u9690\u60a3&#xff1f;&#034;<\/li>\n<li>\u770b\u770b\u6a21\u578b\u7684\u56de\u7b54<\/li>\n<p>\u6a21\u578b\u7ecf\u8fc7\u4e13\u4e1a\u8bad\u7ec3&#xff0c;\u80fd\u8bc6\u522b\u4e00\u4e9b\u5e38\u89c1\u7684\u98df\u54c1\u5b89\u5168\u95ee\u9898&#xff0c;\u6bd4\u5982\u751f\u719f\u98df\u6df7\u653e\u3001\u5de5\u4f5c\u4eba\u5458\u6ca1\u6234\u624b\u5957\u7b49\u3002<\/p>\n<h4>4.4 \u76f4\u63a5\u901a\u8fc7API\u8c03\u7528<\/h4>\n<p>\u5982\u679c\u4f60\u66f4\u559c\u6b22\u7528\u4ee3\u7801\u8c03\u7528&#xff0c;\u8fd9\u91cc\u6709\u4e2aPython\u793a\u4f8b&#xff1a;<\/p>\n<p>import requests<br \/>\nimport base64<\/p>\n<p># \u8bfb\u53d6\u56fe\u7247\u5e76\u8f6c\u6362\u4e3abase64<br \/>\ndef image_to_base64(image_path):<br \/>\n    with open(image_path, &#034;rb&#034;) as image_file:<br \/>\n        return base64.b64encode(image_file.read()).decode(&#039;utf-8&#039;)<\/p>\n<p># \u51c6\u5907\u8bf7\u6c42<br \/>\nimage_base64 &#061; image_to_base64(&#034;your_shop_image.jpg&#034;)<br \/>\nprompt &#061; f&#039;&lt;img src&#061;&#034;data:image\/jpeg;base64,{image_base64}&#034; \/&gt;\\\\n\u7528\u6237\u95ee\u9898: \u56fe\u7247\u4e2d\u7684\u5e97\u94fa\u540d\u662f\u4ec0\u4e48&#xff1f;\\\\n\u52a9\u624b\u56de\u7b54:&#039;<\/p>\n<p>response &#061; requests.post(<br \/>\n    &#034;http:\/\/localhost:8000\/v1\/completions&#034;,<br \/>\n    json&#061;{<br \/>\n        &#034;model&#034;: &#034;ostrakon-vl-8b&#034;,<br \/>\n        &#034;prompt&#034;: prompt,<br \/>\n        &#034;max_tokens&#034;: 100,<br \/>\n        &#034;temperature&#034;: 0.1<br \/>\n    }<br \/>\n)<\/p>\n<p>if response.status_code &#061;&#061; 200:<br \/>\n    result &#061; response.json()<br \/>\n    print(&#034;\u6a21\u578b\u56de\u7b54:&#034;, result[&#034;choices&#034;][0][&#034;text&#034;])<br \/>\nelse:<br \/>\n    print(&#034;\u8bf7\u6c42\u5931\u8d25:&#034;, response.text)<\/p>\n<h3>5. \u5e38\u89c1\u95ee\u9898\u4e0e\u89e3\u51b3\u65b9\u6848<\/h3>\n<h4>5.1 \u6a21\u578b\u52a0\u8f7d\u5931\u8d25\u600e\u4e48\u529e&#xff1f;<\/h4>\n<p>\u5982\u679c\u542f\u52a8\u65f6\u9047\u5230\u9519\u8bef&#xff0c;\u5148\u68c0\u67e5&#xff1a;<\/p>\n<p># \u68c0\u67e5\u65e5\u5fd7\u4e2d\u7684\u9519\u8bef\u4fe1\u606f<br \/>\ntail -100 llm.log<\/p>\n<p># \u5e38\u89c1\u95ee\u98981&#xff1a;\u5185\u5b58\u4e0d\u8db3<br \/>\n# \u89e3\u51b3\u65b9\u6848&#xff1a;\u51cf\u5c11gpu_memory_utilization\u53c2\u6570\u503c&#xff0c;\u6bd4\u5982\u4ece0.9\u964d\u52300.7<\/p>\n<p># \u5e38\u89c1\u95ee\u98982&#xff1a;\u6a21\u578b\u8def\u5f84\u9519\u8bef<br \/>\n# \u89e3\u51b3\u65b9\u6848&#xff1a;\u786e\u8ba4\u6a21\u578b\u6587\u4ef6\u786e\u5b9e\u5728.\/ostrakon-vl-8b\u76ee\u5f55\u4e0b<br \/>\nls -la .\/ostrakon-vl-8b\/<\/p>\n<p># \u5e38\u89c1\u95ee\u98983&#xff1a;\u7aef\u53e3\u88ab\u5360\u7528<br \/>\n# \u89e3\u51b3\u65b9\u6848&#xff1a;\u6362\u4e00\u4e2a\u7aef\u53e3&#xff0c;\u6bd4\u5982&#8211;port 8001<\/p>\n<h4>5.2 \u54cd\u5e94\u901f\u5ea6\u6162\u600e\u4e48\u529e&#xff1f;<\/h4>\n<p>Ostrakon-VL-8B\u662f\u4e2a\u5927\u6a21\u578b&#xff0c;\u7b2c\u4e00\u6b21\u63a8\u7406\u4f1a\u6bd4\u8f83\u6162&#xff08;\u9700\u8981\u52a0\u8f7d\u6743\u91cd&#xff09;\u3002\u540e\u7eed\u8bf7\u6c42\u4f1a\u5feb\u5f88\u591a\u3002\u5982\u679c\u8fd8\u662f\u6162&#xff0c;\u53ef\u4ee5&#xff1a;<\/p>\n<li>\n<p>\u786e\u4fdd\u7528\u4e86GPU&#xff1a;\u68c0\u67e5vLLM\u662f\u5426\u68c0\u6d4b\u5230\u4e86GPU<\/p>\n<p> python -c &#034;import torch; print(torch.cuda.is_available())&#034;\n <\/li>\n<li>\n<p>\u8c03\u6574\u6279\u5904\u7406\u5927\u5c0f&#xff1a;vLLM\u652f\u6301\u6279\u5904\u7406&#xff0c;\u53ef\u4ee5\u540c\u65f6\u5904\u7406\u591a\u4e2a\u8bf7\u6c42<\/p>\n<p> # \u5728start_server.py\u4e2d\u8c03\u6574<br \/>\nllm &#061; LLM(<br \/>\n    model&#061;args.model,<br \/>\n    max_num_batched_tokens&#061;4096,  # \u589e\u52a0\u6279\u5904\u7406\u5927\u5c0f<br \/>\n    # &#8230; \u5176\u4ed6\u53c2\u6570<br \/>\n)\n <\/li>\n<h4>5.3 \u56fe\u7247\u4e0a\u4f20\u5931\u8d25\u600e\u4e48\u529e&#xff1f;<\/h4>\n<p>Chainlit\u5bf9\u56fe\u7247\u5927\u5c0f\u6709\u9650\u5236\u3002\u5982\u679c\u56fe\u7247\u592a\u5927&#xff1a;<\/p>\n<li>\n<p>\u538b\u7f29\u56fe\u7247&#xff1a;\u7528PIL\u5e93\u5728\u4e0a\u4f20\u524d\u538b\u7f29<\/p>\n<p> from PIL import Image<br \/>\nimport io<\/p>\n<p>def compress_image(image_path, max_size&#061;1024):<br \/>\n    img &#061; Image.open(image_path)<br \/>\n    img.thumbnail((max_size, max_size))<br \/>\n    byte_arr &#061; io.BytesIO()<br \/>\n    img.save(byte_arr, format&#061;&#039;JPEG&#039;, quality&#061;85)<br \/>\n    return byte_arr.getvalue()\n <\/li>\n<li>\n<p>\u8c03\u6574Chainlit\u914d\u7f6e&#xff1a;\u5728.chainlit\/config.toml\u4e2d\u589e\u52a0\u5927\u5c0f\u9650\u5236<\/p>\n<p> [features]<br \/>\nmax_upload_size &#061; 10  # MB\n <\/li>\n<h4>5.4 \u6a21\u578b\u56de\u7b54\u4e0d\u51c6\u786e\u600e\u4e48\u529e&#xff1f;<\/h4>\n<p>Ostrakon-VL\u5728\u96f6\u552e\u9910\u996e\u573a\u666f\u5f88\u4e13\u4e1a&#xff0c;\u4f46\u4e5f\u4e0d\u662f\u4e07\u80fd\u7684\u3002\u5982\u679c\u56de\u7b54\u4e0d\u51c6\u786e&#xff1a;<\/p>\n<li>\u63d0\u4f9b\u66f4\u6e05\u6670\u7684\u56fe\u7247&#xff1a;\u786e\u4fdd\u56fe\u7247\u5149\u7ebf\u5145\u8db3\u3001\u7126\u70b9\u6e05\u6670<\/li>\n<li>\u95ee\u66f4\u5177\u4f53\u7684\u95ee\u9898&#xff1a;\u6bd4\u5982\u4e0d\u8981\u95ee&#034;\u8fd9\u662f\u4ec0\u4e48&#xff1f;&#034;&#xff0c;\u800c\u662f\u95ee&#034;\u8d27\u67b6\u7b2c\u4e8c\u5c42\u4ece\u5de6\u6570\u7b2c\u4e09\u4e2a\u5546\u54c1\u662f\u4ec0\u4e48&#xff1f;&#034;<\/li>\n<li>\u8c03\u6574temperature\u53c2\u6570&#xff1a;\u964d\u4f4etemperature&#xff08;\u59820.1&#xff09;\u8ba9\u56de\u7b54\u66f4\u786e\u5b9a&#xff0c;\u63d0\u9ad8&#xff08;\u59820.7&#xff09;\u8ba9\u56de\u7b54\u66f4\u6709\u521b\u610f<\/li>\n<h3>6. \u8fdb\u9636\u4f7f\u7528\u6280\u5de7<\/h3>\n<h4>6.1 \u6279\u91cf\u5904\u7406\u56fe\u7247<\/h4>\n<p>\u5982\u679c\u4f60\u6709\u5f88\u591a\u56fe\u7247\u9700\u8981\u5206\u6790&#xff0c;\u53ef\u4ee5\u7528\u811a\u672c\u6279\u91cf\u5904\u7406&#xff1a;<\/p>\n<p>import os<br \/>\nimport requests<br \/>\nimport base64<br \/>\nfrom concurrent.futures import ThreadPoolExecutor<\/p>\n<p>def analyze_image(image_path, question):<br \/>\n    &#034;&#034;&#034;\u5206\u6790\u5355\u5f20\u56fe\u7247&#034;&#034;&#034;<br \/>\n    with open(image_path, &#034;rb&#034;) as f:<br \/>\n        img_base64 &#061; base64.b64encode(f.read()).decode()<\/p>\n<p>    prompt &#061; f&#039;&lt;img src&#061;&#034;data:image\/jpeg;base64,{img_base64}&#034; \/&gt;\\\\n\u7528\u6237\u95ee\u9898: {question}\\\\n\u52a9\u624b\u56de\u7b54:&#039;<\/p>\n<p>    response &#061; requests.post(<br \/>\n        &#034;http:\/\/localhost:8000\/v1\/completions&#034;,<br \/>\n        json&#061;{<br \/>\n            &#034;model&#034;: &#034;ostrakon-vl-8b&#034;,<br \/>\n            &#034;prompt&#034;: prompt,<br \/>\n            &#034;max_tokens&#034;: 200,<br \/>\n            &#034;temperature&#034;: 0.1<br \/>\n        },<br \/>\n        timeout&#061;30<br \/>\n    )<\/p>\n<p>    if response.status_code &#061;&#061; 200:<br \/>\n        return response.json()[&#034;choices&#034;][0][&#034;text&#034;].strip()<br \/>\n    else:<br \/>\n        return f&#034;\u9519\u8bef: {response.status_code}&#034;<\/p>\n<p># \u6279\u91cf\u5904\u7406<br \/>\nimage_dir &#061; &#034;.\/shop_images\/&#034;<br \/>\nquestions &#061; &#034;\u8d27\u67b6\u4e0a\u7684\u5546\u54c1\u6446\u653e\u6574\u9f50\u5417&#xff1f;&#034;<\/p>\n<p>results &#061; []<br \/>\nwith ThreadPoolExecutor(max_workers&#061;4) as executor:<br \/>\n    futures &#061; []<br \/>\n    for img_file in os.listdir(image_dir):<br \/>\n        if img_file.endswith((&#039;.jpg&#039;, &#039;.jpeg&#039;, &#039;.png&#039;)):<br \/>\n            img_path &#061; os.path.join(image_dir, img_file)<br \/>\n            future &#061; executor.submit(analyze_image, img_path, questions)<br \/>\n            futures.append((img_file, future))<\/p>\n<p>    for img_file, future in futures:<br \/>\n        try:<br \/>\n            result &#061; future.result(timeout&#061;60)<br \/>\n            results.append((img_file, result))<br \/>\n            print(f&#034;{img_file}: {result[:50]}&#8230;&#034;)<br \/>\n        except Exception as e:<br \/>\n            print(f&#034;{img_file} \u5904\u7406\u5931\u8d25: {e}&#034;)<\/p>\n<h4>6.2 \u4e0e\u5176\u4ed6\u7cfb\u7edf\u96c6\u6210<\/h4>\n<p>\u4f60\u53ef\u4ee5\u628aOstrakon-VL\u96c6\u6210\u5230\u73b0\u6709\u7cfb\u7edf\u4e2d&#xff1a;<\/p>\n<p># \u793a\u4f8b&#xff1a;\u96f6\u552e\u5de1\u68c0\u7cfb\u7edf\u96c6\u6210<br \/>\nclass RetailInspectionSystem:<br \/>\n    def __init__(self, model_endpoint&#061;&#034;http:\/\/localhost:8000\/v1\/completions&#034;):<br \/>\n        self.endpoint &#061; model_endpoint<\/p>\n<p>    def inspect_shelf(self, image_path, shelf_id):<br \/>\n        &#034;&#034;&#034;\u68c0\u67e5\u8d27\u67b6\u72b6\u6001&#034;&#034;&#034;<br \/>\n        analysis &#061; self._analyze_image(image_path, &#034;\u8bf7\u5206\u6790\u8d27\u67b6\u72b6\u6001&#xff1a;\u5546\u54c1\u662f\u5426\u9f50\u5168&#xff1f;\u6446\u653e\u662f\u5426\u6574\u9f50&#xff1f;&#034;)<\/p>\n<p>        # \u89e3\u6790\u7ed3\u679c&#xff0c;\u751f\u6210\u62a5\u544a<br \/>\n        report &#061; {<br \/>\n            &#034;shelf_id&#034;: shelf_id,<br \/>\n            &#034;timestamp&#034;: datetime.now().isoformat(),<br \/>\n            &#034;analysis&#034;: analysis,<br \/>\n            &#034;issues&#034;: self._extract_issues(analysis),<br \/>\n            &#034;recommendations&#034;: self._generate_recommendations(analysis)<br \/>\n        }<\/p>\n<p>        return report<\/p>\n<p>    def check_compliance(self, image_path, regulation_type):<br \/>\n        &#034;&#034;&#034;\u68c0\u67e5\u5408\u89c4\u6027&#034;&#034;&#034;<br \/>\n        question &#061; f&#034;\u8fd9\u5f20\u56fe\u7247\u662f\u5426\u7b26\u5408{regulation_type}\u89c4\u5b9a&#xff1f;\u8bf7\u6307\u51fa\u95ee\u9898\u3002&#034;<br \/>\n        return self._analyze_image(image_path, question)<\/p>\n<p>    def _analyze_image(self, image_path, question):<br \/>\n        &#034;&#034;&#034;\u8c03\u7528\u6a21\u578b\u5206\u6790\u56fe\u7247&#034;&#034;&#034;<br \/>\n        # &#8230; \u5b9e\u73b0\u56fe\u7247\u5206\u6790\u548cAPI\u8c03\u7528<br \/>\n        pass<\/p>\n<h4>6.3 \u76d1\u63a7\u4e0e\u4f18\u5316<\/h4>\n<p>\u5728\u751f\u4ea7\u73af\u5883\u4e2d&#xff0c;\u4f60\u9700\u8981\u76d1\u63a7\u6a21\u578b\u670d\u52a1&#xff1a;<\/p>\n<p># monitoring.py<br \/>\nimport time<br \/>\nimport requests<br \/>\nimport psutil<br \/>\nfrom datetime import datetime<\/p>\n<p>class ModelMonitor:<br \/>\n    def __init__(self, endpoint&#061;&#034;http:\/\/localhost:8000\/health&#034;):<br \/>\n        self.endpoint &#061; endpoint<\/p>\n<p>    def check_health(self):<br \/>\n        &#034;&#034;&#034;\u68c0\u67e5\u670d\u52a1\u5065\u5eb7\u72b6\u6001&#034;&#034;&#034;<br \/>\n        try:<br \/>\n            start &#061; time.time()<br \/>\n            response &#061; requests.get(self.endpoint, timeout&#061;5)<br \/>\n            latency &#061; (time.time() &#8211; start) * 1000  # \u6beb\u79d2<\/p>\n<p>            return {<br \/>\n                &#034;timestamp&#034;: datetime.now().isoformat(),<br \/>\n                &#034;status&#034;: &#034;healthy&#034; if response.status_code &#061;&#061; 200 else &#034;unhealthy&#034;,<br \/>\n                &#034;latency_ms&#034;: round(latency, 2),<br \/>\n                &#034;memory_usage&#034;: self._get_memory_usage()<br \/>\n            }<br \/>\n        except Exception as e:<br \/>\n            return {<br \/>\n                &#034;timestamp&#034;: datetime.now().isoformat(),<br \/>\n                &#034;status&#034;: &#034;error&#034;,<br \/>\n                &#034;error&#034;: str(e)<br \/>\n            }<\/p>\n<p>    def _get_memory_usage(self):<br \/>\n        &#034;&#034;&#034;\u83b7\u53d6\u5185\u5b58\u4f7f\u7528\u60c5\u51b5&#034;&#034;&#034;<br \/>\n        process &#061; psutil.Process()<br \/>\n        memory_info &#061; process.memory_info()<br \/>\n        return {<br \/>\n            &#034;rss_mb&#034;: memory_info.rss \/ 1024 \/ 1024,<br \/>\n            &#034;vms_mb&#034;: memory_info.vms \/ 1024 \/ 1024<br \/>\n        }<\/p>\n<p># \u5b9a\u65f6\u76d1\u63a7<br \/>\nmonitor &#061; ModelMonitor()<br \/>\nwhile True:<br \/>\n    status &#061; monitor.check_health()<br \/>\n    print(f&#034;\u72b6\u6001\u68c0\u67e5: {status}&#034;)<br \/>\n    time.sleep(60)  # \u6bcf\u5206\u949f\u68c0\u67e5\u4e00\u6b21<\/p>\n<h3>7. \u603b\u7ed3&#xff1a;\u4f60\u7684\u96f6\u552eAI\u52a9\u624b\u5df2\u5c31\u7eea<\/h3>\n<p>\u8d70\u5230\u8fd9\u91cc&#xff0c;\u4f60\u5df2\u7ecf\u6210\u529f\u5728ARM\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u4e86Ostrakon-VL-8B\u6a21\u578b&#xff0c;\u5e76\u4e14\u6709\u4e86\u4e00\u4e2a\u53ef\u7528\u7684\u56fe\u6587\u5bf9\u8bdd\u7cfb\u7edf\u3002\u8ba9\u6211\u4eec\u56de\u987e\u4e00\u4e0b\u4eca\u5929\u7684\u6210\u679c&#xff1a;<\/p>\n<p>\u4f60\u5f97\u5230\u4e86\u4ec0\u4e48&#xff1f;<\/p>\n<li>\u4e00\u4e2a\u4e13\u95e8\u9488\u5bf9\u96f6\u552e\u548c\u9910\u996e\u573a\u666f\u4f18\u5316\u7684\u591a\u6a21\u6001AI\u6a21\u578b<\/li>\n<li>\u57fa\u4e8evLLM\u7684\u9ad8\u6027\u80fd\u63a8\u7406\u670d\u52a1&#xff0c;\u5373\u4f7f\u5728ARM\u67b6\u6784\u4e0a\u4e5f\u80fd\u6d41\u7545\u8fd0\u884c<\/li>\n<li>\u4e00\u4e2a\u76f4\u89c2\u7684Web\u754c\u9762&#xff0c;\u53ef\u4ee5\u4e0a\u4f20\u56fe\u7247\u3001\u63d0\u95ee\u3001\u83b7\u53d6\u4e13\u4e1a\u56de\u7b54<\/li>\n<li>\u4e00\u5957\u5b8c\u6574\u7684API&#xff0c;\u53ef\u4ee5\u96c6\u6210\u5230\u4f60\u7684\u73b0\u6709\u7cfb\u7edf\u4e2d<\/li>\n<p>\u8fd9\u4e2a\u65b9\u6848\u6709\u4ec0\u4e48\u4f18\u52bf&#xff1f;<\/p>\n<ul>\n<li>\u4e13\u4e1a\u6027\u5f3a&#xff1a;Ostrakon-VL\u5728\u96f6\u552e\u9910\u996e\u573a\u666f\u7684\u8868\u73b0\u8d85\u8fc7\u4e86\u5f88\u591a\u901a\u7528\u5927\u6a21\u578b<\/li>\n<li>\u90e8\u7f72\u7b80\u5355&#xff1a;\u8ddf\u7740\u6559\u7a0b\u4e00\u6b65\u6b65\u6765&#xff0c;\u4e0d\u9700\u8981\u6df1\u539a\u7684AI\u80cc\u666f<\/li>\n<li>ARM\u517c\u5bb9&#xff1a;\u7279\u522b\u9002\u5408\u5728NVIDIA Grace\u7b49ARM\u670d\u52a1\u5668\u4e0a\u8fd0\u884c<\/li>\n<li>\u5f00\u6e90\u514d\u8d39&#xff1a;\u5b8c\u5168\u5f00\u6e90&#xff0c;\u53ef\u4ee5\u81ea\u7531\u4fee\u6539\u548c\u6269\u5c55<\/li>\n<\/ul>\n<p>\u63a5\u4e0b\u6765\u53ef\u4ee5\u505a\u4ec0\u4e48&#xff1f;<\/p>\n<li>\u5e94\u7528\u5230\u5b9e\u9645\u4e1a\u52a1&#xff1a;\u628a\u7cfb\u7edf\u90e8\u7f72\u5230\u4f60\u7684\u5e97\u94fa&#xff0c;\u7528\u624b\u673a\u62cd\u7167\u5c31\u80fd\u68c0\u67e5\u8d27\u67b6<\/li>\n<li>\u6279\u91cf\u5904\u7406\u5386\u53f2\u56fe\u7247&#xff1a;\u5206\u6790\u8fc7\u53bb\u7684\u76d1\u63a7\u5f55\u50cf\u6216\u7167\u7247&#xff0c;\u627e\u51fa\u95ee\u9898\u6a21\u5f0f<\/li>\n<li>\u5b9a\u5236\u5316\u8bad\u7ec3&#xff1a;\u5982\u679c\u4f60\u6709\u7279\u5b9a\u9700\u6c42&#xff0c;\u53ef\u4ee5\u5728Ostrakon-VL\u57fa\u7840\u4e0a\u7ee7\u7eed\u8bad\u7ec3<\/li>\n<li>\u5f00\u53d1\u79fb\u52a8\u5e94\u7528&#xff1a;\u628aChainlit\u754c\u9762\u4f18\u5316\u6210\u624b\u673aAPP&#xff0c;\u65b9\u4fbf\u5e97\u5458\u4f7f\u7528<\/li>\n<p>\u6700\u540e\u7684\u5c0f\u5efa\u8bae&#xff1a;<\/p>\n<ul>\n<li>\u5f00\u59cb\u53ef\u4ee5\u5148\u5728\u5c0f\u8303\u56f4\u8bd5\u7528&#xff0c;\u6bd4\u5982\u4e00\u4e24\u4e2a\u5e97\u94fa<\/li>\n<li>\u6536\u96c6\u6a21\u578b\u56de\u7b54\u7684\u60c5\u51b5&#xff0c;\u770b\u770b\u54ea\u4e9b\u95ee\u9898\u56de\u7b54\u5f97\u597d&#xff0c;\u54ea\u4e9b\u9700\u8981\u6539\u8fdb<\/li>\n<li>\u6839\u636e\u5b9e\u9645\u4f7f\u7528\u53cd\u9988\u8c03\u6574\u63d0\u95ee\u65b9\u5f0f&#xff0c;\u8ba9\u6a21\u578b\u53d1\u6325\u6700\u5927\u4ef7\u503c<\/li>\n<\/ul>\n<p>\u96f6\u552e\u548c\u9910\u996e\u884c\u4e1a\u7684\u6570\u5b57\u5316\u6b63\u5728\u52a0\u901f&#xff0c;AI\u89c6\u89c9\u5206\u6790\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\u3002\u73b0\u5728\u4f60\u6709\u4e86\u81ea\u5df1\u7684AI\u52a9\u624b&#xff0c;\u53ef\u4ee5\u5f00\u59cb\u63a2\u7d22\u5404\u79cd\u5e94\u7528\u573a\u666f\u4e86\u3002\u4ece\u8d27\u67b6\u5de1\u68c0\u5230\u98df\u54c1\u5b89\u5168\u68c0\u67e5&#xff0c;\u4ece\u987e\u5ba2\u884c\u4e3a\u5206\u6790\u5230\u667a\u80fd\u63a8\u8350&#xff0c;\u53ef\u80fd\u6027\u662f\u65e0\u9650\u7684\u3002<\/p>\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>Ostrakon-VL-8B\u90e8\u7f72\u6559\u7a0b&#xff1a;ARM\u67b6\u6784\u670d\u52a1\u5668&#xff08;\u5982NVIDIA Grace&#xff09;\u4e0a\u7684vLLM\u517c\u5bb9\u90e8\u7f72<br \/>\n1. \u5f00\u7bc7&#xff1a;\u4e3a\u4ec0\u4e48\u4f60\u9700\u8981\u5173\u6ce8\u8fd9\u4e2a\u6a21\u578b&#xff1f;<br \/>\n\u5982\u679c\u4f60\u6b63\u5728\u5bfb\u627e\u4e00\u4e2a\u80fd\u771f\u6b63\u770b\u61c2\u96f6\u552e\u548c\u9910\u996e\u573a\u666f\u56fe\u7247\u7684AI\u52a9\u624b&#xff0c;\u90a3\u4e48Ostrakon-VL-8B\u7edd\u5bf9\u503c\u5f97\u4f60\u82b1\u65f6\u95f4\u4e86\u89e3\u4e00\u4e0b\u3002<br \/>\n\u60f3\u8c61\u4e00\u4e0b\u8fd9\u6837\u7684\u573a\u666f&#xff1a;\u4f60\u6709\u4e00\u5bb6\u8fde\u9501\u8d85\u5e02&#xff0c;\u6bcf\u5929\u8981\u5904\u7406\u6210\u5343\u4e0a\u4e07\u7684\u8d27\u67b6\u7167\u7247&#xff0c;\u9700\u8981\u68c0\u67e5\u5546\u54c1\u6446\u653e<\/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":[9300,9301,3781],"topic":[],"class_list":["post-83227","post","type-post","status-publish","format-standard","hentry","category-server","tag-ai","tag-3781"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ostrakon-VL-8B\u90e8\u7f72\u6559\u7a0b\uff1aARM\u67b6\u6784\u670d\u52a1\u5668\uff08\u5982NVIDIA Grace\uff09\u4e0a\u7684vLLM\u517c\u5bb9\u90e8\u7f72 - \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\/83227.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ostrakon-VL-8B\u90e8\u7f72\u6559\u7a0b\uff1aARM\u67b6\u6784\u670d\u52a1\u5668\uff08\u5982NVIDIA Grace\uff09\u4e0a\u7684vLLM\u517c\u5bb9\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Ostrakon-VL-8B\u90e8\u7f72\u6559\u7a0b&#xff1a;ARM\u67b6\u6784\u670d\u52a1\u5668&#xff08;\u5982NVIDIA Grace&#xff09;\u4e0a\u7684vLLM\u517c\u5bb9\u90e8\u7f72 1. \u5f00\u7bc7&#xff1a;\u4e3a\u4ec0\u4e48\u4f60\u9700\u8981\u5173\u6ce8\u8fd9\u4e2a\u6a21\u578b&#xff1f; \u5982\u679c\u4f60\u6b63\u5728\u5bfb\u627e\u4e00\u4e2a\u80fd\u771f\u6b63\u770b\u61c2\u96f6\u552e\u548c\u9910\u996e\u573a\u666f\u56fe\u7247\u7684AI\u52a9\u624b&#xff0c;\u90a3\u4e48Ostrakon-VL-8B\u7edd\u5bf9\u503c\u5f97\u4f60\u82b1\u65f6\u95f4\u4e86\u89e3\u4e00\u4e0b\u3002 \u60f3\u8c61\u4e00\u4e0b\u8fd9\u6837\u7684\u573a\u666f&#xff1a;\u4f60\u6709\u4e00\u5bb6\u8fde\u9501\u8d85\u5e02&#xff0c;\u6bcf\u5929\u8981\u5904\u7406\u6210\u5343\u4e0a\u4e07\u7684\u8d27\u67b6\u7167\u7247&#xff0c;\u9700\u8981\u68c0\u67e5\u5546\u54c1\u6446\u653e\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/83227.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-25T10:25:37+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=\"8 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/83227.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/83227.html\",\"name\":\"Ostrakon-VL-8B\u90e8\u7f72\u6559\u7a0b\uff1aARM\u67b6\u6784\u670d\u52a1\u5668\uff08\u5982NVIDIA Grace\uff09\u4e0a\u7684vLLM\u517c\u5bb9\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-25T10:25:37+00:00\",\"dateModified\":\"2026-07-25T10:25:37+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/83227.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/83227.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/83227.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ostrakon-VL-8B\u90e8\u7f72\u6559\u7a0b\uff1aARM\u67b6\u6784\u670d\u52a1\u5668\uff08\u5982NVIDIA Grace\uff09\u4e0a\u7684vLLM\u517c\u5bb9\u90e8\u7f72\"}]},{\"@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":"Ostrakon-VL-8B\u90e8\u7f72\u6559\u7a0b\uff1aARM\u67b6\u6784\u670d\u52a1\u5668\uff08\u5982NVIDIA Grace\uff09\u4e0a\u7684vLLM\u517c\u5bb9\u90e8\u7f72 - \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\/83227.html","og_locale":"zh_CN","og_type":"article","og_title":"Ostrakon-VL-8B\u90e8\u7f72\u6559\u7a0b\uff1aARM\u67b6\u6784\u670d\u52a1\u5668\uff08\u5982NVIDIA Grace\uff09\u4e0a\u7684vLLM\u517c\u5bb9\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Ostrakon-VL-8B\u90e8\u7f72\u6559\u7a0b&#xff1a;ARM\u67b6\u6784\u670d\u52a1\u5668&#xff08;\u5982NVIDIA Grace&#xff09;\u4e0a\u7684vLLM\u517c\u5bb9\u90e8\u7f72 1. \u5f00\u7bc7&#xff1a;\u4e3a\u4ec0\u4e48\u4f60\u9700\u8981\u5173\u6ce8\u8fd9\u4e2a\u6a21\u578b&#xff1f; \u5982\u679c\u4f60\u6b63\u5728\u5bfb\u627e\u4e00\u4e2a\u80fd\u771f\u6b63\u770b\u61c2\u96f6\u552e\u548c\u9910\u996e\u573a\u666f\u56fe\u7247\u7684AI\u52a9\u624b&#xff0c;\u90a3\u4e48Ostrakon-VL-8B\u7edd\u5bf9\u503c\u5f97\u4f60\u82b1\u65f6\u95f4\u4e86\u89e3\u4e00\u4e0b\u3002 \u60f3\u8c61\u4e00\u4e0b\u8fd9\u6837\u7684\u573a\u666f&#xff1a;\u4f60\u6709\u4e00\u5bb6\u8fde\u9501\u8d85\u5e02&#xff0c;\u6bcf\u5929\u8981\u5904\u7406\u6210\u5343\u4e0a\u4e07\u7684\u8d27\u67b6\u7167\u7247&#xff0c;\u9700\u8981\u68c0\u67e5\u5546\u54c1\u6446\u653e","og_url":"https:\/\/www.wsisp.com\/helps\/83227.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-25T10:25:37+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"8 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/83227.html","url":"https:\/\/www.wsisp.com\/helps\/83227.html","name":"Ostrakon-VL-8B\u90e8\u7f72\u6559\u7a0b\uff1aARM\u67b6\u6784\u670d\u52a1\u5668\uff08\u5982NVIDIA Grace\uff09\u4e0a\u7684vLLM\u517c\u5bb9\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-25T10:25:37+00:00","dateModified":"2026-07-25T10:25:37+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/83227.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/83227.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/83227.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Ostrakon-VL-8B\u90e8\u7f72\u6559\u7a0b\uff1aARM\u67b6\u6784\u670d\u52a1\u5668\uff08\u5982NVIDIA Grace\uff09\u4e0a\u7684vLLM\u517c\u5bb9\u90e8\u7f72"}]},{"@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\/83227","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=83227"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/83227\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=83227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=83227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=83227"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=83227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}