diff --git a/README.md b/README.md index 18888a67..b5ed5b6d 100644 --- a/README.md +++ b/README.md @@ -3,14 +3,14 @@
-->
-
+
+
+
@@ -50,7 +50,7 @@ This framework features **flexible agent registry**, **customizable multi-agent
- [Run Examples](#run-examples)
- [Search](#search)
- [Math](#math)
-- [Usage Guide](#usage-guide)
+- [Multi-Agent Development Guide](#multi-agent-development-guide)
- [Acknowledgement](#acknowledgement)
# Installation
@@ -172,7 +172,7 @@ bash examples/drmas_trainer/run_math.sh eval # Dr.MAS
bash examples/grpo_trainer/run_math.sh eval # GRPO
```
-# Usage Guide
+# Multi-Agent Development Guide
For a **comprehensive guide** on developing custom multi-agent LLM systems, including detailed examples and best practices, see the **[Multi-Agent Development Guide](./docs/MULTI_AGENT_DEVELOPMENT_GUIDE.md)**.
@@ -181,70 +181,7 @@ The guide covers:
- Step-by-step agent creation and registration
- Orchestra development patterns
- Configuration options and per-agent parameter overrides
-
# Acknowledgement
diff --git a/examples/dapo_trainer/run_math.sh b/examples/dapo_trainer/run_math.sh
index d18d1ccb..7ea99ba9 100644
--- a/examples/dapo_trainer/run_math.sh
+++ b/examples/dapo_trainer/run_math.sh
@@ -39,7 +39,7 @@ max_loop_num=2
# Agent-specific parameter override (only support actor_rollout_ref)
actor_optim_lr='[1e-6,1e-6]'
-actor_ppo_micro_batch_size_per_gpu='[2,2]'
+actor_ppo_micro_batch_size_per_gpu='[4,4]'
####################### Other Configurations #####################
diff --git a/examples/drmas_trainer/run_math.sh b/examples/drmas_trainer/run_math.sh
index 47f97ebe..1ce4edc1 100644
--- a/examples/drmas_trainer/run_math.sh
+++ b/examples/drmas_trainer/run_math.sh
@@ -34,8 +34,7 @@ max_loop_num=2
# Agent-specific parameter override (only support actor_rollout_ref)
actor_optim_lr='[1e-6,1e-6]'
-actor_ppo_micro_batch_size_per_gpu='[2,2]'
-
+actor_ppo_micro_batch_size_per_gpu='[4,4]'
model_name_tag=$(jq -r '.[]' <<< "$model_ids" | awk -F/ '{print $NF}' | tr '[:upper:]' '[:lower:]' | tr '-' '_' | paste -sd_)
@@ -69,7 +68,7 @@ python3 -m verl.trainer.main_ppo \
actor_rollout_ref.rollout.log_prob_micro_batch_size_per_gpu=8 \
actor_rollout_ref.rollout.tensor_model_parallel_size=1 \
actor_rollout_ref.rollout.name=sglang \
- actor_rollout_ref.rollout.gpu_memory_utilization=0.5 \
+ actor_rollout_ref.rollout.gpu_memory_utilization=0.4 \
actor_rollout_ref.rollout.enable_chunked_prefill=False \
actor_rollout_ref.rollout.enforce_eager=False \
actor_rollout_ref.rollout.free_cache_engine=False \
diff --git a/examples/gigpo_trainer/run_math.sh b/examples/gigpo_trainer/run_math.sh
index 9f04e139..95d4d469 100644
--- a/examples/gigpo_trainer/run_math.sh
+++ b/examples/gigpo_trainer/run_math.sh
@@ -38,7 +38,7 @@ max_loop_num=2
# Agent-specific parameter override (only support actor_rollout_ref)
actor_optim_lr='[1e-6,1e-6]'
-actor_ppo_micro_batch_size_per_gpu='[2,2]'
+actor_ppo_micro_batch_size_per_gpu='[4,4]'
####################### Other Configurations #####################
diff --git a/examples/grpo_trainer/run_math.sh b/examples/grpo_trainer/run_math.sh
index c07a329e..40a8f110 100644
--- a/examples/grpo_trainer/run_math.sh
+++ b/examples/grpo_trainer/run_math.sh
@@ -33,7 +33,7 @@ max_loop_num=2
# Agent-specific parameter override (only support actor_rollout_ref)
actor_optim_lr='[1e-6,1e-6]'
-actor_ppo_micro_batch_size_per_gpu='[2,2]'
+actor_ppo_micro_batch_size_per_gpu='[4,4]'
####################### Other Configurations #####################
@@ -69,7 +69,7 @@ python3 -m verl.trainer.main_ppo \
actor_rollout_ref.rollout.log_prob_micro_batch_size_per_gpu=8 \
actor_rollout_ref.rollout.tensor_model_parallel_size=1 \
actor_rollout_ref.rollout.name=sglang \
- actor_rollout_ref.rollout.gpu_memory_utilization=0.5 \
+ actor_rollout_ref.rollout.gpu_memory_utilization=0.4 \
actor_rollout_ref.rollout.enable_chunked_prefill=False \
actor_rollout_ref.rollout.enforce_eager=False \
actor_rollout_ref.rollout.free_cache_engine=False \
diff --git a/examples/ppo_trainer/run_math.sh b/examples/ppo_trainer/run_math.sh
index ddb074b8..25e64c88 100644
--- a/examples/ppo_trainer/run_math.sh
+++ b/examples/ppo_trainer/run_math.sh
@@ -33,7 +33,7 @@ max_loop_num=2
# Agent-specific parameter override (only support actor_rollout_ref)
actor_optim_lr='[1e-6,1e-6]'
-actor_ppo_micro_batch_size_per_gpu='[2,2]'
+actor_ppo_micro_batch_size_per_gpu='[4,4]'
####################### Other Configurations #####################
diff --git a/examples/rloo_trainer/run_math.sh b/examples/rloo_trainer/run_math.sh
index b81259a0..184c023c 100644
--- a/examples/rloo_trainer/run_math.sh
+++ b/examples/rloo_trainer/run_math.sh
@@ -33,7 +33,7 @@ max_loop_num=2
# Agent-specific parameter override (only support actor_rollout_ref)
actor_optim_lr='[1e-6,1e-6]'
-actor_ppo_micro_batch_size_per_gpu='[2,2]'
+actor_ppo_micro_batch_size_per_gpu='[4,4]'
####################### Other Configurations #####################
diff --git a/verl/trainer/ppo/core_algos.py b/verl/trainer/ppo/core_algos.py
index 075bf9ae..c81e47d0 100644
--- a/verl/trainer/ppo/core_algos.py
+++ b/verl/trainer/ppo/core_algos.py
@@ -525,6 +525,7 @@ def compute_grpo_outcome_advantage(
Returns: `(torch.Tensor)`
shape is (bs, response_length)
"""
+ print("group_by_agent_id: ", group_by_agent_id)
scores = token_level_rewards.sum(dim=-1)
id2score = defaultdict(list)