Giter VIP home page Giter VIP logo

markllm's People

Contributors

eltociear avatar hlzhang109 avatar panly2003 avatar shi-k22-tsinghua avatar talkischeap22 avatar yiming-l21 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

markllm's Issues

Build a Python Package

Thanks for the great tool. I wonder if it's possible to build them as a Python package for easier usage.

Naming for the EXP algorithm

Hi all,

Thanks for the valuable work! I have a quick question about the naming of the EXP algorithm. Authors of the "Robust Distortion-free Watermarks for Language Models" paper refer to their variant based on the Aaronson watermark as "EXP" in their work, while MarkLLM seem to refer to the original Aaronson watermark by "EXP". So just to confirm, the "EXP" in MarkLLM is different from the "EXP" in the distortion-free paper, right?

Support other kinds of models

Hi All,
How are you?
Thank you for your amazing contribution and work!
Do you support other kinds of transformers modules like AutoModelForSpeechSeq2Seq for instance?

Cheers,

top_k

Hello authors,

Congratulation on this great repo! I have a question regarding to the generation configuration. It seems you are using the default value of top_k=50 in Hugging Face for KGW-based methods, but for EXP and EXP-edit, you are using all tokens to generate.

Using top_k = 50 will significantly reduce PPL. So do you think it's fair to also test EXP and EXP-edit using top_k = 50? A one-line code to add this filter in the EXP and EXP-edit should be enough.

About the Code

in MarkLLM-main/watermark/unigram/unigram.py line181
encoded_text = self.config.generation_tokenizer(text, return_tensors="pt", add_special_tokens=False)["input_ids"][0].to(self.device)

"self.device" should be "self.config.device"

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.