Discover and explore top open-source AI tools and projects—updated daily.
Train any AI agent with rollouts and feedback
Top 27.3% on SourcePulse
Agent Lightning is a server-client framework designed to train AI agents using reinforcement learning and automatic prompt optimization, enabling zero-code-change optimization for agents built with various frameworks like LangChain, AutoGen, or even custom Python code. It targets developers and researchers looking to enhance agent performance through iterative feedback loops and advanced training methodologies.
How It Works
The framework operates with a central training server that manages data, prepares samples, and provides an LLM endpoint. Agent clients retrieve these samples, process them (potentially interacting with LLMs), and return trajectories (sequences of prompts and responses). The server then uses these trajectories to compute losses and optimize the underlying language models, facilitating a continuous learning cycle.
Quick Start & Requirements
pip install agentlightning
scripts/setup_stable_gpu.sh
is available.Highlighted Details
Maintenance & Community
This is a Microsoft Research project. Contribution guidelines and a Code of Conduct are provided.
Licensing & Compatibility
Limitations & Caveats
Agent Lightning uses AgentOps for tracking by default, requiring explicit disabling if already in use. Debugging traces is experimental. Server and agent clients must run in separate processes. VERL with vLLM may encounter out-of-memory issues, necessitating frequent checkpointing and potential training resumption.
2 days ago
Inactive