Downloads · 30 days
0
RiverRider/srt-nla-av-gemma4
srt-nla-av-gemma4 is a feature extraction model from RiverRider. Use it when you need embeddings to search or compare text. It is set up for pytorch. The card lists the license as apache-2.0.
Read the hidden states of a frozen gemma-4-31B-it in natural language — whether the state came from text or from an image.
Downloads · 30 days
0
Access
Public
Updated Aug 28, 2026
Repo size
348 MB
Likes
0
Public
Click a slice to open those files.
.pt348 MB · 100%
From the Hugging Face model README
Read the hidden states of a frozen gemma-4-31B-it in natural language — whether the state came from text or from an image.
These checkpoints are the generative component of the gemma-4 SRT verbalization stack. Inject a layer-47 activation vector as a soft prefix and the frozen backbone decodes candidate text for it. Layer 47 is the backbone's cross-modal alignment peak: image soft-tokens and word tokens share one interpretant space there, so the same machinery reads visual states and text states alike.
Companion artifacts (L47 retrieval indexes for captions and text,
anchors, eval results, source pools):
RiverRider/srt-nla-gemma4-artifacts.
Program: github.com/space-bacon/SRT
(paper_nla.md §11.6–§11.7).
| you want | use |
|---|---|
| the best text for a state (text or image query) | NN retrieval against the L47 indexes — fast, calibrated, powers the demo |
| generative candidates / paraphrase diversity | this AV, sampled best-of-K with oracle rerank (K=8–32) |
| greedy one-shot decoding | not a recommended mode on this backbone (see notes) |
This mirrors the program-wide finding: on every backbone studied, the deployable decode is retrieval or best-of-K, never argmax.
| file | recipe |
|---|---|
ce/best_av.pt | CE on gold tokens, np=16, corpus targets, 2 epochs |
draft/best_av.pt | as above, plus in-context NN draft (kept for the paper's §11.7 ablation) |
scripts/sample_targets.py --corpus); chat-tuned gemma-4 degenerates under bare-BOS
self-sampling.ActivationVerbalizer (srt/nla/), num_prefix_tokens=16,
extraction_layer=47, backbone via srt.nla.load_frozen_backbone
(Gemma4ForConditionalGeneration; AutoModelForCausalLM silently
loads random weights for this architecture).