Files
tldr/pages.zh/common/ollama.md

37 lines
678 B
Markdown
Raw Permalink 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.

# ollama
> 一个大型语言模型运行器。
> 可用模型列表,请查看 <https://ollama.com/library>。
> 更多信息:<https://github.com/ollama/ollama>。
- 启动运行其他命令所需的守护进程:
`ollama serve`
- 运行一个模型并与之聊天:
`ollama run {{model}}`
- 使用单个提示运行模型:
`ollama run {{model}} {{prompt}}`
- 列出已下载的模型:
`ollama list`
- 拉取/更新特定模型:
`ollama pull {{model}}`
- 列出正在运行的模型:
`ollama ps`
- 删除一个模型:
`ollama rm {{model}}`
-`Modelfile` 创建一个模型 ([f])
`ollama create {{new_model_name}} -f {{path/to/Modelfile}}`