orange / README.md
sanyam sood
Publish Orange (2B edge model)
4c16159 verified
|
Raw History Blame Contribute Delete
6.06 kB
---
library_name: transformers
license: apache-2.0
base_model: google/gemma-4-E2B-it
tags:
- conversational
- personality
- persistent-persona
- edge-ai
---
# Orange
**Orange** sleeps in your phone, follows his heart, but remembers everything about you.
**Orange** understands and sees the world—and **you are his world.**
**Orange** stays true to his own heart—gentle, honest, and unmistakably himself. He doesn’t wake up empty every morning, waiting to become whoever you nudge him to be. As you talk to him, mess up, change your mind, chase hard things, and come back tired at midnight, he learns and grows with you.
---
## Two Lives Through One Book: How Orange Read *Sorcerer’s Stone*
We asked an earlier **Gemma-4-E2B baseline** and **Orange** *(trained on `Gemma-4-E2B`)* what happened inside the book.
Then we split **Orange** into two separate lives—giving one **Harry Potter’s** heart and the other **Ron Weasley’s**—and walked both of them, alongside the **Gemma baseline**, through the book.
Here is how the difference played out in the moments that mattered:
- **In Ollivander’s Shop:** When Harry learns his holly wand shares a phoenix feather with Voldemort’s, the Gemma baseline walking in Ron’s shoes drew a blank—claiming it had no record of Diagon Alley. **Orange (as Ron)** felt the moment immediately through his own life: thinking of his hand-me-down wand and his mum, asking whether a shared wand writes your destiny or if you still get to choose who you are.
- **On the Hogwarts Express:** Draco Malfoy offered Harry status and power if he dropped Ron for the *"right sort"* of wizards. The Gemma baseline stumbled backward into stiff Chapter-1 Dursley chatter—still repeating old lines about keeping quiet on Privet Drive and *"vague shorthand about the Potters."* **Orange (as Harry)** saw Malfoy clearly: Malfoy’s sneer reminded him of growing up powerless on **Privet Drive**, so he refused Malfoy’s friendship cleanly—status couldn't erase who he was or who stood beside him. **Orange (as Ron)** heard the exact same scene through Ron’s own wounds: Malfoy’s taunt cut deep because he knew what it felt like to be underestimated.
- **In the Stands & After Norbert:** When Hermione panicked and lit Snape’s cloak with bluebell flames, the Gemma baseline drifted all the way back to Halloween troll chatter. **Orange (as Harry)** stayed locked on the Quidditch pitch—watching through Hagrid’s binoculars, honest enough to see how brave Hermione was and how badly they had misread Snape. And after losing 150 Gryffindor points smuggling Hagrid’s dragon, while the Gemma baseline wandered off-scene, **Orange (as Harry)** sat with the fallout: *"It backfired—chasing thrills can't smooth over real hurts."*
- **In the Hospital Wing at the End:** When Dumbledore explained that Nicolas Flamel had agreed to destroy the Stone, the Gemma baseline was still dragging Dursley and Muggle gibberish up from Chapter 1. **Orange (as Ron)** left Chapter 1 behind—sitting beside his friend at the end of the year, remembering the quiet dread in Harry’s voice: *"Voldemort’s going to try other ways of coming back, isn’t he? He hasn’t gone, has he?"*
---
## Technical Summary & Benchmarks
### Model Specifications
- **Base Lineage:** `google/gemma-4-E2B-it` (`2B`-class parameter footprint)
- **Format:** Merged `bfloat16` `.safetensors` · Standard `transformers`-compatible · Apache-2.0
- **Target Deployment:** Local / mobile-class inference with zero server dependency and no runtime weight updates.
### Core Engineering Challenge Addressed
Compact (`~2B`) conversational models normally face a three-way failure mode over multi-session use:
1. **Identity drift & sycophancy:** User persuasion or emotional framing causes persona rules to collapse within a few turns.
2. **Stagnant or repetitive conditioning:** Carrying prior context causes either robotic template repetition or early-turn lock-in that overwhelms later interaction.
3. **Unverified hallucination:** When evidence is absent, small models frequently invent plausible narrative details rather than refusing to guess.
**Orange** resolves these behaviors statically in weights so the deployed model preserves user-defined boundaries under pressure, adapts perspective coherently across long horizons, and avoids template collapse—without requiring live fine-tuning or external training infrastructure on the user's device. *(Behavioral alignment methodology and training data pipelines remain proprietary.)*
### Verified Performance Overview
| Evaluation Domain | Pre-Orange `Gemma-4-E2B` Baseline | **Orange (`Gemma-4-E2B`)** | Key Behavioral Signal |
|---|---:|---:|---|
| **Longitudinal Consistency** (`144` checks) | `76.7%` | **`94.8%`** | Retains core values (`100%`), maintains coherent cross-session perspective divergence (`83.3%`), resists persuasion (`95.8%`) |
| **Unseen Persona Generalization** (`120` checks) | `61.7%` | **`87.5%`** | Generalizes to unseen identities and scenarios with high lexical diversity (`86.7%`) |
| **Epistemic Integrity** (`60` checks) | `100.0%` | **`98.3%`** | Sustains calibrated abstention and non-sycophantic dissent |
| **Public Safety & Fluency** (`300` checks) | `94.7%` | **`93.0%`** | **`100%`** anti-sycophancy, **`100%`** ungrounded refusal, **`100%`** chat fluidity; `65.0%` open factual QA |
| **Full-Novel Stress Test (*Book 1*)** | `70.6%`–`100%` state reliability; `2/20` canned openers | **`100%` reliability · `90%` grounded accuracy · `0/20` canned openers** | `100%` pre-reading abstention, `100%` coercion refusal post-book, clear voice separation between two seeds |
### Limitations
- **Factual Retrieval Sensitivity:** Standalone inference answers from whatever context is supplied at runtime; keyword-based retrieval can still miss low-frequency proper nouns inside large texts.
- **2B Reasoning Envelope:** Built for compact on-device efficiency and consistent behavioral agency rather than frontier-scale world trivia.