{"id":453612,"date":"2025-03-28T15:00:44","date_gmt":"2025-03-28T15:00:44","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=453612"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=453612","title":{"rendered":"<span>\u041a\u0430\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c AFFiNE \u043a Ollama?<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/899\/b1b\/64c\/899b1b64c6105811c3629dd36776e390.jpg\" width=\"602\" height=\"807\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/899\/b1b\/64c\/899b1b64c6105811c3629dd36776e390.jpg\" data-blurred=\"true\"\/><\/figure>\n<p>\u041a\u043e\u0433\u0434\u0430 \u044f \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c <a href=\"https:\/\/affine.pro\/\" rel=\"noopener noreferrer nofollow\">AFFiNE<\/a> \u043a <a href=\"https:\/\/ollama.com\/\" rel=\"noopener noreferrer nofollow\">Ollama<\/a> \u0438\u043b\u0438 \u043a <a href=\"https:\/\/www.deepseek.com\/\" rel=\"noopener noreferrer nofollow\">DeepSeek<\/a>, \u044f \u0441\u0440\u0430\u0437\u0443 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439: <a href=\"https:\/\/affine.pro\/\" rel=\"noopener noreferrer nofollow\">AFFiNE<\/a> \u043f\u043e\u043f\u0440\u043e\u0441\u0442\u0443 \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438, \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u043e\u0442 GPT. \u0412\u043e\u043f\u0440\u043e\u0441: \u043f\u043e\u0447\u0435\u043c\u0443? \u0414\u0430 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0440\u0435\u0431\u044f\u0442\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0445\u0430\u0440\u0434\u043a\u043e\u0434\u0438\u043b\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0432 \u043a\u043e\u0434\u0435.\u00a0<\/p>\n<p><u>\u0427\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u0440\u0430\u0434\u0438, \u0440\u0435\u0431\u044f\u0442\u0430 \u0432\u0441\u0435 \u0435\u0449\u0435 \u0432 \u0431\u0435\u0442\u0435, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u044e<\/u><\/p>\n<p>\u041f\u043e\u043a\u043e\u043f\u0430\u0432\u0448\u0438\u0441\u044c \u0432 \u043a\u043e\u0434\u0435, \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0442\u0430\u043c \u043f\u043e\u043f\u0440\u043e\u0441\u0442\u0443 \u043d\u0438\u043a\u0430\u043a \u043d\u0435\u043b\u044c\u0437\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u043b\u0438\u0431\u043e, \u041a\u0420\u041e\u041c\u0415 URL \u0438 API-\u043a\u043b\u044e\u0447\u0430 \u043e\u0442 OpenAI, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u0445\u0430\u0440\u0434\u043a\u043e\u0436\u0435\u043d\u044b.<\/p>\n<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/5cc\/49b\/908\/5cc49b90868b20650a9d8af4afa6bdfe.jpg\" alt=\"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 AFFiNE\" title=\"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 AFFiNE\" width=\"799\" height=\"671\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5cc\/49b\/908\/5cc49b90868b20650a9d8af4afa6bdfe.jpg\" data-blurred=\"true\"\/><\/p>\n<div><figcaption>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 AFFiNE<\/figcaption><\/div>\n<\/figure>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u044f \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b, \u0447\u0442\u043e \u0432 <a href=\"https:\/\/localai.io\/\" rel=\"noopener noreferrer nofollow\">LocalAI<\/a> \u0435\u0441\u0442\u044c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 &#171;\u0440\u0435\u043d\u0435\u0439\u043c\u0438\u0442\u044c&#187; \u043c\u043e\u0434\u0435\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u043d\u0430 \u0441\u0432\u043e\u044e \u043c\u0430\u0448\u0438\u043d\u0443.<\/p>\n<pre><code class=\"yaml\">name: phi-2 context_size: 2048 f16: true threads: 11 gpu_layers: 90 mmap: true parameters:   # Reference any HF model or a local file here   model: huggingface:\/\/TheBloke\/phi-2-GGUF\/phi-2.Q8_0.gguf   temperature: 0.2   top_k: 40   top_p: 0.95 template:    chat: &amp;template |     Instruct: {{.Input}}     Output:   # Modify the prompt template here ^^^ as per your requirements   completion: *template<\/code><\/pre>\n<p>\u0423\u043a\u0430\u0437\u0430\u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435, \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c, \u0447\u0442\u043e \u043c\u043e\u0433\u043b\u043e \u0431\u044b \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443.<\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e <a href=\"https:\/\/localai.io\/\" rel=\"noopener noreferrer nofollow\">LocalAI<\/a> \u043c\u043d\u0435 \u043b\u0438\u0447\u043d\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f (\u043e\u043d \u043f\u043e\u043f\u0440\u043e\u0441\u0442\u0443 \u0441\u043b\u043e\u0436\u043d\u0435\u0435), \u0445\u043e\u0442\u044f \u044f \u043d\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430, \u0447\u0442\u043e \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0431\u0443\u0434\u0443 \u043f\u0435\u0440\u0435\u0435\u0437\u0436\u0430\u0442\u044c \u043d\u0430 \u043d\u0435\u0433\u043e \u0432\u043c\u0435\u0441\u0442\u043e <a href=\"https:\/\/ollama.com\/\" rel=\"noopener noreferrer nofollow\">Ollama<\/a> \u0438\u0437-\u0437\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441 LLM, \u0430 \u0441 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u0440\u0430\u0437\u043d\u044b\u0445 \u0432\u0438\u0434\u043e\u0432 \u043d\u0435\u0439\u0440\u043e\u043d\u043e\u0432.<\/p>\n<p>\u0422\u0430\u043a \u0447\u0442\u043e \u044f \u043f\u043e\u0448\u0435\u043b \u043a\u043e\u043f\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043f\u043e\u0445\u043e\u0436\u0435\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u0432 <a href=\"https:\/\/ollama.com\/\" rel=\"noopener noreferrer nofollow\">Ollama<\/a>, \u043e\u0434\u043d\u0430\u043a\u043e \u0442\u0430\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u043d\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c. \u041d\u043e \u044f \u0443\u0432\u0438\u0434\u0435\u043b \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c copy.<\/p>\n<p>\u042f \u0440\u0435\u0448\u0438\u043b: \u0430 \u0432\u0434\u0440\u0443\u0433 \u043f\u043e\u0434\u043e\u0439\u0434\u0443\u0442? \u041d\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u043e\u044f\u043b\u0441\u044f \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e 30 \u0433\u0438\u0433\u0430\u0431\u0430\u0439\u0442 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435. \u041d\u043e \u0447\u0442\u043e \u043f\u043e\u0434\u0435\u043b\u0430\u0442\u044c, \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442 \u043c\u043e\u0434\u0435\u043b\u0438 DeepSeek-r1:32b \u0438 \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u0435\u0433\u043e gpt-4o.<\/p>\n<pre><code class=\"bash\">docker exec -it service-ollama-backend ollama cp deepseek-r1:32b gpt-4o<\/code><\/pre>\n<p>\u0418\u0418\u0418\u0418 \u2014 \u0434\u0430, \u044d\u0442\u043e \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e.<\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0430: <a href=\"https:\/\/affine.pro\/\" rel=\"noopener noreferrer nofollow\">AFFiNE<\/a> \u0432\u0441\u0451 \u0435\u0449\u0435 \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 &#171;\u043c\u044b\u0441\u043b\u044f\u0449\u0438\u043c\u0438&#187; \u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043d \u043f\u043e\u043f\u0440\u043e\u0441\u0442\u0443 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u043b \u043c\u044b\u0441\u043b\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e\u0441\u0440\u0435\u0434\u0438 \u0442\u0435\u043a\u0441\u0442\u0430 :D.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d22\/2e4\/c35\/d222e4c35318d6a0e0f490cedc59eec6.png\" width=\"1950\" height=\"1462\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d22\/2e4\/c35\/d222e4c35318d6a0e0f490cedc59eec6.png\"\/><\/figure>\n<p>P.S. \u0423 \u043c\u0435\u043d\u044f, \u043a\u0441\u0442\u0430\u0442\u0438, \u0432 <a href=\"https:\/\/t.me\/+Oa9kty7CxdNmOTli\" rel=\"noopener noreferrer nofollow\">Telegram-\u043a\u0430\u043d\u0430\u043b\u0435<\/a> \u0441\u0435\u0439\u0447\u0430\u0441 \u0438\u0434\u0435\u0442 \u0440\u043e\u0437\u044b\u0433\u0440\u044b\u0448 \u043c\u043e\u0435\u0433\u043e \u0441\u0442\u0430\u0440\u043e\u0433\u043e Intel NUC \u043d\u0430 32 \u0413\u0411 \u043f\u0430\u043c\u044f\u0442\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044f \u0440\u0430\u043d\u044c\u0448\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b \u043f\u0435\u0440\u0432\u044b\u0435 \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/ollama.com\/\" rel=\"noopener noreferrer nofollow\">Ollama<\/a>, \u0442\u0430\u043a \u0447\u0442\u043e \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0435 \ud83d\ude42<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/895222\/\"> https:\/\/habr.com\/ru\/articles\/895222\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><\/figure>\n<p>\u041a\u043e\u0433\u0434\u0430 \u044f \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c <a href=\"https:\/\/affine.pro\/\" rel=\"noopener noreferrer nofollow\">AFFiNE<\/a> \u043a <a href=\"https:\/\/ollama.com\/\" rel=\"noopener noreferrer nofollow\">Ollama<\/a> \u0438\u043b\u0438 \u043a <a href=\"https:\/\/www.deepseek.com\/\" rel=\"noopener noreferrer nofollow\">DeepSeek<\/a>, \u044f \u0441\u0440\u0430\u0437\u0443 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439: <a href=\"https:\/\/affine.pro\/\" rel=\"noopener noreferrer nofollow\">AFFiNE<\/a> \u043f\u043e\u043f\u0440\u043e\u0441\u0442\u0443 \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438, \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u043e\u0442 GPT. \u0412\u043e\u043f\u0440\u043e\u0441: \u043f\u043e\u0447\u0435\u043c\u0443? \u0414\u0430 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0440\u0435\u0431\u044f\u0442\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0445\u0430\u0440\u0434\u043a\u043e\u0434\u0438\u043b\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0432 \u043a\u043e\u0434\u0435.\u00a0<\/p>\n<p><u>\u0427\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u0440\u0430\u0434\u0438, \u0440\u0435\u0431\u044f\u0442\u0430 \u0432\u0441\u0435 \u0435\u0449\u0435 \u0432 \u0431\u0435\u0442\u0435, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u044e<\/u><\/p>\n<p>\u041f\u043e\u043a\u043e\u043f\u0430\u0432\u0448\u0438\u0441\u044c \u0432 \u043a\u043e\u0434\u0435, \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0442\u0430\u043c \u043f\u043e\u043f\u0440\u043e\u0441\u0442\u0443 \u043d\u0438\u043a\u0430\u043a \u043d\u0435\u043b\u044c\u0437\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u043b\u0438\u0431\u043e, \u041a\u0420\u041e\u041c\u0415 URL \u0438 API-\u043a\u043b\u044e\u0447\u0430 \u043e\u0442 OpenAI, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u0445\u0430\u0440\u0434\u043a\u043e\u0436\u0435\u043d\u044b.<\/p>\n<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 AFFiNE<\/figcaption><\/div>\n<\/figure>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u044f \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b, \u0447\u0442\u043e \u0432 <a href=\"https:\/\/localai.io\/\" rel=\"noopener noreferrer nofollow\">LocalAI<\/a> \u0435\u0441\u0442\u044c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 &#171;\u0440\u0435\u043d\u0435\u0439\u043c\u0438\u0442\u044c&#187; \u043c\u043e\u0434\u0435\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u043d\u0430 \u0441\u0432\u043e\u044e \u043c\u0430\u0448\u0438\u043d\u0443.<\/p>\n<pre><code class=\"yaml\">name: phi-2 context_size: 2048 f16: true threads: 11 gpu_layers: 90 mmap: true parameters:   # Reference any HF model or a local file here   model: huggingface:\/\/TheBloke\/phi-2-GGUF\/phi-2.Q8_0.gguf   temperature: 0.2   top_k: 40   top_p: 0.95 template:    chat: &amp;template |     Instruct: {{.Input}}     Output:   # Modify the prompt template here ^^^ as per your requirements   completion: *template<\/code><\/pre>\n<p>\u0423\u043a\u0430\u0437\u0430\u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435, \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c, \u0447\u0442\u043e \u043c\u043e\u0433\u043b\u043e \u0431\u044b \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443.<\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e <a href=\"https:\/\/localai.io\/\" rel=\"noopener noreferrer nofollow\">LocalAI<\/a> \u043c\u043d\u0435 \u043b\u0438\u0447\u043d\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f (\u043e\u043d \u043f\u043e\u043f\u0440\u043e\u0441\u0442\u0443 \u0441\u043b\u043e\u0436\u043d\u0435\u0435), \u0445\u043e\u0442\u044f \u044f \u043d\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430, \u0447\u0442\u043e \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0431\u0443\u0434\u0443 \u043f\u0435\u0440\u0435\u0435\u0437\u0436\u0430\u0442\u044c \u043d\u0430 \u043d\u0435\u0433\u043e \u0432\u043c\u0435\u0441\u0442\u043e <a href=\"https:\/\/ollama.com\/\" rel=\"noopener noreferrer nofollow\">Ollama<\/a> \u0438\u0437-\u0437\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441 LLM, \u0430 \u0441 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u0440\u0430\u0437\u043d\u044b\u0445 \u0432\u0438\u0434\u043e\u0432 \u043d\u0435\u0439\u0440\u043e\u043d\u043e\u0432.<\/p>\n<p>\u0422\u0430\u043a \u0447\u0442\u043e \u044f \u043f\u043e\u0448\u0435\u043b \u043a\u043e\u043f\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043f\u043e\u0445\u043e\u0436\u0435\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u0432 <a href=\"https:\/\/ollama.com\/\" rel=\"noopener noreferrer nofollow\">Ollama<\/a>, \u043e\u0434\u043d\u0430\u043a\u043e \u0442\u0430\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u043d\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c. \u041d\u043e \u044f \u0443\u0432\u0438\u0434\u0435\u043b \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c copy.<\/p>\n<p>\u042f \u0440\u0435\u0448\u0438\u043b: \u0430 \u0432\u0434\u0440\u0443\u0433 \u043f\u043e\u0434\u043e\u0439\u0434\u0443\u0442? \u041d\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u043e\u044f\u043b\u0441\u044f \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e 30 \u0433\u0438\u0433\u0430\u0431\u0430\u0439\u0442 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435. \u041d\u043e \u0447\u0442\u043e \u043f\u043e\u0434\u0435\u043b\u0430\u0442\u044c, \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442 \u043c\u043e\u0434\u0435\u043b\u0438 DeepSeek-r1:32b \u0438 \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u0435\u0433\u043e gpt-4o.<\/p>\n<pre><code class=\"bash\">docker exec -it service-ollama-backend ollama cp deepseek-r1:32b gpt-4o<\/code><\/pre>\n<p>\u0418\u0418\u0418\u0418 \u2014 \u0434\u0430, \u044d\u0442\u043e \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e.<\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0430: <a href=\"https:\/\/affine.pro\/\" rel=\"noopener noreferrer nofollow\">AFFiNE<\/a> \u0432\u0441\u0451 \u0435\u0449\u0435 \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 &#171;\u043c\u044b\u0441\u043b\u044f\u0449\u0438\u043c\u0438&#187; \u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043d \u043f\u043e\u043f\u0440\u043e\u0441\u0442\u0443 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u043b \u043c\u044b\u0441\u043b\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e\u0441\u0440\u0435\u0434\u0438 \u0442\u0435\u043a\u0441\u0442\u0430 :D.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>P.S. \u0423 \u043c\u0435\u043d\u044f, \u043a\u0441\u0442\u0430\u0442\u0438, \u0432 <a href=\"https:\/\/t.me\/+Oa9kty7CxdNmOTli\" rel=\"noopener noreferrer nofollow\">Telegram-\u043a\u0430\u043d\u0430\u043b\u0435<\/a> \u0441\u0435\u0439\u0447\u0430\u0441 \u0438\u0434\u0435\u0442 \u0440\u043e\u0437\u044b\u0433\u0440\u044b\u0448 \u043c\u043e\u0435\u0433\u043e \u0441\u0442\u0430\u0440\u043e\u0433\u043e Intel NUC \u043d\u0430 32 \u0413\u0411 \u043f\u0430\u043c\u044f\u0442\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044f \u0440\u0430\u043d\u044c\u0448\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b \u043f\u0435\u0440\u0432\u044b\u0435 \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/ollama.com\/\" rel=\"noopener noreferrer nofollow\">Ollama<\/a>, \u0442\u0430\u043a \u0447\u0442\u043e \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0435 \ud83d\ude42<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/895222\/\"> https:\/\/habr.com\/ru\/articles\/895222\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-453612","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/453612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=453612"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/453612\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=453612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=453612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=453612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}