Fork me on GitHub

Hermes接入本地Gemma4(Ollama)模型

安装Ollama和gemma4

下载安装ollama: https://ollama.com/
image
Context Length一定不能太低,上图4K是不行的,会报错,后面改为了128K

安装gemma4模型

https://ollama.com/library/gemma4

ollama run gemma4:12b

image

测试使用
image

安装Hermes

官网:https://hermes-agent.nousresearch.com/

#安装
irm https://hermes-agent.nousresearch.com/install.ps1 | iex
#配置
hermes setup

hermes配置model

#进入模型配置选项,选择Custom endpoint (enter URL manually)
hermes model

image
先查本机IP,11434为ollama端口,得出URL配置为 http://172.19.16.1:11434/v1
image

posted @ 2026-06-07 16:59  秋夜雨巷  阅读(147)  评论(0)    收藏  举报