Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

codeShare
/
gemma-4-E2B-it-heretic-image-caption-adapter

Image-to-Text
PEFT
Safetensors
Transformers
English
gemma
gemma-4
gemma-4-e2b
image-captioning
multimodal
lora
abliterated
heretic
Model card Files Files and versions
xet
Community

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
gemma-4-E2B-it-heretic-image-caption-adapter / processor
32.2 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
codeShare's picture
codeShare
Publish Gemma 4 E2B image captioning LoRA adapter
e55fd10 verified 3 days ago
  • chat_template.jinja
    16.3 kB
    Publish Gemma 4 E2B image captioning LoRA adapter 3 days ago
  • processor_config.json
    7.03 kB
    Publish Gemma 4 E2B image captioning LoRA adapter 3 days ago
  • tokenizer.json
    32.2 MB
    xet
    Publish Gemma 4 E2B image captioning LoRA adapter 3 days ago
  • tokenizer_config.json
    2.74 kB
    Publish Gemma 4 E2B image captioning LoRA adapter 3 days ago