Welcome to the ToolBrain tutorials! This guide will walk you through the core concepts and practical examples to help you master the library.
This section covers the basics to get you up and running with ToolBrain.
-
What is ToolBrain?
- Understand the core problems ToolBrain solves and its fundamental concepts.
- [Jupyter Notebook]
-
Setting Up Your Environment
- A step-by-step guide to installing ToolBrain and its dependencies.
- [Jupyter Notebook]
-
Your First Training Run
- A complete walkthrough of your first training script using GRPO.
- [Jupyter Notebook]
Dive deeper into the key components that make ToolBrain work.
-
Understanding Traces
- Learn about the
TraceandTurnobjects, the backbone of trace-based learning. - [Jupyter Notebook]
- Learn about the
-
Crafting Custom Reward Functions
- Explore built-in reward functions and learn how to create your own.
- [Jupyter Notebook]
-
DPO vs. GRPO vs. Supervised - Choosing Your Algorithm
- Understand the differences between the available learning algorithms and when to use each.
- [Jupyter Notebook]
Explore practical, real-world applications of ToolBrain.
-
Email Search Agent
- Build a complex agent that can search a database to answer questions.
- [Jupyter Notebook]
-
Hyperparameter Optimization (HPO) Training
- Use ToolBrain in a novel way to perform HPO on a machine learning model.
- [Jupyter Notebook]
-
Knowledge Distillation
- Learn how to train a small, efficient model by distilling knowledge from a larger teacher model.
- [Jupyter Notebook]
-
Tool Retrieval
- Manage large sets of tools efficiently by dynamically selecting the most relevant ones for a given task.
- [Jupyter Notebook]
-
Automatic Task Generation (Zero-Learn)
- Bootstrap your training process by automatically generating a dataset from a high-level description.
- [Jupyter Notebook]
Learn how to train larger models faster and with less memory.
- Techniques for Efficiency (FP16, LoRA, BitsAndBytes, Unsloth)
- A guide to using LoRA, 4-bit quantization, and Unsloth to optimize your training runs.
- [Jupyter Notebook]
Get involved with the ToolBrain community.
- Extending and Contributing to ToolBrain
- Learn how to write a custom adapter for a new agent framework and how to contribute to the project.
- [Jupyter Notebook]