Repository navigation
Conversation
test_critic_uses_host_fsdp_and_strict_load still expected strict=True after InternLM#2310 aligned the critic with the actor's non-strict load, and test_steps_scheduler_only_for_applied_updates reached DEVICE_MODULE.reset_peak_memory_stats, which torch.cpu lacks.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two tests in
tests/rl/test_ppo_role_wiring.pyfail on currentmain:TestCriticConstruction.test_critic_uses_host_fsdp_and_strict_loadstill assertsfrom_hf(path, strict=True). fix critic load #2310 intentionally changed the critic to the actor's non-strict load, so a checkpoint that carries MTP weights the critic does not build still loads. The test now asserts the current call and is renamedtest_critic_uses_host_fsdp_and_actor_load.TestRoleTrainUpdate.test_steps_scheduler_only_for_applied_updatesreachesDEVICE_MODULE.reset_peak_memory_stats(), whichtorch.cpudoes not have. The test now patchesrole_worker.DEVICE_MODULE, the same way the other CPU role tests in this file patch the accelerator module.Only tests change; no library code is touched.
Test Plan
On a CPU-only host,
pytest tests/rl/test_ppo_role_wiring.pygives 29 passed (2 failed before this change).ProduceBatchResult impact: not affected (tests only).