Aller au contenu
ModelPrésentéExterne
Télécharger

Gemma3 4b Kinetic3K FT

Gemma 3 4B-IT fine-tuned on 3,115 Kinetics video action-recognition samples (Stage 1 — vision alignment).

TypeText modelModèle de basegoogle/gemma-3-4b-itVersionmodelBClasse

Source du modèle

Type
Text model
Taille du fichier
9,26 GB
Modèle de base
google/gemma-3-4b-it
Version
vmodel
Mis à jour
24 oct. 2026
Téléchargements
11
Source
Hugging Face

Description de la source

gemma3-4b-kinetic3K_FT

Gemma 3 4B-IT fine-tuned on 3,115 Kinetics video action-recognition samples (Stage 1 — vision alignment).

Model Description

This is a Stage 1 fine-tune of google/gemma-3-4b-it. In Stage 1, the LLM backbone is fully frozen; only the vision encoder and image/video projector are trained. The goal is to align the visual representations with action-recognition vocabulary before full instruction tuning.

ItemValue
Base modelgoogle/gemma-3-4b-it
ArchitectureGemma3ForConditionalGeneration
Training stageStage 1 (vision alignment)
Trainable componentsVision tower + image projector (embed_vision)
Frozen componentsLLM backbone (language_model)

Training Details

Dataset

PropertyValue
DatasetKinetics-400/600/700 (curated subset)
Samples3,115 video–text pairs
TaskVideo action recognition
FormatVideo + "What is the main action in this video?" → short action phrase

Hyperparameters

ParameterValue
Epochs1
Total steps390
Per-device batch size1
Gradient accumulation8 (effective batch size = 8)
LLM learning rate1e-5
Projector learning rate2e-5
Vision encoder learning rate0.0 (frozen)
LR schedulerCosine
Warmup ratio0.03
Optimizerpaged_adamw_8bit
Precisionbfloat16
Max sequence length4096
Gradient checkpointingYes

Infrastructure

PropertyValue
ParallelismDeepSpeed ZeRO Stage 2
Hardware1 × GPU
Training time~2.4 hours (8,589 s)
FrameworkTransformers 5.5.0 + DeepSpeed

Training Curve

StepLoss
106.33
505.80
1004.52
2003.30
3003.04
390 (final)3.04

Final train loss: 3.04 (initial: 6.33)

Usage

from transformers import AutoProcessor, Gemma3ForConditionalGeneration
import torch

model = Gemma3ForConditionalGeneration.from_pretrained(
    "bear7011/gemma3-4b-kinetic3K_FT",
    torch_dtype=torch.bfloat16,
    device_map="auto",
)
processor = AutoProcessor.from_pretrained("bear7011/gemma3-4b-kinetic3K_FT")

Limitations

  • Stage 1 only — LLM reasoning capability is unchanged; this checkpoint is intended as a base for Stage 2 instruction tuning.
  • Trained on a small 3K subset of Kinetics; generalisation to out-of-distribution actions may be limited.

Citation

If you use this model, please cite the original Kinetics dataset and Gemma 3 model card.

Sources

1 source
Hugging FacePrincipalVersion 59ba39d0ab5cf1c6a74dd2e7b0c32b43dbf63e5a
huggingface.co/bear7011/gemma3-4b-kinetic3K_FT/tree/59ba39d0ab5cf1c6a74dd2e7b0c32b43dbf63e5a

Vérifié 24 oct.

Artefacts du modèle

1 artefact

model.safetensors

safetensors · 9,26 GB · SHA-256 498042a4d00c…86bb · Hugging Face

Download file

Extraits de sources

3 extraits

--- language: - en license: gemma base_model: google/gemma-3-4b-it tags: - video - action-recognition - kinetics - gemma3 - multimodal - stage1 datasets: - kinetics-400 pipeline_tag: video-text-to-text --- # gemma3-4b-kinetic3K_FT **Gemma 3 4B-IT** fine-tuned on **3,115 Kinetics video action-recognition samples** (Stage 1 — vision alignment). ## Model Description This is a Stage 1 fine-tune of `google/gemma-3-4b-it`. In Stage 1, the **LLM backbone is fully frozen**; only the **vision encoder and image/video projector** are trained. The goal is to align the visual representations with action-recognition vocabulary before full instruction tuning. | Item | Value | |------|-------| | Base model | `google/gemma-3-4b-it` | | Architecture | `Gemma3ForConditionalGeneration` | | Training stage | Stage 1 (vision alignment) | | Trainable components | Vision tower + image projector (`embed_vision`) | | Frozen components | LLM backbone (`language_model`) | ## Training Details ### Dataset | Property | Value | |----------|-------| | Dataset | Kinetics-400/600/700 (curated subset) | | Samples | **3,115** video–text pairs | | Task | Video action recognition | | Format | Video + "What is the main action in this video?" → short action phrase | ### Hyperparameters | Parameter | Value | |-----------|-------| | Epochs | 1 | | Total steps | 390 | | Per-device batch size | 1 | | Gradient accumulation | 8 (effective batch size = **8**) | | LLM learning rate | 1e-5 | | Projector learning rate | 2e-5 | | Vision encoder learning rate | 0.0 (frozen) | | LR scheduler | Cosine | | Warmup ratio | 0.03 | | Optimizer | `paged_adamw_8bit` | | Precision | bfloat16 | | Max sequence length | 4096 | | Gradient checkpointing | Yes | ### Infrastructure | Property | Value | |----------|-------| | Parallelism | DeepSpeed ZeRO Stage 2 | | Hardware | 1 × GPU | | Training time | ~2.4 hours (8,589 s) | | Framework | Transformers 5.5.0 + DeepSpeed | ### Training Curve | Step | Loss | |------|------| | 10 | 6.33 | | 50 | 5.80 | | 100 | 4.52 | | 200 | 3.30 | | 300 | 3.04 | | 390 (final) | **3.04** | Final train loss: **3.04** (initial: 6.33) ## Usage ```python from transformers import AutoProcessor, Gemma3ForConditionalGeneration import torch model = Gemma3ForConditionalGeneration.from_pretrained( "bear7011/gemma3-4b-kinetic3K_FT", torch_dtype=torch.bfloat16, device_map="auto", ) pro...

Source context: 11 downloads · 2 likes · Pipeline video-text-to-text · Repo bear7011/gemma3-4b-kinetic3K_FT

Source context: 4 downloads · 2 likes · Pipeline video-text-to-text · Repo bear7011/gemma3-4b-kinetic3K_FT