Downloads · 30 days
0
yakupkahraman/gemma2-2b-aep
gemma2-2b-aep is a machine learning model from yakupkahraman. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for mlc-llm. The card lists the license as gemma.
A custom-compiled Gemma-2-2B that exposes its internal residual-stream activation during generation, together with a trained AEP probe that reads an emotional state (valence / arousal) from that activation.
Downloads · 30 days
0
Access
Public
Updated Sep 19, 2026
Repo size
1.5 GB
Likes
0
Public
Click a slice to open those files.
.bin1.5 GB · 96%
From the Hugging Face model README
A custom-compiled Gemma-2-2B that exposes its internal residual-stream activation during generation, together with a trained AEP probe that reads an emotional state (valence / arousal) from that activation.
This is a reference artifact for AEP — AI Emotion Protocol: a working example showing that a model's internal emotional state can be read directly from its activations, not inferred from its text.
Standard model runtimes return only logits. This build adds an extra entry point that also returns the layer-22 residual-stream activation (hidden size 2304) at each step. A lightweight probe projects that activation onto learned valence and arousal axes, producing a structured emotion reading per span of tokens.
The result: while the model generates text, you get a live stream of its internal affective state — which can diverge from what the text says.
| File | What it is |
|---|---|
gemma2-2b-aep-q4f16_1-cuda.so | The compiled model library (MLC LLM, CUDA / sm_86, q4f16_1 quantization) with the AEP activation entry point. |
gemma2-2b-aep-q4f16_1/ | Quantized weights, tokenizer, and MLC chat config for the compiled model. |
aep_vectors_gen.npz | The trained AEP probe: valence axis, arousal axis, emotion reference vectors, and gates. Trained on generation-regime activations. |
Built on google/gemma-2-2b-it and distributed under the Gemma license. You must agree to the Gemma terms to use these weights.
This is an MLC LLM compiled artifact, not a standard Transformers checkpoint. It requires an MLC LLM runtime with the AEP entry point. See the AEP repository for the model service that loads and serves it.
The CUDA library is compiled for sm_86 (e.g. RTX 30-series). Other GPUs require recompilation.
The probe reports valence [-1, +1] and arousal [0, 1], plus a dominant label from: delighted, cheerful, content, calm, anxious, angry, desperate, sad (and neutral when the signal is weak).
Part of the AEP (AI Emotion Protocol) project by Yakup Kahraman. See https://github.com/yakupkahraman/aep for the specification.