980 B
980 B
title, type, tags, last_updated
| title | type | tags | last_updated | ||||
|---|---|---|---|---|---|---|---|
| Ollama | entity |
|
2026-04-13 |
Overview
Ollama是本地大语言模型运行平台,支持一键部署和管理LLM。
Attributes
| 属性 | 值 |
|---|---|
| 安装方式 | 官方安装脚本 |
| 默认端口 | 11434 |
| 默认监听 | 127.0.0.1 |
| 模型存储 | ~/.ollama/models |
支持的模型
| 模型 | 大小 | 用途 |
|---|---|---|
| qwen2.5-coder:7b | 4.6GB | 代码生成 |
| qwen2.5-coder:3b | ~2GB | 轻量代码生成 |
API接口
- REST API: http://localhost:11434
- API列表: http://localhost:11434/api/tags
- 聊天: http://localhost:11434/api/chat
远程访问配置
编辑/etc/systemd/system/ollama.service:
Environment="OLLAMA_HOST=0.0.0.0"
然后重启服务使其他机器可访问。