Comfyui Llama Model Bridge logo

Comfyui Llama Model Bridge

Community
yc883123
comfyui-llama-model-bridge

让 ComfyUI 模型目录中的 GGUF、Safetensors 语言模型与视觉 mmproj 在 llama.cpp、Ollama、LM Studio 和 Naiba-chat 之间安全互通或完成兼容性判断。用于配置或排查共享模型目录、本地 API、硬链接导入、Modelfile、Safetensors 转换、视觉能力识别、模型迁移、重复占用磁盘、运行端选型与效率问题。

Overview

Publisheryc883123
Repositorycat-chat
Skill namecomfyui-llama-model-bridge
Stars
47
Forks
2
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by yc883123 on GitHub. Read the source before you install it.

Installation

Install the Comfyui Llama Model Bridge AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/yc883123/cat-chat/tree/master/skills/comfyui-llama-model-bridge
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/yc883123/cat-chat.git /tmp/cat-chat
mkdir -p .claude/skills
cp -r /tmp/cat-chat/skills/comfyui-llama-model-bridge .claude/skills/comfyui-llama-model-bridge
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Comfyui Llama Model Bridge in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Comfyui Llama Model Bridge on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Comfyui Llama Model Bridge is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

ComfyUI 模型与 Llama 模型互通

让 llama.cpp、Ollama、LM Studio 和 Naiba-chat 尽量复用用户已有的 ComfyUI GGUF 或 Safetensors 语言模型,并正确处理视觉投影文件;同时把不能作为聊天模型的扩散权重明确标记出来。

工作流程

  1. 确认 ComfyUI 的模型根目录和用户希望接入的运行端。
  2. 运行 python scripts/inspect_model_compatibility.py --root <模型目录> 做只读盘点。脚本会扫描 GGUF 和 Safetensors:区分 GGUF 主模型/mmproj,并读取 Safetensors header 判断语言模型、视觉语言模型、扩散模型或未知格式。需要机器可读结果时添加 --json。
  3. 先检查文件名、大小、路径和运行实例,再决定接入方式;不要在未验证前删除、移动或覆盖模型。
  4. 按运行端接入:
    • llama.cpp:直接指向共享目录中的主 GGUF;视觉模型同时传入匹配的 mmproj。
    • LM Studio:优先使用 lms import --hard-link 建立索引,避免复制大型模型;确认只有预期实例在运行。
    • Ollama:官方模型优先使用 ollama pull;手工导入 GGUF 时使用 Modelfile,并为视觉模型明确配置匹配的 ADAPTER。不要把 OLLAMA_MODELS 误解为散装 GGUF 扫描目录。
    • Safetensors:不要改扩展名冒充 GGUF。先确认它是语言模型而不是 ComfyUI 扩散模型;llama.cpp/LM Studio 通常需要标准配置和 tokenizer 后转换为 GGUF,Ollama 只有在目标架构与权重格式明确受支持时才尝试导入。
  5. 在 Naiba-chat 中配置对应的本地 API 地址和模型名。
  6. 先查询运行端能力接口,再用真实小图片完成视觉验证;不要只根据模型名称或旁边存在 mmproj 判断视觉可用。
  7. 检查模型是否重复占盘、是否误加载多个实例,以及上下文或并发设置是否导致性能异常。
  8. 给出可回退、可验证的操作步骤;涉及删除、覆盖或大规模迁移前必须让用户确认精确目标。

需要同时查看运行端状态时,按实际启用的服务追加 --llama-url、--ollama-url 或 --lmstudio-url。脚本只查询接口,不会加载、导入或删除模型。

运行端选择与实测依据

在比较三种运行端、解释性能差异、推荐 Naiba-chat 配置、处理视觉模型或共享目录问题时,读取 本地模型运行端推荐新版.md。该文档包含本机第二轮实测、三端视觉能力检测、LM Studio 重复实例陷阱、Ollama 官方模型与手工 GGUF 的区别,以及磁盘共享建议。

引用性能数字时注明它们来自特定机器和测试条件,不把不同参数规模的模型直接横向比较。

安全要求

  • 默认只做只读检查,不删除任何模型。
  • 不创建第二份大型模型,除非用户明确接受额外磁盘占用。
  • 不把单个 Safetensors 权重直接当成可运行模型;缺少 config.json、tokenizer、processor 或视觉组件时,先报告缺失项。
  • 不对 Safetensors、CKPT、PT、VAE、LoRA 等文件执行未经确认的转换;扩散模型权重不能变成 Naiba-chat 聊天模型。
  • 在 Windows 上优先用硬链接复用 LM Studio 模型,并验证链接确实建立成功。
  • 不修改 Naiba-chat 的 Agent 能力、tool_scope 或固定 skill_ids;此 Skill 作为默认内置 Skill 独立工作。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Comfyui Llama Model Bridge AI skill do?

让 ComfyUI 模型目录中的 GGUF、Safetensors 语言模型与视觉 mmproj 在 llama.cpp、Ollama、LM Studio 和 Naiba-chat 之间安全互通或完成兼容性判断。用于配置或排查共享模型目录、本地 API、硬链接导入、Modelfile、Safetensors 转换、视觉能力识别、模型迁移、重复占用磁盘、运行端选型与效率问题。

Why use Comfyui Llama Model Bridge on TypingMind?

Because you install it once and use it with any model. Comfyui Llama Model Bridge is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Comfyui Llama Model Bridge in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/yc883123/cat-chat/tree/master/skills/comfyui-llama-model-bridge. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Comfyui Llama Model Bridge?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Comfyui Llama Model Bridge?

As many as you like. As long as a model supports skills, you can use Comfyui Llama Model Bridge with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Comfyui Llama Model Bridge AI skill free?

It is published on GitHub by yc883123. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇