AgentJet

AgentJet (AJet) is a cutting-edge, user-friendly agent tunning framework designed to optimize LLM models and agent workflows.

🛩️ Key Features

🛩️ Quick Start

We recommend using uv for dependency management. Click here for details and other training backbone (e.g. Trinity-RFT) options.

  • Clone the Repository:

    git clone https://github.com/modelscope/AgentJet.git
    cd AgentJet
    

  • Set up Environment:

    uv venv --python=3.10.16 && source .venv/bin/activate
    uv pip install -e .[verl]
    
    # Note: flash-attn must be installed after other dependencies
    uv pip install flash_attn==2.8.3 --no-build-isolation --no-cache-dir
    

  • Train the First Agent:

    # You can start training your first agent with a single command using a pre-configured YAML file
    
    ajet --conf tutorial/example_math_agent/math_agent.yaml
    

🛩️ Example Library

Explore our rich library of examples to kickstart your journey:

🛩️ Core Concepts

AgentJet makes agent fine-tuning straightforward by separating the developer interface from the internal execution logic.

🛩️ The User-Centric Interface

To optimize an agent, you provide three core inputs:

AgentJet Architecture

🛩️ Internal System Architecture

The internal system orchestrates several specialized modules to handle the complexities of RL training and agent interactions.

Module Description
Launcher Manages background service processes (Ray, vLLM) and routes the backbone
Task Rollout Bridges LLM engines and manages the Gym environment lifecycle
Task Runner Executes the AgentScope workflow and calculates rewards
Model Tuner Forwards inference requests from the workflow to the LLM engine
Context Tracker Monitors LLM calls and automatically merges shared-history timelines (1.5x-10x efficiency boost)

🛩️ Next Steps