<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>LLM on Fumiya Tanaka | Emitter Follower</title>
    <link>https://blog.fummicc1.dev/tags/llm/</link>
    <description>Recent content in LLM on Fumiya Tanaka | Emitter Follower</description>
    <generator>Hugo -- 0.118.2</generator>
    <language>ja-jp</language>
    <lastBuildDate>Tue, 14 Oct 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.fummicc1.dev/tags/llm/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>TIL@2025-10-14</title>
      <link>https://blog.fummicc1.dev/posts/2025/10/14/</link>
      <pubDate>Tue, 14 Oct 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.fummicc1.dev/posts/2025/10/14/</guid>
      <description> ルール AIの書いた文章ではなく自分で書くこと AIから教えてもらったことをそのまま鵜呑みにしないで、必ず他の情報（一次情報かどうかは問わない）も調べた上で記述すること 可能な限り、経験として得た知識について記載すること。事後的に経験として得たものでも可とする LLMのtemperatureを0にしたらエラーが出た話 LLMを使ってテキスト生成をする際、評価をする際に同じ入力に対して実行の度に結果が違うと困るのでtemperatureを0.0にして実行したい。 HuggingFaceを利用してgenerate関数にtemperatureを0に設定したら下記のエラーが出た。
ValueError: `temperature` (=0.0) has to be a strictly positive float 原因は引数の設定にあった。generateメソッドでは、do_sampleというbool型の引数を取れるが、これをTrueにした場合temperatureは0より大きい値を指定する必要がある。もし決定的にしたいのであれば、temperatureを0にするのではなくdo_sample=Falseにする必要があることのこと。
参考 https://huggingface.co/Open-Orca/oo-phi-1_5/discussions/2 https://huggingface.co/docs/transformers/ja/generation_strategies https://zenn.dev/hellorusk/articles/1c0bef15057b1d </description>
    </item>
  </channel>
</rss>
