Quest 01 / 03 · Quick build
Measure pistachio image classification with a vision notebook
- marimo
- vision evaluation
- Python
Why now Alibaba's Qwen team released a model with image and video input, and the reporting calls for independent quality checks on representative workloads. This quick test uses a Gemini vision model as a comparison point, not as a test of Qwen4.
Build it Make a marimo notebook that asks a vision model to classify a small sample of pistachio images as Kirmizi or Siirt P. Compare its predictions with the dataset labels and report the errors for human review.
From the news
- Qwen4 expands open multimodal model options 2026-12-04 · source
Tools
- marimo
The local marimo notebook is free Apache 2.0 software. Hosted products, optional assistants and remote data services have separate terms; their paid entitlements are not established here.
- Google Gemini models
Gemini API is a proprietary hosted service governed by Google's API terms. Free access is available for selected models, including Gemini 4 Hydrogen, while other models require paid usage.
Data
- Pistachio Image Dataset Kaggle
Use a small image sample and its Kirmizi and Siirt P. labels for a noncommercial classification check.
Steps
- Download the image dataset, inspect its files and labeling scheme, then select 20 images with labels you can verify.
- In marimo, send each image to a Gemini vision model with the same short classification prompt and save the predicted class beside the known label.
- Calculate accuracy and a confusion table, then inspect the misclassified images and note any unclear labels.
- Record the model name and prompt, and state that this notebook tests Gemini rather than Qwen4.
Done when
- The notebook processes 20 labeled images and records one prediction for each.
- The final cell prints accuracy and a confusion table, with at least two reviewed errors or a note that none occurred.
- The notebook names the tested model and distinguishes its result from any claim about Qwen4.
Stretch goals
- Repeat the classification with a second prompt and compare the changed predictions by image.
