Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ollama 相关 #1223

Open
cisen opened this issue Feb 9, 2025 · 0 comments
Open

ollama 相关 #1223

cisen opened this issue Feb 9, 2025 · 0 comments
Labels

Comments

@cisen
Copy link
Owner

cisen commented Feb 9, 2025

创建模型
ollama create 用于从 Modelfile 创建模型。

ollama create mymodel -f ./Modelfile
拉取模型
ollama pull llama3.2
此命令也可以用于更新本地模型。只有差异部分会被拉取。

删除模型
ollama rm llama3.2
复制模型
ollama cp llama3.2 my-model
多行输入
对于多行输入,你可以用 """ 包裹文本:

"""Hello,
... world!
... """
I'm a basic program that prints the famous "Hello, world!" message to the console.
多模态模型
ollama run llava "What's in this image? /Users/jmorgan/Desktop/smile.png"
The image features a yellow smiley face, which is likely the central focus of the picture.
将提示作为参数传递
$ ollama run llama3.2 "Summarize this file: $(cat README.md)"
Ollama is a lightweight, extensible framework for building and running language models on the local machine. It provides a simple API for creating, running, and managing models, as well as a library of pre-built models that can be easily used in a variety of applications.
显示模型信息
ollama show llama3.2
列出你计算机上的模型
ollama list
列出当前已加载的模型
ollama ps
停止当前正在运行的模型
ollama stop llama3.2
启动 Ollama
ollama serve 用于在不运行桌面应用程序的情况下启动 Ollama。

@cisen cisen added the AI label Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant