[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112892":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":14,"stars30d":14,"stars90d":15,"forks30d":15,"starsTrendScore":17,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":15,"starSnapshotCount":15,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},112892,"ZenTrainer","Nynxz\u002FZenTrainer","Nynxz","Train LoRAs inside ComfyUI: image and video models, live previews, on NVIDIA or AMD.","",null,"Python",65,10,4,0,1,3,47.52,"MIT License",false,"main",[],"2026-11-23 17:57:31","2026-11-23 20:32:49","![ZenTrainer](docs\u002Fimages\u002Fbanner.webp)\n\n\u003Cp>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fcomfyanonymous\u002FComfyUI\">\u003Cimg src=\"docs\u002Fimages\u002Fbadge-comfyui.webp\" height=\"32\" alt=\"Runs inside ComfyUI\">\u003C\u002Fa>&nbsp;\n  \u003Ca href=\"#install\">\u003Cimg src=\"docs\u002Fimages\u002Fbadge-nvidia.webp\" height=\"32\" alt=\"NVIDIA: CUDA\">\u003C\u002Fa>&nbsp;\n  \u003Ca href=\"#install\">\u003Cimg src=\"docs\u002Fimages\u002Fbadge-amd.webp\" height=\"32\" alt=\"AMD: ROCm\">\u003C\u002Fa>&nbsp;\n  \u003Ca href=\"#install\">\u003Cimg src=\"docs\u002Fimages\u002Fbadge-os.webp\" height=\"32\" alt=\"Linux and Windows\">\u003C\u002Fa>&nbsp;\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"docs\u002Fimages\u002Fbadge-license.webp\" height=\"32\" alt=\"MIT, open source\">\u003C\u002Fa>\n\u003C\u002Fp>\n\nTrain LoRAs inside ComfyUI, and watch them learn. ZenTrainer trains on ComfyUI's own model code,\nwith the models and GPU it already has.\n\n- **Characters, styles and video**: MOSS Image, Krea 2, FLUX 3, FLUX.2 Klein, Qwen Image 2.1, Z-Image,\n  Anima, Fibo 2.0, SDXL (and its finetunes) and MiniMax H3 video, each trained end to end here; more\n  are listed as untested\n- **Straight into ComfyUI**: trained LoRAs show up in its LoRA loaders\n- **Simple or Advanced**: a recipe sets everything, or set every option yourself\n\n## Quick start\n\n1. Install ZenTrainer from ComfyUI Manager, restart ComfyUI and click the lotus in its top bar.\n2. **New run → Simple**: pick a recipe, add 15–40 photos, name it. Missing models are downloaded\n   and the photos captioned for you.\n3. Watch it train. The LoRA lands in `output\u002Fzentrainer\u002Floras\u002F`.\n\n## Training you can watch\n\nEach run is one page: the newest samples beside the loss, each sample denoising as it renders, and\nthe numbers in a rail on the right.\n\n- **Pause, sample, save or change the learning rate** mid-run\n- **Resume** from any checkpoint\n- **Validation loss** on a fixed set, and a **likeness** score for character LoRAs\n- **Try a prompt** on any checkpoint\n- **Progression**: every prompt across every step (←\u002F→ steps, ↑\u002F↓ prompts)\n- **A queue**: line runs up and they train one after another\n\n![A run](docs\u002Fimages\u002Frun.webp)\n\n## Datasets\n\nAny folder in ComfyUI's `input\u002F` is a dataset: browse it as a grid or a table, edit captions in place.\n\n- **Auto-caption** with Qwen-VL or Gemma, through ComfyUI\n- **Caption sets**: long and short side by side; train on either, or a mix\n- **Bulk edits**: prefix, suffix, find and replace\n- **Masks**: SAM3 finds the subject, or paint one; it trains only where the mask is white\n\n![A dataset: browse it, look closer at one picture and its caption, mask what shouldn't train](docs\u002Fimages\u002Fdatasets.webp)\n\n## Set up a run\n\nPick a model and its files are filled in (base, text encoder, VAE), each installed or one click\nfrom downloading. Start from a recipe, ours or one you saved, and the form flags the usual\nmistakes: no trigger word, a learning rate the optimizer won't like, too few epochs.\n\n- **Trigger word**, and `[trigger]` in captions and prompts\n- **Optimizers**: AdamW, Prodigy, Lion, CAME, schedule-free, 8-bit and more\n- **LoRA or LoKr**, masked training, caption dropout\n- **Class preservation**: \"a woman\" stays a woman, not your character\n- **Preview on a turbo build** while training the base\n\n![New run](docs\u002Fimages\u002Fnew-run.webp)\n\n## Simple mode\n\nPick a recipe, add photos, name it, train. See each preview land, and try your own prompt at any\nstep. Switch to Advanced in Settings for every option.\n\n![Simple mode: pick a recipe, add photos, watch it learn, try it](docs\u002Fimages\u002Fsimple.webp)\n\n## Apps (experimental)\n\n**Test LoRA** renders checkpoints × strengths × prompts on a fixed seed; **Generate** is plain\ntxt2img with your LoRAs. Turn them on in Settings → Experimental pages. → [Writing apps](docs\u002FAPPS.md)\n\n## Install\n\n**As a node pack**: install ZenTrainer from ComfyUI Manager (or clone it into\n`ComfyUI\u002Fcustom_nodes\u002F`), restart ComfyUI and click the lotus, or open `\u002Fzentrainer\u002F` on its port.\nNeeds ComfyUI 0.41 or newer. Extra optimizers: `pip install -r requirements-optional.txt`.\n\n**With its own pinned ComfyUI**: training stays apart from your main install, so updating it or its\ncustom nodes can't break a run. It reads your models where they are.\n\n```sh\n# Linux\ngit clone https:\u002F\u002Fgithub.com\u002FNynxz\u002FZenTrainer && cd ZenTrainer && .\u002Fstart-linux.sh\n```\n\nOn Windows, install [Git for Windows](https:\u002F\u002Fgit-scm.com\u002Fdownload\u002Fwin), clone the repository and\ndouble-click `start-windows.bat`.\n\nThe first run installs [uv](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002F), asks where your models are, picks the\nPyTorch build for your GPU (CUDA or ROCm) and starts; after that it opens a menu. macOS isn't\nsupported yet.\n\n**On a rented GPU**: a Docker image with the app behind a password. On Runpod it's one click (a\nreferral link: it supports ZenTrainer at no cost to you). Elsewhere → [docker\u002FREADME.md](docker\u002FREADME.md)\n\n\u003Ca href=\"https:\u002F\u002Fconsole.runpod.io\u002Fhub\u002Ftemplate\u002F2amo4895gj?ref=oe5l65t0\">\u003Cimg src=\"docs\u002Fimages\u002Fbadge-runpod.webp\" height=\"32\" alt=\"Deploy on Runpod\">\u003C\u002Fa>\n\n## Run it (zt)\n\n`zt` is the command line behind the start scripts. From a clone it's `scripts\u002Fzt`; for `zt`\nanywhere, `uv tool install --editable .\u002Fcli`.\n\n```sh\nzt                      # the menu: setup, updates, start, monitor\nzt setup --models-from \u002Fpath\u002Fto\u002Fyour\u002FComfyUI   # pinned ComfyUI, reading your models\nzt start --open         # http:\u002F\u002F127.0.0.1:8189\u002Fzentrainer\u002F\nzt monitor              # live dashboard: queue, runs, loss, memory\nzt doctor               # what's installed, where models come from\nzt update               # pull ZenTrainer, re-sync ComfyUI and the web app\n```\n\nHeadless: `zt new > spec.json`, `zt check spec.json`, `zt train spec.json --follow`. `zt --help`\nlists the rest. Guides: [docs\u002Fcli.md](docs\u002Fcli.md), [docs\u002Fapi.md](docs\u002Fapi.md) (the HTTP API) and\n[docs\u002Fspec.md](docs\u002Fspec.md) (every setting).\n\n- `--models-from` takes a ComfyUI install or a models folder; `--extra-model-paths` takes a yaml\n- `zt attach \u002Fpath\u002Fto\u002FComfyUI` links the engine into a ComfyUI you already have instead\n- Your work lives in `comfyui\u002Finput\u002F` (datasets), `comfyui\u002Foutput\u002Fzentrainer\u002Floras\u002F` and\n  `comfyui\u002Fuser\u002Fzentrainer\u002F` (runs): reinstall with `zt update`, not by deleting `comfyui\u002F`\n- **Compiled blocks** (off unless turned on, in Memory → Compile blocks): the first run at a new\n  resolution builds its kernels, a few minutes on Linux with NVIDIA and 10–25 on ROCm or Windows.\n  They're cached in `~\u002F.triton`, so later runs start fast\n\n## How it works\n\n![How it works: your models, ComfyUI, ZenTrainer, your LoRA](docs\u002Fimages\u002Fhow-it-works.webp)\n\nThe training loop is ZenTrainer's own, with ComfyUI as a library rather than workflows. While a\nrun trains it holds ComfyUI's queue, so nothing else lands on the GPU mid-step. More in\n[docs\u002FARCHITECTURE.md](docs\u002FARCHITECTURE.md).\n\n```\nengine\u002F   ComfyUI node pack: training harness (ComfyUI as a library), run API, session node\nweb\u002F      Vue app (zenkit-ui, ZenKit themes), served by ComfyUI at \u002Fzentrainer\u002F\ntests\u002F    harness tests that need no ComfyUI\nscripts\u002F  zt (setup, start, dev, …); devrun.py runs a spec through the harness without the server\ndocker\u002F   the container image for cloud GPUs (Runpod, …)\ndocs\u002F     architecture, apps, guides; banner\u002F holds the README pictures' sources\n```\n\n## Develop\n\n`zt dev` runs ComfyUI and the web app with hot reload at http:\u002F\u002Flocalhost:5173\u002Fzentrainer\u002F;\nengine edits need `zt restart`. `comfy.lock` pins the ComfyUI commit and torch build it's tested\nagainst: move it with `zt update --ref \u003Ccommit|tag>`.\n\n```sh\n# tests (no GPU)\nCUDA_VISIBLE_DEVICES= uv run --no-project --with pytest --with torch --with pillow --with numpy \\\n  --with aiohttp --with safetensors --with av python -m pytest tests\n\n# a spec straight through the harness (see examples\u002F)\ncomfyui\u002F.venv\u002Fbin\u002Fpython scripts\u002Fdevrun.py examples\u002Fsdxl-quick.json --comfy comfyui\n\n# README pictures: the app's panels (from an install holding only demo content), then the images\nuv run --with playwright --with pillow --no-project python docs\u002Fbanner\u002Fshots.py --url http:\u002F\u002F127.0.0.1:8188 --run \u003Cid> --dataset \u003Cfolder>\nuv run --with playwright --with pillow --no-project python docs\u002Fbanner\u002Frender.py\n```\n\n## Credits\n\nCode ZenTrainer carries from other projects, and its licences, is listed in\n[THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).\n\n- **Faces:** [InsightFace](https:\u002F\u002Fgithub.com\u002Fdeepinsight\u002Finsightface)'s models (non-commercial\n  use only), or for commercial use fal's [AuraFace](https:\u002F\u002Fhuggingface.co\u002Ffal\u002FAuraFace-v1) with\n  OpenCV's YuNet. The face pipeline follows InsightFace's and OpenCV's.\n- **[ai-toolkit](https:\u002F\u002Fgithub.com\u002Fostris\u002Fai-toolkit) by Ostris:** the Automagic v3 and v4\n  optimizers, the weighted timestep table and the training adapters. Also ideas: sigmoid\n  timesteps, the content\u002Fstyle bias, `[trigger]` in captions and MOSS Image Edit's picture layout.\n- **[Fizgig](https:\u002F\u002Fgithub.com\u002Fshootthesound\u002FFizgig) by Peter Neill:** ideas, likeness scoring of\n  samples among them; the measurements behind EMA 0.98, MiniMax H3's adapter blocks 20-49 and the\n  sharpest-frame clip stills; and the W8A16 int8 backward kernel by mabseyuk.\n- **[VGL](https:\u002F\u002Fgithub.com\u002FBria-AI\u002Fvgl) by Bria:** Fibo 2.0's caption schema and prompts.\n- **[OneTrainer](https:\u002F\u002Fgithub.com\u002FNerogar\u002FOneTrainer) by Nerogar:** ideas ZenTrainer follows:\n  compiling the repeated transformer block, the int8 backward on int8 tensor cores, and reading\n  its `-masklabel` mask files.\n- **@0xDELUXA:** AMD support's start: the ROCm PyTorch setup and whole-card VRAM on Windows (#1).\n- **@aksugat:** the RDNA3 int8 tile set, swept on an RX 7800 XT.\n","ZenTrainer 是一个集成于 ComfyUI 的 LoRA 微调训练工具，支持图像与视频生成模型（如 SDXL、FLUX、Qwen Image、MiniMax H3 等）的本地化 LoRA\u002FLoKr 训练。核心功能包括：实时训练预览（含动态采样与损失曲线）、交互式控制（暂停\u002F调参\u002F验证\u002F推理）、内置数据集管理（自动标注、掩码训练、批量编辑）、多优化器支持（AdamW、Prodigy、Lion 等）及跨 GPU 平台兼容（NVIDIA CUDA 与 AMD ROCm）。适用于需要在 ComfyUI 生态内快速迭代角色、风格或视频 LoRA 的创作者与开发者，无需切换环境即可完成数据准备、训练、评估与部署全流程。",2,"2026-11-24 04:44:31","CREATED_QUERY"]