{ "dependencies": { "check_state": "unchecked", "checked_at": null, "missing": [], "model_locations": "待目标机提供", "models": [ "gemma4_e4b_it_fp8_scaled.safetensors" ], "node_packs": [], "node_types": [ "CLIPLoader", "GetVideoComponents", "LoadAudio", "LoadImage", "LoadVideo", "MarkdownNote", "PreviewAny", "TextGenerate" ], "source": null }, "draft": true, "errors": [ { "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", "symptom": "待提供目标机节点定义:CLIPLoader" }, { "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", "symptom": "待提供目标机节点定义:PreviewAny" }, { "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", "symptom": "LoadImage 包含静音/旁路状态,需 API 导出核对" }, { "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", "symptom": "LoadAudio 包含静音/旁路状态,需 API 导出核对" }, { "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", "symptom": "LoadVideo 包含静音/旁路状态,需 API 导出核对" }, { "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", "symptom": "GetVideoComponents 包含静音/旁路状态,需 API 导出核对" }, { "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", "symptom": "待提供目标机节点定义:TextGenerate" }, { "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", "symptom": "未得到可执行节点" } ], "io": { "inputs": [], "outputs": [] }, "materials": [], "params": [], "purpose": "Gemma4 多模态文字生成图包含 CLIPLoader、TextGenerate,以及图像、音频、视频加载分支。", "snapshot_sha": "74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b", "source_links": [ { "link": [ 2, 3, 0, 1, 0, "CLIP" ], "scope": "" }, { "link": [ 3, 1, 0, 4, 0, "STRING" ], "scope": "" }, { "link": [ 5, 6, 0, 7, 0, "VIDEO" ], "scope": "" }, { "link": [ 7, 2, 0, 1, 1, "IMAGE" ], "scope": "" }, { "link": [ 8, 5, 0, 1, 3, "AUDIO" ], "scope": "" } ], "source_nodes": [ { "class_type": "CLIPLoader", "inputs": [ { "link": null, "localized_name": "CLIP名称", "name": "clip_name", "type": "COMBO", "widget": { "name": "clip_name" } }, { "link": null, "localized_name": "类型", "name": "type", "type": "COMBO", "widget": { "name": "type" } }, { "link": null, "localized_name": "设备", "name": "device", "shape": 7, "type": "COMBO", "widget": { "name": "device" } } ], "mode": 0, "node_id": "3", "source_values": [ "gemma4_e4b_it_fp8_scaled.safetensors", "stable_diffusion", "default" ], "title": null }, { "class_type": "PreviewAny", "inputs": [ { "link": 3, "localized_name": "源", "name": "source", "type": "*" } ], "mode": 0, "node_id": "4", "source_values": [ null, null, null ], "title": null }, { "class_type": "MarkdownNote", "inputs": [], "mode": 0, "node_id": "8", "source_values": [ "Related PR: [#13376](https://github.com/Comfy-Org/ComfyUI/pull/13376)\n\n## Model Links (for Local Users)\n\n**text_encoders**\n\n- [gemma4_e4b_it_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/gemma-4/resolve/main/text_encoders/gemma4_e4b_it_fp8_scaled.safetensors)\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ └── 📂 text_encoders/\n│ └── gemma4_e4b_it_fp8_scaled.safetensors\n```\n\n---\n* Other model weights: https://huggingface.co/Comfy-Org/gemma-4/tree/main/text_encoders\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n" ], "title": null }, { "class_type": "MarkdownNote", "inputs": [], "mode": 0, "node_id": "9", "source_values": [ "**Core Capabilities**\n\n[Gemma 4](https://huggingface.co/google/gemma-4-E2B-it) models handle a broad range of tasks across text, vision, and audio. Key capabilities include:\n\n+ **Thinking** – Built-in reasoning mode that lets the model think step-by-step before answering.\n+ **Long Context** – Context windows of up to 128K tokens (E2B/E4B) and 256K tokens (26B A4B/31B).\n+ **Image Understanding** – Object detection, Document/PDF parsing, screen and UI understanding, chart comprehension, OCR (including multilingual), handwriting recognition, and pointing. Images can be processed at variable aspect ratios and resolutions.\n+ **Video Understanding** – Analyze video by processing sequences of frames.\n+ **Interleaved Multimodal Input** – Freely mix text and images in any order within a single prompt.\n+ **Function Calling** – Native support for structured tool use, enabling agentic workflows.\n+ **Coding** – Code generation, completion, and correction.\n+ **Multilingual** – Out-of-the-box support for 35+ languages, pre-trained on 140+ languages.\n+ **Audio** (E2B and E4B only) – Automatic speech recognition (ASR) and speech-to-translated-text translation across multiple languages.\n" ], "title": "Gemma4 Core Capabilities" }, { "class_type": "LoadImage", "inputs": [ { "link": null, "localized_name": "图像", "name": "image", "type": "COMBO", "widget": { "name": "image" } }, { "link": null, "localized_name": "选择文件上传", "name": "upload", "type": "IMAGEUPLOAD", "widget": { "name": "upload" } } ], "mode": 4, "node_id": "2", "source_values": [ "the_lily_veil.png", "image" ], "title": null }, { "class_type": "LoadAudio", "inputs": [ { "link": null, "localized_name": "音频", "name": "audio", "type": "COMBO", "widget": { "name": "audio" } }, { "link": null, "localized_name": "音频UI", "name": "audioUI", "type": "AUDIO_UI", "widget": { "name": "audioUI" } }, { "link": null, "localized_name": "选择文件上传", "name": "upload", "type": "AUDIOUPLOAD", "widget": { "name": "upload" } } ], "mode": 4, "node_id": "5", "source_values": [ "voice_demo.mp3", null, null ], "title": null }, { "class_type": "LoadVideo", "inputs": [ { "link": null, "localized_name": "文件", "name": "file", "type": "COMBO", "widget": { "name": "file" } }, { "link": null, "localized_name": "选择要上传的文件", "name": "upload", "type": "IMAGEUPLOAD", "widget": { "name": "upload" } } ], "mode": 4, "node_id": "6", "source_values": [ "video_wan_vace_inpainting_input_video.mp4", "image" ], "title": null }, { "class_type": "GetVideoComponents", "inputs": [ { "link": 5, "localized_name": "视频", "name": "video", "type": "VIDEO" } ], "mode": 4, "node_id": "7", "source_values": [], "title": null }, { "class_type": "TextGenerate", "inputs": [ { "link": 2, "localized_name": "clip", "name": "clip", "type": "CLIP" }, { "link": 7, "localized_name": "图像", "name": "image", "shape": 7, "type": "IMAGE" }, { "link": null, "localized_name": "video", "name": "video", "shape": 7, "type": "IMAGE" }, { "link": 8, "localized_name": "audio", "name": "audio", "shape": 7, "type": "AUDIO" }, { "link": null, "localized_name": "提示词", "name": "prompt", "type": "STRING", "widget": { "name": "prompt" } }, { "link": null, "localized_name": "最大长度", "name": "max_length", "type": "INT", "widget": { "name": "max_length" } }, { "link": null, "localized_name": "采样模式", "name": "sampling_mode", "type": "COMFY_DYNAMICCOMBO_V3", "widget": { "name": "sampling_mode" } }, { "link": null, "localized_name": "温度", "name": "sampling_mode.temperature", "type": "FLOAT", "widget": { "name": "sampling_mode.temperature" } }, { "link": null, "localized_name": "Top K", "name": "sampling_mode.top_k", "type": "INT", "widget": { "name": "sampling_mode.top_k" } }, { "link": null, "localized_name": "Top P", "name": "sampling_mode.top_p", "type": "FLOAT", "widget": { "name": "sampling_mode.top_p" } }, { "link": null, "localized_name": "最小概率", "name": "sampling_mode.min_p", "type": "FLOAT", "widget": { "name": "sampling_mode.min_p" } }, { "link": null, "localized_name": "重复惩罚", "name": "sampling_mode.repetition_penalty", "type": "FLOAT", "widget": { "name": "sampling_mode.repetition_penalty" } }, { "link": null, "localized_name": "种子", "name": "sampling_mode.seed", "type": "INT", "widget": { "name": "sampling_mode.seed" } }, { "link": null, "localized_name": "presence_penalty", "name": "sampling_mode.presence_penalty", "shape": 7, "type": "FLOAT", "widget": { "name": "sampling_mode.presence_penalty" } }, { "link": null, "localized_name": "思考模式", "name": "thinking", "shape": 7, "type": "BOOLEAN", "widget": { "name": "thinking" } }, { "link": null, "localized_name": "use_default_template", "name": "use_default_template", "shape": 7, "type": "BOOLEAN", "widget": { "name": "use_default_template" } } ], "mode": 0, "node_id": "1", "source_values": [ "Describe the image, and transcribe the audio", 2048, "on", 0.7, 64, 0.95, 0.05, 1.05, 0, 0, false, true ], "title": null } ], "source_notes": [ { "content": [ "Related PR: [#13376](https://github.com/Comfy-Org/ComfyUI/pull/13376)\n\n## Model Links (for Local Users)\n\n**text_encoders**\n\n- [gemma4_e4b_it_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/gemma-4/resolve/main/text_encoders/gemma4_e4b_it_fp8_scaled.safetensors)\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ └── 📂 text_encoders/\n│ └── gemma4_e4b_it_fp8_scaled.safetensors\n```\n\n---\n* Other model weights: https://huggingface.co/Comfy-Org/gemma-4/tree/main/text_encoders\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n" ], "node_id": "8" }, { "content": [ "**Core Capabilities**\n\n[Gemma 4](https://huggingface.co/google/gemma-4-E2B-it) models handle a broad range of tasks across text, vision, and audio. Key capabilities include:\n\n+ **Thinking** – Built-in reasoning mode that lets the model think step-by-step before answering.\n+ **Long Context** – Context windows of up to 128K tokens (E2B/E4B) and 256K tokens (26B A4B/31B).\n+ **Image Understanding** – Object detection, Document/PDF parsing, screen and UI understanding, chart comprehension, OCR (including multilingual), handwriting recognition, and pointing. Images can be processed at variable aspect ratios and resolutions.\n+ **Video Understanding** – Analyze video by processing sequences of frames.\n+ **Interleaved Multimodal Input** – Freely mix text and images in any order within a single prompt.\n+ **Function Calling** – Native support for structured tool use, enabling agentic workflows.\n+ **Coding** – Code generation, completion, and correction.\n+ **Multilingual** – Out-of-the-box support for 35+ languages, pre-trained on 140+ languages.\n+ **Audio** (E2B and E4B only) – Automatic speech recognition (ASR) and speech-to-translated-text translation across multiple languages.\n" ], "node_id": "9" } ], "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/gemma4_提示词反推(图像视频音频).json", "source_review": { "complete": false, "evidence": { "link_count": 5, "model_references": [ "gemma4_e4b_it_fp8_scaled.safetensors" ], "named_value_count": 0, "node_count": 9, "note_node_ids": [ "8", "9" ], "unnamed_widget_node_ids": [ "3", "4", "2", "5", "6", "1" ] }, "instruction": "逐一核对 TextGenerate 的实际连线,不能因同时存在三类加载节点就要求每次都上传三类素材。", "purpose": "Gemma4 多模态文字生成图包含 CLIPLoader、TextGenerate,以及图像、音频、视频加载分支。", "reviewed_named_fields": [], "scope": [ "结构及用途局部审校", "源具名参数/注释/连线/素材模型用途人工语义局部审校" ], "semantic_review": { "batch": "HEL-892-third", "conclusions": [ "3的CLIP送1,2图像及5音频分别经7/8号连线进入1", "6视频只接7拆分,当前列出的连线没有把拆分结果送1。8注释列text_encoders模型目录,9是能力介绍,不能把其长上下文宣传当作1的实际配置", "先按当前实际接线核对输入。" ], "evidence_refs": { "nodes": [ { "node_id": "3", "pointer": "/source_nodes/0" }, { "node_id": "8", "pointer": "/source_nodes/2" }, { "node_id": "9", "pointer": "/source_nodes/3" }, { "node_id": "2", "pointer": "/source_nodes/4" }, { "node_id": "5", "pointer": "/source_nodes/5" }, { "node_id": "6", "pointer": "/source_nodes/6" }, { "node_id": "7", "pointer": "/source_nodes/7" }, { "node_id": "1", "pointer": "/source_nodes/8" } ], "notes": [ { "node_id": "8", "pointer": "/source_notes/0" }, { "node_id": "9", "pointer": "/source_notes/1" } ], "source_graph": "/source_links(按scope区分主图与子图;连线ID仅在各自scope内有效)" }, "mechanical_inventory": { "link_count": 5, "named_value_count": 0, "note_count": 2, "position_widget_node_count": 6 }, "named_parameter_finding": "未发现可由源文件确认的具名参数", "operation_check": "3的CLIP送1,2图像及5音频分别经7/8号连线进入1;6视频只接7拆分,当前列出的连线没有把拆分结果送1。8注释列text_encoders模型目录,9是能力介绍,不能把其长上下文宣传当作1的实际配置;先按当前实际接线核对输入。", "unknowns": [ "位置数组未按位置具名,具名字段单位/合法范围/调整效果未获定义验证", "注释中的效果、性能、版本支持为源作者陈述,未作外部或环境验证", "静音/旁路、虚拟节点、子图、开关与连线覆盖的实际执行结果待原前端API导出", "模型/素材引用只表示源文件出现,实际安装、位置、可用性和输出编码待真实环境核对" ] }, "source_sha": "988d2cbe5180882e1cf390e981ece3042592eee2", "unconfirmed": [ "逐参数语义、单位、范围和调整效果未定稿", "UI 位置控件未具名,含子图和旁路的实际执行路径待黄金导出", "模型/节点包位置、素材可用性及实际输出未在目标环境核对" ] }, "source_review_sha": "8d8ca6b683cc46c942132311a9e0f5231826c5a48a3cf6738e7adf6aa48f3e1e", "status": { "doc_done": false, "exec_verified": false, "imported": true }, "steps": [ "逐一核对 TextGenerate 的实际连线,不能因同时存在三类加载节点就要求每次都上传三类素材。", "3的CLIP送1,2图像及5音频分别经7/8号连线进入1;6视频只接7拆分,当前列出的连线没有把拆分结果送1。8注释列text_encoders模型目录,9是能力介绍,不能把其长上下文宣传当作1的实际配置;先按当前实际接线核对输入。", "打开源工作流 example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/gemma4_提示词反推(图像视频音频).json,逐项核对下列源节点与注释。", "补齐节点定义、模型来源及所需素材;完成输入输出映射核对。", "明确触发真实测试后核对产物;本批未提交生成任务。" ], "title": "gemma4_提示词反推(图像视频音频)" }