Skip to content
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

Bagatur/rfc pred eval inline #1236

Draft
wants to merge 42 commits into
base: main
Choose a base branch
from
Draft

Conversation

baskaryan
Copy link
Contributor

No description provided.

self._store_results = store_results

@property
def _example_count(self) -> int:
Copy link
Contributor

Choose a reason for hiding this comment

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

we have a count endpoint now you could prob use for this?

yield experiment_row

async for result in aitertools.aiter_with_concurrency(
max_concurrency, predict_all(), _eager_consumption_timeout=0.001
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a way to push this concurrency down to the predict_all layer, so we grab an example, then concurrently run over each example? Does the aforward and arun_evaluators get run sequentially per thread?

Base automatically changed from isaac/multipartstuff to main December 10, 2024 22:55
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