THU-BPM/MarkLLM
[EMNLP 2024 Demo] MarkLLM: An Open-Source Toolkit for LLM Watermarking
What it solves
As large language models generate increasingly convincing text, verifying the authenticity and origin of machine-generated content becomes a major challenge. MarkLLM addresses this by providing a unified platform to apply, visualize, and evaluate watermarking technologies for language models.
How it works
MarkLLM integrates a wide variety of existing watermarking algorithms under a consistent framework using Python and PyTorch. It allows users to invoke different algorithms via an auto-configuration setup, visualize how internal watermarking mechanisms operate, and run automated evaluation pipelines to test detectability, text quality, and robustness against modifications.
Who it’s for
This toolkit is built for AI researchers, developers, and community contributors who want to implement, study, or compare text watermarking algorithms for large language models.
Highlights
- Unified implementation supporting numerous watermarking algorithms and detection methods.
- Custom visualization tools to inspect the inner mechanisms of different watermarking techniques.
- Comprehensive evaluation modules featuring 12 tools and automated pipelines to measure detection success, text quality, and robustness.
Related
- Project
HowieHwong/TrustLLMTrustLLM is an open‑source toolkit for running the ICML 2024 benchmark that evaluates large language models on six trustworthiness dimensions (truthfulness, safety, fairness, robustness, privacy, ethics). It supports both API‑based and local Hugging Face models, provides CLI and Python interfaces for downloading data, generating responses, and scoring them, and outputs JSON/HTML reports.
- Project
huggingface/transformersHugging Face Transformers is a library providing state-of-the-art pretrained models for inference and training across text, vision, audio, video, and multimodal tasks. It acts as a central model-definition framework compatible with many training frameworks, inference engines, and modeling libraries. Over 1 million model checkpoints are available on the Hugging Face Hub. It requires Python 3.11+ and PyTorch 2.6+, and offers a high-level Pipeline API for tasks like text generation, speech recognition, image classification, and visual QA. It's not a modular neural-net toolbox, and its training API is PyTorch-specific (use Accelerate for generic loops). The README also lists example models per modality and a citation for the EMNLP 2020 paper.
- Project
huggingface/lightevalA comprehensive toolkit from Hugging Face for evaluating LLMs across multiple backends with support for over 1,000 benchmarks and custom metrics.
- Project
theaniketgiri/create-llmA CLI tool for scaffolding production-ready LLM training projects, providing templates for different model sizes and a complete pipeline from tokenization to deployment.
- Project
sophgo/LLM-TPULLM-TPU is an open‑source toolkit that compiles HuggingFace LLM/VLM checkpoints into SOPHGO TPU‑specific bmodels and provides ready‑to‑run Python/C++ demos, supporting quantization, KV‑cache, dynamic shapes, and multi‑chip parallelism.