Open wrx1990 opened 3 weeks ago
@wrx1990 Couple of questions Are you using this model
model = synthid_mixin.SynthIDGemmaForCausalLM.from_pretrained(
MODEL_NAME,
device_map='auto',
torch_dtype=torch.bfloat16,
)
as watermarked model? The watermarked model needs to set up differently which you can walk through the colab implementation.
@sumedhghaisas2 first. I run colab's code in the local environment, and the results in the Mean detector part are exactly the same. In theory, the results should be different between adding watermarks and not adding watermarks.
Mean scores for watermarked responses: [0.5001013 0.49999997 0.49628338 0.49961364]
Mean scores for unwatermarked responses: [0.5001013 0.49999997 0.49628338 0.49961364]
Weighted Mean scores for watermarked responses: [0.49701414 0.5016432 0.4982002 0.5014231 ]
Weighted Mean scores for unwatermarked responses: [0.49701414 0.5016432 0.4982002 0.5014231 ]
second,
In the Generate watermarked output
section, enable_watermarking is true or false, the output results are consistent.Can't see any difference in results with watermark。
Can you tell me how to run the program and get different results on the output with and without adding watermark?
ynthid_text_huggingface_integration.ipynb
,in part ofOption 1: Mean detector
,i got sample result.From the results, it cannot be distinguished whether there is a watermark or not.When I add watermarks to the text or not, I set the same random number conditions and use different models, and the output is the same. From my understanding, I use synthid_mixin.SynthIDGemmaForCausalLM and transformers.GemmaForCausalLM. The results of the model should not be consistent
SynthIDGemmaForCausalLM
GemmaForCausalLM
What I understand is that after adding the watermark, the output results should be slightly different, but judging from the results, the two are currently completely consistent.Can you provide a sample of the notebook's result set? Thank you.