{"id":97598,"date":"2026-08-29T21:33:14","date_gmt":"2026-08-29T13:33:14","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/97598.html"},"modified":"2026-08-29T21:33:14","modified_gmt":"2026-08-29T13:33:14","slug":"%e3%80%90%e5%a4%a7%e6%a8%a1%e5%9e%8b%e9%87%8f%e5%8c%96%e3%80%91%e4%bd%bf%e7%94%a8-llama-cpp-%e5%ae%8c%e6%88%90%e9%87%8f%e5%8c%96%e3%80%81%e6%9c%ac%e5%9c%b0%e6%8e%a8%e7%90%86%e4%b8%8e%e6%9c%8d%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/97598.html","title":{"rendered":"\u3010\u5927\u6a21\u578b\u91cf\u5316\u3011\u4f7f\u7528 llama.cpp \u5b8c\u6210\u91cf\u5316\u3001\u672c\u5730\u63a8\u7406\u4e0e\u670d\u52a1\u5316\u90e8\u7f72"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>\u5bfc\u8bfb<\/li>\n<li>llama.cpp \u4e0e GGUF \u683c\u5f0f<\/li>\n<li>\u51c6\u5907\u5de5\u4f5c<\/li>\n<li>\u7f16\u8bd1 llama.cpp<\/li>\n<li>\u6838\u5fc3\u529f\u80fd<\/li>\n<li>\n<ul>\n<li>llama-cli(main) \u4ea4\u4e92\u5f0f\u63a8\u7406<\/li>\n<li>server \u670d\u52a1\u5316\u90e8\u7f72<\/li>\n<li>\u6a21\u578b\u91cf\u5316<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u5bfc\u8bfb<\/h3>\n<p>\u5927\u6a21\u578b\u65f6\u4ee3&#xff0c;\u6211\u4eec\u603b\u5728\u8ffd\u6c42\u66f4\u5927\u7684\u53c2\u6570\u89c4\u6a21\u3001\u66f4\u5f3a\u7684\u7b97\u529b\u786c\u4ef6&#xff0c;\u4f46\u843d\u5230\u771f\u5b9e\u7684\u5de5\u4e1a\u573a\u666f\u91cc&#xff0c;\u6210\u672c\u4e0e\u6295\u5165\u4ea7\u51fa\u6bd4\u6c38\u8fdc\u662f\u7ed5\u4e0d\u5f00\u7684\u547d\u9898\u3002<\/p>\n<p>\u56fd\u5185\u67d0\u56e2\u961f \u8fc7\u53bb\u5916\u8d2d\u7684 LSR \u5f15\u64ce\u6bcf\u5e74\u6210\u672c\u9ad8\u8fbe\u6570\u5343\u4e07&#xff0c;\u73b0\u5728\u7528\u7eaf C\/C&#043;&#043; \u5b9e\u73b0\u4e86\u4e00\u5957 CPU \u90e8\u7f72\u65b9\u6848&#xff0c;\u5728\u6ee1\u8db3\u4e1a\u52a1\u65f6\u6548\u8981\u6c42\u7684\u524d\u63d0\u4e0b\u5927\u5e45\u964d\u4f4e\u4e86\u6210\u672c\u3002 llama.cpp \u8fd9\u4e2a\u9879\u76ee\u7684\u4ef7\u503c \u5728\u4e8e \u5927\u6a21\u578b\u4e0d\u4e00\u5b9a\u8981\u5806 GPU&#xff0c;\u7528\u66f4\u8f7b\u91cf\u3001\u66f4\u9ad8\u6548\u7684\u65b9\u5f0f&#xff0c;\u540c\u6837\u80fd\u843d\u5730\u4ea7\u751f\u4ef7\u503c\u3002<\/p>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u5c31\u5e26\u4f60\u5b8c\u6574\u4e0a\u624b llama.cpp&#xff1a;\u4ece\u73af\u5883\u7f16\u8bd1\u3001\u672c\u5730\u4ea4\u4e92\u63a8\u7406&#xff0c;\u5230\u670d\u52a1\u5316\u90e8\u7f72\u3001\u6a21\u578b\u91cf\u5316&#xff0c;\u624b\u628a\u624b\u8d70\u5b8c\u8f7b\u91cf\u5316\u5927\u6a21\u578b\u843d\u5730\u7684\u5168\u6d41\u7a0b\u3002<\/p>\n<h3>llama.cpp \u4e0e GGUF \u683c\u5f0f<\/h3>\n<p>llama.cpp \u6700\u521d\u7684\u5b9a\u4f4d\u662f\u5728 CPU \u4e0a\u9ad8\u6548\u8fd0\u884c\u5927\u8bed\u8a00\u6a21\u578b&#xff0c;\u540e\u7eed\u9010\u6b65\u6269\u5c55\u652f\u6301 CUDA\u3001Metal \u7b49\u591a\u79cd\u786c\u4ef6\u52a0\u901f\u3002<\/p>\n<p>\u5b83\u7684\u6838\u5fc3\u4f18\u52bf\u975e\u5e38\u9c9c\u660e&#xff1a;<\/p>\n<p>\u6781\u81f4\u8f7b\u91cf&#xff1a;\u65e0\u590d\u6742\u4f9d\u8d56&#xff0c;\u7f16\u8bd1\u540e\u5373\u53ef\u8fd0\u884c&#xff1b;\u6027\u80fd\u4f18\u5f02&#xff1a;\u9488\u5bf9 CPU \u6307\u4ee4\u96c6\u6df1\u5ea6\u4f18\u5316&#xff0c;\u4e5f\u652f\u6301 GPU \u5206\u5c42\u52a0\u901f&#xff1b;\u6210\u672c\u53cb\u597d&#xff1a;\u666e\u901a\u5bb6\u7528 CPU \u5c31\u80fd\u8dd1 7B\/8B \u6a21\u578b&#xff0c;\u5927\u5e45\u964d\u4f4e\u90e8\u7f72\u95e8\u69db<\/p>\n<p>github\u9879\u76ee\u5730\u5740<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260829133310-6a92df96c1454.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u63d0\u5230 llama.cpp&#xff0c;\u5c31\u7ed5\u4e0d\u5f00 GGUF \u683c\u5f0f&#xff0c; \u8fd9\u4e2a\u683c\u5f0f\u6b63\u662f\u7531 llama.cpp \u4f5c\u8005\u4e3b\u5bfc\u5b9a\u4e49&#xff0c;\u4e5f\u662f\u76ee\u524d llama.cpp \u7684\u539f\u751f\u6a21\u578b\u683c\u5f0f\u3002<\/p>\n<li>\u65e9\u671f bin\/pt \u683c\u5f0f&#xff1a;\u76f4\u63a5\u5b58\u50a8\u6743\u91cd\u4e0e\u4ee3\u7801&#xff0c;\u5b58\u5728\u4ee3\u7801\u6ce8\u5165\u98ce\u9669&#xff0c;\u5b89\u5168\u6027\u5dee<\/li>\n<li>Safetensors \u683c\u5f0f&#xff1a;\u89e3\u51b3\u4e86\u5b89\u5168\u95ee\u9898&#xff0c;\u4ec5\u5b58\u50a8\u5f20\u91cf\u6570\u636e&#xff0c;\u4f46\u63a8\u7406\u52a0\u8f7d\u901f\u5ea6\u4e00\u822c<\/li>\n<li>GGUF \u683c\u5f0f&#xff1a;\u4e13\u4e3a\u63a8\u7406\u573a\u666f\u8bbe\u8ba1&#xff0c;\u52a0\u8f7d\u901f\u5ea6\u5feb\u3001\u4f53\u79ef\u5c0f&#xff0c;\u652f\u6301\u5143\u6570\u636e\u5b58\u50a8&#xff0c;\u662f\u76ee\u524d\u7aef\u4fa7\u3001\u8f7b\u91cf\u5316\u90e8\u7f72\u7684\u4e3b\u6d41\u683c\u5f0f<\/li>\n<h3>\u51c6\u5907\u5de5\u4f5c<\/h3>\n<p>\u4e0b\u8f7d\u6a21\u578b\u6587\u4ef6&#xff1a;\u6211\u4eec\u4ee5\u4e2d\u6587 Llama3 8B \u6a21\u578b\u4e3a\u4f8b&#xff0c;\u63d0\u4f9b\u4e24\u79cd\u5e38\u7528\u7684\u6a21\u578b\u9009\u62e9&#xff1a;<\/p>\n<ul>\n<li>\u539f\u751f\u5168\u91cf\u6a21\u578b&#xff1a;Llama3-8B-Chinese-Chat&#xff08;safetensors \u683c\u5f0f&#xff0c;\u9002\u5408\u81ea\u884c\u91cf\u5316&#xff09;<\/li>\n<li>\u9884\u91cf\u5316\u6a21\u578b&#xff1a;Llama3-8B-Chinese-Chat-GGUF-8bit&#xff08;GGUF \u683c\u5f0f&#xff0c;\u53ef\u76f4\u63a5\u8fd0\u884c&#xff09;<\/li>\n<\/ul>\n<p>huggingface \u5730\u5740<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260829133311-6a92df97dd5b2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u56fd\u5185\u7528\u6237\u5efa\u8bae\u914d\u7f6e Hugging Face \u955c\u50cf\u52a0\u901f\u4e0b\u8f7d&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u914d\u7f6e\u955c\u50cf\u5730\u5740<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">HF_ENDPOINT<\/span><span class=\"token operator\">&#061;<\/span>https:\/\/hf-mirror.com<\/p>\n<p><span class=\"token comment\"># \u547d\u4ee4\u884c\u4e0b\u8f7d\u9884\u91cf\u5316\u6a21\u578b<\/span><br \/>\nhuggingface-cli download shenzhi-wang\/Llama3-8B-Chinese-Chat-GGUF-8bit <span class=\"token punctuation\">\\\\<\/span><br \/>\n    &#8211;local-dir \/root\/autodl-tmp\/models\/Llama3-8B-Chinese-Chat-GGUF<\/p>\n<p>\u514b\u9686\u6e90\u7801<\/p>\n<p><span class=\"token function\">git<\/span> clone https:\/\/github.com\/ggerganov\/llama.cpp<br \/>\n<span class=\"token builtin class-name\">cd<\/span> llama.cpp<\/p>\n<h3>\u7f16\u8bd1 llama.cpp<\/h3>\n<p>\u5f88\u591a\u6ca1\u63a5\u89e6\u8fc7 C&#043;&#043; \u7684\u540c\u5b66\u4f1a\u5bf9\u7f16\u8bd1\u611f\u5230\u56f0\u60d1&#xff0c;\u6211\u4eec\u5148\u7406\u6e05\u4e09\u4e2a\u6838\u5fc3\u5de5\u5177\u7684\u5173\u7cfb&#xff1a;<\/p>\n<ul>\n<li>CMake&#xff1a;\u8de8\u5e73\u53f0\u6784\u5efa\u751f\u6210\u5de5\u5177&#xff0c;\u8bfb\u53d6 CMakeLists.txt \u751f\u6210 Makefile<\/li>\n<li>Make&#xff1a;\u6784\u5efa\u81ea\u52a8\u5316\u5de5\u5177&#xff0c;\u8bfb\u53d6 Makefile \u8c03\u5ea6\u7f16\u8bd1\u6d41\u7a0b<\/li>\n<li>g&#043;&#043;\/clang\/MinGW&#xff1a;\u771f\u6b63\u6267\u884c\u4ee3\u7801\u7f16\u8bd1\u3001\u94fe\u63a5\u7684\u7f16\u8bd1\u5668<\/li>\n<\/ul>\n<p>\u7b80\u5355\u6765\u8bf4&#xff1a;CMake \u751f\u6210 Makefile&#xff0c;Make \u8c03\u7528\u7f16\u8bd1\u5668\u5b8c\u6210\u7f16\u8bd1\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260829133312-6a92df98b88c2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>CPU \u7248\u672c\u7f16\u8bd1&#xff1a;\u9002\u5408\u65e0 GPU \u7684\u7eaf CPU \u73af\u5883&#xff1a;<\/p>\n<p>cmake <span class=\"token parameter variable\">-B<\/span> build_cpu<br \/>\ncmake <span class=\"token parameter variable\">&#8211;build<\/span> build_cpu <span class=\"token parameter variable\">&#8211;config<\/span> Release<\/p>\n<p>CUDA \u7248\u672c\u7f16\u8bd1&#xff1a;\u6709 NVIDIA GPU \u63a8\u8350\u7f16\u8bd1\u6b64\u7248\u672c&#xff0c;\u5f00\u542f GPU \u52a0\u901f&#xff1a;<\/p>\n<p>cmake <span class=\"token parameter variable\">-B<\/span> build_cuda <span class=\"token parameter variable\">-DLLAMA_CUDA<\/span><span class=\"token operator\">&#061;<\/span>ON<br \/>\ncmake <span class=\"token parameter variable\">&#8211;build<\/span> build_cuda <span class=\"token parameter variable\">&#8211;config<\/span> Release <span class=\"token parameter variable\">-j<\/span> <span class=\"token number\">12<\/span><\/p>\n<p>\u53c2\u6570\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>-B build_cuda&#xff1a;\u6307\u5b9a\u6784\u5efa\u8f93\u51fa\u76ee\u5f55<\/li>\n<li>-DLLAMA_CUDA&#061;ON&#xff1a;\u5f00\u542f CUDA \u7f16\u8bd1\u5b8f&#xff0c;\u7f16\u8bd1 GPU \u52a0\u901f\u4ee3\u7801<\/li>\n<li>\u2013config Release&#xff1a;\u4f7f\u7528\u53d1\u5e03\u6a21\u5f0f\u7f16\u8bd1&#xff0c;\u53bb\u9664\u8c03\u8bd5\u4fe1\u606f&#xff0c;\u6027\u80fd\u6700\u4f18<\/li>\n<li>-j 12&#xff1a;\u4f7f\u7528 12 \u7ebf\u7a0b\u5e76\u884c\u7f16\u8bd1&#xff0c;\u52a0\u5feb\u901f\u5ea6<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260829133313-6a92df991edc8.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u6838\u5fc3\u529f\u80fd<\/h3>\n<h4>llama-cli(main) \u4ea4\u4e92\u5f0f\u63a8\u7406<\/h4>\n<p>llama-cli(main) \u662f llama.cpp \u6700\u57fa\u7840\u7684\u53ef\u6267\u884c\u7a0b\u5e8f&#xff0c;\u7528\u4e8e\u672c\u5730\u4ea4\u4e92\u5f0f\u5bf9\u8bdd\u3002<\/p>\n<p>\u8fd0\u884c\u793a\u4f8b&#xff1a;\u8fdb\u5165\u7f16\u8bd1\u540e\u7684 bin \u76ee\u5f55&#xff0c;\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\u542f\u52a8\u5bf9\u8bdd&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> \/root\/code\/llama.cpp\/build_cuda\/bin\/<\/p>\n<p>.\/llama-cli <span class=\"token parameter variable\">-m<\/span> \/root\/autodl-tmp\/models\/Llama3-8B-Chinese-Chat-GGUF\/Llama3-8B-Chinese-Chat-q8_0-v2_1.gguf <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token parameter variable\">-n<\/span> <span class=\"token parameter variable\">-1<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token parameter variable\">-ngl<\/span> <span class=\"token number\">256<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token parameter variable\">-t<\/span> <span class=\"token number\">12<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token parameter variable\">&#8211;color<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token parameter variable\">-r<\/span> <span class=\"token string\">&#034;User:&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n    &#8211;in-prefix <span class=\"token string\">&#034; &#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token parameter variable\">-i<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token parameter variable\">-p<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n<span class=\"token string\">&#039;User: \u4f60\u597d<br \/>\nAI: \u4f60\u597d\u554a&#xff0c;\u6211\u662f\u53cc\u5b50\u5ea7&#xff0c;\u8981\u804a\u804a\u5417?<br \/>\nUser: \u597d\u554a!<br \/>\nAI: \u4f60\u60f3\u804a\u804a\u4ec0\u4e48\u8bdd\u9898\u5462&#xff1f;<br \/>\nUser:&#039;<\/span><\/p>\n<table>\n<tr>\u53c2\u6570\u4f5c\u7528<\/tr>\n<tbody>\n<tr>\n<td>-m<\/td>\n<td>\u6307\u5b9a GGUF \u6a21\u578b\u6587\u4ef6\u8def\u5f84<\/td>\n<\/tr>\n<tr>\n<td>-n -1<\/td>\n<td>\u4e0d\u9650\u5236\u751f\u6210 token \u6570\u91cf&#xff08;\u9ed8\u8ba4\u5230\u4e0a\u4e0b\u6587\u7a97\u53e3\u4e0a\u9650&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>-ngl 256<\/td>\n<td>\u5c06 256 \u5c42\u6a21\u578b\u5378\u8f7d\u5230 GPU \u52a0\u901f&#xff08;Number of GPU Layers&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>-t 12<\/td>\n<td>\u4f7f\u7528 12 \u4e2a CPU \u7ebf\u7a0b\u63a8\u7406<\/td>\n<\/tr>\n<tr>\n<td>\u2013color<\/td>\n<td>\u7ec8\u7aef\u5f69\u8272\u8f93\u51fa&#xff0c;\u533a\u5206\u7528\u6237\u4e0e\u6a21\u578b\u56de\u590d<\/td>\n<\/tr>\n<tr>\n<td>-r \u201cUser:\u201d<\/td>\n<td>\u9047\u5230 \u201cUser:\u201d \u5b57\u7b26\u4e32\u65f6\u505c\u6b62\u751f\u6210&#xff0c;\u4f5c\u4e3a\u5bf9\u8bdd\u7ec8\u6b62\u7b26<\/td>\n<\/tr>\n<tr>\n<td>\u2013in-prefix &#034; &#034;<\/td>\n<td>\u7528\u6237\u8f93\u5165\u524d\u81ea\u52a8\u6dfb\u52a0\u7a7a\u683c&#xff0c;\u5339\u914d\u5bf9\u8bdd\u6a21\u677f<\/td>\n<\/tr>\n<tr>\n<td>-i<\/td>\n<td>\u5f00\u542f\u4ea4\u4e92\u6a21\u5f0f&#xff0c;\u652f\u6301\u591a\u8f6e\u5bf9\u8bdd<\/td>\n<\/tr>\n<tr>\n<td>-p<\/td>\n<td>\u6307\u5b9a\u521d\u59cb prompt&#xff0c;\u9884\u8bbe\u5bf9\u8bdd\u4e0a\u4e0b\u6587<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5e38\u89c1\u95ee\u9898&#xff1a;\u5982\u679c\u9047\u5230\u6a21\u578b\u65e0\u9650\u751f\u6210\u3001\u8f93\u51fa\u4e71\u7801&#xff0c;\u5927\u6982\u7387\u662f\u7ec8\u6b62\u7b26\u4e0d\u5339\u914d\u3002\u8bf7\u68c0\u67e5&#xff1a;\u6a21\u578b\u5bf9\u5e94\u7684\u5bf9\u8bdd\u6a21\u677f\u662f\u5426\u6b63\u786e&#xff1b;-r \u53c2\u6570\u6307\u5b9a\u7684\u505c\u6b62\u5b57\u7b26\u4e32\u662f\u5426\u4e0e\u6a21\u578b\u6a21\u677f\u4e00\u81f4&#xff1b;\u53ef\u5c1d\u8bd5\u663e\u5f0f\u8bbe\u7f6e EOS \u7ec8\u6b62\u6807\u8bb0\u3002<\/p>\n<h4>server \u670d\u52a1\u5316\u90e8\u7f72<\/h4>\n<p>\u672c\u5730\u4ea4\u4e92\u53ea\u9002\u5408\u5355\u4eba\u4f7f\u7528&#xff0c;\u5982\u679c\u8981\u63d0\u4f9b API \u670d\u52a1&#xff0c;\u5c31\u7528 server \u6a21\u5757 \u2014\u2014 \u5b83\u517c\u5bb9 OpenAI API \u683c\u5f0f&#xff0c;\u53ef\u4ee5\u65e0\u7f1d\u66ff\u6362\u73b0\u6709\u8c03\u7528\u3002<\/p>\n<p>\u542f\u52a8\u670d\u52a1<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> ~\/code\/llama.cpp\/build_cuda\/bin<\/p>\n<p>.\/server <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token parameter variable\">-m<\/span> \/root\/autodl-tmp\/models\/Llama3-8B-Chinese-Chat-GGUF\/Llama3-8B-Chinese-Chat-q8_0-v2_1.gguf <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token parameter variable\">&#8211;host<\/span> <span class=\"token string\">&#034;127.0.0.1&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token parameter variable\">&#8211;port<\/span> <span class=\"token number\">8080<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token parameter variable\">-c<\/span> <span class=\"token number\">2048<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token parameter variable\">-ngl<\/span> <span class=\"token number\">128<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n    &#8211;api-key <span class=\"token string\">&#034;echo in the moon&#034;<\/span><\/p>\n<p>\u53c2\u6570\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>\u2013host \u201c127.0.0.1\u201d&#xff1a;\u670d\u52a1\u76d1\u542c\u5730\u5740\u3002\u5982\u9700\u5bf9\u5916\u8bbf\u95ee&#xff0c;\u6539\u4e3a 0.0.0.0<\/li>\n<li>\u2013port 8080&#xff1a;\u670d\u52a1\u7aef\u53e3\u53f7<\/li>\n<li>-c 2048&#xff1a;\u4e0a\u4e0b\u6587\u7a97\u53e3\u5927\u5c0f&#xff0c;\u5355\u4f4d\u4e3a token<\/li>\n<li>\u2013api-key&#xff1a;\u8bbe\u7f6e API \u5bc6\u94a5&#xff0c;\u4fdd\u62a4\u670d\u52a1\u4e0d\u88ab\u672a\u6388\u6743\u8bbf\u95ee<\/li>\n<\/ul>\n<p>\u8c03\u7528\u65b9\u5f0f<\/p>\n<p>\u670d\u52a1\u542f\u52a8\u540e&#xff0c;\u53ef\u4ee5\u7528\u6807\u51c6 OpenAI \u683c\u5f0f\u8c03\u7528&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> http:\/\/127.0.0.1:8080\/v1\/chat\/completions <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-H<\/span> <span class=\"token string\">&#034;Content-Type: application\/json&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-H<\/span> <span class=\"token string\">&#034;Authorization: Bearer echo in the moon&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-d<\/span> <span class=\"token string\">&#039;{<br \/>\n    &#034;model&#034;: &#034;llama3&#034;,<br \/>\n    &#034;messages&#034;: [{&#034;role&#034;: &#034;user&#034;, &#034;content&#034;: &#034;\u4f60\u597d&#034;}]<br \/>\n  }&#039;<\/span><\/p>\n<p>\u4e5f\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 Python \u7684 openai SDK \u8c03\u7528&#xff0c;\u53ea\u9700\u4fee\u6539 base_url \u5373\u53ef&#xff0c;\u4e1a\u52a1\u4ee3\u7801\u51e0\u4e4e\u96f6\u6539\u52a8\u3002<\/p>\n<h4>\u6a21\u578b\u91cf\u5316<\/h4>\n<p>\u91cf\u5316\u662f llama.cpp \u7684\u7075\u9b42\u529f\u80fd&#xff0c;\u4e5f\u662f\u964d\u4f4e\u6a21\u578b\u90e8\u7f72\u6210\u672c\u7684\u6838\u5fc3\u624b\u6bb5\u3002<\/p>\n<p>\u6a21\u578b\u91cf\u5316\u5c31\u662f\u628a\u9ad8\u7cbe\u5ea6\u7684\u6d6e\u70b9\u6570\u6743\u91cd&#xff08;\u5982 FP16&#xff09;\u8f6c\u6362\u4e3a\u4f4e\u7cbe\u5ea6\u6574\u6570&#xff08;\u5982 INT8\u3001INT4&#xff09;&#xff0c;\u4ece\u800c&#xff1a;<\/p>\n<ul>\n<li>\u51cf\u5c0f\u6a21\u578b\u4f53\u79ef&#xff08;4bit \u91cf\u5316\u4f53\u79ef\u7ea6\u4e3a FP16 \u7684 1\/4&#xff09;<\/li>\n<li>\u52a0\u5feb\u63a8\u7406\u901f\u5ea6&#xff0c;\u964d\u4f4e\u663e\u5b58 \/ \u5185\u5b58\u5360\u7528<\/li>\n<li>\u4ee3\u4ef7\u662f\u8f7b\u5fae\u7684\u7cbe\u5ea6\u635f\u5931<\/li>\n<\/ul>\n<p>\u5de5\u4e1a\u754c\u5e38\u7528\u6df7\u5408\u7cbe\u5ea6\u91cf\u5316&#xff1a;\u4e0d\u662f\u6240\u6709\u5c42\u90fd\u7528\u4f4e\u7cbe\u5ea6&#xff0c;\u5bf9\u7cbe\u5ea6\u654f\u611f\u7684\u5c42\u4fdd\u7559 FP16\/FP32&#xff0c;\u5bf9\u7cbe\u5ea6\u4e0d\u654f\u611f\u7684\u5c42\u505a\u91cf\u5316&#xff0c;\u5728\u901f\u5ea6\u4e0e\u6548\u679c\u4e4b\u95f4\u53d6\u5f97\u5e73\u8861\u3002<\/p>\n<p>\u8def\u5f84\u4e00&#xff1a;GGUF \u6a21\u578b\u518d\u91cf\u5316 \u5982\u679c\u4f60\u5df2\u7ecf\u6709\u4e00\u4e2a GGUF \u683c\u5f0f\u7684\u6a21\u578b&#xff0c;\u53ef\u4ee5\u7528 quantize \u5de5\u5177\u8fdb\u4e00\u6b65\u91cf\u5316&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> ~\/code\/llama.cpp\/build_cuda\/bin<\/p>\n<p>.\/quantize &#8211;allow-requantize <span class=\"token punctuation\">\\\\<\/span><br \/>\n    \/root\/autodl-tmp\/models\/Llama3-8B-Chinese-Chat-GGUF\/Llama3-8B-Chinese-Chat-q8_0-v2_1.gguf <span class=\"token punctuation\">\\\\<\/span><br \/>\n    \/root\/autodl-tmp\/models\/Llama3-8B-Chinese-Chat-GGUF\/Llama3-8B-Chinese-Chat-q4_1-v1.gguf <span class=\"token punctuation\">\\\\<\/span><br \/>\n    Q4_1<\/p>\n<p>\u2013allow-requantize&#xff1a;\u5141\u8bb8\u5728\u5df2\u91cf\u5316\u6a21\u578b\u4e0a\u518d\u6b21\u91cf\u5316\u3002\u4e0d\u63a8\u8350\u8fd9\u6837\u505a&#xff0c;\u56e0\u4e3a\u4f1a\u53e0\u52a0\u7cbe\u5ea6\u635f\u5931&#xff0c;\u4f18\u5148\u4ece FP16 \u539f\u6a21\u578b\u5f00\u59cb\u91cf\u5316&#xff1b;\u6700\u540e\u4e00\u4e2a\u53c2\u6570\u4e3a\u91cf\u5316\u7cbe\u5ea6&#xff0c;\u5982 Q8_0\u3001Q4_1\u3001Q5_K_M \u7b49\u3002<\/p>\n<p>\u8def\u5f84\u4e8c&#xff1a;Safetensors \u8f6c GGUF \u5e76\u91cf\u5316 \u5982\u679c\u4f60\u7684\u539f\u59cb\u6a21\u578b\u662f Hugging Face \u683c\u5f0f&#xff08;safetensors&#xff09;&#xff0c;\u53ef\u4ee5\u7528\u8f6c\u6362\u811a\u672c\u4e00\u6b65\u5b8c\u6210\u683c\u5f0f\u8f6c\u6362\u4e0e\u91cf\u5316&#xff1a;<\/p>\n<p>python convert-hf-to-gguf.py \/root\/autodl-tmp\/models\/Llama3-8B-Chinese-Chat <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token parameter variable\">&#8211;outfile<\/span> \/root\/autodl-tmp\/models\/Llama3-8B-Chinese-Chat-GGUF\/Llama3-8B-Chinese-Chat-q8_0-v1.gguf <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token parameter variable\">&#8211;outtype<\/span> q8_0<\/p>\n<table>\n<tr>\u7cbe\u5ea6\u8bf4\u660e\u9002\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>Q8_0<\/td>\n<td>8 \u4f4d\u6574\u6570\u91cf\u5316&#xff0c;\u4f53\u79ef\u7ea6\u4e3a FP16 \u7684 1\/2&#xff0c;\u7cbe\u5ea6\u635f\u5931\u6781\u5c0f<\/td>\n<td>\u8ffd\u6c42\u6548\u679c\u4f18\u5148&#xff0c;\u663e\u5b58\u5145\u8db3<\/td>\n<\/tr>\n<tr>\n<td>Q4_0<\/td>\n<td>\u57fa\u7840 4 \u4f4d\u91cf\u5316&#xff0c;\u4f53\u79ef\u5c0f&#xff0c;\u6548\u679c\u4e00\u822c<\/td>\n<td>\u6781\u81f4\u538b\u7f29&#xff0c;\u8d44\u6e90\u53d7\u9650<\/td>\n<\/tr>\n<tr>\n<td>Q4_1<\/td>\n<td>4 \u4f4d\u91cf\u5316 &#043; \u6700\u5c0f\u503c\u504f\u79fb&#xff0c;\u6548\u679c\u4f18\u4e8e Q4_0<\/td>\n<td>4bit \u4e0b\u7684\u5747\u8861\u9009\u62e9<\/td>\n<\/tr>\n<tr>\n<td>Q5_K_M<\/td>\n<td>K \u7cfb\u5217 5 \u4f4d\u91cf\u5316&#xff0c;\u5206\u5757\u7cbe\u7ec6\u5316\u5904\u7406&#xff0c;PPL \u66f4\u4f4e<\/td>\n<td>\u63a8\u8350\u5e38\u7528&#xff0c;\u6548\u679c\u63a5\u8fd1 8bit<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e00\u822c\u6765\u8bf4&#xff0c;K \u7cfb\u5217\u91cf\u5316&#xff08;Q2_K\u3001Q3_K\u3001Q4_K\u3001Q5_K&#xff09;\u91c7\u7528\u4e86\u66f4\u7cbe\u7ec6\u7684\u5206\u5757\u7b56\u7565&#xff0c;\u5728\u76f8\u540c\u6bd4\u7279\u6570\u4e0b\u6548\u679c\u4f18\u4e8e\u4f20\u7edf Q \u7cfb\u5217&#xff0c;\u65e5\u5e38\u4f7f\u7528\u4f18\u5148\u9009 Q4_K_M \u6216 Q5_K_M\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u76ee\u5f55\u5bfc\u8bfbllama.cpp \u4e0e GGUF \u683c\u5f0f\u51c6\u5907\u5de5\u4f5c\u7f16\u8bd1 llama.cpp\u6838\u5fc3\u529f\u80fdllama-cli(main) \u4ea4\u4e92\u5f0f\u63a8\u7406server \u670d\u52a1\u5316\u90e8\u7f72\u6a21\u578b\u91cf\u5316\u5bfc\u8bfb<br \/>\n\u5927\u6a21\u578b\u65f6\u4ee3&#xff0c;\u6211\u4eec\u603b\u5728\u8ffd\u6c42\u66f4\u5927\u7684\u53c2\u6570\u89c4\u6a21\u3001\u66f4\u5f3a\u7684\u7b97\u529b\u786c\u4ef6&#xff0c;\u4f46\u843d\u5230\u771f\u5b9e\u7684\u5de5\u4e1a\u573a\u666f\u91cc&#xff0c;\u6210\u672c\u4e0e\u6295\u5165\u4ea7\u51fa\u6bd4\u6c38\u8fdc\u662f\u7ed5\u4e0d\u5f00\u7684\u547d\u9898\u3002<br \/>\n\u56fd\u5185\u67d0\u56e2\u961f \u8fc7\u53bb\u5916\u8d2d\u7684 LSR \u5f15\u64ce\u6bcf\u5e74\u6210\u672c\u9ad8\u8fbe\u6570\u5343\u4e07&#xff0c;\u73b0\u5728\u7528\u7eaf C\/C \u5b9e\u73b0\u4e86\u4e00\u5957 CPU \u90e8\u7f72\u65b9\u6848&#xff0c;\u5728\u6ee1\u8db3\u4e1a\u52a1\u65f6\u6548<\/p>\n","protected":false},"author":2,"featured_media":97594,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[347,50,86,427],"topic":[],"class_list":["post-97598","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-llama","tag-50","tag-86","tag-427"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u5927\u6a21\u578b\u91cf\u5316\u3011\u4f7f\u7528 llama.cpp \u5b8c\u6210\u91cf\u5316\u3001\u672c\u5730\u63a8\u7406\u4e0e\u670d\u52a1\u5316\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\/97598.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u5927\u6a21\u578b\u91cf\u5316\u3011\u4f7f\u7528 llama.cpp \u5b8c\u6210\u91cf\u5316\u3001\u672c\u5730\u63a8\u7406\u4e0e\u670d\u52a1\u5316\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u76ee\u5f55\u5bfc\u8bfbllama.cpp \u4e0e GGUF \u683c\u5f0f\u51c6\u5907\u5de5\u4f5c\u7f16\u8bd1 llama.cpp\u6838\u5fc3\u529f\u80fdllama-cli(main) \u4ea4\u4e92\u5f0f\u63a8\u7406server \u670d\u52a1\u5316\u90e8\u7f72\u6a21\u578b\u91cf\u5316\u5bfc\u8bfb \u5927\u6a21\u578b\u65f6\u4ee3&#xff0c;\u6211\u4eec\u603b\u5728\u8ffd\u6c42\u66f4\u5927\u7684\u53c2\u6570\u89c4\u6a21\u3001\u66f4\u5f3a\u7684\u7b97\u529b\u786c\u4ef6&#xff0c;\u4f46\u843d\u5230\u771f\u5b9e\u7684\u5de5\u4e1a\u573a\u666f\u91cc&#xff0c;\u6210\u672c\u4e0e\u6295\u5165\u4ea7\u51fa\u6bd4\u6c38\u8fdc\u662f\u7ed5\u4e0d\u5f00\u7684\u547d\u9898\u3002 \u56fd\u5185\u67d0\u56e2\u961f \u8fc7\u53bb\u5916\u8d2d\u7684 LSR \u5f15\u64ce\u6bcf\u5e74\u6210\u672c\u9ad8\u8fbe\u6570\u5343\u4e07&#xff0c;\u73b0\u5728\u7528\u7eaf C\/C \u5b9e\u73b0\u4e86\u4e00\u5957 CPU \u90e8\u7f72\u65b9\u6848&#xff0c;\u5728\u6ee1\u8db3\u4e1a\u52a1\u65f6\u6548\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/97598.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-29T13:33:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260829133310-6a92df96c1454.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/97598.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/97598.html\",\"name\":\"\u3010\u5927\u6a21\u578b\u91cf\u5316\u3011\u4f7f\u7528 llama.cpp \u5b8c\u6210\u91cf\u5316\u3001\u672c\u5730\u63a8\u7406\u4e0e\u670d\u52a1\u5316\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-29T13:33:14+00:00\",\"dateModified\":\"2026-08-29T13:33:14+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/97598.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/97598.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/97598.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u5927\u6a21\u578b\u91cf\u5316\u3011\u4f7f\u7528 llama.cpp \u5b8c\u6210\u91cf\u5316\u3001\u672c\u5730\u63a8\u7406\u4e0e\u670d\u52a1\u5316\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":"\u3010\u5927\u6a21\u578b\u91cf\u5316\u3011\u4f7f\u7528 llama.cpp \u5b8c\u6210\u91cf\u5316\u3001\u672c\u5730\u63a8\u7406\u4e0e\u670d\u52a1\u5316\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\/97598.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u5927\u6a21\u578b\u91cf\u5316\u3011\u4f7f\u7528 llama.cpp \u5b8c\u6210\u91cf\u5316\u3001\u672c\u5730\u63a8\u7406\u4e0e\u670d\u52a1\u5316\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u76ee\u5f55\u5bfc\u8bfbllama.cpp \u4e0e GGUF \u683c\u5f0f\u51c6\u5907\u5de5\u4f5c\u7f16\u8bd1 llama.cpp\u6838\u5fc3\u529f\u80fdllama-cli(main) \u4ea4\u4e92\u5f0f\u63a8\u7406server \u670d\u52a1\u5316\u90e8\u7f72\u6a21\u578b\u91cf\u5316\u5bfc\u8bfb \u5927\u6a21\u578b\u65f6\u4ee3&#xff0c;\u6211\u4eec\u603b\u5728\u8ffd\u6c42\u66f4\u5927\u7684\u53c2\u6570\u89c4\u6a21\u3001\u66f4\u5f3a\u7684\u7b97\u529b\u786c\u4ef6&#xff0c;\u4f46\u843d\u5230\u771f\u5b9e\u7684\u5de5\u4e1a\u573a\u666f\u91cc&#xff0c;\u6210\u672c\u4e0e\u6295\u5165\u4ea7\u51fa\u6bd4\u6c38\u8fdc\u662f\u7ed5\u4e0d\u5f00\u7684\u547d\u9898\u3002 \u56fd\u5185\u67d0\u56e2\u961f \u8fc7\u53bb\u5916\u8d2d\u7684 LSR \u5f15\u64ce\u6bcf\u5e74\u6210\u672c\u9ad8\u8fbe\u6570\u5343\u4e07&#xff0c;\u73b0\u5728\u7528\u7eaf C\/C \u5b9e\u73b0\u4e86\u4e00\u5957 CPU \u90e8\u7f72\u65b9\u6848&#xff0c;\u5728\u6ee1\u8db3\u4e1a\u52a1\u65f6\u6548","og_url":"https:\/\/www.wsisp.com\/helps\/97598.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-29T13:33:14+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260829133310-6a92df96c1454.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/97598.html","url":"https:\/\/www.wsisp.com\/helps\/97598.html","name":"\u3010\u5927\u6a21\u578b\u91cf\u5316\u3011\u4f7f\u7528 llama.cpp \u5b8c\u6210\u91cf\u5316\u3001\u672c\u5730\u63a8\u7406\u4e0e\u670d\u52a1\u5316\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-29T13:33:14+00:00","dateModified":"2026-08-29T13:33:14+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/97598.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/97598.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/97598.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u5927\u6a21\u578b\u91cf\u5316\u3011\u4f7f\u7528 llama.cpp \u5b8c\u6210\u91cf\u5316\u3001\u672c\u5730\u63a8\u7406\u4e0e\u670d\u52a1\u5316\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\/97598","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=97598"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/97598\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/97594"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=97598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=97598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=97598"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=97598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}