{"id":1256,"date":"2024-03-29T21:09:25","date_gmt":"2024-03-29T13:09:25","guid":{"rendered":"http:\/\/www.52108.net\/?p=1256"},"modified":"2024-03-29T21:10:11","modified_gmt":"2024-03-29T13:10:11","slug":"llamafile%ef%bc%9a%e4%b8%80%e4%b8%aa%e6%97%a0%e9%9c%80%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae%e3%80%81%e8%b7%a8%e5%b9%b3%e5%8f%b0%e8%bf%90%e8%a1%8c%e5%a4%a7%e5%9e%8b%e8%af%ad%e8%a8%80%e6%a8%a1%e5%9e%8b","status":"publish","type":"post","link":"http:\/\/www.52108.net\/?p=1256","title":{"rendered":"llamafile\uff1a\u4e00\u4e2a\u65e0\u9700\u5b89\u88c5\u914d\u7f6e\u3001\u8de8\u5e73\u53f0\u8fd0\u884c\u5927\u578b\u8bed\u8a00\u6a21\u578b\u7684\u795e\u5668\uff01"},"content":{"rendered":"<p>\u5728 AI \u9886\u57df\uff0c\u6a21\u578b\u63a8\u7406\u7684\u73af\u5883\u914d\u7f6e\u548c\u5b89\u88c5\u8fc7\u7a0b\u5e38\u5e38\u8ba9\u4eba\u5934\u75bc\u3002\u5982\u679c\u4f60\u4e5f\u6709\u8fd9\u6837\u7684\u56f0\u6270\uff0c\u90a3\u4e48 llamafile \u5c06\u4f1a\u662f\u4f60\u7684\u798f\u97f3\u3002\u672c\u6587\u7531 deepin\uff08\u6df1\u5ea6\uff09\u793e\u533a\u7528\u6237\u5ddd\u987a\u9875\u521b\u4f5c\uff0c\u8ba9\u4f60\u4e00\u6587\u5b66\u4f1a\u5982\u4f55\u73a9\u8f6c llamafile\uff01<\/p><h1 class=\"wp-block-heading\"><strong>&nbsp;llamafile\u5230\u5e95\u662f\u4ec0\u4e48\uff1f<\/strong><\/h1><p>llamafile \u662f\u4e00\u79cd\u53ef\u5728\u4f60\u81ea\u5df1\u7684\u7535\u8111\u4e0a\u8fd0\u884c\u7684\u53ef\u6267\u884c\u5927\u578b\u8bed\u8a00\u6a21\u578b\uff08LLM\uff09\uff0c\u5b83\u5305\u542b\u4e86\u7ed9\u5b9a\u7684\u5f00\u653e LLM \u7684\u6743\u91cd\uff0c\u4ee5\u53ca\u8fd0\u884c\u8be5\u6a21\u578b\u6240\u9700\u7684\u4e00\u5207\u3002\u8ba9\u4eba\u60ca\u559c\u7684\u662f\uff0c\u4f60\u65e0\u9700\u8fdb\u884c\u4efb\u4f55\u5b89\u88c5\u6216\u914d\u7f6e\u3002<\/p><h1 class=\"wp-block-heading\"><strong>&nbsp;llamafile\u5982\u4f55\u5b9e\u73b0\u8fd9\u4e00\u5207\uff1f<\/strong><\/h1><p>\u8fd9\u4e00\u5207\u90fd\u5f97\u76ca\u4e8e llama.cpp \u4e0e Cosmopolitan Libc \u7684\u7ed3\u5408\uff0c\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u529f\u80fd\uff1a<\/p><ul class=\"wp-block-list\"><li><strong>\u8de8 CPU \u5fae\u67b6\u6784\u8fd0\u884c<\/strong>\uff1allamafiles \u53ef\u4ee5\u5728\u591a\u79cd CPU \u5fae\u67b6\u6784\u4e0a\u8fd0\u884c\uff0c\u652f\u6301\u65b0\u7684 Intel \u7cfb\u7edf\u4f7f\u7528\u73b0\u4ee3 CPU \u7279\u6027\uff0c\u540c\u65f6\u517c\u5bb9\u65e7\u8ba1\u7b97\u673a\u3002<\/li>\n\n<li><strong>\u8de8 CPU \u67b6\u6784\u8fd0\u884c\uff1a<\/strong>llamafiles \u53ef\u4ee5\u5728 AMD64 \u548c ARM64 \u7b49\u591a\u79cd CPU \u67b6\u6784\u4e0a\u8fd0\u884c\uff0c\u517c\u5bb9 Win32 \u548c\u5927\u591a\u6570 UNIX shell\u3002<\/li>\n\n<li><strong>\u8de8\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884c\uff1a<\/strong>llamafiles \u53ef\u4ee5\u5728 MacOS\u3001Windows\u3001Linux\u3001FreeBSD\u3001OpenBSD\u548c NetBSD \u516d\u79cd\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\u3002<\/li>\n\n<li><strong>\u6743\u91cd\u5d4c\u5165\uff1a<\/strong>LLM \u7684\u6743\u91cd\u53ef\u4ee5\u5d4c\u5165\u5230 llamafile \u4e2d\uff0c\u4f7f\u5f97\u672a\u538b\u7f29\u7684\u6743\u91cd\u53ef\u4ee5\u76f4\u63a5\u6620\u5c04\u5230\u5185\u5b58\u4e2d\uff0c\u7c7b\u4f3c\u4e8e\u81ea\u89e3\u538b\u7f29\u7684\u5b58\u6863\u3002<\/li><\/ul><h1 class=\"wp-block-heading\"><strong>&nbsp;llamafile\u652f\u6301\u54ea\u4e9b\u64cd\u4f5c\u7cfb\u7edf\u548cCPU\uff1f<\/strong><\/h1><p>llamafile \u652f\u6301 Linux 2.6.18+\u3001Darwin (MacOS) 23.1.0+\u3001Windows 8+\u3001FreeBSD 13+\u3001NetBSD 9.2+\u3001OpenBSD 7+ \u7b49\u64cd\u4f5c\u7cfb\u7edf\u3002\u5728 CPU \u65b9\u9762\uff0c\u652f\u6301 AMD64 \u548c ARM64 \u4e24\u79cd\u5fae\u5904\u7406\u5668\u3002<\/p><h1 class=\"wp-block-heading\"><strong>llamafile\u5bf9GPU\u7684\u652f\u6301\u5982\u4f55<\/strong><\/h1><p>llamafile \u652f\u6301 Apple Metal\u3001NVIDIA \u548c AMD \u4e09\u79cd\u7c7b\u578b\u7684 GPU\u3002\u5728 MacOS ARM64 \u4e0a\uff0c\u53ef\u4ee5\u901a\u8fc7\u7f16\u8bd1\u4e00\u4e2a\u5c0f\u6a21\u5757\u6765\u652f\u6301 GPU\u3002NVIDIA \u548c AMD \u663e\u5361\u7684\u6240\u6709\u8005\u9700\u8981\u4f20\u9012\u7279\u5b9a\u53c2\u6570\u6765\u542f\u7528 GPU\u3002<\/p><h1 class=\"wp-block-heading\"><strong>\u4f60\u4e5f\u53ef\u4ee5\u521b\u5efa\u81ea\u5df1\u7684llamafiles\uff01<\/strong><\/h1><p>\u6709\u4e86\u8fd9\u4e2a\u9879\u76ee\u5305\u542b\u7684\u5de5\u5177\uff0c\u4f60\u53ef\u4ee5\u521b\u5efa\u81ea\u5df1\u7684 llamafiles\uff0c\u4f7f\u7528\u4efb\u4f55\u4f60\u60f3\u8981\u7684\u517c\u5bb9\u6a21\u578b\u6743\u91cd\u3002\u7136\u540e\uff0c\u4f60\u53ef\u4ee5\u5c06\u8fd9\u4e9b llamafiles \u5206\u53d1\u7ed9\u5176\u4ed6\u4eba\u8f7b\u677e\u5730\u4f7f\u7528\u5b83\u4eec\uff0c\u65e0\u8bba\u4ed6\u4eec\u4f7f\u7528\u7684\u662f\u4ec0\u4e48\u7c7b\u578b\u7684\u8ba1\u7b97\u673a\u3002<\/p><p>llamafile \u65e0\u7591\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u5b83\u4f7f\u5f97\u6a21\u578b\u63a8\u7406\u53d8\u5f97\u66f4\u52a0\u4fbf\u6377\uff0c\u65e0\u9700\u5b89\u88c5\u6216\u914d\u7f6e\u590d\u6742\u7684\u73af\u5883\u3002\u5982\u679c\u4f60\u8fd8\u5728\u4e3a\u6a21\u578b\u63a8\u7406\u7684\u73af\u5883\u914d\u7f6e\u800c\u70e6\u607c\uff0c\u90a3\u4e48\u4e3a\u4f55\u4e0d\u8bd5\u8bd5 llamafile \u5462\uff1f\u5177\u4f53\u53ef\u4ee5\u53c2\u8003\u8fd9\u4e2a\u6559\u7a0b\uff1a<a href=\"https:\/\/zhuanlan.zhihu.com\/p\/686886176\">https:\/\/zhuanlan.zhihu.com\/p\/686886176<\/a>\u300a\u5229\u7528llamafile\u6784\u9020\u50bb\u74dc\u5f0f\uff0c\u652f\u6301\u591a\u5e73\u53f0\u542f\u52a8\u7684\u5927\u6a21\u578b\u300b<\/p><h1 class=\"wp-block-heading\"><strong>\u5982\u4f55\u5728deepin\u4e0a\u4f7f\u7528\uff1f<\/strong><\/h1><p>\u6253\u5f00\u7ec8\u7aef\uff0c\u8fd0\u884c<em>&nbsp;sh .\/xxxx.llamafile<\/em><\/p><h1 class=\"wp-block-heading\"><strong>\u5982\u4f55\u5728Windows\u4e0a\u9762\u4f7f\u7528\uff1f<\/strong><\/h1><p>\u6539\u540e\u7f00\u4e3a.exe\uff0c\u53cc\u51fb\u6253\u5f00\u5373\u53ef\u3002<\/p><h1 class=\"wp-block-heading\"><strong>\u5982\u4f55\u4f7f\u7528GPU\u8fd0\u884c\u800c\u4e0d\u662fCPU?<\/strong><\/h1><p>\u9700\u8981\u88c5\u597d NVIDIA\/AMD \u9a71\u52a8\uff0c\u5bf9\u5e94 NVIDIA\uff0c\u8fd8\u5e94\u8be5\u88c5\u4e86 CUDA\uff0c\u7136\u540e\u5728\u8fd0\u884c\u65f6\u52a0\u4e0a -ngl 99999 \u5373\u53ef\uff0c\u8fd9\u4e2a\u4ee3\u8868\u5c06 99999 \u5c42\uff08\u5b9e\u9645\u4e5f\u5c31\u51e0\u767e\u4e0a\u5343\u5c42\uff09\u7f51\u7edc\u90fd\u642c\u5230 GPU\uff0c\u5982\u679c\u4f60\u663e\u5b58\u4e0d\u591f\uff0c\u53ef\u4ee5\u9002\u5f53\u964d\u4f4e\u8fd9\u4e2a\u6570\u503c\uff0c\u6bd4\u5982 99\u3001999 \u7b49\u3002<\/p><p>\u7efc\u5408\u6765\u770b\uff0c\u5bf9\u4e8e deepin:&nbsp;<em>sh .\/xxxx.llamafile -ngl 99999<\/em><\/p><p>\u5bf9\u4e8e Windows:&nbsp;<em>.\/xxx.lamafile.exe -ngl 9999<\/em><\/p><h1 class=\"wp-block-heading\"><strong>\u83b7\u53d6\u5730\u5740<\/strong><\/h1><p>\u767e\u5ea6\u7f51\u76d8\u94fe\u63a5\uff1a<\/p><p>https:\/\/pan.baidu.com\/s\/14cv7McPa1XpXBNKy914HyQ?pwd=msjn&nbsp; &nbsp; &nbsp; &nbsp;\u63d0\u53d6\u7801\uff1amsjn<\/p><p>123\u4e91\u76d8\u94fe\u63a5\uff1a<\/p><p>https:\/\/www.123pan.com\/s\/oEqDVv-IP4o.html&nbsp; &nbsp; &nbsp; &nbsp; \u63d0\u53d6\u7801\uff1a8MCi<\/p><p>\uff08\u6ce8\uff1a\u540e\u7f00.exe \u53ef\u4ee5\u5ffd\u7565\uff0c\u56e0\u4e3a llamafile \u662f\u8de8\u5e73\u53f0\u7684\uff0c\u53ef\u4ee5\u540c\u65f6\u5728 Linux\u3001Windows\u3001Mac\u3001BSD\u4e0a\u8fd0\u884c\u3002\uff09<\/p><h1 class=\"wp-block-heading\"><strong>\u4f7f\u7528\u622a\u56fe<\/strong><\/h1><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image.png\" alt=\"\" class=\"wp-image-1257\"\/><\/figure><\/div><h1 class=\"wp-block-heading\"><strong>\u5982\u4f55\u63a5\u5165\u5176\u4ed6\u5ba2\u6237\u7aef\uff1f<\/strong><\/h1><p>\u63a8\u8350\u8fd9\u4e2a\uff0c\u4e00\u952e\u62e5\u6709\u4f60\u81ea\u5df1\u7684\u8de8\u5e73\u53f0 ChatGPT\/Gemini \u5e94\u7528\uff1a<\/p><figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/github.com\/ChatGPTNextWeb\/ChatGPT-Next-Web\n<\/div><\/figure><p>\u300aChatGPTNextWeb\/ChatGPT-Next-Web: A cross-platform ChatGPT\/Gemini UI (Web \/ PWA \/ Linux \/ Win \/ MacOS)\u300b<\/p><p>\u5b89\u88c5\u540e\u518d\u8bbe\u7f6e\uff0c\u6a21\u578b\u670d\u52a1\u5546\u9009\u62e9 OpenAI\uff0c\u63a5\u53e3\u5730\u5740\u6362\u6210&nbsp;&nbsp;http:\/\/127.0.0.1:8080<\/p><h1 class=\"wp-block-heading\"><strong>\u63a5\u5165UOS-AI\uff08\u4e0d\u63a8\u8350\u666e\u901a\u7528\u6237\u5c1d\u8bd5\uff09<\/strong><\/h1><ul class=\"wp-block-list\"><li><strong>\u5148\u542f\u52a8 llamafile\u3002<\/strong><\/li>\n\n<li><strong>\u518d\u5b89\u88c5 NGINX&nbsp;&nbsp;<em>sudo apt install nginx<\/em><\/strong><\/li>\n\n<li><strong>\u5229\u7528 OpenSSL \u81ea\u7b7e\u540d SSL \u8bc1\u4e66\uff0c\u6709\u6548\u671f 10 \u5e74\u3002<\/strong><\/li><\/ul><p>openssl req -newkey rsa:2048 -x509 -nodes -keyout localhost.key -new -out localhost.crt -subj \/CN=Hostname -reqexts SAN -extensions SAN -config &lt;(cat \/usr\/lib\/ssl\/openssl.cnf \\<br>&lt;(printf &#8216;[SAN]\\nsubjectAltName=DNS:hostname,IP:127.0.0.1&#8217;)) -sha256 -days 3650<\/p><ul class=\"wp-block-list\"><li><strong>\u5728 NGINX \u914d\u7f6e\u76ee\u5f55\uff0c\u521b\u5efa\u8bc1\u4e66\u76ee\u5f55\uff0c\u5c06\u521a\u521a\u7684\u8bc1\u4e66\u79fb\u8fc7\u53bb\u3002<\/strong><\/li><\/ul><p>sudo mkdir \/etc\/nginx\/cert\/<br>sudo cp localhost.* \/etc\/nginx\/cert\/<\/p><ul class=\"wp-block-list\"><li><strong>\u7f16\u8f91NGINX\u9ed8\u8ba4\u7f51\u7ad9\u914d\u7f6e\u6587\u4ef6\uff0csudo vim \/etc\/nginx\/sites-enabled\/default \u914d\u7f6e\u5982\u4e0b\uff1a<\/strong><\/li><\/ul><p>##<br># You should look at the following URL&#8217;s in order to grasp a solid understanding<br># of Nginx configuration files in order to fully unleash the power of Nginx.<br># https:\/\/www.nginx.com\/resources\/wiki\/start\/<br># https:\/\/www.nginx.com\/resources\/wiki\/start\/topics\/tutorials\/config_pitfalls\/<br># https:\/\/wiki.debian.org\/Nginx\/DirectoryStructure<br>#<br># In most cases, administrators will remove this file from sites-enabled\/ and<br># leave it as reference inside of sites-available where it will continue to be<br># updated by the nginx packaging team.<br>#<br># This file will automatically load configuration files provided by other<br># applications, such as Drupal or WordPress. These applications will be made<br># available underneath a path with that package name, such as \/drupal8.<br>#<br># Please see \/usr\/share\/doc\/nginx-doc\/examples\/ for more detailed examples.<br>##<\/p><p># Default server configuration<br>#<br>server {<br>listen 80 default_server;<br>listen [::]:80 default_server;<\/p><p># SSL configuration<br>listen 443 ssl default_server;<br>listen [::]:443 ssl default_server;<br>ssl_certificate cert\/localhost.crt;<br>ssl_certificate_key cert\/localhost.key;<br>ssl_session_timeout 5m;<br>ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;<br>ssl_protocols TLSv1 TLSv1.1 TLSv1.2;<br>ssl_prefer_server_ciphers on;<br># Add index.php to the list if you are using PHP<br>index index.html index.htm index.nginx-debian.html;<\/p><p># server_name _;<br>server_name api.openai.com;<\/p><p>location \/ {<br>proxy_pass http:\/\/127.0.0.1:8080;<br>proxy_set_header Host $host;<br>proxy_set_header X-Real-IP $remote_addr;<br>proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>}<\/p><p>}<\/p><ul class=\"wp-block-list\"><li><strong>\u91cd\u542f NGINX\u3002<\/strong><\/li><\/ul><p>sudo systemctl restart nginx<\/p><ul class=\"wp-block-list\"><li><strong>\u4fee\u6539\u672c\u673a Host\uff0c\u5c06\u672c\u673a IP: 127.0.0.1 \u6620\u5c04\u5230\u521a\u521a\u914d\u7f6e\u7684 api.openai.com \uff0c\u4fee\u6539\u65b9\u6cd5\uff1asudo vim \/etc\/hosts \u5728\u4efb\u610f\u884c\u589e\u52a0\u4e00\u884c 127.0.0.1 api.openai.com<\/strong><\/li>\n\n<li><strong>\u7136\u540e\u6309\u7167\u8be5\u5185\u5bb9\uff1a<a href=\"https:\/\/bbs.deepin.org\/zh\/post\/267049\">https:\/\/bbs.deepin.org\/zh\/post\/267049<\/a>&nbsp; \u8ba9 UOS AI \u8fdb\u5165\u82f1\u8bed\u73af\u5883\uff0c\u8fd9\u6837\u624d\u80fd\u6dfb\u52a0 ChatGPT \u8bbe\u7f6e\u3002<\/strong><\/li><\/ul><ul class=\"wp-block-list\"><li><strong>\u6dfb\u52a0\u914d\u7f6e\uff1a<\/strong><\/li><\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"669\" height=\"598\" src=\"http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-2.png\" alt=\"image.png\" class=\"wp-image-1260\" srcset=\"http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-2.png 669w, http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-2-300x268.png 300w, http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-2-392x350.png 392w, http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-2-24x21.png 24w, http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-2-36x32.png 36w, http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-2-48x43.png 48w, http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-2-600x536.png 600w\" sizes=\"auto, (max-width: 669px) 100vw, 669px\" \/><\/figure><\/div><ul class=\"wp-block-list\"><li><strong>\u6dfb\u52a0\u6210\u529f\uff08\u7535\u8111\u914d\u7f6e\u5dee\u7684\u53ef\u80fd\u8981\u591a\u8bd5\u51e0\u6b21\uff09\uff1a<\/strong><\/li><\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"676\" height=\"608\" src=\"http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-1.png\" alt=\"image.png\" class=\"wp-image-1259\" srcset=\"http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-1.png 676w, http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-1-300x270.png 300w, http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-1-389x350.png 389w, http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-1-24x22.png 24w, http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-1-36x32.png 36w, http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-1-48x43.png 48w, http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-1-600x540.png 600w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/figure><\/div><ul class=\"wp-block-list\"><li><strong>\u5f00\u59cb\u4f7f\u7528\uff1a<\/strong><\/li><\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"414\" height=\"845\" src=\"http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image.png\" alt=\"image.png\" class=\"wp-image-1258\" srcset=\"http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image.png 414w, http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-147x300.png 147w, http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-171x350.png 171w, http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-12x24.png 12w, http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-18x36.png 18w, http:\/\/www.52108.net\/wp-content\/uploads\/2024\/03\/image-24x48.png 24w\" sizes=\"auto, (max-width: 414px) 100vw, 414px\" \/><\/figure><\/div><p><strong>\u6ce8\u610f\uff1a<\/strong>\u76ee\u524d\u9009\u62e9 GPT3.5\/GPT4 \u5728 UOS AI \u91cc\u8c8c\u4f3c\u4e0d\u652f\u6301\u6d41\u5f0f\u4f20\u8f93\uff0c\u4e5f\u5c31\u662f\u6ca1\u529e\u6cd5\u4e00\u4e2a\u5b57\u4e00\u4e2a\u5b57\u541e\u5410\uff0c\u5bfc\u81f4\u8981\u7b49\u5f85\u8f83\u957f\u65f6\u95f4\uff0c\u7b49\u6240\u6709\u5b57\u90fd\u9884\u6d4b\u597d\u4e86\u624d\u4f1a\u8fd4\u56de\uff0c\u4f53\u9a8c\u8f83\u5dee\uff0c\u800c\u5176\u4ed6 API \u6bd4\u5982\u8baf\u98de\u661f\u706b\u662f\u652f\u6301\u6d41\u7684\uff0c\u6240\u4ee5\u5efa\u8bae\u8fd8\u662f\u7528 llamafile \u81ea\u5e26\u7684\u7f51\u9875\u804a\u5929\u7a97\u5427\u3002<\/p><p>\u539f\u8d34\u5730\u5740\uff1a<a href=\"https:\/\/bbs.deepin.org\/zh\/post\/269443\">https:\/\/bbs.deepin.org\/zh\/post\/269443<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u5728 AI \u9886\u57df\uff0c\u6a21\u578b\u63a8\u7406\u7684\u73af\u5883\u914d\u7f6e\u548c\u5b89\u88c5\u8fc7\u7a0b\u5e38\u5e38\u8ba9\u4eba\u5934\u75bc\u3002\u5982\u679c\u4f60\u4e5f\u6709\u8fd9\u6837\u7684\u56f0\u6270\uff0c\u90a3\u4e48 llamafi &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1256","post","type-post","status-publish","format-standard","hentry","category-daosongviewpoint"],"_links":{"self":[{"href":"http:\/\/www.52108.net\/index.php?rest_route=\/wp\/v2\/posts\/1256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.52108.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.52108.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.52108.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.52108.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1256"}],"version-history":[{"count":2,"href":"http:\/\/www.52108.net\/index.php?rest_route=\/wp\/v2\/posts\/1256\/revisions"}],"predecessor-version":[{"id":1263,"href":"http:\/\/www.52108.net\/index.php?rest_route=\/wp\/v2\/posts\/1256\/revisions\/1263"}],"wp:attachment":[{"href":"http:\/\/www.52108.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.52108.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1256"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.52108.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}