2025年的春节,比烟花爆竹还“火”的一样东西就是DeepSeek的R1大模型。

前几天到湖州玩了几天。今天坐到电脑前的第一件事就是想亲自试试这个东西。先是在网页上聊了几句,感觉不过瘾。于是想自己安装在本地运行。

打开幽兰代码本,先安装Ollama。Ollama是一个开源的大模型推理软件。并且具有非常好的模型管理功能。
我先是使用Ollama官网的安装脚本,但是在下载软件包时出错:
geduer@ulan:~$ curl -fsSL https://ollama.com/install.sh | sh
>>> Installing ollama to /usr/local
[sudo] password for geduer:
>>> Downloading Linux arm64 bundle
curl: (28) Failed to connect to github.com port 443 after 129139 ms: Couldn't connect to server
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
值得说明的是,虽然脚本中的下载链接指向的是ollama.com:
"https://ollama.com/download/ollama-linux-${ARCH}.tgz${VER_PARAM}"
但其实会被重定向到github,所以上面的错误信息说无法连接到github。试了几次都不成功后,我换了一种方法,手工把文件下载下来,再复制到幽兰上。
然后wget https://ollama.com/install.sh把安装脚本下载到本地,然后略作编辑:
status "Installing ol

最低0.47元/天 解锁文章

3484

被折叠的 条评论
为什么被折叠?



