<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chakoku</author_name>
  <author_url>https://blog.hatena.ne.jp/chakoku/</author_url>
  <blog_title>chakokuのブログ(rev4)</blog_title>
  <blog_url>https://chakoku.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>課題：3.3章(P58)：簡単なSelf-Attention機構を使って、コンテキストベクトルを作る章を理解する 取り組み：LLM本の説明を正しく理解しているか検証のため、ライブラリを使わず、素でn次元配列を演算して、コンテキストベクトルを生成する 結論：LLM本の実行例の通りには計算できた 詳細：LLM本ではコンテキストベクトルを作るための演算が図解されている。理解があってるのかを確かめるため、ライブラリを使わず素でコンテキストベクトルを生成する。試作コードは以下 #!/usr/bin/python3 # # self Attention functions (simple version)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchakoku.hatenablog.com%2Fentry%2F2026%2F01%2F03%2F175552&quot; title=&quot;LLM本でミニマムなLLMを作る（その３） - chakokuのブログ(rev4)&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>2026-01-03 17:55:52</published>
  <title>LLM本でミニマムなLLMを作る（その３）</title>
  <type>rich</type>
  <url>https://chakoku.hatenablog.com/entry/2026/01/03/175552</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
