Add Watermarking LogitsProcessor and WatermarkDetector #29676
add watermarking processor
9af1d2cb
remove the other hashing (context width=1 always)
92a52145
make style
3b2c6da0
gante
commented
on 2024-03-15
Update src/transformers/generation/logits_process.py
bd1a8aa8
Update src/transformers/generation/logits_process.py
37565409
Update src/transformers/generation/logits_process.py
c67069b3
Update src/transformers/generation/configuration_utils.py
52b58cf6
update watermarking process
e4c92b85
add detector
e77ea5ee
update tests to use detector
ab8f79f3
fix failing tests
bd4b8758
Merge remote-tracking branch 'upstream/main' into watermark
9bf52b39
rename `input_seq`
e2e689bd
make style
6dd8eb32
doc for processor
5ba45c0a
minor fixes
f9c65940
docs
0597a170
Merge remote-tracking branch 'upstream/main' into watermark
d4f5de1e
make quality
77d8745b
Merge remote-tracking branch 'upstream/main' into watermark
8cc44538
gante
commented
on 2024-03-26
Update src/transformers/generation/configuration_utils.py
82f08533
Update src/transformers/generation/logits_process.py
1216142f
Update src/transformers/generation/watermarking.py
5e671e0d
Update src/transformers/generation/watermarking.py
f50e945d
Update src/transformers/generation/watermarking.py
c1c9ed8b
Merge remote-tracking branch 'upstream/main' into watermark
2055f563
add PR suggestions
35781501
let's use lru_cache's default max size (128)
b477eb54
import processor if torch available
cab49691
maybe like this
c03e7529
lets move the config to torch independet file
b28f6467
add docs
966808dd
tiny docs fix to make the test happy
2d0c3e3f
gante
approved these changes
on 2024-04-03
zucchini-nlp
changed the title Add Watermarking LogitsProcessor Add Watermarking LogitsProcessor and WatermarkDetector 2 years ago
Update src/transformers/generation/configuration_utils.py
8223376d
Update src/transformers/generation/watermarking.py
f33a3a2a
PR suggestions
6e60d322
add docs
7ae9ae9d
fix test
863663c6
Merge remote-tracking branch 'upstream/main' into watermark
76a66b58
fix docs
177c7654
Merge branch 'huggingface:main' into watermark
e6da307a
address pr comments
f036d498
Merge branch 'main' into watermark
1c3e9878
style
7f33cc34
Revert "style"
5e70bab9
correct style
3be20e3b
make doctest green
f15935c8
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub