ollama/ollama在自己电脑上本地跑各种开源大模型
Ollama 是一个让普通电脑也能跑大模型(也就是像 ChatGPT 那样的 AI 程序)的工具。一般用大模型都得连到别人服务器上,你的数据会传出去;Ollama 让模型直接装在你自己的电脑里运行,聊天内容不出本机,隐私更有保障。它还支持把模型放到云端用,本地、云端都能选。
装好之后,它会引导你选一个模型开始聊,或者把 Ollama 接到你已经在用的应用上,比如 Claude Code(一个写代码的 AI 工具)、OpenClaw、Codex、Copilot 这些。它还提供了接口(REST API,就是让别的程序调用它的通道),方便开发者把自己写的程序接进来。能用的模型包括 Kimi、GLM、MiniMax、DeepSeek、gpt-oss、Qwen、Gemma 等。
开发者用 Claude Code、Codex、Copilot CLI、OpenCode 等编程工具时,把它们接到 Ollama 上,用本地模型帮忙写代码。
用 OpenClaw 把 Ollama 变成个人助理,在 WhatsApp、Telegram、Slack、Discord 等聊天软件里使用。
普通用户在自己电脑上运行 Gemma 4 等模型,直接对话,不用把内容发到外面。
开发者通过 REST API 或 Python、JavaScript 库,把本地模型接进自己的程序里。
案例来自项目官方说明里举的例子和演示,不是本站编的。
用之前要准备:要有一台电脑(支持 macOS、Windows、Linux,也可用 Docker);本地跑大模型通常需要一定的内存和显卡,具体看选的模型;要用接口接程序得会一点编程
下载链接直接指向 GitHub 官方发布页的文件,不经过本站。国内下载 GitHub 文件可能偏慢。
也可以用命令装:
curl -fsSL https://ollama.com/install.sh | sh irm https://ollama.com/install.ps1 | iex pip install ollama npm i ollama 命令原样摘自项目官方说明,本站没有改动。
随便用、随便改,也能用在公司产品里,只要保留原作者的版权声明。
以上是对许可证的通俗解释,不是法律意见;正式商用以官方仓库的 LICENSE 文件为准。
项目本身开源,采用 MIT 许可,可以免费使用。模型下载和运行都在自己电脑上,不涉及付费订阅。
有。模型越大越吃内存和显卡,比如新出的 Inkling 2 Mini 在 Mac 上大约要 20GB 空间才跑得动。
能,提供 Windows 安装包。不过最新版本里的 Inkling 2 Mini 目前只支持 Apple 芯片,电脑版要等后续版本。
可以运行 Kimi、GLM、DeepSeek、Qwen 等模型,这些模型本身支持中文对话。
本地运行模型时数据留在自己电脑上,说明里强调可以完全私密地使用。
下面是海外开发者在 Hacker News(国外程序员常去的技术论坛)上讨论这个项目的真实评论,按讨论热度挑选,中文由 AI 翻译,点「看原文」可以对照英文。
So many here are trashing on Ollama, saying it's "just" nice porcelain around llama.cpp and it's not doing anything complicated. Okay. Let's stipulate that. So where's the non-sketchy, non-for-profit equivalent? Where's the nice frontend for llama.cpp that makes it trivial for anyone who wants to play around with local LLMs without having to know much about their internals? If Ollama isn't doing anything difficult, why isn't llama.cpp as easy to use? Making local LLMs accessible to the masses is an essential job right now—it's important to normalize owning your data as much as it can be normalized. For all of its faults, Ollama does that, and it does it far better than any alternative. Maybe wait to trash it for being "just" a wrapper until someone actually creates a viable alternative.
this looks very awesome. can someone tell me why there is no chatter about this? is there something else out there that blows this out of the water in terms of ease of use and access to sample many LLM's ?
This is going to sound like a troll, but it's an honest question: Why do people use Ollama over llama.cpp? llama.cpp has added a ton of features, is about as user-friendly as Ollama, and is higher-performance. Is there some key differentiator for Ollama that I'm missing?
Ollama needs competition. I’m not sure what drives the people that maintain it but some of their actions imply that there are ulterior motives at play that do not have the benefit of their users in mind. However such projects require a lot of time and effort and it’s not clear if this project can be forked and kept alive.
Ollama is sketchy enough that I run it in a VM. Which is odd because it would probably take less effort to just run Llama.cpp directly, but VMs are pretty easy so just went that route. When I see people bring up the sketchiness most of the time the creator responds with the equivalent of shrugs, which imo increases the sketchiness.
llama.cpp has supported vulkan for more than a year now. For more than 6 months now there has been an open PR to add vulkan backend support for Ollama. However, Ollama team has not even looked at it or commented on it. Vulkan backends are existential for running LLMs on consumer hardware (iGPUs especially). It's sad to see Ollama miss this opportunity.
数据来自 GitHub,本站每周核对一次,最近核对于 2026-11-22。