清夏晚风

01.运行大模型

简介:在各平台安装ollama后,即可开始运行大模型。
更新时间:2024年10月9日

Windows

在Windows上使用ollama运行模型

按住Win键+X键,打开菜单,选择终端管理员

Windows_Win+X菜单.png

输入命令,回车执行

1
ollama run <模型名:标签>

ollama_run.png

其中 ollama run 为命令主体
codegeex4 为模型名称
用于分割参数
9b 为模型标签之一

输出以下内容即表示准备完成:

1
>>> Send a message (/? for help)

此时即可和大模型对话

补充命令(/?输出帮助信息):

1
2
3
4
5
6
7
8
9
10
11
12
>>> /?
Available Commands:
/set Set session variables
/show Show model information
/load <model> Load a session or model
/save <model> Save your current session
/clear Clear session context
/bye Exit
/?, /help Help for a command
/? shortcuts Help for keyboard shortcuts

Use """ to begin a multi-line message.
  • Title:
  • Author: 清夏晚风
  • Created at : 2026-01-13 16:48:23
  • Updated at : 2026-01-13 16:48:23
  • Link: https://blog.kimikkorow.eu.org/AI相关工具/运行框架/Ollama/01.运行大模型/
  • License: This work is licensed under CC BY-NC-SA 4.0.