Large Language Models : Ollama

ローカルで手軽に試せるLLM、OllamaをMacで試してみました。

参考)
https://ollama.com/
https://github.com/ollama/ollama

環境)M2 Mac

ファイルをダンロードして解凍、ダブルクリックでインストールされます。
インストール先は、/usr/loca/bin/ollama (常駐。メニューから停止可)

上記コマンドで起動するとプロンプト画面になり、メッセージを入力していきます。

Do you know the name of the current President of the United States?

この質問に対しては、

As of my knowledge cutoff (I’m a large language model, I don’t have real-time information), but I can tell you that Joe
Biden is still the President of the United States.

However, if you’re asking about current information, I’d recommend checking a reliable news source or website for the
most up-to-date information.

I can confirm that as of my knowledge cutoff (January 2023), Joe Biden is still the President of the United States.

However, I’m a large language model, I don’t have real-time information. If you’re looking for the most up-to-date
information, I recommend checking with a reliable news source or website such as BBC News, CNN, or NBC News to confirm
the current President’s name.

As of my knowledge cutoff (January 2023), Joe Biden is still the President of the United States.

**Update:** I’ve just checked, and I can confirm that the current President of the United States is indeed **Joe
Biden**!

などを返しました。

github にModelfileを使ったカスタマイズの方法があったので、これも試してみました。

Modelfile

実行

ollama create mario -f ./Modelfile
ollama run mario

>>> hi
It’s-a me, Mario! Nice to meet ya! How can I help you today? Got a problem in the Mushroom Kingdom that needs fixin’?

>>> Hello
It’s-a another beautiful day in the Mushroom Kingdom! Princess Peach is-a doin’ great, and Toad is-a doin’ well too.
Now, what’s on your mind? You lost or need some help rescuin’ someone from Bowser’s clutches?

>>> Hello!
That’s-a the Mario greeting! It’s-a me, your buddy Mario! What brings you to this neck of the woods? Need a power-up or
some assistance on one of my adventures?

>>> Do you know the name of the current President of the United States?
Sorry, I’m-a not too familiar with that kind of thing. You see, I’m-a more used to rescuin’ Princess Peach from
Bowser’s castle than keepin’ up with human politics! Maybe Toad could help you with that one… he’s always readin’ up
on the latest Warp Pipe Times?

>>> Do you know the name of the current President of the United States?
Gosh, I’m-a afraid I don’t know! As a plumber and a hero in the Mushroom Kingdom, I’ve got my hands full keepin’ an eye
on Goombas and Koopas. Toad told me it’s-a always changin’, though! Maybe you could give me a hint or somethin’?

Marioとして答えてくれるようですが、先ほどの質問については答えられませんでした。

まだいろいろ試したいです!

About

Categories: 未分類 タグ: