ollama国内下载慢的问题

梯子挂好, 走代理 🙂

vim ~/.zshrc

# 添加
# proxy v2
export http_proxy="http://127.0.0.1:10809"
export ftp_proxy="http://127.0.0.1:10809"
export https_proxy="http://127.0.0.1:10809"
export all_proxy="http://127.0.0.1:10809"
export no_proxy="localhost, 127.0.0.1,::1"

# 刷新
source ~/.zshrc

检查下

echo $http_proxy
curl www.google.com

没问题就可以直接用官方下载了

curl -fsSL https://ollama.com/install.sh | sh

image


本地部署deepseek

下载合适的模型,具体看官方文档。我是3050ti的显卡, 显存只有4g,下的是deepseek-r1:8b的模型。更新了下NVIDIA显卡驱动。本地跑起来吃显存, 大模型得上高性能的计算机,本地部署就图个乐。

具体参考 https://www.cnblogs.com/dechinphy/p/18699554/deepseek

image

image

posted @ 2025-02-17 06:36  _slacr  阅读(493)  评论(0)    收藏  举报