https://github.com/ZHO-ZHO-ZHO/ComfyUI-Qwen
Using Qwen-2 in ComfyUI
https://github.com/ZHO-ZHO-ZHO/ComfyUI-Qwen
Last synced: 4 months ago
JSON representation
Using Qwen-2 in ComfyUI
- Host: GitHub
- URL: https://github.com/ZHO-ZHO-ZHO/ComfyUI-Qwen
- Owner: ZHO-ZHO-ZHO
- License: gpl-3.0
- Created: 2024-06-11T14:53:59.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-09-20T21:27:47.000Z (7 months ago)
- Last Synced: 2024-12-09T05:42:58.841Z (4 months ago)
- Language: Python
- Size: 39.1 KB
- Stars: 94
- Watchers: 1
- Forks: 8
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-comfyui - **Qwen-2.5 in ComfyUI** - 2.5 in ComfyUI (All Workflows Sorted by GitHub Stars)
README

Qwen-2.5 in ComfyUI

## 项目介绍 | Info
- 将 [Qwen2.5](https://github.com/QwenLM/Qwen2.5) 模型引入到 ComfyUI 中,目前支持 Qwen2-Instruct 和 Qwen2.5(0.5B、1.5B、3B、7B、14B、32B、72B)-Instruct 全系列模型,速度快且性能强,中文表现很不错,可用于 生成/补全提示词 或畅聊人生!
- 版本:V2.0 支持全新 Qwen2.5,支持系统提示词,支持单/多轮对话双模式,支持中文输入自动并输出英文提示词
## 详细说明 | Features
- 节点:
- ⛱️Qwen2 ModelLoader:会自动下载模型(请保持网络畅通),Qwen2-7B-Instruct 约 16G(所需 VRAM > 12GB),Qwen2-72B-Instruct 约 160G(所需 VRAM > 24GB)
- ⛱️Qwen2:支持系统指令设置(System Instruction)- ⛱️Qwen2 Chat:支持系统指令设置(System Instruction)+ 多轮对话
- 节点示例:

- 上下文多轮对话:

## 参数说明 | Parameters
- model:接入模型
- tokenizer:分词器
- prompt:提示词
- system_instruction:系统指令## 安装 | Install
- 环境依赖要求:transformers>=4.40.0,手动升级:`pip uninstall -y transformers && pip install git+https://github.com/huggingface/transformers`
- 推荐使用管理器 ComfyUI Manager 安装(ON THE WAY)
- 手动安装:
1. `cd custom_nodes`
2. `git clone https://github.com/ZHO-ZHO-ZHO/ComfyUI-Qwen-2.git`
3. `cd custom_nodes/ComfyUI-Qwen-2`
4. `pip install -r requirements.txt`
5. 重启 ComfyUI- 输出节点可配合像[ComfyUI-Gemini](https://github.com/ZHO-ZHO-ZHO/ComfyUI-Gemini)中 ✨DisplayText_Zho 一样的任何接受文本的节点
## 工作流 | Workflow
### V2.0 工作流
[Qwen2.5 + Flux.1 Dev Story](https://github.com/ZHO-ZHO-ZHO/ComfyUI-Qwen/blob/main/QWEN2%20WORKFLOWS/QWen2.5%20%2B%20Flux.1%20Dev%20Story%E3%80%90Zho%E3%80%91.json)

### V1.0 工作流(兼容新版)
[Qwen2 + CosXL【Zho】](https://github.com/ZHO-ZHO-ZHO/ComfyUI-Qwen-2/blob/main/QWEN2%20WORKFLOWS/Qwen2%20%2B%20CosXL%E3%80%90Zho%E3%80%91.json)

[Qwen2 Chat【Zho】](https://github.com/ZHO-ZHO-ZHO/ComfyUI-Qwen-2/blob/main/QWEN2%20WORKFLOWS/Qwen2%20Chat%E3%80%90Zho%E3%80%91.json)

## 更新日志 | Changelog
20240921
- V2.0: 新增支持全新 Qwen2.5 系列模型 + 故事化工作流)(+Flux Dev)
20240611
- V1.0: 支持系统提示词,支持单/多轮对话双模式,支持中文输入自动并输出英文提示词
- 创建项目
## Stars
[](https://star-history.com/#ZHO-ZHO-ZHO/ComfyUI-Qwen-2&Timeline)
## 关于我 | About me
📬 **联系我**:
- 邮箱:[email protected]
- QQ 群:839821928🔗 **社交媒体**:
- 个人页:[-Zho-](https://jike.city/zho)
- Bilibili:[我的B站主页](https://space.bilibili.com/484366804)
- X(Twitter):[我的Twitter](https://twitter.com/ZHO_ZHO_ZHO)
- 小红书:[我的小红书主页](https://www.xiaohongshu.com/user/profile/63f11530000000001001e0c8?xhsshare=CopyLink&appuid=63f11530000000001001e0c8&apptime=1690528872)💡 **支持我**:
- B站:[B站充电](https://space.bilibili.com/484366804)
- 爱发电:[为我充电](https://afdian.com/a/ZHOZHO)## Credits
[Qwen2](https://github.com/QwenLM/Qwen2)