This guide explains how to set up ComfyUI with 3D Mesh Generation nodes (TRELLIS V2 and Hunyuan3D v2) and connect it to LocalLLMServerManager.
LocalLLMServerManager acts as a central proxy, VRAM orchestrator, and interactive WebGL 3D asset studio. It connects to your local ComfyUI instance running on http://127.0.0.1:8188.
- Automated VRAM Offloading: Automatically unloads Ollama LLM models from GPU memory before launching heavy ComfyUI 3D mesh or FLUX image generation workflows.
- Interactive 3D WebGL Canvas: Renders generated
.glband.gltf3D meshes natively in the browser with 360° orbital controls, wireframe toggles, and direct downloading. - Pre-Configured Workflow Presets: Ships with API-format workflow JSON templates for TRELLIS V2, Hunyuan3D v2, and FLUX / SDXL image generation.
Ensure ComfyUI is installed on your local machine:
- Download & install ComfyUI.
- Launch ComfyUI using
run_nvidia_gpu.bat(or your preferred launch script). ComfyUI defaults tohttp://127.0.0.1:8188.
To run 3D generation workflows, install the relevant custom nodes via ComfyUI-Manager:
- Search for and install
ComfyUI-TrellisorTRELLIScustom nodes. - Place TRELLIS weights inside
ComfyUI/models/trellis/ormodels/checkpoints/.
- Search for and install
ComfyUI-Hunyuan3DWrapperorHunyuan3D-v2. - Download Hunyuan3D v2 weights into
ComfyUI/models/hunyuan3d/.
- Open the manager dashboard at
http://localhost:5246. - Navigate to the 3D & ComfyUI Studio tab.
- Check the ComfyUI health badge in the top-right header:
- 🟢 Online: ComfyUI is running and responding at
127.0.0.1:8188. - 🔴 Offline: ComfyUI is not running. Launch ComfyUI or update the endpoint URL in the configuration bar.
- 🟢 Online: ComfyUI is running and responding at
- (Optional) In the configuration bar, set your Preferred Image & Mesh Engine to ComfyUI or Stable Diffusion / Forge.
- Select your target preset:
- TRELLIS V2 (3D Mesh Generator)
- Hunyuan3D v2 (3D Mesh Generator)
- FLUX / SDXL (High-Res Image Generator)
- Customize the prompt in the text box (e.g.
a futuristic cyberpunk sports car, 3d asset, white background). - Click 🚀 Queue Generation (Auto-Free LLM VRAM).
- The status box will show progress as the server automatically unloads loaded Ollama LLM models from GPU VRAM and posts the workflow payload to ComfyUI.
- Once complete, click any generated
.glbasset in the Generated 3D Mesh Assets gallery to load it interactively in the WebGL 3D viewer!
You can export custom workflows from ComfyUI for use in LocalLLMServerManager:
- In ComfyUI, enable "Enable Dev mode Options" in settings.
- Click "Save (API Format)" to export the workflow as a JSON file.
- Save the JSON file into the
Workflows/directory insideLocalLLMServerManager. - The workflow will automatically appear in the preset dropdown menu!