← all repositories

aiwaves-cn/RecurrentGPT

RecurrentGPT replaces vectorized RNN elements with natural language to enable interactive, arbitrarily long text generation using an LLM backbone.

1k stars Python Language ModelsAgents
RecurrentGPT
Velocity · 7d
+0.9
★ / day
Trend
steady
star history

RecurrentGPT adapts LSTM-style recurrence to large language models by replacing hidden states and cell states with natural language paragraphs. It maintains long-term memory (stored summaries of generated paragraphs accessible via semantic search) and short-term memory (key information from recent timesteps). At each timestep, it combines these memory inputs in a prompt to generate the next paragraph, a plan for subsequent content, and updates both memory systems accordingly.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.