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

Raise value error #318

Merged
merged 7 commits into from
Sep 3, 2023
Merged

Raise value error #318

merged 7 commits into from
Sep 3, 2023

Conversation

zhaochenyang20
Copy link
Collaborator

Description

#231

Another troublesome thing is that due to the release of the constraints of the packages' version, our new transformers now support MPS devices, but I can't find a way to debug it on my Mac.

#317

References

  • NA

Blocked by

  • NA
  • (or link to PRs)

Copy link
Collaborator

@neubig neubig left a comment

Choose a reason for hiding this comment

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

Looks great! I left several suggestions about how to remove noqas by splitting strings into multiple lines (we should probably avoid introducing noqas unless really necessary), but I'm happy to merge after those are incorporated.

prompt2model/dataset_generator/openai_gpt.py Show resolved Hide resolved
@@ -321,7 +321,8 @@ def apply_multi_vote_to_construct_generated_dataset(
Currently generated dataset with multi-vote filtering applied.
"""
# Ensure that multi-vote filtering is enabled.
assert self.filter_duplicated_examples
if self.filter_duplicated_examples is False:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if self.filter_duplicated_examples is False:
if not self.filter_duplicated_examples:

prompt2model/model_executor/generate.py Show resolved Hide resolved
prompt2model/model_executor/generate.py Show resolved Hide resolved
prompt2model/prompt_parser/instr_parser.py Show resolved Hide resolved
prompt2model/utils/openai_tools.py Show resolved Hide resolved
@zhaochenyang20 zhaochenyang20 merged commit 71b7c96 into main Sep 3, 2023
8 checks passed
@zhaochenyang20 zhaochenyang20 deleted the raise_value_error branch September 3, 2023 13:34
@neubig
Copy link
Collaborator

neubig commented Sep 3, 2023

Oh, woops. I didn't realize that auto-merge was turned on. I guess I shouldn't have clicked "approve". It's OK though, they could probably be fixed later.

@zhaochenyang20
Copy link
Collaborator Author

zhaochenyang20 commented Sep 3, 2023

Sure! I'm going to fix it tommorow.

@zhaochenyang20 zhaochenyang20 mentioned this pull request Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants