Local Text-Only Workflows in ComfyUI with LM Studio and Gemma 4 E2B
Melvin Vivas · X post · 2026-05-20 · Open on X
Topics: AI Dev Tools & Productivity, LLM Fundamentals · Level: intermediate
Summary
The creator built custom ComfyUI nodes that call Gemma 4 E2B served locally by LM Studio. He uses them for text-only workflows, which shows ComfyUI's node graph can chain local LLMs as well as generate images.
Key points
- ComfyUI custom nodes can call a local LLM server such as LM Studio
- Gemma 4 E2B is a small model that can run locally for text tasks
- ComfyUI's node graph can be used for text-only LLM pipelines, not just image generation
- Everything runs locally, with no API costs
Resources mentioned
- ComfyUI · tool · x.com · free
The official X account for ComfyUI, the node-based tool for generative AI workflows, which announces things like ComfyUI Agent.
Also in: Grok as "Director": Making a Local Anime Clip with ComfyUI on an RTX 3090 (Melvin Vivas on X · notes), FLUX 3 Image Klein: Open-Weights Image Model Now Supported in ComfyUI (Melvin Vivas on X · notes), ComfyUI Templates: Chain Ready-Made Workflows Instead of Building From Scratch (Melvin Vivas on X · notes), Comfy Agent: An AI Agent That Builds ComfyUI Workflows in Comfy Cloud (Melvin Vivas on X · notes) and 32 more - LM Studio · tool · x.com · free
Desktop app for downloading and running LLMs locally, with a developer mode that serves models through an API.
Also in: Run Local LLMs on the Computer You Already Have: A Beginner's Path (Melvin Vivas on X · notes), Running LLMs Locally Without an Expensive Rig (Melvin Vivas on X · notes), Adding Vercel AI Gateway as a provider in AIBackends with Devin (Melvin Vivas on X · notes), LoRA Fine-Tune Qwen3.5-2B on Your Tweets with Unsloth Studio (Melvin Vivas on X · notes) and 32 more - Gemma 4 · tool · ai.google.dev · free
Google's family of open-weight models in several sizes, built to run on devices and offline, with multimodal and agentic abilities, and open to fine-tuning.
Also in: Meetily: Open-Source Local AI Meeting Notes App (Melvin Vivas on X · notes), New Gemma Developer Documentation Site (Melvin Vivas on X · notes), A100 80GB GPUs in Google Colab via Google AI Pro plans (Melvin Vivas on X · notes), A day of work done from a phone with Grok Bot agents (Melvin Vivas on X · notes) and 32 more
Try this
- Build custom ComfyUI nodes that call a local LM Studio model for text-only workflows
More in AI Dev Tools & Productivity
- Codex limits drained by cache misses during context compaction
- Codex app 26.519: Appshots, Goal mode, remote computer use
- Parallel Coding Agents with Git Worktrees and Playwright MCP
- Local Prompt-to-Image Pipeline: ComfyUI + LM Studio Gemma + Z-Image Turbo
- Google Antigravity 2.0: Multi-Agent Desktop App Walkthrough (Subagents, Scheduled Tasks)
- Composer 2.5 as the Default Coding Model in Cursor