<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thr3a</author_name>
  <author_url>https://blog.hatena.ne.jp/thr3a/</author_url>
  <blog_title>動かざることバグの如し</blog_title>
  <blog_url>https://blog.turai.work/</blog_url>
  <categories>
    <anon>llm</anon>
  </categories>
  <description>LLM触っていてContext lengthとMax tokenの違いが一瞬わからなくなったのでメモ Context length (コンテキスト長) モデルが一度に処理できるトークンの最大数。 モデルの「記憶」や「注意の範囲」を表す。 入力と出力の合計トークン数の上限を決定。 モデルごとに固定（例: GPT-3.5は4096トークン、GPT-4は8192トークン）。 Max token APIリクエストで生成される出力の最大トークン数を指定するパラメータ。 ユーザーが設定可能。 常にcontext length - 入力トークン数よりも小さい値である必要がある。 出力の長さを制御するために使…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.turai.work%2Fentry%2F20240807%2F1722957078&quot; title=&quot;LLMのContext lengthとMax tokenの違い - 動かざることバグの如し&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>2024-08-07 00:11:18</published>
  <title>LLMのContext lengthとMax tokenの違い</title>
  <type>rich</type>
  <url>https://blog.turai.work/entry/20240807/1722957078</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
