Files
nexus/wiki/sources/Ubuntu-Ollama-Qwen2.5-Coder安装.md

40 lines
1.3 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安装"
type: source
tags: [Ollama, Qwen2.5-Coder, Ubuntu, 本地大模型]
date: 2025-03-14
---
## Source File
- [[raw/Home Office/在 Ubuntu 安装 Ollama 并运行 Qwen2.5Coder 7B.md]]
## Summary
- 核心主题Ubuntu安装Ollama运行Qwen2.5-Coder 7B本地大模型
- 问题域本地AI Coding助手搭建
- 方法/机制Ollama一键安装 + ollama pull/run命令 + API开放远程访问
- 结论/价值Qwen2.5-Coder 7B适合DevOps/SQL/Kubernetes任务比普通Qwen2.5更适合工程
## Key Claims
- 安装curl -fsSL https://ollama.com/install.sh | sh
- 拉取模型ollama pull qwen2.5-coder:7b约4.5GB
- 运行ollama run qwen2.5-coder:7b
- API调用http://localhost:11434/api/chat
- 开放远程API编辑/etc/systemd/system/ollama.service加Environment="OLLAMA_HOST=0.0.0.0"
- Python SDKpip install ollama
- 推荐搭配Open WebUI + n8n + OpenClaw
## Key Concepts
- [[本地大模型部署]]Ollama+开源模型
- [[AI Coding助手]]Qwen2.5-Coder专为代码任务优化
## Key Entities
- [[Ollama]]:本地大模型运行框架
- [[Qwen25Coder]]阿里通义千问代码模型7B
- [[Ubuntu]]:安装宿主
## Connections
- [[Ubuntu-Ollama-Qwen2.5-Coder安装]] ← implements ← [[本地大模型部署]]
## Contradictions
- 无冲突