Skip to content

Support async in DSPy critical paths #8080

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 22, 2025

Conversation

chenmoneygithub
Copy link
Collaborator

@chenmoneygithub chenmoneygithub commented Apr 17, 2025

We are working on supporting async in DSPy (true async, i.e., async def instead of asyncio.to_thread), and in this PR we are supporting async in the critical paths including:

  • dspy.LM
  • dspy.Embedder
  • dspy.Adapter
  • dspy.Module
  • dspy.Predict and dspy.ChainOfThought

We will roll over the support to more APIs/Classes gradually.

@okhat okhat marked this pull request as draft April 17, 2025 18:57
@chenmoneygithub chenmoneygithub changed the title [WIP] Async support Support async in DSPy critical paths Apr 21, 2025
@chenmoneygithub chenmoneygithub marked this pull request as ready for review April 22, 2025 00:43
@okhat okhat merged commit 4f3b9f3 into stanfordnlp:main Apr 22, 2025
4 checks passed
@chenmoneygithub chenmoneygithub deleted the dspy-async branch April 25, 2025 21:49
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.

2 participants