Files
nexus/wiki/sources/在-Ubuntu-安装-Ollama-并运行-Qwen2.5-Coder-7B.md
2026-04-18 16:02:38 +08:00

42 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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
- (暂无)