GithubHelp home page GithubHelp logo

lancopku / codable-watermarking-for-llm Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 2.0 56 KB

Repository for Towards Codable Watermarking for Large Language Models

Jupyter Notebook 18.34% Python 81.66%

codable-watermarking-for-llm's People

Contributors

leanwang326 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

nilslukas

codable-watermarking-for-llm's Issues

The message selection issue

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]

Configuration for LLaMA

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!

Q of message logit

Hello~Could you please tell me the difference between P^ and P in formula (11)-(12) and (14)-(15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.