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

feat: dynamic lookup overflow #853

Merged
merged 6 commits into from
Oct 24, 2024
Merged

Conversation

alexander-camuto
Copy link
Collaborator

@alexander-camuto alexander-camuto commented Oct 22, 2024

Much like other lookups ... we can now overflow dynamic lookups to new columns.

Part of the benefit of this is to reduce memory usage of circuit that use dynamic lookups heavily (eg. xgboost).

IF a table doesn't fit in the current lookup column we flush that column to the end and push the table to the next column, and leverage a new selector over that column to constrain the lookup for the current row.

This imposes a minimum number of rows for the circuit, which is the max len of any table being looked up over.

@alexander-camuto alexander-camuto marked this pull request as ready for review October 24, 2024 03:11
@alexander-camuto alexander-camuto merged commit d51cba5 into main Oct 24, 2024
21 checks passed
@alexander-camuto alexander-camuto deleted the ac/dynamic-lookup-overflow branch October 24, 2024 03:12
@alexander-camuto alexander-camuto restored the ac/dynamic-lookup-overflow branch October 24, 2024 14:31
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.

1 participant