<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>espio999</author_name>
  <author_url>https://blog.hatena.ne.jp/espio999/</author_url>
  <blog_title>Technically Impossible</blog_title>
  <blog_url>https://impsbl.hatenablog.jp/</blog_url>
  <categories>
    <anon>Android</anon>
    <anon>IT</anon>
    <anon>AI</anon>
  </categories>
  <description>Android NDKを用いてコンパイルすることで、C/C++プログラムをAndroidで実行することができる。つまり、Alpaca.cppのchatプログラムも実行可能ということだ。この投稿では、そのビルドから実行までの作業を紹介する。しかし注意が一つ。作業前にAndroid端末のRAM容量を調べて欲しい。chatプログラムの実行に際し、言語モデルをメモリにロードしようとする。これを保持するために8～12GBのRAMが必要なのだ。この投稿末尾に掲載した動画は、プログラムがAndroidによって強制終了されている様子だ。これはエラーでもバグによるクラッシュでもなく、RAMの容量不足によるロード…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fimpsbl.hatenablog.jp%2Fentry%2FGPTonAndroid&quot; title=&quot;Androidで動かすGPT、しかしRAM=6GBでは動かない。 - Technically Impossible&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-03 00:00:00</published>
  <title>Androidで動かすGPT、しかしRAM=6GBでは動かない。</title>
  <type>rich</type>
  <url>https://impsbl.hatenablog.jp/entry/GPTonAndroid</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
