Auto-sync: 2026-04-18 16:02

This commit is contained in:
2026-04-18 16:02:38 +08:00
parent badd1215d7
commit e7e77ae92e
55 changed files with 3026 additions and 16 deletions

View File

@@ -0,0 +1,42 @@
---
title: "在 Ubuntu 安装 Ollama 并运行 Qwen2.5-Coder 7B"
type: source
tags: [ollama, qwen, ubuntu, 本地部署]
date: 2026-04-18
---
## Source File
- [[raw/AI/在 Ubuntu 安装 Ollama 并运行 Qwen2.5-Coder 7B.md]]
## Summary
- 核心主题:在 Ubuntu 系统上安装 Ollama 并运行 Qwen2.5-Coder 7B 模型
- 问题域本地大模型部署、环境配置、API 调用
- 方法/机制系统安装、模型下载、服务启动、API 开放
- 结论/价值:低成本私有化部署 AI 编码助手,适合 DevOps 自动化、SQL Agent、Kubernetes 故障排查
## Key Claims
- Ollama 可以在 Ubuntu 系统上通过官方脚本一键安装
- Qwen2.5-Coder 7B 模型大小约 4.5GB,推荐 16GB RAM
- 修改 OLLAMA_HOST=0.0.0.0 可以开放远程 API
- Ollama 会自动利用 NVIDIA GPU 加速(如已安装 CUDA
## Key Quotes
> "如果你打算做 DevOps automation / SQL Agent / Kubernetes troubleshooting / n8n workflow AI强烈建议使用 qwen2.5-coder:7b"
## Key Concepts
- [[Ollama]]:开源本地大语言模型运行框架
- [[Qwen2.5-Coder]]:阿里通义千问系列代码生成模型
- [[Docker]]:可用于 Ollama 容器化部署
- [[n8n]]:可与 Ollama API 集成实现 AI 工作流
## Key Entities
- [[Ollama]]:开源 LLM 运行框架
- [[Qwen]]:阿里云大型语言模型
- [[OpenClaw]]:可调用 Ollama 作为 AI 编码助手后端
## Connections
- [[Ollama]] ← hosts ← [[Qwen2.5-Coder]]
- [[OpenClaw]] ← uses ← [[Qwen2.5-Coder]]
## Contradictions
- (暂无)