Skip to content

Conversation

@chenyushuo
Copy link
Collaborator

@chenyushuo chenyushuo commented Jul 21, 2025

Description

  1. Add Synchronizer class, which supports three SyncMethod (nccl, checkpoint and memory) and three SyncStyle (fixed, dynamic_by_trainer and dynamic_by_explorer).
  2. Add group to config.py.
  3. Improve checkpoint saving with separate thread.

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has passed all tests
  • Docstrings have been added/updated in Google Style
  • Documentation has been updated
  • Code is ready for review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary of Changes

Hello @chenyushuo, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a dedicated Synchronizer component to centralize and manage model weight synchronization in a distributed training setup. It significantly enhances the system's flexibility by supporting various synchronization methods (NCCL, checkpoint, state_dict) and styles (fixed, dynamic), abstracting the complexity of inter-component weight updates. The changes involve substantial refactoring of the explorer and trainer's weight management logic to interact with this new central service, alongside minor configuration and dependency updates.

Highlights

  • New Synchronizer Component: Introduced a new Synchronizer class (trinity/common/synchronizer.py) as a Ray actor to centralize and manage model weight synchronization between the trainer and explorer. This component handles the coordination and transfer of model state dictionaries.
  • Enhanced Synchronization Methods and Styles: Expanded synchronization capabilities by adding a new SyncMethod.STATE_DICT and introducing SyncStyle with options for FIXED, DYNAMIC_BY_TRAINER, and DYNAMIC_BY_EXPLORER. These new options provide greater flexibility in how and when model weights are synchronized across distributed components.
  • Refactored Model Weight Update Pipeline: The logic for updating model weights in both the Explorer and Trainer has been significantly refactored to leverage the new Synchronizer actor. This includes changes in trinity/explorer/explorer.py, trinity/trainer/trainer.py, and related vllm model files, abstracting the underlying synchronization mechanism.
  • Improved Checkpoint and State Dict Management: A new FSDPCheckpointManager (trinity/trainer/verl/fsdp_checkpoint_manager.py) was added to facilitate the saving and uploading of model state dictionaries to the Synchronizer, particularly for checkpoint-based and direct state dict synchronization methods.
  • Configuration and Monitoring Enhancements: Added a group field to the main Config and Trainer configurations, which is now utilized by the Monitor (e.g., Wandb) for better organization and tracking of experiments.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a Synchronizer actor to manage synchronization between the explorer and trainer. The review identifies several critical issues, including potential deadlocks, incorrect use of Ray's async APIs, and a bug where an incorrect model version is used for synchronization. There are also high-severity issues like blocking I/O in an async actor. Addressing these is crucial for the correctness and performance of the new synchronization mechanism. I've also included some medium-severity suggestions for improving maintainability.

….init` to `f"{group}_{role}"`.

2. Rename `SyncMethod.STATE_DICT` to `SyncMethod.MEMORY`.
3. Add `wait_for_saving` when trainer shutdown.
4. Refactor `explorer_status` to `explorer_status_counter` in `Synchronizer` for multi explorer.
5. add "rollout/model_version" to monitor.
6. apply some suggestions made by gemini.
2. Fix shutdown in `both`
3. Refactored the internal status transition logic of `Trainer` and `Explorer` in`Synchronizer`.
4. Avoid duplicate model saving.
5. Bug fix where model was exited before it was saved.
@chenyushuo
Copy link
Collaborator Author

/unittest-all

@github-actions
Copy link

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
65 65 0 0 0 0 1.3s

Tests

Test Name Status Flaky Duration
tests/algorithm/policy_loss_test.py::VerlPolicyLossTest::test_dpo_policy_loss 1ms
tests/algorithm/policy_loss_test.py::VerlPolicyLossTest::test_mix_policy_loss 1ms
tests/algorithm/policy_loss_test.py::VerlPolicyLossTest::test_opmd_policy_loss 1ms
tests/algorithm/policy_loss_test.py::VerlPolicyLossTest::test_ppo_policy_loss 1ms
tests/algorithm/policy_loss_test.py::VerlPolicyLossTest::test_sft_policy_loss 1ms
tests/buffer/file_test.py::TestFileBuffer::test_file_buffer 3ms
tests/buffer/file_test.py::TestFileBuffer::test_file_reader 1ms
tests/buffer/file_test.py::TestFileBuffer::test_file_writer 2ms
tests/buffer/queue_test.py::TestQueueBuffer::test_priority_queue_buffer_reuse 6ms
tests/buffer/queue_test.py::TestQueueBuffer::test_priority_queue_capacity 3ms
tests/buffer/queue_test.py::TestQueueBuffer::test_queue_buffer_0_queue 1ms
tests/buffer/queue_test.py::TestQueueBuffer::test_queue_buffer_1_priority_queue 1ms
tests/buffer/queue_test.py::TestQueueBuffer::test_queue_buffer_capacity 4ms
tests/buffer/sql_test.py::TestSQLBuffer::test_create_sql_buffer 4ms
tests/common/config_test.py::TestConfig::test_all_examples_are_valid 1ms
tests/common/config_test.py::TestConfig::test_continue_from_checkpoint_is_valid 1ms
tests/common/config_test.py::TestConfig::test_load_default_config 5ms
tests/common/experience_test.py::TestEID::test_eid_properties 1ms
tests/common/experience_test.py::TestExperience::test_action_mask_and_logprobs_type 1ms
tests/common/experience_test.py::TestExperience::test_assertions 1ms
tests/common/experience_test.py::TestExperience::test_dpo_experience 1ms
tests/common/experience_test.py::TestExperience::test_gather 1ms
tests/common/experience_test.py::TestExperience::test_multi_turn_experience 1ms
tests/common/experience_test.py::TestExperience::test_serialize_deserialize 1ms
tests/common/experience_test.py::TestExperience::test_single_turn_experience 1ms
tests/common/experience_test.py::TestExperience::test_to_dict 1ms
tests/common/experience_test.py::TestExperienceConversion::test_batch_conversion 1ms
tests/common/experience_test.py::TestExperienceConversion::test_dpo_experience_batch_conversion 1ms
tests/common/experience_test.py::TestExperienceConversion::test_experience_model_experience_conversion 1ms
tests/common/experience_test.py::TestExperienceConversion::test_multiturn_experience_batch_converstion 1ms
tests/common/vllm_test.py::ModelWrapperTest_0::test_generate 48ms
tests/common/vllm_test.py::ModelWrapperTest_1::test_generate 51ms
tests/common/vllm_test.py::ModelWrapperTest_2::test_generate 52ms
tests/common/vllm_test.py::ModelWrapperTest_3::test_generate 39ms
tests/common/vllm_test.py::ModelWrapperTest_4::test_generate 51ms
tests/common/vllm_test.py::TestAPIServer::test_api 29ms
tests/common/vllm_test.py::TestTokenizer::test_assistant_token_mask 1ms
tests/explorer/explorer_test.py::BaseExplorerCase::test_explorer 1ms
tests/explorer/explorer_test.py::TestExplorerCountdownEval::test_explorer 78ms
tests/explorer/explorer_test.py::TestExplorerCountdownNoEval::test_explorer 75ms
tests/explorer/explorer_test.py::TestExplorerWithAddStrategy::test_explorer 56ms
tests/explorer/scheduler_test.py::SchedulerTest::test_concurrent_operations 4ms
tests/explorer/scheduler_test.py::SchedulerTest::test_get_results 20ms
tests/explorer/scheduler_test.py::SchedulerTest::test_scheduler_all_methods 15ms
tests/explorer/scheduler_test.py::SchedulerTest::test_scheduler_restart_after_stop 9ms
tests/explorer/scheduler_test.py::SchedulerTest::test_split_tasks 8ms
tests/explorer/scheduler_test.py::SchedulerTest::test_wait_all 8ms
tests/explorer/scheduler_test.py::SchedulerTest::test_wait_all_timeout_with_multi_batch 13ms
tests/explorer/workflow_test.py::WorkflowTest::test_gsm8k_workflow 1ms
tests/explorer/workflow_test.py::WorkflowTest::test_math_boxed_workflow 1ms
tests/explorer/workflow_test.py::WorkflowTest::test_math_complex_workflow 1ms
tests/explorer/workflow_test.py::WorkflowTest::test_math_fraction_workflow 1ms
tests/explorer/workflow_test.py::WorkflowTest::test_math_workflow 1ms
tests/explorer/workflow_test.py::WorkflowTest::test_rm_gallery_workflow 1ms
tests/explorer/workflow_test.py::WorkflowTest::test_workflow_resettable 1ms
tests/trainer/trainer_test.py::BaseTrainerCase::test_trainer 1ms
tests/trainer/trainer_test.py::TestTrainerCountdown::test_trainer 216ms
tests/trainer/trainer_test.py::TestStepAheadAsyncRL::test_trainer 83ms
tests/trainer/trainer_test.py::TestTrainerGSM8K::test_trainer 52ms
tests/trainer/trainer_test.py::TestTrainerSFTWarmupGSM8K::test_trainer 80ms
tests/trainer/trainer_test.py::TestTrainerDPO::test_trainer 40ms
tests/trainer/trainer_test.py::TestTrainerSFT::test_trainer 39ms
tests/trainer/trainer_test.py::TestFullyAsyncMode::test_fully_async_mode_0_queue 88ms
tests/trainer/trainer_test.py::TestFullyAsyncMode::test_fully_async_mode_1_priority_queue 87ms
tests/utils/plugin_test.py::TestPluginLoader::test_load_plugins 5ms

Github Test Reporter by CTRF 💚

2. Rename `use_state_dict_weights_update` to `use_nccl_sync`
3. Add more explanation to `fsdp_checkpoint_manager`.
2. Rename `wait_for_saving` to `wait_on_save_thread`.
@chenyushuo
Copy link
Collaborator Author

/unittest-all

@github-actions
Copy link

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
65 65 0 0 0 0 1.3s

Tests

Test Name Status Flaky Duration
tests/algorithm/policy_loss_test.py::VerlPolicyLossTest::test_dpo_policy_loss 1ms
tests/algorithm/policy_loss_test.py::VerlPolicyLossTest::test_mix_policy_loss 1ms
tests/algorithm/policy_loss_test.py::VerlPolicyLossTest::test_opmd_policy_loss 1ms
tests/algorithm/policy_loss_test.py::VerlPolicyLossTest::test_ppo_policy_loss 1ms
tests/algorithm/policy_loss_test.py::VerlPolicyLossTest::test_sft_policy_loss 1ms
tests/buffer/file_test.py::TestFileBuffer::test_file_buffer 3ms
tests/buffer/file_test.py::TestFileBuffer::test_file_reader 1ms
tests/buffer/file_test.py::TestFileBuffer::test_file_writer 2ms
tests/buffer/queue_test.py::TestQueueBuffer::test_priority_queue_buffer_reuse 7ms
tests/buffer/queue_test.py::TestQueueBuffer::test_priority_queue_capacity 2ms
tests/buffer/queue_test.py::TestQueueBuffer::test_queue_buffer_0_queue 1ms
tests/buffer/queue_test.py::TestQueueBuffer::test_queue_buffer_1_priority_queue 1ms
tests/buffer/queue_test.py::TestQueueBuffer::test_queue_buffer_capacity 4ms
tests/buffer/sql_test.py::TestSQLBuffer::test_create_sql_buffer 4ms
tests/common/config_test.py::TestConfig::test_all_examples_are_valid 1ms
tests/common/config_test.py::TestConfig::test_continue_from_checkpoint_is_valid 1ms
tests/common/config_test.py::TestConfig::test_load_default_config 4ms
tests/common/experience_test.py::TestEID::test_eid_properties 1ms
tests/common/experience_test.py::TestExperience::test_action_mask_and_logprobs_type 1ms
tests/common/experience_test.py::TestExperience::test_assertions 1ms
tests/common/experience_test.py::TestExperience::test_dpo_experience 1ms
tests/common/experience_test.py::TestExperience::test_gather 1ms
tests/common/experience_test.py::TestExperience::test_multi_turn_experience 1ms
tests/common/experience_test.py::TestExperience::test_serialize_deserialize 1ms
tests/common/experience_test.py::TestExperience::test_single_turn_experience 1ms
tests/common/experience_test.py::TestExperience::test_to_dict 1ms
tests/common/experience_test.py::TestExperienceConversion::test_batch_conversion 1ms
tests/common/experience_test.py::TestExperienceConversion::test_dpo_experience_batch_conversion 1ms
tests/common/experience_test.py::TestExperienceConversion::test_experience_model_experience_conversion 1ms
tests/common/experience_test.py::TestExperienceConversion::test_multiturn_experience_batch_converstion 1ms
tests/common/vllm_test.py::ModelWrapperTest_0::test_generate 39ms
tests/common/vllm_test.py::ModelWrapperTest_1::test_generate 51ms
tests/common/vllm_test.py::ModelWrapperTest_2::test_generate 51ms
tests/common/vllm_test.py::ModelWrapperTest_3::test_generate 38ms
tests/common/vllm_test.py::ModelWrapperTest_4::test_generate 50ms
tests/common/vllm_test.py::TestAPIServer::test_api 29ms
tests/common/vllm_test.py::TestTokenizer::test_assistant_token_mask 1ms
tests/explorer/explorer_test.py::BaseExplorerCase::test_explorer 1ms
tests/explorer/explorer_test.py::TestExplorerCountdownEval::test_explorer 88ms
tests/explorer/explorer_test.py::TestExplorerCountdownNoEval::test_explorer 79ms
tests/explorer/explorer_test.py::TestExplorerWithAddStrategy::test_explorer 59ms
tests/explorer/scheduler_test.py::SchedulerTest::test_concurrent_operations 4ms
tests/explorer/scheduler_test.py::SchedulerTest::test_get_results 20ms
tests/explorer/scheduler_test.py::SchedulerTest::test_scheduler_all_methods 15ms
tests/explorer/scheduler_test.py::SchedulerTest::test_scheduler_restart_after_stop 9ms
tests/explorer/scheduler_test.py::SchedulerTest::test_split_tasks 8ms
tests/explorer/scheduler_test.py::SchedulerTest::test_wait_all 8ms
tests/explorer/scheduler_test.py::SchedulerTest::test_wait_all_timeout_with_multi_batch 13ms
tests/explorer/workflow_test.py::WorkflowTest::test_gsm8k_workflow 1ms
tests/explorer/workflow_test.py::WorkflowTest::test_math_boxed_workflow 1ms
tests/explorer/workflow_test.py::WorkflowTest::test_math_complex_workflow 1ms
tests/explorer/workflow_test.py::WorkflowTest::test_math_fraction_workflow 1ms
tests/explorer/workflow_test.py::WorkflowTest::test_math_workflow 1ms
tests/explorer/workflow_test.py::WorkflowTest::test_rm_gallery_workflow 1ms
tests/explorer/workflow_test.py::WorkflowTest::test_workflow_resettable 1ms
tests/trainer/trainer_test.py::BaseTrainerCase::test_trainer 1ms
tests/trainer/trainer_test.py::TestTrainerCountdown::test_trainer 217ms
tests/trainer/trainer_test.py::TestStepAheadAsyncRL::test_trainer 82ms
tests/trainer/trainer_test.py::TestTrainerGSM8K::test_trainer 54ms
tests/trainer/trainer_test.py::TestTrainerSFTWarmupGSM8K::test_trainer 73ms
tests/trainer/trainer_test.py::TestTrainerDPO::test_trainer 40ms
tests/trainer/trainer_test.py::TestTrainerSFT::test_trainer 38ms
tests/trainer/trainer_test.py::TestFullyAsyncMode::test_fully_async_mode_0_queue 90ms
tests/trainer/trainer_test.py::TestFullyAsyncMode::test_fully_async_mode_1_priority_queue 89ms
tests/utils/plugin_test.py::TestPluginLoader::test_load_plugins 5ms

Github Test Reporter by CTRF 💚

@pan-x-c pan-x-c requested a review from Copilot July 24, 2025 12:25
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a centralized Synchronizer class to coordinate model weight synchronization between trainer and explorer components, supporting three synchronization methods (NCCL, checkpoint, memory) and three synchronization styles (fixed, dynamic_by_trainer, dynamic_by_explorer). The implementation also improves checkpoint saving performance by using background threads.

Key changes:

  • Introduces the Synchronizer class for centralized synchronization management
  • Adds group parameter to monitoring configuration for better experiment organization
  • Implements threaded checkpoint saving to avoid blocking the training loop

Reviewed Changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
trinity/common/synchronizer.py New centralized synchronizer class implementation
trinity/trainer/verl/fsdp_checkpoint_manager.py Enhanced checkpoint manager with threaded saving and synchronizer integration
trinity/trainer/verl_trainer.py Updated trainer to use synchronizer and new checkpoint methods
trinity/trainer/trainer.py Modified trainer interface to support new synchronization methods
trinity/explorer/explorer.py Updated explorer to use centralized synchronizer
trinity/common/config.py Added group field and synchronizer configuration updates
trinity/utils/monitor.py Added group parameter to monitoring classes
trinity/common/constants.py Added new sync methods and styles enums
Comments suppressed due to low confidence (1)

trinity/trainer/verl/fsdp_checkpoint_manager.py:109

  • The TODO comment indicates that the load_state_dict operation should be moved to a background thread to avoid blocking the main execution. This could impact performance during checkpoint loading.
        Modified from verl.utils.checkpoint.fsdp_checkpoint_manager.py:save_checkpoint

@pan-x-c
Copy link
Collaborator

pan-x-c commented Jul 25, 2025

/unittest-all

@chenyushuo
Copy link
Collaborator Author

/unittest-all

@chenyushuo
Copy link
Collaborator Author

/unittest-module-synchronizer

@chenyushuo
Copy link
Collaborator Author

/unittest-module-common

@chenyushuo
Copy link
Collaborator Author

/unittest-module-common

@chenyushuo
Copy link
Collaborator Author

/unittest-all

@github-actions
Copy link

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
29 29 0 0 0 0 796ms

Tests

Test Name Status Flaky Duration
tests/common/config_test.py::TestConfig::test_all_examples_are_valid 2ms
tests/common/config_test.py::TestConfig::test_continue_from_checkpoint_is_valid 1ms
tests/common/config_test.py::TestConfig::test_load_default_config 4ms
tests/common/experience_test.py::TestEID::test_eid_properties 1ms
tests/common/experience_test.py::TestExperience::test_action_mask_and_logprobs_type 1ms
tests/common/experience_test.py::TestExperience::test_assertions 1ms
tests/common/experience_test.py::TestExperience::test_dpo_experience 1ms
tests/common/experience_test.py::TestExperience::test_gather 1ms
tests/common/experience_test.py::TestExperience::test_multi_turn_experience 1ms
tests/common/experience_test.py::TestExperience::test_serialize_deserialize 1ms
tests/common/experience_test.py::TestExperience::test_single_turn_experience 1ms
tests/common/experience_test.py::TestExperience::test_to_dict 1ms
tests/common/experience_test.py::TestExperienceConversion::test_batch_conversion 1ms
tests/common/experience_test.py::TestExperienceConversion::test_dpo_experience_batch_conversion 1ms
tests/common/experience_test.py::TestExperienceConversion::test_experience_model_experience_conversion 1ms
tests/common/experience_test.py::TestExperienceConversion::test_multiturn_experience_batch_converstion 1ms
tests/common/synchronizer_test.py::TestStateDictBasedSynchronizer_0::test_synchronizer 82ms
tests/common/synchronizer_test.py::TestStateDictBasedSynchronizer_1::test_synchronizer 75ms
tests/common/synchronizer_test.py::TestStateDictBasedSynchronizer_2::test_synchronizer 124ms
tests/common/synchronizer_test.py::TestStateDictBasedSynchronizer_3::test_synchronizer 125ms
tests/common/synchronizer_test.py::TestNCCLBasedSynchronizer_0::test_synchronizer 56ms
tests/common/synchronizer_test.py::TestNCCLBasedSynchronizer_1::test_synchronizer 57ms
tests/common/vllm_test.py::ModelWrapperTest_0::test_generate 40ms
tests/common/vllm_test.py::ModelWrapperTest_1::test_generate 50ms
tests/common/vllm_test.py::ModelWrapperTest_2::test_generate 50ms
tests/common/vllm_test.py::ModelWrapperTest_3::test_generate 38ms
tests/common/vllm_test.py::ModelWrapperTest_4::test_generate 50ms
tests/common/vllm_test.py::TestAPIServer::test_api 29ms
tests/common/vllm_test.py::TestTokenizer::test_assistant_token_mask 1ms

Github Test Reporter by CTRF 💚

@chenyushuo
Copy link
Collaborator Author

/unittest-all

@github-actions
Copy link

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
71 71 0 0 0 0 1.9s

Tests

Test Name Status Flaky Duration
tests/algorithm/policy_loss_test.py::VerlPolicyLossTest::test_dpo_policy_loss 1ms
tests/algorithm/policy_loss_test.py::VerlPolicyLossTest::test_mix_policy_loss 1ms
tests/algorithm/policy_loss_test.py::VerlPolicyLossTest::test_opmd_policy_loss 1ms
tests/algorithm/policy_loss_test.py::VerlPolicyLossTest::test_ppo_policy_loss 1ms
tests/algorithm/policy_loss_test.py::VerlPolicyLossTest::test_sft_policy_loss 1ms
tests/buffer/file_test.py::TestFileBuffer::test_file_buffer 3ms
tests/buffer/file_test.py::TestFileBuffer::test_file_reader 1ms
tests/buffer/file_test.py::TestFileBuffer::test_file_writer 1ms
tests/buffer/queue_test.py::TestQueueBuffer::test_priority_queue_buffer_reuse 7ms
tests/buffer/queue_test.py::TestQueueBuffer::test_priority_queue_capacity 3ms
tests/buffer/queue_test.py::TestQueueBuffer::test_queue_buffer_0_queue 4ms
tests/buffer/queue_test.py::TestQueueBuffer::test_queue_buffer_1_priority_queue 3ms
tests/buffer/queue_test.py::TestQueueBuffer::test_queue_buffer_capacity 4ms
tests/buffer/sql_test.py::TestSQLBuffer::test_create_sql_buffer 4ms
tests/common/config_test.py::TestConfig::test_all_examples_are_valid 2ms
tests/common/config_test.py::TestConfig::test_continue_from_checkpoint_is_valid 1ms
tests/common/config_test.py::TestConfig::test_load_default_config 5ms
tests/common/experience_test.py::TestEID::test_eid_properties 1ms
tests/common/experience_test.py::TestExperience::test_action_mask_and_logprobs_type 1ms
tests/common/experience_test.py::TestExperience::test_assertions 1ms
tests/common/experience_test.py::TestExperience::test_dpo_experience 1ms
tests/common/experience_test.py::TestExperience::test_gather 1ms
tests/common/experience_test.py::TestExperience::test_multi_turn_experience 1ms
tests/common/experience_test.py::TestExperience::test_serialize_deserialize 1ms
tests/common/experience_test.py::TestExperience::test_single_turn_experience 1ms
tests/common/experience_test.py::TestExperience::test_to_dict 1ms
tests/common/experience_test.py::TestExperienceConversion::test_batch_conversion 1ms
tests/common/experience_test.py::TestExperienceConversion::test_dpo_experience_batch_conversion 1ms
tests/common/experience_test.py::TestExperienceConversion::test_experience_model_experience_conversion 1ms
tests/common/experience_test.py::TestExperienceConversion::test_multiturn_experience_batch_converstion 1ms
tests/common/synchronizer_test.py::TestStateDictBasedSynchronizer_0::test_synchronizer 83ms
tests/common/synchronizer_test.py::TestStateDictBasedSynchronizer_1::test_synchronizer 79ms
tests/common/synchronizer_test.py::TestStateDictBasedSynchronizer_2::test_synchronizer 135ms
tests/common/synchronizer_test.py::TestStateDictBasedSynchronizer_3::test_synchronizer 122ms
tests/common/synchronizer_test.py::TestNCCLBasedSynchronizer_0::test_synchronizer 59ms
tests/common/synchronizer_test.py::TestNCCLBasedSynchronizer_1::test_synchronizer 60ms
tests/common/vllm_test.py::ModelWrapperTest_0::test_generate 39ms
tests/common/vllm_test.py::ModelWrapperTest_1::test_generate 50ms
tests/common/vllm_test.py::ModelWrapperTest_2::test_generate 50ms
tests/common/vllm_test.py::ModelWrapperTest_3::test_generate 39ms
tests/common/vllm_test.py::ModelWrapperTest_4::test_generate 50ms
tests/common/vllm_test.py::TestAPIServer::test_api 28ms
tests/common/vllm_test.py::TestTokenizer::test_assistant_token_mask 1ms
tests/explorer/explorer_test.py::BaseExplorerCase::test_explorer 1ms
tests/explorer/explorer_test.py::TestExplorerCountdownEval::test_explorer 82ms
tests/explorer/explorer_test.py::TestExplorerCountdownNoEval::test_explorer 100ms
tests/explorer/explorer_test.py::TestExplorerWithAddStrategy::test_explorer 59ms
tests/explorer/scheduler_test.py::SchedulerTest::test_concurrent_operations 4ms
tests/explorer/scheduler_test.py::SchedulerTest::test_get_results 19ms
tests/explorer/scheduler_test.py::SchedulerTest::test_scheduler_all_methods 14ms
tests/explorer/scheduler_test.py::SchedulerTest::test_scheduler_restart_after_stop 8ms
tests/explorer/scheduler_test.py::SchedulerTest::test_split_tasks 7ms
tests/explorer/scheduler_test.py::SchedulerTest::test_wait_all 7ms
tests/explorer/scheduler_test.py::SchedulerTest::test_wait_all_timeout_with_multi_batch 13ms
tests/explorer/workflow_test.py::WorkflowTest::test_gsm8k_workflow 1ms
tests/explorer/workflow_test.py::WorkflowTest::test_math_boxed_workflow 1ms
tests/explorer/workflow_test.py::WorkflowTest::test_math_complex_workflow 1ms
tests/explorer/workflow_test.py::WorkflowTest::test_math_fraction_workflow 1ms
tests/explorer/workflow_test.py::WorkflowTest::test_math_workflow 1ms
tests/explorer/workflow_test.py::WorkflowTest::test_rm_gallery_workflow 1ms
tests/explorer/workflow_test.py::WorkflowTest::test_workflow_resettable 1ms
tests/trainer/trainer_test.py::BaseTrainerCase::test_trainer 1ms
tests/trainer/trainer_test.py::TestTrainerCountdown::test_trainer 207ms
tests/trainer/trainer_test.py::TestStepAheadAsyncRL::test_trainer 88ms
tests/trainer/trainer_test.py::TestTrainerGSM8K::test_trainer 58ms
tests/trainer/trainer_test.py::TestTrainerSFTWarmupGSM8K::test_trainer 104ms
tests/trainer/trainer_test.py::TestTrainerDPO::test_trainer 48ms
tests/trainer/trainer_test.py::TestTrainerSFT::test_trainer 42ms
tests/trainer/trainer_test.py::TestFullyAsyncMode::test_fully_async_mode_0_queue 85ms
tests/trainer/trainer_test.py::TestFullyAsyncMode::test_fully_async_mode_1_priority_queue 89ms
tests/utils/plugin_test.py::TestPluginLoader::test_load_plugins 4ms

Github Test Reporter by CTRF 💚

@chenyushuo chenyushuo merged commit e525271 into agentscope-ai:main Jul 30, 2025
1 check passed
@vadimkantorov
Copy link
Contributor

vadimkantorov commented Jul 31, 2025

Regarding FSDP.summon_full_params use in sync_weight, does it mean that Trinity only supports FSDP1?

for FSDP.summon_full_params seems not available in FSDP2:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants