deepseek使ってみた
最近話題の
すでにkono先生が環境を用意してくれてる!らくできる!
/mnt/ie-virsh/singularity/deepseekにあるらしい.
code:terminal
amane% ls /mnt/ie-virsh/singularity/deepseek
README.md deepseek.1.sh deepseek.def deepseek.sh deepseek.sif
readmeを見る
code:terminal
amane% cat /mnt/ie-virsh/singularity/deepseek/README.md
# deepskeek singularity image
singularity shell --nv --shell /bin/zsh /mnt/ie-virsh/singularity/deepseek/deekpseek.sif
% ollama serve >& ers
% ollama run deepseek-r1:8b
実行し終わったあとは、ollama serverを fg で止めてから抜けること
# build
singularity build --fakeroot deekpseek.sif deekpseek.def
singularity shell --nv --shell /bin/zsh /mnt/ie-virsh/singularity/deepseek/deekpseek.sif
タイポ?deepseek.sifでは?権限ないから書き換えられないや
singularity shell --nv --shell /bin/zsh /mnt/ie-virsh/singularity/deepseek/deepseek.sif
で実行.
この時点でollamaが起動してるわけではないので,詳しいことはdefファイルのほうみたらわかる
ollama サーバーを起動する
code:Singularity環境内
ollama serve >& ers
readmeをパクってログはersにだすようにしつつバックグラウンドで起動する.
code:terminal
(Singularity)+amane+k248672 jobs
とすると動いているのがわかる.
readmeにあるfgで抜けろは,これだとおもう?全然知らないコマンドだった.バックグラウンドで実行してたやつをフォアグラウンドに戻せるらしい.
抜けるとき
code:terminal
fg %1
code:Singularity環境内
ollama run deepseek-r1:8b
code:terminal
>> do you know chiikawa?
<think>
Alright, the user asked about "chiikawa." I'm not familiar with that term, so I should check what it refers to.
Maybe it's a name, a brand, or something related to Japanese culture since "chi" and "kawa" might have meanings in
Japanese. Let me think: "chi" could relate to blood or life force, and "kawa" means river, so perhaps it's related
to some traditional concept.
I should look up if "chiikawa" is a known term. If not, I'll inform the user that I can't find any information on
it and offer help with something else. That way, I ensure the user gets value from the conversation.
</think>
It seems like "chiikawa" might be related to a specific concept, name, or term that I am not familiar with,
especially in Japanese culture or language. Could you provide more context or clarify what you're referring to? If
it's a name or a specific term, I'd be happy to help look into it further!
おおお,早い.賢さはよくわからん.
jobsしても一覧にでない,けどプロセス見るとある.みたいなパターンがある.なんで?
jobsしてもないけど,ps aux | grep ollamaだと見れる
プロセス名からkillしておく
pkill -f "ollama serve"
コンテナ抜けたら全部なかったことにされないのかな?