<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yoshoku</author_name>
  <author_url>https://blog.hatena.ne.jp/yoshoku/</author_url>
  <blog_title>洋食の日記</blog_title>
  <blog_url>https://yoshoku.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>自然言語処理</anon>
    <anon>深層学習</anon>
    <anon>LLMs</anon>
  </categories>
  <description>はじめに llama.cppはMetaの大規模言語モデル (Large Language Models, LLMs) であるLLaMAを、量子化することでCPU上で動作させるものである。C/C++で実装されているので、Ruby bindingsを作って、Rubyから呼び出せるようにした。 github.com 使い方 インストールは通常のnative extensionsなgemと同様である。 $ gem install llama_cpp モデルを用意して量子化する必要があるが、llama.cppをcloneしてきて、Usageの通りにすればできる。 GitHub - ggerganov/l…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyoshoku.hatenablog.com%2Fentry%2F2023%2F04%2F02%2F213000&quot; title=&quot;llama.cppのRuby bindingsを作った - 洋食の日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-04-02 21:30:00</published>
  <title>llama.cppのRuby bindingsを作った</title>
  <type>rich</type>
  <url>https://yoshoku.hatenablog.com/entry/2023/04/02/213000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
