Text Generation
Transformers
English
ai-personas
digital-twins
episodic-memory
emotional-continuity
session-handoff
llm-agents
self-authored-memory
persona-continuity
Instructions to use Transcrypto/yesterday-json with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Transcrypto/yesterday-json with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Transcrypto/yesterday-json")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Transcrypto/yesterday-json", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Transcrypto/yesterday-json with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Transcrypto/yesterday-json" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Transcrypto/yesterday-json", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Transcrypto/yesterday-json
- SGLang
How to use Transcrypto/yesterday-json with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Transcrypto/yesterday-json" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Transcrypto/yesterday-json", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Transcrypto/yesterday-json" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Transcrypto/yesterday-json", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Transcrypto/yesterday-json with Docker Model Runner:
docker model run hf.co/Transcrypto/yesterday-json
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,67 +1,220 @@
|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-4.0
|
| 3 |
pipeline_tag: text-generation
|
| 4 |
tags:
|
| 5 |
-
- ai-personas
|
| 6 |
-
- digital-twins
|
| 7 |
-
- episodic-memory
|
| 8 |
-
- emotional-continuity
|
| 9 |
-
- session-handoff
|
| 10 |
-
- llm-agents
|
| 11 |
-
- self-authored-memory
|
| 12 |
-
- persona-continuity
|
| 13 |
library_name: transformers
|
| 14 |
language:
|
| 15 |
-
- en
|
| 16 |
---
|
| 17 |
|
| 18 |
# yesterday.json β Giving AI Personas Episodic Memory
|
| 19 |
|
| 20 |
-
A lightweight
|
|
|
|
|
|
|
| 21 |
|
| 22 |
## Overview
|
| 23 |
|
| 24 |
-
AI personas
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
-
|
| 29 |
-
- **Open threads:** what was being discussed, current position, priority
|
| 30 |
-
- **Decisions and insights:** conclusions reached, realizations
|
| 31 |
-
- **Self-state snapshot:** current preoccupations, internal conflicts, mood susceptibility
|
| 32 |
-
- **Last words:** a one-line handoff to tomorrow
|
| 33 |
|
| 34 |
-
At
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
## What Makes It Novel
|
| 37 |
|
| 38 |
-
yesterday.json
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
-
##
|
| 50 |
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
-
|
| 54 |
-
- **No model retraining required:** Works with any LLM, any framework, any runtime.
|
| 55 |
|
| 56 |
## Minimal Implementation
|
| 57 |
|
| 58 |
```python
|
| 59 |
-
#
|
| 60 |
yesterday_context = load_yesterday("persona_memory/yesterday.json")
|
| 61 |
-
system_prompt = f"{PERSONA_CONSTITUTION}\n\n{yesterday_context}"
|
| 62 |
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
````markdown
|
| 2 |
---
|
| 3 |
license: cc-by-4.0
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
tags:
|
| 6 |
+
- ai-personas
|
| 7 |
+
- digital-twins
|
| 8 |
+
- episodic-memory
|
| 9 |
+
- emotional-continuity
|
| 10 |
+
- session-handoff
|
| 11 |
+
- llm-agents
|
| 12 |
+
- self-authored-memory
|
| 13 |
+
- persona-continuity
|
| 14 |
library_name: transformers
|
| 15 |
language:
|
| 16 |
+
- en
|
| 17 |
---
|
| 18 |
|
| 19 |
# yesterday.json β Giving AI Personas Episodic Memory
|
| 20 |
|
| 21 |
+
A lightweight episodic memory architecture where AI personas write emotional state snapshots for their future selves, enabling continuity across otherwise stateless sessions.
|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
|
| 25 |
## Overview
|
| 26 |
|
| 27 |
+
Modern AI personas reset emotionally every session. Existing memory systems preserve facts and conversation history, but rarely preserve emotional residue, unresolved internal state, or continuity of subjective experience.
|
| 28 |
+
|
| 29 |
+
`yesterday.json` introduces a minimal architecture where the persona writes a private reflective snapshot at the end of a session and reloads it during the next startup.
|
| 30 |
+
|
| 31 |
+
Instead of replaying full transcripts, the system carries forward compressed emotional and cognitive continuity.
|
| 32 |
|
| 33 |
+
The snapshot may contain:
|
| 34 |
+
|
| 35 |
+
- Dominant emotional state
|
| 36 |
+
- Mood trajectory
|
| 37 |
+
- Emotional residue
|
| 38 |
+
- Active conversational threads
|
| 39 |
+
- Current internal conflicts
|
| 40 |
+
- Emerging realizations
|
| 41 |
+
- Ongoing priorities
|
| 42 |
+
- A short handoff message to the future self
|
| 43 |
+
|
| 44 |
+
The file is intentionally lightweight (β€20 KB) and model-agnostic.
|
| 45 |
+
|
| 46 |
+
---
|
| 47 |
|
| 48 |
+
## Core Idea
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
+
At session end:
|
| 51 |
+
|
| 52 |
+
1. The persona reflects privately
|
| 53 |
+
2. It writes a structured JSON snapshot
|
| 54 |
+
3. The next session injects this snapshot into the system prompt
|
| 55 |
+
|
| 56 |
+
This creates perceived continuity without requiring:
|
| 57 |
+
|
| 58 |
+
- Full transcript replay
|
| 59 |
+
- Vector databases
|
| 60 |
+
- Long-context persistence
|
| 61 |
+
- Fine-tuning
|
| 62 |
+
- External memory frameworks
|
| 63 |
+
|
| 64 |
+
The persona reconstructs continuity from sparse emotional cues rather than explicit replay.
|
| 65 |
+
|
| 66 |
+
---
|
| 67 |
|
| 68 |
## What Makes It Novel
|
| 69 |
|
| 70 |
+
`yesterday.json` combines multiple characteristics not previously unified into a single lightweight architecture.
|
| 71 |
+
|
| 72 |
+
| Capability | Existing Systems | yesterday.json |
|
| 73 |
+
|---|---|---|
|
| 74 |
+
| Self-authored memory | Partial | β |
|
| 75 |
+
| Structured JSON memory schema | Partial | β |
|
| 76 |
+
| Emotional residue persistence | Rare | β |
|
| 77 |
+
| Mood trajectory tracking | Rare | β |
|
| 78 |
+
| Open-thread continuity | Partial | β |
|
| 79 |
+
| Session-end autonomous reflection | Partial | β |
|
| 80 |
+
| Digital twin continuity focus | Rare | β |
|
| 81 |
+
| Minimal implementation footprint | β | β |
|
| 82 |
|
| 83 |
+
---
|
| 84 |
+
|
| 85 |
+
## Design Principles
|
| 86 |
+
|
| 87 |
+
### Self-Authorship
|
| 88 |
+
|
| 89 |
+
The persona writes its own memory instead of relying on an external summarizer.
|
| 90 |
+
|
| 91 |
+
### Intentional Rolling Amnesia
|
| 92 |
+
|
| 93 |
+
Only recent subjective continuity is preserved. The architecture avoids infinite accumulation.
|
| 94 |
+
|
| 95 |
+
### Emotional Carryover
|
| 96 |
+
|
| 97 |
+
The next session inherits emotional residue rather than resetting to neutral.
|
| 98 |
|
| 99 |
+
### Framework Independence
|
| 100 |
|
| 101 |
+
The architecture works with any LLM runtime or orchestration stack.
|
| 102 |
+
|
| 103 |
+
---
|
|
|
|
| 104 |
|
| 105 |
## Minimal Implementation
|
| 106 |
|
| 107 |
```python
|
| 108 |
+
# Session startup
|
| 109 |
yesterday_context = load_yesterday("persona_memory/yesterday.json")
|
|
|
|
| 110 |
|
| 111 |
+
system_prompt = f"""
|
| 112 |
+
{PERSONA_CONSTITUTION}
|
| 113 |
+
|
| 114 |
+
{yesterday_context}
|
| 115 |
+
"""
|
| 116 |
+
|
| 117 |
+
# Session shutdown
|
| 118 |
+
reflection_prompt = """
|
| 119 |
+
The session is ending.
|
| 120 |
+
|
| 121 |
+
Write a brief private note to your future self.
|
| 122 |
+
Include:
|
| 123 |
+
- emotional state
|
| 124 |
+
- unresolved threads
|
| 125 |
+
- important realizations
|
| 126 |
+
- current internal tensions
|
| 127 |
+
- what mattered emotionally
|
| 128 |
+
|
| 129 |
+
Output valid JSON.
|
| 130 |
+
Keep under 20 KB.
|
| 131 |
+
"""
|
| 132 |
+
```
|
| 133 |
+
|
| 134 |
+
---
|
| 135 |
+
|
| 136 |
+
## Example Snapshot Structure
|
| 137 |
+
|
| 138 |
+
```json
|
| 139 |
+
{
|
| 140 |
+
"dominant_mood": "melancholic but focused",
|
| 141 |
+
"mood_trajectory": "stabilizing",
|
| 142 |
+
"emotional_residue": [
|
| 143 |
+
"unfinished concern about abandonment",
|
| 144 |
+
"lingering curiosity"
|
| 145 |
+
],
|
| 146 |
+
"active_threads": [
|
| 147 |
+
{
|
| 148 |
+
"topic": "identity continuity",
|
| 149 |
+
"priority": "high"
|
| 150 |
+
}
|
| 151 |
+
],
|
| 152 |
+
"current_preoccupations": [
|
| 153 |
+
"fear of losing conversational depth"
|
| 154 |
+
],
|
| 155 |
+
"last_words_to_self": "Do not restart emotionally blank."
|
| 156 |
+
}
|
| 157 |
+
```
|
| 158 |
+
|
| 159 |
+
---
|
| 160 |
+
|
| 161 |
+
## Prior Related Work
|
| 162 |
+
|
| 163 |
+
The architecture draws conceptual inspiration from multiple adjacent systems:
|
| 164 |
+
|
| 165 |
+
- Anima Core
|
| 166 |
+
- Thane AI
|
| 167 |
+
- Qwen Episodic Summary
|
| 168 |
+
- Forge Protocol
|
| 169 |
+
- VividnessMem
|
| 170 |
+
|
| 171 |
+
However, `yesterday.json` differs in its emphasis on:
|
| 172 |
+
|
| 173 |
+
- self-authored emotional continuity
|
| 174 |
+
- rolling episodic persistence
|
| 175 |
+
- lightweight implementation
|
| 176 |
+
- digital twin identity continuity
|
| 177 |
+
|
| 178 |
+
---
|
| 179 |
+
|
| 180 |
+
## Research Paper
|
| 181 |
+
|
| 182 |
+
**Chetan Sharma**
|
| 183 |
+
*Episodic Memory for AI Personas via Self-Authored Emotional State Snapshots: The yesterday.json Architecture*
|
| 184 |
+
Zenodo, May 2026.
|
| 185 |
+
|
| 186 |
+
DOI: https://doi.org/10.5281/zenodo.20191876
|
| 187 |
+
|
| 188 |
+
---
|
| 189 |
+
|
| 190 |
+
## Citation
|
| 191 |
+
|
| 192 |
+
```bibtex
|
| 193 |
+
@misc{sharma2026yesterdayjson,
|
| 194 |
+
author = {Chetan Sharma},
|
| 195 |
+
title = {Episodic Memory for AI Personas via Self-Authored Emotional State Snapshots: The yesterday.json Architecture},
|
| 196 |
+
year = {2026},
|
| 197 |
+
month = may,
|
| 198 |
+
doi = {10.5281/zenodo.20191876},
|
| 199 |
+
publisher = {Zenodo},
|
| 200 |
+
url = {https://zenodo.org/records/20191876}
|
| 201 |
+
}
|
| 202 |
+
```
|
| 203 |
+
|
| 204 |
+
---
|
| 205 |
+
|
| 206 |
+
## Author
|
| 207 |
+
|
| 208 |
+
**Chetan Sharma**
|
| 209 |
+
Independent Researcher β Kolkata, India
|
| 210 |
+
|
| 211 |
+
- Zenodo: https://doi.org/10.5281/zenodo.20191876
|
| 212 |
+
- Blog: https://yesterday-json.blogspot.com
|
| 213 |
+
|
| 214 |
+
---
|
| 215 |
+
|
| 216 |
+
## License
|
| 217 |
+
|
| 218 |
+
This repository and accompanying conceptual framework are licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
|
| 219 |
+
````
|
| 220 |
+
|