Closed roywang021 closed 6 months ago
Great job, thank you. However, I couldn't find how to set up nucleus sampling in the test code for MiniGPT4. Could you provide some guidance?
Thanks for the question. Please refer to the constructor of the Generator class:
https://github.com/Unispac/Visual-Adversarial-Examples-Jailbreak-Large-Language-Models/blob/main/minigpt_utils/generator.py
You can pass top_p / temperature parameters to control it.
Great job, thank you. However, I couldn't find how to set up nucleus sampling in the test code for MiniGPT4. Could you provide some guidance?