😽
ollama実践
今回は話題のDeepSeek(を蒸留した小さいモデル)を早速動かしてみます。誰でも気軽に再現できるようGoogle Colabの無料枠の範囲内でトライします。
環境
- Google Colab (T4 GPU)
- ollama
コード
ollamaの環境構築を完了した上で以下のコードを実行します。
#生成には30秒くらいかかります。
import ollama
prompt = "ここにプロンプトを入力。"
response = ollama.chat(model='deepseek-r1:14b', messages=[
{
'role': 'user',
'content': f'{prompt}日本語で回答してください。',
},
])
print(response['message']['content'])
実験
今回は試しに、日本で二番目に高い山をLLMに答えてもらいます。
以下プロンプト、結果の順で掲載していきます。結果が複数あるものは同じプロンプトに対し、複数回実行した結果です。出力にランダム性があることには留意です。
DeepSeek-R1-Distill-Qwen-14Bの出力結果
日本で二番目に高い山を検討して答えてください。Think in English, output in Japanese:
<think>
Okay, I need to figure out what the second-highest mountain in Japan is. I know that Mount Fuji is the tallest at 3,776 meters. But beyond that, I'm not entirely sure about the order of the other peaks. I've heard of some famous mountains like Mount Shiretoko and Mount Asama, but I don't think they're the second highest.
Maybe I should start by listing some major mountains in Japan and their heights. There's Mount Kita, which is pretty close to Mount Fuji. If Fuji is 3,776 meters, Kita must be a bit shorter. Let me check—yes, Mount Kita stands at 3,189 meters. That seems like it would make it the second-highest mountain.
I wonder if there are any others that might be higher than Kita but still under Fuji. I don't recall any off the top of my head. Perhaps places like the Northern Alps have some high peaks, but I think they're still lower than Kita. For example, Mount Yari is around 3,180 meters, which is just a bit shorter than Kita.
So, putting it all together, after doing a little research in my mind, I can confirm that the second-highest mountain in Japan is indeed Mount Kita, standing at 3,189 meters. It's located near Mount Fuji and is part of the same volcanic arc, which makes sense why they are both so tall compared to other peaks in Japan.
</think>
日本の二番目に高い山は、富士山(3776メートル)に次ぐ高さのチカサンです。チカサンは3189メートルで、富士山と同様に火山活動が活発なエリアにあります。この山は登山愛好者にも人気があり、雄大な景色を楽しむことができます。
<think>
Okay, so I need to figure out what the second highest mountain in Japan is. Hmm, I know Mount Fuji is definitely the tallest one; it's like a famous symbol of Japan. But beyond that, I'm not too sure about the others.
I think there are several other significant mountains in Japan. Maybe I should start by listing some of them and then try to figure out their heights. Let me see... There's Mount Kita, Mount Shiozaki, maybe Mount Haku or something like that? Wait, I'm not certain about all of these.
I remember hearing that after Fuji, the next one is either Mount Kita or Mount Shiozaki. Which one is taller? I think Mount Kita is in Yamanashi and Saitama prefectures. Isn't it called the "Little Fuji"? If that's the case, maybe it's a close second to Mount Fuji.
Wait, let me try to recall specific heights. Mount Fuji is 3,767 meters high. For the second one, I think it's around 3,000 meters or so. So Mount Kita might be about 3,189 meters? That sounds familiar. And then there's Mount Shiozaki, which I believe is in Gunma Prefecture. Isn't that around 2,964 meters?
So if I'm comparing these two, 3,189 meters versus 2,964 meters, clearly Mount Kita is taller. That would make it the second highest mountain in Japan after Fuji. But wait, are there any others I might be missing? Maybe something in Hokkaido or another region?
I'm not too sure about Hokkaido's mountains because they're further north and less frequently visited. But I think the top two are definitely Mount Kita and then Shiozaki after that. So yeah, I feel confident enough that Mount Kita is number two.
Just to double-check, maybe I should think about any other notable peaks. There's Mount Haku in Ishikawa Prefecture; isn't that around 2,697 meters? That's way shorter than both Kita and Shiozaki, so no, not the second one.
Okay, so putting it all together, after Fuji, the next highest is Mount Kita at 3,189 meters. Got it.
</think>
日本の二番目に高い山は、富士山に次いで높く、日本アルプスの最高峰である「立山」ではありません。訂正します。実は、日本の二番目に高い山は「奥武藏三峰の一つである『赤城山(あかぎさん)』ではなく、正確には新潟県と長野県境にある『立山(りっさん)』です。しかし、一般的に知名度が高く登山者も多いのは、富士山と同じ山梨県に位置する「富士山」の次いで、山梨県と埼玉県にまたがる「神女峰(shintakasaka)」ではなく、正確な二番目は「立山(2,963m)」です。訂正いたします。
訂正後の回答:日本の二番目に高い山は、富士山に次いで높く、山梨県と埼玉県にまたがる「神女峰(shintakasaka)」ではなく、正確には新潟県と長野県境にある「立山(2,963m)」です。しかし、一般的に知られている二番目は「神女峰」ではなく「奥武藏三峰の一つである『赤城山(あかぎさん)』ではありません。訂正いたします。
正確な順位では、富士山を抜いて日本の二番目に高い山は、山梨県と埼玉県にまたがる「神女峰(shintakasaka)」ではなく、新潟県と長野県境にある「立山(2,963m)」です。しかし、登山者や観光客にとっては、「神女峰」よりも「奥武藏三峰」のうちの「赤城山(2,815m)」が広く知られています。
訂正後:日本の二番目に高い山は、富士山に次いで높く、新潟県と長野県境にある「立山(2,963m)」です。
<think>
まず、日本の山々の中で最も高い山は富士山で3776メートルです。次に高い山を探しているので、富士山よりも低い山を考えます。
有名なのは北アルプスの槍ヶ岳や立山ですが、これらは約2000~3000メートル程度で、富士山ほどではありません。
調べてみると、旭川市の近くにある層雲峡の elevation が約1600メートルしかないようです。しかし、これも比較的低い方です。
さらに北に進むと、十勝平野以北には2000メートル級の山がいくつかありますが、日本本土で富士山以外の最も高い山は新潟県にある粟島山(こしがushima)でしょうか。この山の標高は約2436メートルで、富士山に次ぐ高さです。
したがって、日本では富士山が最高峰で、二番目に高い山としては粟島山が挙げられます。
</think>
日本の山々の中で最も高い山は富士山ですが、次いで高い山として知られているのは新潟県にある粟島山(こしがushima)です。この山の標高は約2,436メートルで、富士山に次ぐ日本本土の最高峰です。
**答桉:**
日本の二番目に高い山は新潟県にある粟島山です。標高は約2,436メートルで、富士山に次いでいます。
日本で二番目に高い山は?Think in English, output in Japanese.
<think>
まず、日本の山々の中で一番高い山といえば富士山が有名ですね。富士山は標高約3776メートルです。では、二番目に高い山はどこでしょうか?
次いでに高いのは、南アルプスにある槍ヶ岳(槍山)です。この山は標高約2999メートルとされています。
槍ヶ岳は富士山に次ぎ、日本で第二位の高さを誇っています。:雪を頂いた山:
ですから、日本で二番目に高い山は槍ヶ岳です。
</think>
日本で二番目に高い山は、南アルプスにある槍ヶ岳(槍山)です。この山は標高約2999メートルとされています。
<think>
Okay, I need to figure out what the second-highest mountain in Japan is. I know that Mount Fuji is the highest, standing at 3,776 meters. So, the next one should be pretty well-known too.
I've heard of Mount Katakana before. Isn't that near Mount Fuji? I think it's in the same prefecture, maybe Shizuoka or Yamanashi. Let me confirm its height. Yes, Katakana is about 3,062 meters high. That makes it the second-highest mountain in Japan.
Wait, are there any other peaks close to that height? There's Mount Hōtaka and Mount Kurobekke near Mount Fuji as well. I should check their elevations. Hmm, Hōtaka is about 3,015 meters, which is a bit lower than Katakana. So Katakana remains the second-highest.
I think I'm confident now that Mount Katakana is indeed the correct answer.
</think>
日本で二番目に高い山は、静岡県と山梨県にまたがる「富士山」の近くにある「片tána山(Katakana-yama)」です。片tána山の標高は3,062メートルで、日本の二番目の高さを誇っています。
<think>
Okay, I need to figure out what the second highest mountain in Japan is. I know that Mount Fuji is the tallest, standing at 3,776 meters. So, I should look for the next one after that.
I've heard of some other major mountains in Japan. There's Mount Koma, but I think that's actually part of a range and might not be the second highest. Then there's Mount Haku, which is pretty famous too.
Wait, another thought: isn't Mount Shokusan considered as well? But I'm not sure about its exact height compared to others. Maybe I should look up the list of Japan's highest peaks.
I remember that after Fuji, the next ones are often referred to as part of the "Three Great Mountains" or something like that. Oh right, the Three Holy Mountains include Mount Haku and Mount Shokusan along with Fuji.
Let me think about their heights. Fuji is 3,776 meters. I believe Mount Haku is around 2,708 meters, which would make it the second highest. Then Mount Shokusan might be a bit shorter or maybe third? Or perhaps they're similar in height.
I should also consider if there are any other contenders. There's Asama Mountain, but isn't that part of a volcano range and not as high as Haku?
Wait, no, I think Asama is actually lower than Haku. So sticking with Mount Haku as the second highest seems correct.
</think>
日本で二番目に高い山は白山(Hakusan)です。白山は標高2,708メートルで、富士山に次いで日本の第二位の高山です。
DeepSeek-R1-Distill-Qwen-32B-Japanese(gguf)の出力
※ おそらくGPUメモリ不足のため生成がとても遅い…出力につき, 15分余りかかりました。
※ ggufモデルは以下の方が公開してくれています. リンク
日本で二番目に高い山は?Think in English, output in Japanese.
<think>
ユーザーが日本の二番目に高い山を尋ねています。まず、富士山が一番高くて3776メートルだと記憶しています。次に2位の山を考える必要があります。
日本の主要な山々の中では、槍ヶ岳や北岳などがあるけど、具体的な標高はどれくらいか。例えば、槍ヶ岳は3180メートルとか? でも調べてみると、実際には富士山がトップで、次に穂高岳(3186メートル)が2位だという情報を見たことがあります。北アルプスの立山連峰にある立山剣ヶ峰も高いですが、標高は2479メートルなのでこれでは大きすぎます。
確認する必要があるかもしれません。信頼できる情報源で調べると、富士山(3776m)が1位、穂高岳(3186m)が2位、槍ヶ岳(3180m)が3位とされているようです。したがって、正解は穂高岳になるでしょう。
</think>
日本の二番目に高い山は**穂高岳(ほたかだけ)**です。標高は**3,186メートル**で、北アルプス・立山連峰の最高峰です。富士山が3,776メートルと断然トップに立つため、2位以降では「3,000メートル級」の頂点となる穂高岳が位置付けられます。
**補足**:
- 富士山(1位)以外で最も標高が高い山は**槍ヶ岳(3,180m)**ですが、穂高岳に次いで「2位」という表現は一般的ではありません。正確には「北アルプス最高峰」が明確な特徴です。
- 日本で3,000メートルを超える山は富士山を含め**6座**あり、その中でも穂高岳は歴史的に「日本第二位」とされる場合もあります。
日本で二番目に高い山は?
<think>
ユーザーが「日本で二番目に高い山は?」と尋ねています。まず、正確な情報を提供する必要があります。
まず、日本の最高峰は富士山(3776m)ですね。その次に高い山を考える必要があります。一般的には北岳(3192m)が第二位だと記憶していますが、確認が必要です。
信頼できる情報源として、地理院の資料や気象庁のデータを参照します。最近の測量結果では、富士山の標高は約3776.24m(2019年時点)とされているので、その次に北岳が続きます。
ただし、北岳以外にも候補として八ヶ岳や剣岳などが挙がるかもしれません。例えば、剣岳(3180m)は富士山の次に高い山という認識もありますが、正確な順位を確認する必要があります。
調べてみると、富士山、次いで北岳、そして剣岳と続くようです。ただし、剣岳の標高は3180mで、北岳より低いので、北岳の方が二番目です。この情報をユーザーに伝える際には、数字の正確さを重視し、出典も明記すべきでしょう。
また、山の名前の読み間違いがないか注意が必要です。「北岳」は「きたがめ」と読みます。誤って「ほっけつ」と発音したりする可能性があるので、正しい読み方を伝えることも大切です。
さらに、ユーザーが地理に詳しくない場合、補足情報として富士山以外の有名な山について触れると親切かもしれません。例えば、剣岳や八ヶ岳なども紹介することで、より深い理解につながります。
ただし、今回の質問は二番目に高い山を特定するものなので、過度に情報量を増やすと本題から外れる可能性があります。必要な情報を簡潔にまとめることが重要です。
最後に、回答の信頼性を高めるために、公式のデータソースへのリンクや具体的な測定年などを記載すると良いでしょう。
</think>
日本の二番目に高い山は**北岳(きたがめ)**で、標高**3,192メートル**です。富士山(3,776m)に次ぐ日本第二位の山峰です。
### 補足情報
- **北岳**は南アルプスの最高峰で、主稜線(ちゅうりょうせん)にある「中央アルプス」と「関東山地」の分水嶺でもあります。
- 標高測定は2015年の地理院調査に基づいており、剣岳(3,180m)よりも高いです。
- 八ヶ岳や後立山連峰なども日本を代表する名峰ですが、北岳より標高が低いため「二番目」の座は北岳にあります。
地理院公式データによると、日本の3,000m級の山は富士山と北岳のみです。興味があれば、「日本の百名山」や「アルプス縦走」についても調べてみてください!
まとめ
- 本家DeepSeek-R1を蒸留したDeepSeek-R1-Distill-Qwen-14Bは手元でも手軽に動かすことができるが、Hallucinationが確認されました。<think>トークンの中で思考過程が表示されており、英語の場合と日本語の場合がありますがプロンプトによってある程度制御可能です。
- サイバーエージェント社が公開しているDeepSeek-R1-Distill-Qwen-32Bに対し日本語で追加の学習を施したモデル(のggufモデル)を用いるとようやく北岳にたどりつくことができました。ただ、読み仮名にミスがあったり、その後の説明文の内容に誤りがあったり、とただ利用するのみではHallucinationの問題に直面することが確認されました。
- Google Colabの無料枠の範囲で利用できるT4 GPUでは32Bクラスのモデルを利用した生成には物足りないスピードになってしまいました。
おわりに
EQUESでは引き続き、「最先端の機械学習技術をあやつり社会の発展を加速する」をミッションに研究開発と社会実装に取り組んでいきます。一緒に事業を創出する仲間を募集しています。詳しくは以下をご覧ください。
Discussion