microsoft/Trace
Microsoft's AutoDiff-like Python library for end-to-end training of AI agents with general feedback including numerical rewards, natural language, and compiler errors.

Trace generalizes back-propagation to capture and propagate AI system execution traces for optimization. It is implemented as a PyTorch-like Python library where users write standard Python code and use Trace primitives to optimize specific parts of AI systems, similar to training neural networks. The platform supports diverse feedback signals enabling end-to-end training of compound AI systems and LLMs.
Frequently asked
- What is microsoft/Trace?
- Microsoft's AutoDiff-like Python library for end-to-end training of AI agents with general feedback including numerical rewards, natural language, and compiler errors.
- Is Trace open source?
- Yes — microsoft/Trace is open source, released under the MIT license.
- What language is Trace written in?
- microsoft/Trace is primarily written in Python.
- How popular is Trace?
- microsoft/Trace has 750 stars on GitHub.
- Where can I find Trace?
- microsoft/Trace is on GitHub at https://github.com/microsoft/Trace.