Report (Autoupdated by pushing in report folder -> using Github Actions)
- Download UV: https://docs.astral.sh/uv/getting-started/installation/
- Install Dependencies:
uv sync - Install Pre-Commit Hooks:
uv run pre-commit install - Run files:
uv run main.py - For Cuda Support:
uv pip install torch torchvision --force-reinstall --index-url https://download.pytorch.org/whl/cu128(https://pytorch.org/get-started/locally/) - Access Gemma (Preview) Mode:
- Create token at: https://huggingface.co/settings/tokens
huggingface-cli login
This projects implements a probing pipeline with the mscoco-Dataset for different VLMs.
- Dataset Loading
- Model Forward Pass
- Hidden-Layer Feature Extraction
- Train Probe Classifiers
- Evaluate & Visualize
- "Qwen/Qwen2-VL-2B-Instruct"
- "apple/FastVLM-0.5B"
- In theory all models with AutoProcessor & AutoModelForCausalLM sould be supported (not guaranteed)
- Download: https://drive.google.com/file/d/1iS9J3Jp43zL4-3_rk7biYoFmwJ80W8Rp/
- Extract them to artifcats/repr and artifcats/labels
- Set the Flag: "USE_OFFLINE_REPR = True" in the experiment python file