{"id":64,"date":"2024-05-31T09:26:37","date_gmt":"2024-05-31T09:26:37","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw90\/?p=64"},"modified":"2024-06-02T00:16:43","modified_gmt":"2024-06-02T00:16:43","slug":"use-llm-through-llama-cpp","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw90\/index.php\/2024\/05\/31\/use-llm-through-llama-cpp\/","title":{"rendered":"Use LLM through llama.cpp"},"content":{"rendered":"\n<p>100% local on-premise using, fully private LLMs with llama.cpp<\/p>\n\n\n\n<p>2 lines of code, OpenAI compatible!<\/p>\n\n\n\n<p>Step 1: brew install llama.cpp<\/p>\n\n\n\n<p>Step 2: llama-server &#8211;hf-repo microsoft\/Phi-3-mini-4k-instruct-gguf &#8211;hf-file Phi-3-mini-4k-instruct-q4.gguf<\/p>\n\n\n\n<p>Step 3: curl hostname:8080\/v1\/chat\/completions<\/p>\n\n\n\n<p>You can point to any GGUF on the HF hub.<\/p>\n\n\n\n<p>That&#8217;s it.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"640\" style=\"aspect-ratio: 1024 \/ 640;\" width=\"1024\" controls src=\"https:\/\/www.appservgrid.com\/paw90\/wp-content\/uploads\/2024\/05\/1717101653093.mp4\"><\/video><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>100% local on-premise using, fully private LLMs with llama.cpp 2 lines of code, OpenAI compatible! Step 1: brew install llama.cpp Step 2: llama-server &#8211;hf-repo microsoft\/Phi-3-mini-4k-instruct-gguf &#8211;hf-file Phi-3-mini-4k-instruct-q4.gguf Step 3: curl hostname:8080\/v1\/chat\/completions You can point to any GGUF on the HF hub. That&#8217;s it.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,6],"tags":[],"class_list":["post-64","post","type-post","status-publish","format-standard","hentry","category-ai","category-llm"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw90\/index.php\/wp-json\/wp\/v2\/posts\/64","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw90\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw90\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw90\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw90\/index.php\/wp-json\/wp\/v2\/comments?post=64"}],"version-history":[{"count":2,"href":"https:\/\/www.appservgrid.com\/paw90\/index.php\/wp-json\/wp\/v2\/posts\/64\/revisions"}],"predecessor-version":[{"id":67,"href":"https:\/\/www.appservgrid.com\/paw90\/index.php\/wp-json\/wp\/v2\/posts\/64\/revisions\/67"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw90\/index.php\/wp-json\/wp\/v2\/media?parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw90\/index.php\/wp-json\/wp\/v2\/categories?post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw90\/index.php\/wp-json\/wp\/v2\/tags?post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}