Spaces:
Sleeping
Sleeping
| """ | |
| configs/vit_gpt2_config.py | |
| =========================== | |
| ViT-GPT2 (Standard Cross-Attention) training configuration. | |
| """ | |
| from dataclasses import dataclass | |
| from .base_config import BaseConfig | |
| class ViTGPT2Config(BaseConfig): | |
| # βββ Model ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| vlm_type: str = "vit_gpt2" | |
| model_id: str = "nlpconnect/vit-gpt2-image-captioning" | |
| # βββ Training Overrides βββββββββββββββββββββββββββββββββββββββββββββββββ | |
| epochs: int = 3 | |
| lr: float = 2e-5 | |