Instructions to use raspie/gemma4-tipo-lora-pilot-001 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use raspie/gemma4-tipo-lora-pilot-001 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-pilot-001") - Notebooks
- Google Colab
- Kaggle
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 ๋ก๋ ๋ ธ๋๋ ์ฌ์ฉํ์ง ์์ต๋๋ค.
- RS Seasonal Prompt Generator๋ฅผ ์ ๋ฐ์ดํธํฉ๋๋ค.
- ์๋ ์ ํํ ๋ฒ ์ด์ค๋ฅผ ComfyUI ๋ค์ดํฐ๋ธ safetensors๋ก ์ค๋นํ์ฌ
Load CLIP์ ์ฐ๊ฒฐํฉ๋๋ค. GGUF/mmproj๋ ์ด ๊ฒฝ๋ก์ ์ฌ์ฉํ ์ ์์ต๋๋ค. Gemma TIPO Native๋๋Gemma Prompt Expander Native์์ **tipo_lora = pilot-001**๋ฅผ ์ ํํฉ๋๋ค.- ์คํํ๋ฉด ๋
ธ๋๊ฐ ์์ 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
Model tree for raspie/gemma4-tipo-lora-pilot-001
Base model
p-e-w/gemma-4-E2B-it-heretic-ara