官方网站:Ollama
Ollama菜鸟教程:Ollama 教程 ~| 菜鸟教程
使用教程
使用Open WebUI在浏览器中访问Ollama(类似DeepSeek官网效果)
常用命令
1、查看帮助。
ollama --help
返回
Large language model runner
Usage:
ollama [flags]
ollama [command]
Available Commands:
serve Start ollama
create Create a model from a Modelfile
show Show information for a model
run Run a model
stop Stop a running model
pull Pull a model from a registry
push Push a model to a registry
list List models
ps List running models
cp Copy a model
rm Remove a model
help Help about any command
Flags:
-h, --help help for ollama
-v, --version Show version information
Use "ollama [command] --help" for more information about a command.
2、列出本地已经下载的模型。
ollama list
3、运行模型。
模型仓库:Ollama Search
从模型仓库找到所需模型,上面有对应的运行命令。例如:
ollama run deepseek-r1:7b
如果模型不存在,会自动下载。
4、查看模型详细信息。
ollama show deepseek-r1:7b
5、删除模型。
ollama rm deepseek-r1:7b