ラベル

AI Forecast 8306MUFG (310) Social (79) life (75) Financial (69) IT (62) Proposal (57) idea (51) Fund Management (49) AI (46) Trading (43) economics (43) Covid-19 (40) Hedge Fund (37) Risk (36) Culture (31) BOJ (29) Science (29) hobby (27) accounting (17) Apps (16) Travel (14) career (11) job (7) Hiking (5) emotion (5) music (3) Statarb (2) piano (2)

2026年1月7日水曜日

Web上で走るLLM

 Web上で走るLLM

An LLM Running on the Web

公開されているcdn(Hugging Face)を利用してWeb上でローカルに実行されるLLMを作ってみた(コードはこちら)。現在、普通に使えるLLMは皆クラウド上の高性能サーバー上で実行されているが、このLLMは完全にPC上で実行されている。処理速度は著しく遅いが、将来的にはローカルPCの性能アップで速くなるだろう。インテル第六世代以降か同等のPCの場合(*)、下のフィールドに入力してからEnterキーを押す前にWebGPUにチェックを入れておくと実行が早くなる。I built an LLM that runs locally in a web browser using publicly available (Hugging Face) CDN(CODE is here). Currently, most LLMs that are practical for everyday use run on high-performance cloud servers, but this one runs entirely on a local PC. Its processing speed is significantly slower, but it should become faster in the future as local PC performance improves. On PCs after Intel 6th generation or equivalent(*), performance can be improved by checking the WebGPU option before pressing the Enter key before entering text in the field below.

(*)i5-4590のwin11ではWebGPUは作動せず。i5-6200Uのwin11では次の操作を行った後のみWebGPUが動作した。On Windows 11 with an i5-4590, WebGPU does not work.On Windows 11 with an i5-6200U, WebGPU worked only after performing the following steps:

  1. Chromeのアドレスバーに chrome://flags と入力。Enter chrome://flags in the Chrome address bar.
  2. 「Unsafe WebGPU Support」を検索し、「Enabled」に変更。Search for “Unsafe WebGPU Support” and set it to “Enabled.”

Web版LLMおもちゃ