Giter Site home page Giter Site logo

ruisizhang123 / emmark Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 31.2 MB

[DAC'24] EmMark: Robust Watermarks for IP Protection of Embedded Quantized Large Language Models

Python 1.88% Jupyter Notebook 0.03% Shell 0.04% CMake 0.31% Cuda 10.66% HTML 71.91% CSS 0.04% JavaScript 0.08% C++ 15.00% C 0.02% Makefile 0.01% Batchfile 0.01%

emmark's Introduction

EmMark

[DAC'24] EmMark: Robust Watermarks for IP Protection of Embedded Quantized Large Language Models

Paper

Experiment

INT4 Quantization WM

For environment setups, plz refer to AWQ

Step1: Preprocess to acquire the quantized model along with the activations

$ cd int4_wm
$ bash scripts/opt_watermark.sh opt-2.7b ours /path/save/llm

Step2: Watermark the model

Change status variable from save to watermark.

$ bash scripts/opt_watermark.sh opt-2.7b ours /path/save/llm

INT8 Quantization WM

For environment setups, plz refer to LLM.int8() and SmoothQuant

Step1: Preprocess to acquire the quantized model along with the activations

$ cd int8_wm
$ bash scripts/opt_watermark.sh opt-2.7b ours /path/save/llm

Step2: Watermark the model

Change status variable from save to watermark.

$ bash scripts/opt_watermark.sh opt-2.7b ours /path/save/llm

Acknowledge

Our code builds heavily upon AWQ, LLM.int8() and SmoothQuant. We thank the authors for open-sourcing the code.

Citation

If you found our code/paper helpful, please kindly cite:

@article{zhang2024emmark,
  title={EmMark: Robust Watermarks for IP Protection of Embedded Quantized Large Language Models},
  author={Zhang, Ruisi and Koushanfar, Farinaz},
  journal={arXiv preprint arXiv:2402.17938},
  year={2024}
}

emmark's People

Contributors

ruisizhang123 avatar

Watchers

 avatar

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.