Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories — ThinkLLM