ComfyUI 自定义节点,集成 Gemma 4 多模态大模型,支持文本生成、图像理解与视频理解。
| 节点 | 说明 |
|---|---|
| Gemma 4 Multimodal | 统一节点,支持纯文本、图像和视频输入 |
| Gemma 4 Text Generation | 纯文本生成 |
| Gemma 4 Image Understanding | 单图或多图(序列帧)理解 |
| Gemma 4 Video Understanding | 视频帧理解,支持帧采样 |
从 ModelScope 下载模型,放置到以下目录:
ComfyUI/models/LLM/gemma-4-12b-it/
目录结构
models
|- LLM
|- gemma-4-12b-it
|- chat_template.jinja
|- config.json
|- configuration.json
|- generation_config.json
|- model.safetensors
|- processor_config.json
|- README.md
|- tokenizer.json
|- tokenizer_config.json
- 将本仓库克隆到
ComfyUI/custom_nodes/目录 - 安装依赖:
pip install -r requirements.txt - 重启 ComfyUI
Apache-2.0
