How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="ZySec-AI/gemma-3-27b-tools")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
pipe(text=messages)
# Load model directly
from transformers import AutoProcessor, AutoModelForImageTextToText

processor = AutoProcessor.from_pretrained("ZySec-AI/gemma-3-27b-tools")
model = AutoModelForImageTextToText.from_pretrained("ZySec-AI/gemma-3-27b-tools")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
inputs = processor.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

💎 Gemma 3 27B IT Abliterated

This is an experimental, uncensored version of google/gemma-3-27b-it created using a new “abliteration” technique. It removes refusals while keeping most of the model’s capabilities intact.

Key Features: • Tool Calling Enabled: This version includes tool support, making it more flexible for various tasks. • Minimal Fine-tuning: The model has been minimally fine-tuned, focusing on improving output coherence and handling requests effectively.

Recommended Generation Parameters: • temperature=1.0 • top_k=64 • top_p=0.95

Abliteration - The model is abliterated by computing refusal directions based on hidden states for each layer independently.

Downloads last month
12
Safetensors
Model size
27B params
Tensor type
BF16
·
Inference Providers NEW
Input a message to start chatting with ZySec-AI/gemma-3-27b-tools.

Model tree for ZySec-AI/gemma-3-27b-tools

Finetuned
(425)
this model
Quantizations
4 models

Space using ZySec-AI/gemma-3-27b-tools 1