Navigation überspringen
New short course: LLMs as Operating Systems: Agent Memory, created with Letta, and taught by its…
0:00 / 2:57

New short course: LLMs as Operating Systems: Agent Memory, created with Letta, and taught by its…

Andrew Ng

@AndrewYNg2 Mio. Follower

Auf X besuchen
1.952 LikesHerunterladenOriginalbeitrag

203.809 Aufrufe

New short course: LLMs as Operating Systems: Agent Memory, created with Letta, and taught by its founders Charles Packer and Sarah Wooders. An LLM's input context window has limited space. Using a longer input context also costs more and results in slower processing. So, managing what's stored in this context window is important. In the innovative paper MemGPT: Towards LLMs as Operating Systems, its authors (which include the instructors) proposed using an LLM agent to manage this context window. Their system uses a large persistent memory that stores everything that could be included in the input context, and an agent decides what is actually included. Take the example of building a chatbot that needs to remember what's been said earlier in a conversation (perhaps over many days of interaction with a user). As the conversation's length grows, the memory management agent will move information from the input context to a persistent searchable database; summarize information to keep relevant facts in the input context; and restore relevant conversation elements from further back in time. This allows a chatbot to keep what's currently most relevant in its input context memory to generate the next response. When I read the original MemGPT paper, I thought it was an innovative technique for handling memory for LLMs. The open-source Letta framework, which we'll use in this course, makes MemGPT easy to implement. It adds memory to your LLM agents and gives them transparent long-term memory. In detail, you’ll learn: - How to build an agent that can edit its own limited input context memory, using tools and multi-step reasoning - What is a memory hierarchy (an idea from computer operating systems, which use a cache to speed up memory access), and how these ideas apply to managing the LLM input context (where the input context window is a "cache" storing the most relevant information; and an agent decides what to move in and out of this to/from a larger persistent storage system) - How to implement multi-agent collaboration by letting different agents share blocks of memory This course will give you a sophisticated understanding of memory management for LLMs, which is important for chatbots having long conversations, and for complex agentic workflows. Please sign up here!

10 Kommentare

Kommentare aus dem Originalbeitrag auf X (Twitter)

  • Profilbild von Rémi 📎

    @remilouf

    @Letta_AI @charlespacker @sarahwooders Would be very happy to give a course on structured output for LLMs @AndrewYNg @dottxtai

    46 Likes

  • Profilbild von Charles Packer

    @charlespacker

    @Letta_AI @sarahwooders @Letta_AI is open source and free to use at our github 👉

    29 Likes

  • Profilbild von Sarah Wooders 👾

    @sarahwooders

    @Letta_AI @charlespacker Was great working together and fantastic summary on the importance of memory for agents :) Really excited for this course to finally be released!

    7 Likes

  • Profilbild von Tim Urista

    @UristaTim

    @Letta_AI @charlespacker @sarahwooders Multi-agent collaboration unlocks new potential for shared learning and efficiency.

    4 Likes

  • Profilbild von Franck SN

    @ndzfs

    @Letta_AI @charlespacker @sarahwooders That's why we need to build large reasoning models and drop o1

    4 Likes

  • Profilbild von Vasek Mlejnsky

    @mlejva

    @Letta_AI @charlespacker @sarahwooders Whoa, nicely done @charlespacker @sarahwooders !

    3 Likes

  • Profilbild von Omariba Collins

    @OmaribaCollins

    @Letta_AI @charlespacker @sarahwooders Did you by any chance get this idea from @karpathy ?

    2 Likes

  • Profilbild von Sir Mr Meow Meow

    @SirMrMeowmeow

    @Letta_AI @charlespacker @sarahwooders ooh so it's like a summary type memory where the key-values are stored and attention is applied to compress it. :3 interesting.

    2 Likes

  • Profilbild von Ali Sheheryar

    @Sierra_Zolo

    @Letta_AI @charlespacker @sarahwooders From LSTMs to Transformers. We have indeed come a long way!

    2 Likes

  • Profilbild von Tim Urista

    @UristaTim

    @Letta_AI @charlespacker @sarahwooders An LLM agent deciding what enters the input context is reminiscent of MemGPT's strategic context window use.

    2 Likes