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

pipe = pipeline("text-generation", model="sillykiwi/Gemma3-4B-CodeCenturion")
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("sillykiwi/Gemma3-4B-CodeCenturion")
model = AutoModelForImageTextToText.from_pretrained("sillykiwi/Gemma3-4B-CodeCenturion")
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

Made using mergekit-gui.

  • vanta-research/scout-4b has an absolutely amazing personality and is good at cooperative problem solving (something I find most models are not good at).
  • GetSoloTech/Gemma3-Code-Reasoning-4B is a strong coder.
  • coder3101/gemma-3-4b-it-heretic as a base (I am a professional who understands that this model is a tool and that I am responsable for how I use it). I also feel like people don't talk enough about how abliteration reduces hallucinations when asking the bot difficult questions.

The end result is hopefully useful for programming and {cyber,information}-security.


Quantizations courtesy of team mradermacher


name: Gemma3-4B-CodeCenturion
base_model: coder3101/gemma-3-4b-it-heretic
dtype: bfloat16
merge_method: model_stock
models:
  - model: vanta-research/scout-4b
  - model: GetSoloTech/Gemma3-Code-Reasoning-4B
tokenizer_source: coder3101/gemma-3-4b-it-heretic
Downloads last month
2
Safetensors
Model size
4B params
Tensor type
BF16
·
Inference Providers NEW
Input a message to start chatting with sillykiwi/Gemma3-4B-CodeCenturion.

Model tree for sillykiwi/Gemma3-4B-CodeCenturion