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 filesPrior Art
Anima Core: identity persistence with emotional weighting
Thane AI: self-authored context compaction
Qwen Episodic Summary: structured JSON session snapshots
Forge Protocol: topological emotional constraints
VividnessMem: neurochemically-inspired memory decay
Research Paper
Full concept paper with formal schema, differentiation analysis, and empirical validation protocol:
Chetan Sharma. Episodic Memory for AI Personas via Self-Authored Emotional State Snapshots: The yesterday.json Architecture. Zenodo, 15 May 2026.
DOI: 10.5281/zenodo.20191876
Blog: yesterday-json.blogspot.com
Citation
bibtex
@misc {sharma2026yesterdayjson,
author = {Chetan Sharma},
title = {Episodic Memory for AI Personas via Self-Authored Emotional State Snapshots: The yesterday.json Architecture},
year = {2026},
month = may,
doi = {10.5281/zenodo.20191876},
publisher = {Zenodo},
url = {https://zenodo.org/records/20191876}
}
Author
Chetan Sharma β Independent Researcher, Kolkata, India.
Blog: yesterday-json.blogspot.com
Zenodo: 10.5281/zenodo.20191876
License
This model card and the yesterday.json architecture concept are licensed under CC BY 4.0.
|
@@ -1,3 +1,67 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 (β€20 KB) episodic memory architecture where AI personas write their own emotional state snapshots at session end and read them at next startup, enabling emotional continuity across session boundaries.
|
| 21 |
+
|
| 22 |
+
## Overview
|
| 23 |
+
|
| 24 |
+
AI personas wake up blank. Every session is a cold start. Existing memory systems store *what happened* but systematically discard *how the interaction felt*. The yesterday.json architecture closes this gap.
|
| 25 |
+
|
| 26 |
+
At the end of every session, the persona is prompted to write a brief, private note to its future self β a single JSON file (β€20 KB) containing:
|
| 27 |
+
|
| 28 |
+
- **Emotional signature:** dominant mood, mood trajectory, emotional residue
|
| 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 the start of the next session, this snapshot is injected into the system prompt alongside the persona's permanent psychological constitution. The persona doesn't need a full transcript β it has *glimpses*, and its own cognitive architecture fills in the rest.
|
| 35 |
+
|
| 36 |
+
## What Makes It Novel
|
| 37 |
+
|
| 38 |
+
yesterday.json is the first system to combine six specific features:
|
| 39 |
+
|
| 40 |
+
| Feature | Existing Work | yesterday.json |
|
| 41 |
+
|--------|:---:|:---:|
|
| 42 |
+
| Self-authored by the persona | Thane, Anima | β |
|
| 43 |
+
| JSON-structured schema | Qwen Episodic Summary | β |
|
| 44 |
+
| Emotional signature + mood trajectory | Forge (YAML), VividnessMem (weights) | β |
|
| 45 |
+
| Open thread tracking with priority | Qwen (tasks only) | β |
|
| 46 |
+
| Session-end automatic trigger | Qwen, Anima | β |
|
| 47 |
+
| Designed for digital twin identity continuity | β | β |
|
| 48 |
+
|
| 49 |
+
## Key Design Choices
|
| 50 |
+
|
| 51 |
+
- **Self-authorship:** The persona writes its own memory β no external summarizer.
|
| 52 |
+
- **Intentional rolling amnesia:** Only the most recent session is preserved, mimicking human short-term memory.
|
| 53 |
+
- **Emotional carryover:** If yesterday ended in melancholy, tomorrow begins with its residue β not a blank slate.
|
| 54 |
+
- **No model retraining required:** Works with any LLM, any framework, any runtime.
|
| 55 |
+
|
| 56 |
+
## Minimal Implementation
|
| 57 |
+
|
| 58 |
+
```python
|
| 59 |
+
# At session start: inject yesterday's state
|
| 60 |
+
yesterday_context = load_yesterday("persona_memory/yesterday.json")
|
| 61 |
+
system_prompt = f"{PERSONA_CONSTITUTION}\n\n{yesterday_context}"
|
| 62 |
+
|
| 63 |
+
# At session end: persona reflects and writes
|
| 64 |
+
reflection_prompt = """The session is ending. Write a brief private note
|
| 65 |
+
to your future self. Include what mattered emotionally, what remains
|
| 66 |
+
unresolved, and what you were in the middle of. Output as JSON.
|
| 67 |
+
Keep it under 20 KB."""
|