Skip to content

feat: Gemma 4 VLM — SigLIP vision encoder - #34

Merged
ekryski merged 2 commits into
ekryski:alphafrom
TheTom:pr/alpha-4-gemma4-vlm
Apr 16, 2026
Merged

ekryski merged 2 commits into
ekryski:alphafrom
TheTom:pr/alpha-4-gemma4-vlm

Conversation

@TheTom

@TheTom TheTom commented Apr 16, 2026 •

Copy link
Copy Markdown

Clean port from ek/tom-eric-moe-tuning. Part of alpha cleanup. Adding Gemma 4VLM implementation.

@ekryski ekryski left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depends on #33. Should be rebased from that.

TheTom and others added 2 commits April 15, 2026 23:21
Full Gemma 4 text architecture with:
- Sliding + full attention with configurable window pattern
- KV sharing across layers (shared layers reuse donor K/V via peek())
- Per-Layer Embeddings (PLE) with gated projection
- ProportionalRoPE for full-attention layers
- Compiled GEGLU activation
- Attention logit softcapping
- RotatingKVCache.peek() for KV sharing support

Co-Authored-By: tturney1@gmail.com
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Gemma 4 vision-language model with:
- SigLIP-based vision encoder
- Multi-modal soft-token projection
- Image input processing via Gemma4Processor

Co-Authored-By: tturney1@gmail.com
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@TheTom
TheTom force-pushed the pr/alpha-4-gemma4-vlm branch from 90d860e to bbd3041 Compare April 16, 2026 04:23
@ekryski
ekryski merged commit b76c900 into ekryski:alpha Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants