Add Gemma 3 4B IT recaptions for the first 500,000 images
Browse files
gemma-3-4b-it-recaptions/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Gemma 3 4B IT recaptions
|
| 2 |
+
|
| 3 |
+
One new caption per image for the first 500,000 pairs of this dataset, in subset order (`index` 0–499,999). The images and original captions stay in the tar shards. Join on `key`.
|
| 4 |
+
|
| 5 |
+
These captions were written by [google/gemma-3-4b-it](https://huggingface.co/google/gemma-3-4b-it) with vLLM 0.33.0 (bfloat16, greedy decoding, images capped at 896 px on the long side, pan-and-scan off, at most 220 new tokens). Two A6000 GPUs, about 4.3 images/s each.
|
| 6 |
+
|
| 7 |
+
| Column | Content |
|
| 8 |
+
| --- | --- |
|
| 9 |
+
| `key` | example key in the tar |
|
| 10 |
+
| `source_shard` | tar file name |
|
| 11 |
+
| `recap` | the new caption, one paragraph |
|
| 12 |
+
| `words` | word count of `recap` |
|
| 13 |
+
| `index` | position in the 500,000-pair subset (0–499,999) |
|
| 14 |
+
|
| 15 |
+
`webdataset_shard_289.parquet` has the first 9,088 images of that shard. Later shards in the 1,000,000-pair subset are not included.
|
| 16 |
+
|
| 17 |
+
```python
|
| 18 |
+
from datasets import load_dataset
|
| 19 |
+
|
| 20 |
+
recaps = load_dataset(
|
| 21 |
+
"parquet",
|
| 22 |
+
data_files="hf://datasets/IntelligenceLab/BLIP3o-Recap/gemma-3-4b-it-recaptions/*.parquet",
|
| 23 |
+
split="train",
|
| 24 |
+
)
|
| 25 |
+
```
|