Instructions to use raspie/gemma4-tipo-lora-image-30k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use raspie/gemma4-tipo-lora-image-30k with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("p-e-w/gemma-4-E2B-it-heretic-ara") model = PeftModel.from_pretrained(base_model, "raspie/gemma4-tipo-lora-image-30k") - Notebooks
- Google Colab
- Kaggle
Gemma TIPO Image 30K โ release and limitations / ๋ฐฐํฌ ์๋ด
ํ๊ตญ์ด README ยท English README ยท Q4 installation
ํ๊ตญ์ด
์ด๋ฏธ์ง์์ ํ๋กฌํํธ์ ์ธ ํ๊ทธ๋ฅผ ์ป๊ธฐ ์ํ ์คํ์ฉ LoRA์ ๋๋ค. ๊ฒฐ๊ณผ๊ฐ ์ทจํฅ์ ๋ง์ง ์๊ฑฐ๋ ์ด๋ฏธ์งยท์ง์์ ๋ค๋ฅผ ์ ์์ต๋๋ค. ์๋ ์ ๋ต ํ๊ฑฐ, ์บ๋ฆญํฐ/์๊ฐ ์๋ณ๊ธฐ, ์์ฑ๋ ํ๊ตญ์ด ํธ์ง ๋ชจ๋ธ๋ก ๋ณด์ฅํ์ง ์์ต๋๋ค. ์์ฑ ์ ์ ๊ฒฐ๊ณผ๋ฅผ ํ์ธํ๊ณ ์์ ํ์ธ์.
- ๋ฐฐํฌ ๋ชจ๋ธ: raspie/gemma4-tipo-lora-image-30k
- ์ ํ ์ด๋ฆ:
tipo_lora=image-30k, ์ฝ 45.3MiB. ์ฒ์ ์ ํํ์ฌ ์คํํ ๋ ๋ค์ด๋ก๋ํฉ๋๋ค. - ํ์ต: ์ด๋ฏธ์ง ๊ธฐ๋ณธ ์ฌ๋ก 30,000์ฅ + ๋ณด์กฐ 3,000ํ, ์ด 33,000ํ, 1ํ ํ์ต. ์ธ์ด ๋ถ๋ถ rank 8 / alpha 16 LoRA์ด๋ฉฐ ๋น์ ยทPLEยทํ ํฐ ์๋ฒ ๋ฉ์ ๊ณ ์ ํ์ต๋๋ค.
- ๊ธฐ๋ฐ:
p-e-w/gemma-4-E2B-it-heretic-ara์ ๊ณ ์ ํ๋ณธc9a1d4c031981f14d86eeb0c7d87de7fafd34513. Google ์๋ณธ์ Heretic ARA ํ์ ๋ชจ๋ธ์ ๋๋ค. - ์ ๋ยท์ผ๋ฌ์คํธ ๋ฐ ์คํ์ผํํ ๊ทธ๋ํฝ์ ์ํ ์ด๋ฏธ์ง ํ๊ทธ ๋ณด๊ฐ์ ์ด์ ์ ๋ก๋๋ค. ์์ฐ์ด๋ ์๋ณธ Gemma์ ๋งก๊ธฐ๋ ์ค์ ์ ๊ถ์ฅํฉ๋๋ค.
์ค์น์ ๊ถ์ฅ ์ค์
- ์ ์ฅ์๋ฅผ ์
๋ฐ์ดํธํ๊ณ ComfyUI์ Python์ผ๋ก
requirements.txt๋ฅผ ์ค์นํฉ๋๋ค. ๊ธฐ์กด ํ๋ฅผ ๋ง์น ๋ค ComfyUI๋ฅผ ์ฌ์์ํฉ๋๋ค. Windows/Linux ๋ช ๋ น. Gemma Prompt Expander Native์์ **model_source=heretic_ara_q4**๋ฅผ ์ ํํ๊ณclip์ ์ฐ๊ฒฐํ์ง ์์ต๋๋ค. ํ์ผ ๊ฒฝ๋ก๋ ๋น์๋๋ฉด ์๋์ผ๋ก ๋ค์ด๋ก๋ํฉ๋๋ค.- **
tipo_lora=image-30k**๋ฅผ ์ ํํฉ๋๋ค. ๋ณ๋ LoRA ๋ก๋๋ ํ์ ์์ต๋๋ค. - ์ฐ์ **
output_format=tags**๋ก ์ด๋ฏธ์ง์ ๊ด๋ จ๋ ํ๊ทธ๋ฅผ ํ์ธํ์ธ์. ์์ฐ์ด๋ ์ํ๋ฉดoutput_format=both, **tipo_lora_scope=tags_only**๋ฅผ ์ ํํฉ๋๋ค. ์ด ๊ฒฝ์ฐ ์๋ณธ Gemma๊ฐ ์ฅ๋ฉด์ ๋ฌธ์ฅ์ผ๋ก ์ฐ๊ณ , LoRA๊ฐ ๊ทธ ์ฅ๋ฉด์ ํ๊ทธ๋ก ํํํฉ๋๋ค. - ํ๊ฐ ์์ ์ค์ ์
temperature=0.5,repetition_penalty=1.15,max_tokens=512,seed=42์ ๋๋ค. ์ทจํฅ์ ๋ง๋ ๊ฒฐ๊ณผ๋ฅผ ๋ณด์ฅํ๋ ์ค์ ์ ์๋๋๋ค.
๊ธฐ์กด ์ํฌํ๋ก์ ๊ธฐ๋ณธ๊ฐ tipo_lora=none, model_source=connected_clip์ ์ ์งํฉ๋๋ค.
tipo_lora_scope๋ ๊ธฐ์กด ๊ธฐ๋ณธ๊ฐ both๋ฅผ ์ ์งํ๋ฏ๋ก ์ ์ค์ ์ ์ง์ ์ ํํ์ธ์.
Gemma TIPO Native์ ํ๊ทธ ์ ์ฉ ๋
ธ๋์์๋ image-30k๋ฅผ ์ ํํ ์ ์์ต๋๋ค.
์ด๋ฏธ ๋ณํฉํ ๋ชจ๋ธ ์์ ๊ฐ์ LoRA๋ฅผ ์ค๋ณต ์ ์ฉํ์ง ๋ง์ธ์. ์ํํ๋ ค๋ฉด
์ด๋ฏธ์ง ํ๊ทธ API ์์ ๋ฅผ ์ฌ์ฉํฉ๋๋ค.
API ์์ฒญ JSON์ด๋ฉฐ ์บ๋ฒ์ค ์ํฌํ๋ก ํ์ผ์ ์๋๋๋ค. LoadImage์ ํ์ผ๋ช
์ ๋ฐ๊พธ์ธ์.
์คํ ์ฌ์๊ณผ ๋ถ๋ด
๊ฐ๋ฒผ์ด CPU์ฉ ํ๋ฌ๊ทธ์ธ์ด ์๋๋๋ค. LoRA ํ์ผ์ด ์์๋ Gemma ์ ์ฒด ์ถ๋ก ์ด ํ์ํฉ๋๋ค.
| ํญ๋ชฉ | ์๋ด |
|---|---|
| GPU | ๊ฒ์ฆ ์ฅ๋น๋ RTX 4070 Ti SUPER / RTX 5060 Ti, ๊ฐ๊ฐ 16GB VRAM. ์ฌ์ ์๊ฒ ์ฐ๋ ค๋ฉด ์ด ๊ธ์ NVIDIA CUDA GPU๋ฅผ ๊ถ์ฅํฉ๋๋ค. ์ต์ ์ฌ์์ ๊ฒ์ฆํ ๊ฒ์ ์๋๋๋ค. |
| RAM | 32GB ์ด์์ ์ฌ์ ์๋ ์ด์ ๊ธฐ์ค์ผ๋ก ๊ถ์ฅํฉ๋๋ค. ์ธก์ ํ ์ต์ ์๊ตฌ๋์ ์๋๋๋ค. ๋ค๋ฅธ ์์ฑ ๋ชจ๋ธยทVRS์ ํจ๊ป ์ฐ๋ฉด ๋ ํ์ํ ์ ์์ต๋๋ค. |
| Q4 ๋ค์ด๋ก๋ | ํ ์คํธ+ํ ํฌ๋์ด์ ์ฝ 3.22GiB, ์ด๋ฏธ์ง ์ฌ์ฉ ์ ๋น์ ํฌํจ ์ฝ 4.14GiB. LoRA ์ฝ 45.3MiB ์ถ๊ฐ. ๋์คํฌ ํฌ๊ธฐ์ด๋ฉฐ VRAM ์๊ตฌ๋์ด ์๋๋๋ค. |
| ๋์ฒด ๋ฒ ์ด์ค | ์ฐ๊ฒฐํ BF16 ๋ค์ดํฐ๋ธ ๋ชจ๋ธ์ ์ฝ 9.57GiB. Q4 ๊ฒฝ๋ก์์๋ ๋ณ๋๋ก ๋ฐ์ ํ์๊ฐ ์์ต๋๋ค. |
| ์๊ฐ | Linux / 5060 Ti์ 24์ฅ ํ๊ทธ ํ๊ฐ์์ ๋ ธ๋ ํธ์ถ ์๊ฐ ์ค์๊ฐ ์ฝ 36์ด, ๋ฒ์ ์ฝ 16~126์ด. ์ถ๋ ฅ ๊ธธ์ด์ ์ ์ฌยท๋ค๋ฅธ ์์ ์ ๋ฐ๋ผ ๋ฌ๋ผ์ง๋๋ค. ์๋ ๋ณด์ฅ์ด ์๋๋๋ค. |
| ๋ ์ถ๋ ฅ | ์์ฐ์ด โ ํ๊ทธ ๋ ๋ฒ ์์ฑํ๋ฏ๋ก ํ๊ทธ๋ง ์์ฑํ ๋๋ณด๋ค ์์ ์ด ๋์ด๋ฉ๋๋ค. |
GPU ๋ฉ๋ชจ๋ฆฌ๋ ์์ถ ๊ฐ์ค์น ์ธ์๋ ๋ณต์ ๋ฒํผยท์ด๋ฏธ์ง ์ฒ๋ฆฌยทKV ์บ์ยทLoRA๊ฐ ํ์ํฉ๋๋ค. ์ด๋ฏธ์ง ์์ฑ ๋ชจ๋ธ๊ณผ ๋์์ ์ฌ๋ฆฌ๋ฉด OOM์ด๋ CPU ์คํ๋ก๋ฉ์ผ๋ก ์ธํ ์ง์ฐ์ด ์๊ธธ ์ ์์ต๋๋ค. ํ ์ด๋ฏธ์งยท์งง์ ์ถ๋ ฅ๋ถํฐ ์์ํ๊ณ , ๋ฉ๋ชจ๋ฆฌ๊ฐ ๋ถ์กฑํ๋ฉด ๋ค๋ฅธ ๋ชจ๋ธ์ ํด์ ํ๊ฑฐ๋ ์ถ๋ ฅ ๊ธธ์ด๋ฅผ ์ค์ด์ธ์. CPU ์ ์ฉยท8GB GPUยทAMD/AppleยทWindows ์คํ์ ์ด๋ฒ ๋ฐฐํฌ์ ์ค๊ธฐ ๊ฒ์ฆ ๋ฒ์๊ฐ ์๋๋๋ค. ์ค์น ๋ช ๋ น ์ ๊ณต๊ณผ ํด๋น ํ๊ฒฝ์ ์คํ ๊ฒ์ฆ์ ๊ตฌ๋ถํฉ๋๋ค.
์ค์ ๊ฒฐ๊ณผ์ ๋จ์ ํ๊ณ
ComfyUI Q4 ๊ฐ๋ฐ ์ด๋ฏธ์ง 24์ฅ์ ๋์ผ ์กฐ๊ฑด ๋น๊ต์ ๋๋ค. ์ด๋ฏธ์ง์ ์ฌ์ฉ์๊ฐ ์ค ์ด๋ฆ์ ์ ๋ ฅํ์ต๋๋ค. ์ด๋ฆ์ ์ด๋ฏธ์ง์์ ์์๋งํ ์ํ์ ์๋๋๋ค.
| ํญ๋ชฉ | ์๋ณธ | ์ด์ 3์ฒ ์ฅ ๋น๊ต ํ๋ณด | ์ด๋ฒ 3๋ง ์ฅ |
|---|---|---|---|
| PixAI ํ๊ทธ์์ ํ๊ท F1 | 0.141 | 0.271 | 0.352 |
| ์ ๋ ฅ ์ด๋ฆ ๋๋ฝ / 93ํ | 10 | 17 | 2 |
| ๋น ์ถ๋ ฅ / 24์ฅ | 0 | 0 | 0 |
F1์ PixAI๊ฐ ๋ง๋ ํ๊ทธ์์ ์ผ์น ์งํ์ด๋ฉฐ 35.2%์ ์ธ๊ฐ ํ๊ฐ ์ ํ๋๋ฅผ ๋ปํ์ง ์์ต๋๋ค.
์ด์ 3์ฒ ์ฅ ๋น๊ต ํ๋ณด๋ ๋ณ๋ ๋ด๋ถ ์คํ์ด๋ฉฐ ๊ณต๊ฐ pilot-001/002์ ๋ค๋ฅธ ๋ชจ๋ธ์
๋๋ค.
์ต์ข
๋ถ๋ฆฌ ํ๊ฐ ์๋ฃ๋ ์ฌ์ฉํ์ง ์์๊ณ , ์ ํ๋ ๊ฐ๋ฐ ์๋ฃ์ ๊ฒฐ๊ณผ๋ง ๊ณต๊ฐํฉ๋๋ค.
ํ๊ตญ์ด ์ค์ฌ ์์ฒญ 12๊ฑด์์๋ ํ์ ํ๊ทธ ๋๋ฝ์ด ์ด์ 3์ฒ ์ฅ 17๊ฐ โ ์ด๋ฒ 18๊ฐ, ์ง์ ์ด๋ฆ ๋๋ฝ์ 0๊ฐ โ 3๊ฐ์์ต๋๋ค. VRS ์ฐธ๊ณ ๋ฅผ ์ค 6๊ฑด์์๋ ์ด๋ฆ ๋๋ฝ 3๊ฐ์ ์ถฉ๋ ํ๊ทธ๋ฅผ ๋ด๋ ์์ฒญ 2๊ฑด์ด ๋จ์์ต๋๋ค. ๋จ์ด ๋์กฐ๋ ๋์์ด๋ ๋๋ฝ์ผ๋ก ์ ์ ์์ต๋๋ค.
์ค์ ์ถ๋ ฅ์๋ ์งง์ ๋จธ๋ฆฌ๋ฅผ ๊ธด ๋จธ๋ฆฌ๋ก ๋ณ๊ฒฝ, ์ฌ์ฑ ํ ๋ช
์ ๋จ์ฑ ํ๊ทธ ์ถ๊ฐ,
์ง์ ํ ์๊ฐยท์บ๋ฆญํฐยท์ํ๋ช
๋๋ฝ์ด ์์์ต๋๋ค. VRS๋ฅผ ์ฐ๊ฒฐํด๋ ์ฐธ๊ณ ์ด๋ฏธ์ง์ ํน์ง์ด
์์ผ ์ ์์ต๋๋ค. ban_tags์ ์ ํํ ๋ฌธ์์ด ์ ๊ฑฐ๋ง์ผ๋ก ์๋ฏธ์ ์ถฉ๋์ด ํด๊ฒฐ๋์ง๋ ์์ต๋๋ค.
ํ์ต์ด ์ฑ์ธ ํํ์ ํฌํจํ๋ ํ๊ทธ ์์ญ์ ๋ค๋ฃจ๋ฏ๋ก ์์น ์๋ ํ๊ทธ๊ฐ ๋์ฌ ์๋ ์์ต๋๋ค.
๋ ์ถ๋ ฅ ๋น๊ต์์๋ LoRA๋ฅผ ํ๊ทธ ๋จ๊ณ์๋ง ์ ์ฉํ์ต๋๋ค. ์์ฐ์ด ๊ฐ์ ์ ์ ์ฆํ์ง ์์ผ๋ฉฐ ์๋ณธ Gemma์ ์๋ชป๋ ์ด๋ฏธ์ง ํด์์ด ํ๊ทธ๋ก ์ด์ด์ง ์ ์์ต๋๋ค. ์ด๋ฏธ์ง ํ๊ทธ๊ฐ ๋ชฉ์ ์ด๋ฉด ์ฐ์ ํ๊ทธ ๋จ๋ ๋ชจ๋๋ฅผ ๋น๊ตํ์ธ์. ๋จ๋ณด๋ฃจ ์ค์ฌ ์๋ฃ๋ก ํ์ตํ์ผ๋ฏ๋ก e621 ์ ์ฒด ์ดํยท๋ค๊ตญ์ด ๋ฒ์ญ ์์ ์ฑ๋ ๋ณด์ฅํ์ง ์์ต๋๋ค.
๊ฐ์ธ ์ด๋ฏธ์งยท์๋ณธ ํ๊ทธยทํ๋กฌํํธยทVRS ๊ฒฝํยทํ๊ฐ ์๋ฌธ์ ๊ณต๊ฐํ์ง ์์ต๋๋ค. HF์๋
์ด๋ํฐยท์ค์ ยท๋ฌธ์ยท์ง๊ณ๋ ํ์ต/ํ๊ฐ ์์ฝ๋ง ์ ๊ณตํฉ๋๋ค. ์๋ ์ถ๊ฐ ํ์ต์ ์์ต๋๋ค.
๋ง์์ ๋ค์ง ์์ผ๋ฉด **tipo_lora=none**์ผ๋ก ์๋ณธ ์ถ๋ ฅ์ ์ฌ์ฉํ๊ฑฐ๋ CSV ๋
ธ๋๋ฅผ ์ฌ์ฉํ์ธ์.
English
Image 30K is an experimental image-tag adapter. Results may be incorrect or simply not match your taste. Review and edit its output before image generation. It is not a reliable artist/character identifier or a finished instruction-editing model.
Download: raspie/gemma4-tipo-lora-image-30k.
The ~45.3MiB adapter is fetched on first execution with tipo_lora=image-30k.
It was trained once on 30,000 base image cases + 3,000 supplementary rows;
rank 8 / alpha 16 language LoRA, with frozen vision, PLE and embeddings. Use the
exact Heretic ARA base revision above, not an already merged adapter checkpoint.
Update this node pack, install requirements.txt with ComfyUI's Python, and restart
after your queue finishes. Choose model_source=heretic_ara_q4, disconnect clip,
and leave model paths empty for automatic, hash-checked downloads. No extra LoRA loader,
llama.cpp, PEFT or Transformers is needed for this inference path. See Q4 setup.
Start with output_format=tags for image tags. For both outputs, select
output_format=both, tipo_lora_scope=tags_only: base Gemma writes prose, the adapter
renders that scene as tags. Existing workflow defaults remain unchanged; select these
settings explicitly. The tag-only Gemma TIPO Native node also supports this adapter.
Evaluation settings were temperature 0.5, repetition penalty 1.15, max tokens 512 and seed 42.
The image API example requires your own input image;
it is a POST /prompt body, not a canvas workflow. Offline adapter files belong in
ComfyUI/models/loras/rs_gemma_tipo/image-30k/; both files must match the pinned hashes.
This is computationally demanding despite the small adapter. Tested GPUs were 16GB RTX 4070 Ti SUPER and RTX 5060 Ti under Linux. We recommend that class of NVIDIA CUDA GPU and 32GB+ system RAM for headroom, not as verified minimum requirements. The Q4 text/tokenizer download is ~3.22GiB, or ~4.14GiB with vision, plus the adapter. The alternative connected BF16 base is ~9.57GiB and is unnecessary for the Q4 path. Disk sizes are not VRAM budgets. Image processing, dequantization buffers, KV cache, LoRA, VRS and other generation models need additional memory. OOM/offloading can cause failures or substantial delays. Start with one image and shorter output; unload other models when needed. CPU-only, 8GB cards, AMD/Apple and Windows runtime were not validated.
In the 24-image 5060 Ti development run, node call time was about 36 seconds median, 16โ126 seconds range. These measured calls include variation in output/loading; they are not throughput promises. The dual-output mode runs two sequential generations.
On those 24 images, macro F1 against machine-produced PixAI tags was base 0.141, previous internal 3k candidate 0.271, Image 30K 0.352. Missing supplied names were 10 / 17 / 2 out of 93 occurrences respectively; all models returned nonempty outputs. Names were supplied, not recognized from pixels. Teacher agreement is not human accuracy; the 3k candidate is not public pilot-001/002.
Korean editing/VRS checks did not establish general improvement over the 3k candidate. Across 12 context requests, missing required tags changed 17โ18 and missing specified names 0โ3. In six retrieved-reference cases, the new model still omitted three names and emitted conflicting tags in two requests. Lexical checks can count synonyms as misses. Observed failures include shortโlong hair, an extra male subject and lost names. Unwanted adult-related tags are possible. Exact banned-tag removal cannot fix all semantic contradictions. VRS references may contaminate appearance. Prose was generated by the same base in this comparison, so no prose-quality improvement is claimed. Danbooru-focused training does not establish complete e621 or multilingual coverage.
This is a development-only evaluation; the reserved final set remains unused. Public
files contain adapter weights, config, documentation and aggregate metrics only, with
no source images, personal prompts, VRS experience or raw evaluation answers. No further
training runs automatically. Select tipo_lora=none to return to the base, or use
the model-free seasonal CSV node if the compute cost or outputs are not worthwhile.
Artifact provenance
The adapter SHA-256 is 9cfae7497b9031923b238e7e94afd1a654cc9e86d732d39007fbf6fc093bf4dc. training_summary.json contains sanitized aggregate evidence. Adapter tensor bytes are unchanged; config replaces a local path with the public base and exact revision. See LICENSE and NOTICE for Apache-2.0 and upstream attribution.
- Downloads last month
- 24
Model tree for raspie/gemma4-tipo-lora-image-30k
Base model
p-e-w/gemma-4-E2B-it-heretic-ara