waterfall 0.2.7__py3-none-any.whl → 0.2.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -308,7 +308,7 @@ class Watermarker:
308
308
  )
309
309
  output = output[:,tokd_input_batch["input_ids"].shape[-1]:]
310
310
  if discard_incomplete:
311
- output[output[:, -1] == self.tokenizer.eos_token_id].fill_(self.tokenizer.eos_token_id)
311
+ output[output[:, -1] != self.tokenizer.eos_token_id] = self.tokenizer.eos_token_id
312
312
  output = output.to("cpu", non_blocking=True)
313
313
  outputs.append(output)
314
314
  bar.update(tokd_input_batch["input_ids"].shape[0])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: waterfall
3
- Version: 0.2.7
3
+ Version: 0.2.8
4
4
  Summary: Scalable Framework for Robust Text Watermarking and Provenance for LLMs
5
5
  Project-URL: Homepage, https://github.com/aoi3142/Waterfall
6
6
  Project-URL: Issues, https://github.com/aoi3142/Waterfall/issues
@@ -1,12 +1,12 @@
1
- waterfall/WatermarkerBase.py,sha256=_Ok-lU-gF3xEWCBwEmxW6ncvUaFXdGQbdiBlAqFAhno,21305
1
+ waterfall/WatermarkerBase.py,sha256=y7rJtP4Qf8GdJNdlZriX-JLClKxJRGiCtIkBtDoIqZw,21300
2
2
  waterfall/WatermarkingFn.py,sha256=-b-kGRdL0a7eKRqJmcHPAR_rCjxQYnsg1Ne6bTwBc1I,1931
3
3
  waterfall/WatermarkingFnFourier.py,sha256=QYayAQYwi1dQkDIyqmvhU568VhrVYTVy47HkI8F8SZs,1358
4
4
  waterfall/WatermarkingFnSquare.py,sha256=2PAO05DdKT02npo7GDf_82D520nP7kGAWK6H4E4JMt4,1638
5
5
  waterfall/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  waterfall/permute.py,sha256=uYKdmn4pGvjB6hInInLGxFIF6vt507lqJ_qe-ST1PFE,2783
7
7
  waterfall/watermark.py,sha256=IbH5r3oqjtKztDVryfDTr_NDn-CLZHow0S8nAEtZmdc,14420
8
- waterfall-0.2.7.dist-info/METADATA,sha256=GhqFgFaxYJD11tKHejrS9PsHBL2cdggieezeXWvLdxk,8723
9
- waterfall-0.2.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
- waterfall-0.2.7.dist-info/entry_points.txt,sha256=XXnUzuWXu2nc9j4WAll9tq6HyodN_8WJLjeG0O4Y2Gw,60
11
- waterfall-0.2.7.dist-info/licenses/LICENSE,sha256=zAtaO-k41Q-Q4Etl4bzuh7pgNJsPH-dYfzvznRa0OvM,11341
12
- waterfall-0.2.7.dist-info/RECORD,,
8
+ waterfall-0.2.8.dist-info/METADATA,sha256=QO_d3epwMllDm1vwvcOwwKL0ho5T6X4NEXXd7YHfiso,8723
9
+ waterfall-0.2.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
+ waterfall-0.2.8.dist-info/entry_points.txt,sha256=XXnUzuWXu2nc9j4WAll9tq6HyodN_8WJLjeG0O4Y2Gw,60
11
+ waterfall-0.2.8.dist-info/licenses/LICENSE,sha256=zAtaO-k41Q-Q4Etl4bzuh7pgNJsPH-dYfzvznRa0OvM,11341
12
+ waterfall-0.2.8.dist-info/RECORD,,