Skip to content

fix: add async to direct_exp_gen avoid infinite loop#992

Merged
SunsetWolf merged 5 commits intomainfrom
fix-asyncio
Jun 26, 2025
Merged

fix: add async to direct_exp_gen avoid infinite loop#992
SunsetWolf merged 5 commits intomainfrom
fix-asyncio

Conversation

@you-n-g
Copy link
Contributor

@you-n-g you-n-g commented Jun 26, 2025

Description

Motivation and Context

How Has This Been Tested?

  • If you are adding a new feature, test on your own test scripts.

Screenshots of Test Results (if appropriate):

  1. Your own tests:

Types of changes

  • Fix bugs
  • Add new feature
  • Update documentation

📚 Documentation preview 📚: https://RDAgent--992.org.readthedocs.build/en/992/

async def direct_exp_gen(self, prev_out: dict[str, Any]):
hypo = await self._propose()
exp = self._exp_gen(hypo)
hypo = self._propose()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It would better to add this to propose

@SunsetWolf SunsetWolf marked this pull request as ready for review June 26, 2025 14:07
@SunsetWolf SunsetWolf merged commit 78c203d into main Jun 26, 2025
9 checks passed
@SunsetWolf SunsetWolf deleted the fix-asyncio branch June 26, 2025 14:10
ipatpat pushed a commit to ipatpat/RD-Agent that referenced this pull request Jun 27, 2025
* refactor: convert direct_exp_gen to async and enforce parallel limit

* fix bug

* change coroutine function position

* fix fin_quant's direct_exp_gen

* format with isort

---------

Co-authored-by: Bowen Xian <xianbowen@outlook.com>
Co-authored-by: SunsetWolf <Lv.Linlang@hotmail.com>
licong01-cloud pushed a commit to licong01-cloud/RD-Agent that referenced this pull request Dec 13, 2025
* refactor: convert direct_exp_gen to async and enforce parallel limit

* fix bug

* change coroutine function position

* fix fin_quant's direct_exp_gen

* format with isort

---------

Co-authored-by: Bowen Xian <xianbowen@outlook.com>
Co-authored-by: SunsetWolf <Lv.Linlang@hotmail.com>
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.

3 participants