<?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>背景：「LLM自作入門」(LLM from Scratch(ChatGPTでは、Raschka本と言ってきた))を読んでミニマムLLMを作る(その2) 課題：「2.8章 単語の位置をエンコードする」まで読んで来た。トークンの位置は絶対位置情報を使い、乱数で生成した位置組み込み(pos_embeddings)をトークンのテンソルに加算すると書かれている。が・・・トークンのテンソルに足してしまったら位置なんて分からないのでは？？という疑問と、「3.3章 Self-Attentionを使って入力の異なる部分に注意を払う」がどう関係しているのか、分からなくなった 取り組み：ChatGPTに「LLM f…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchakoku.hatenablog.com%2Fentry%2F2026%2F01%2F01%2F222236&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>https://cdn-ak.f.st-hatena.com/images/fotolife/c/chakoku/20260101/20260101222549.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-01-01 22:22:36</published>
  <title>LLM自作入門でミニマムなLLMを作る(その２)</title>
  <type>rich</type>
  <url>https://chakoku.hatenablog.com/entry/2026/01/01/222236</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
