lancopku / codable-watermarking-for-llm Goto Github PK
View Code? Open in Web Editor NEWRepository for Towards Codable Watermarking for Large Language Models
Repository for Towards Codable Watermarking for Large Language Models
I have a question: why is a list of messages used in the code, and then the following code is used in the WmProcessorMessageModel
to select one of these messages? What is the significance of doing so?
cur_message = self.message[message_len // self.encode_len]
Hi.
Thank you for your work!
I ran the experiment for OPT, which works fine after changing how the model is loaded.
(I am using AutoModelForCausalLM.from_pretrained(...)
.)
However, I am having some trouble when trying to experiment on LLaMA-7b.
The accuracy is near 20% even when the settings are modified to make the task easier:
generated_length: int = 100
message_code_len: int = 4
encode_ratio: float = 25.
This seems like something is not done properly on during generation.
Do I have to change the setting for LLaMA?
Could you share the configuration for running on LLaMA?
Any help would be appreciated.
Thanks!
Hello~Could you please tell me the difference between P^ and P in formula (11)-(12) and (14)-(15)
In watermarking/watermark_processors/message_model_processor.py
decoded_message, decoded_prob = decoded_probs.max(0)
should be decoded_prob, decoded_message = decoded_probs.max(0)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.