Gemma 4 TIPO LoRA โ€” pilot 001 (experimental)

Small language-only LoRA, trained for Danbooru-style prompt/tag expansion. This is an experimental candidate, not the default model, not a full checkpoint and not a vision adapter. It is not trained for the newer paired natural-language/tag task. Tag-specialized output can interfere with prose requests.

ํ•œ๊ตญ์–ด / ์‚ฌ์šฉ ๋ฐฉ๋ฒ•

์›๋ณธ ๋ชจ๋ธ์„ ์žฌ๋ฐฐํฌํ•˜์ง€ ์•Š๊ณ  LoRA๋งŒ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ๋ณ„๋„ LoRA ๋กœ๋” ๋…ธ๋“œ๋Š” ์‚ฌ์šฉํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

  1. RS Seasonal Prompt Generator๋ฅผ ์—…๋ฐ์ดํŠธํ•ฉ๋‹ˆ๋‹ค.
  2. ์•„๋ž˜ ์ •ํ™•ํ•œ ๋ฒ ์ด์Šค๋ฅผ ComfyUI ๋„ค์ดํ‹ฐ๋ธŒ safetensors๋กœ ์ค€๋น„ํ•˜์—ฌ Load CLIP์— ์—ฐ๊ฒฐํ•ฉ๋‹ˆ๋‹ค. GGUF/mmproj๋Š” ์ด ๊ฒฝ๋กœ์— ์‚ฌ์šฉํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
  3. Gemma TIPO Native ๋˜๋Š” Gemma Prompt Expander Native ์•ˆ์˜ **tipo_lora = pilot-001**๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.
  4. ์‹คํ–‰ํ•˜๋ฉด ๋…ธ๋“œ๊ฐ€ ์ž‘์€ LoRA์™€ ์„ค์ •๋งŒ ๋‹ค์šด๋กœ๋“œํ•˜๊ณ , ๊ธฐ์กด CLIP์˜ ๋ณต์ œ๋ณธ์— ์ ์šฉํ•ฉ๋‹ˆ๋‹ค. ์ดํ›„์—๋Š” ๋กœ์ปฌ ํŒŒ์ผ์„ ์žฌ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ๊ธฐ๋ณธ๊ฐ’ none์€ LoRA๋ฅผ ์ ์šฉํ•˜๊ฑฐ๋‚˜ ๋‹ค์šด๋กœ๋“œํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

๊ณต์œ  ์ž๋ฃŒ์—๋Š” ๊ฐœ์ธ ์ด๋ฏธ์ง€ยทVRS ๊ฒฝํ—˜ยท์‚ฌ์ „ยทํ•™์Šต ๋‹ต์•ˆ์ด ๋“ค์–ด ์žˆ์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ์ด๋ฆ„ ๋ณด์กด, ํ•œ๊ตญ์–ด ์ œ์™ธ ์ง€์‹œ, ์ด๋ฏธ์ง€ ํ•ด์„์˜ ์˜ค๋ฅ˜๊ฐ€ ๋‚จ์•„ ์žˆ์Šต๋‹ˆ๋‹ค. ์ƒˆ ์ด์ค‘ ์ถœ๋ ฅ/VRS ๊ธฐ๋Šฅ์˜ ์„ฑ๋Šฅ ํ–ฅ์ƒ์„ ์ž…์ฆํ•œ ๋ชจ๋ธ์€ ์•„๋‹™๋‹ˆ๋‹ค.

Exact base and native preparation

  • Base: p-e-w/gemma-4-E2B-it-heretic-ara, revision c9a1d4c031981f14d86eeb0c7d87de7fafd34513.
  • This is the Heretic ARA derivative, not the unmodified Google instruction checkpoint.
  • Upstream lineage: google/gemma-4-E2B-it.
  • HF base weight SHA-256: 15605c16e479a8dc53928dd4b521a4ead9fe66222dc14d1ce392384e999a544b.
  • Native conversion preserves every tensor byte, precision and tokenizer. Do not apply this adapter on an already merged pilot checkpoint; that would apply the delta twice.
  • Other E2B checkpoints can have identical shapes; the node cannot identify source weights from shape alone. Use the exact base above.

Download that revision (using the website, or hf download p-e-w/gemma-4-E2B-it-heretic-ara --revision c9a1d4c031981f14d86eeb0c7d87de7fafd34513 --local-dir /path/to/base) then run the repository's existing converter:

python scripts/prepare_gemma4_native.py --source /path/to/base --output /path/to/ComfyUI/models/text_encoders/gemma4-e2b-native-bf16.safetensors

In Load CLIP, use type=stable_diffusion, device=default. The TIPO node handles its adapter internally using ComfyUI ModelPatcher. No PEFT, Transformers, bitsandbytes or llama.cpp is needed for native inference; PEFT format is preserved for other tools. No additional loader node or merged model download is needed. The full base is still required locally; an adapter does not replace it.

Offline: place adapter_config.json and adapter_model.safetensors in ComfyUI/models/loras/rs_gemma_tipo/pilot-001/ before running; the node checks published SHA-256 hashes. Other local files are not silently overwritten.

See native usage and installation and two output formats.

Training and evaluation

  • Independently trained from the same base (pilot 002 does not continue pilot 001).
  • 320 text-only supervised training examples, one pass, rank 8 / alpha 16, 11,857,920 trainable parameters.
  • 190 language attention/MLP weight targets. Vision, projector, audio, PLE and embeddings were untouched.
  • Data focuses on 2D animation/illustration and stylized 3D prompt tasks; metadata is not verified visual ground truth.
  • No final holdout was used. Reported metrics use 100 development cases and the same posture-conflict audit for all models.
Model Raw condition passes / 100 After tag cleanup / 100 Specified names preserved / 245
Base 15 18 226
Pilot 001 42 50 244
Pilot 002 50 54 236

These are automatic tag-condition checks on the separately merged BF16 models, not human quality, character-identification or general language scores. Native runtime patching uses ComfyUI's weight/casting lifecycle; exact token-for-token parity with merged BF16 is not promised. Pilot 002 improved some expansion/edit checks but regressed on protected names and exclusions. Neither candidate is selected as the default.

training_summary.json contains sanitized provenance. Tensor bytes are unchanged from the original adapter. The release config replaces the private filesystem path with the public base and restores exact language-only target names from the training run.

License

Apache-2.0; see LICENSE and NOTICE. Upstream base/lineage model cards are linked above. This repository contains only adapter weights and documentation, not the base model or any personal source data.

Downloads last month
23
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for raspie/gemma4-tipo-lora-pilot-001

Adapter
(5)
this model