This repository was archived by the owner on Jan 26, 2026. It is now read-only.
Generation on AdversarialQA Testing and PCW Usage #10
Replies: 1 comment
-
|
Hi Jacob, We publish the code used for the adversarial QA experiment, but it is quite similar to the classification flow, with the exception of different evaluation metric. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
I hope this message finds you well. I have a couple of questions regarding the AdversarialQA testing:
Below, I've included a sample code snippet demonstrating the usage of PCW for generation:
PCW Usage Example
Using PCW for generation:
output = wrapper.pcw_generate(
contexts=[
"Review: Great movie!\n",
"Review: Horrible film\n"
],
task_text="Review:",
temperature=1,
do_sample=True,
max_new_tokens=16
)
print(output)
Please let me know if there are any additional steps or considerations I should be aware of when testing AdversarialQA.
Thank you in advance!
Best regards,
Jacob Choi
Beta Was this translation helpful? Give feedback.
All reactions