-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Clean Upvote and Downvote data #3611
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
Conversation
Will grab all the upvotes. |
infwinston
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @CodingWithTim left some comments
|
@infwinston Suggestions integrated. |
infwinston
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a critical thing should be fixed. chunk_size shouldn't be 1 otherwise we will introduce lots of overhead and it might be even slower than sequential implementation.
| # Aggregate results from child processes | ||
| ct_invalid_conv_id = sum( | ||
| [data["ct_invalid_conv_id"] for data in results if "ct_invalid_conv_id" in data] | ||
| ) | ||
| ct_invalid = sum([data["ct_invalid"] for data in results if "ct_invalid" in data]) | ||
| ct_network_error = sum( | ||
| [data["ct_network_error"] for data in results if "ct_network_error" in data] | ||
| ) | ||
| all_models = set([data["model"] for data in results if "model" in data]) | ||
| chats = [data["result"] for data in results if "result" in data] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we merge into one for loop?
Why are these changes needed?
Related issue number (if applicable)
Checks
format.shto lint the changes in this PR.