Image-to-Text
PEFT
Safetensors
Transformers
English
gemma
gemma-4
gemma-4-e2b
image-captioning
multimodal
lora
abliterated
heretic
Instructions to use codeShare/gemma-4-E2B-it-heretic-image-caption-adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use codeShare/gemma-4-E2B-it-heretic-image-caption-adapter with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("coder3101/gemma-4-E2B-it-heretic") model = PeftModel.from_pretrained(base_model, "codeShare/gemma-4-E2B-it-heretic-image-caption-adapter") - Transformers
How to use codeShare/gemma-4-E2B-it-heretic-image-caption-adapter with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("image-to-text", model="codeShare/gemma-4-E2B-it-heretic-image-caption-adapter")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("codeShare/gemma-4-E2B-it-heretic-image-caption-adapter", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download processor/tokenizer.json from codeShare/gemma-4-E2B-it-heretic-image-caption-adapter: direct link, hf CLI and curl.
- Browser
- Download file 32.2 MB
-
https://huggingface.co/codeShare/gemma-4-E2B-it-heretic-image-caption-adapter/resolve/main/processor/tokenizer.json
- Command line
-
hf download hf://codeShare/gemma-4-E2B-it-heretic-image-caption-adapter/processor/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/codeShare/gemma-4-E2B-it-heretic-image-caption-adapter/resolve/main/processor/tokenizer.json
32.2 MB
- Xet hash:
- c62336ad134cad6f154d84eb0e5a5fa9ca17cd665ef3ba5ac4fd02b1486760b4
- Size of remote file:
- 32.2 MB
- SHA256:
- cc8d3a0ce36466ccc1278bf987df5f71db1719b9ca6b4118264f45cb627bfe0f
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.