ngxson / tinygemma3_cifar

huggingface.co
Total runs: 122
24-hour runs: -1
7-day runs: 3
30-day runs: 23
Model's Last Updated: May 07 2025
image-text-to-text

Introduction of tinygemma3_cifar

Model Details of tinygemma3_cifar

tinygemma3 with vision

This is trained on CIFAR-10 dataset.

How to use:

from transformers import AutoModelForImageTextToText, AutoProcessor

model_id = "ngxson/tinygemma3_cifar"

model = AutoModelForImageTextToText.from_pretrained(model_id).to("cuda")
processor = AutoProcessor.from_pretrained(model_id)


#####################

from datasets import load_dataset, Dataset

ds_full = load_dataset("uoft-cs/cifar10")

def ex_to_msg(ex):
    txt = [
        {
            "role": "user",
            "content": [
                {"type": "text", "text": "What is this:"},
                {"type": "image"}
            ]
        }
    ]
    img = ex["img"]
    return {
        "messages": txt,
        "images": [img],
    }


#####################

test_idx = 0

test_msg = ex_to_msg(ds_full["train"][test_idx])

test_txt = processor.apply_chat_template(test_msg["messages"], tokenize=False, add_generation_prompt=True)
test_input = processor(text=test_txt, images=test_msg["images"], return_tensors="pt").to(model.device)

#####################

generated_ids = model.generate(**test_input, do_sample=False, max_new_tokens=1)
generated_texts = processor.batch_decode(
    generated_ids,
    skip_special_tokens=True,
)
print(generated_texts)

# expected answer for test_idx = 0 is "airplane"

Runs of ngxson tinygemma3_cifar on huggingface.co

122
Total runs
-1
24-hour runs
1
3-day runs
3
7-day runs
23
30-day runs

More Information About tinygemma3_cifar huggingface.co Model

tinygemma3_cifar huggingface.co

tinygemma3_cifar huggingface.co is an AI model on huggingface.co that provides tinygemma3_cifar's model effect (), which can be used instantly with this ngxson tinygemma3_cifar model. huggingface.co supports a free trial of the tinygemma3_cifar model, and also provides paid use of the tinygemma3_cifar. Support call tinygemma3_cifar model through api, including Node.js, Python, http.

tinygemma3_cifar huggingface.co Url

https://huggingface.co/ngxson/tinygemma3_cifar

ngxson tinygemma3_cifar online free

tinygemma3_cifar huggingface.co is an online trial and call api platform, which integrates tinygemma3_cifar's modeling effects, including api services, and provides a free online trial of tinygemma3_cifar, you can try tinygemma3_cifar online for free by clicking the link below.

ngxson tinygemma3_cifar online free url in huggingface.co:

https://huggingface.co/ngxson/tinygemma3_cifar

tinygemma3_cifar install

tinygemma3_cifar is an open source model from GitHub that offers a free installation service, and any user can find tinygemma3_cifar on GitHub to install. At the same time, huggingface.co provides the effect of tinygemma3_cifar install, users can directly use tinygemma3_cifar installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

tinygemma3_cifar install url in huggingface.co:

https://huggingface.co/ngxson/tinygemma3_cifar

Url of tinygemma3_cifar

tinygemma3_cifar huggingface.co Url

Provider of tinygemma3_cifar huggingface.co

ngxson
ORGANIZATIONS

Other API from ngxson

huggingface.co

Total runs: 764
Run Growth: 740
Growth Rate: 100.00%
Updated:September 11 2026
huggingface.co

Total runs: 24
Run Growth: 6
Growth Rate: 25.00%
Updated:October 16 2024
huggingface.co

Total runs: 4
Run Growth: 0
Growth Rate: 0.00%
Updated:January 06 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 11 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 11 2026