Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 5 min read Announcement mediumAdept

Introducing SynthID Text

SynthID Text, Google DeepMind's LLM watermarking technique, ships in Hugging Face Transformers v4.46.0. It is applied as a logits processor that uses a keyed pseudo-random g-function in tournament sampling, and detected with a trained Bayesian classifier. You enable it by passing a SynthIDTextWatermarkingConfig to model.generate(). The config needs 20–30 random private keys and an ngram_len, where 5 is the recommended default and higher values are more detectable but more brittle. Detectors need their own training set of at least 10k examples per configuration. The watermark survives cropping and mild paraphrasing but weakens on factual responses, thorough rewrites and translation.

Assumes: LLM text generation and samplingHugging Face Transformers

Related posts

  • AI Watermarking 101: Tools and Techniques

    Hugging Face easyNovice

    AI watermarking marks generated content with visible or invisible patterns that convey provenance, applied either during generation (requires model access, more robust) or after the fact (works for closed models but not all modalities). For text, LLM watermarks split candidate tokens into "green" and "red" lists based on prior context and boost or forbid them, and detection counts token colors, so short texts yield low confidence and false positives remain a problem. Images can be watermarked at generation (IMATAG) or signed post hoc with C2PA credentials (Truepic), while audio approaches like AudioSeal jointly train an embedder and a sample-level detector that is robust to editing. Related defenses such as Glaze, Photoguard, Nightshade and Fawkes cloak or poison images, and open watermarkers or detectors make removal easier.

  • What do LLMs think when you don't tell them what to think about?

    Together AI easyNovice

    Prompting LLMs with minimal, topic-neutral seeds ("Actually," "Let's think step by step," or just ".") and no chat template reveals stable, family-specific topical priors. GPT-OSS defaults to programming (27.1%) and math (24.6%), much of it advanced (68.2%). Llama leans literary, DeepSeek over-produces religious content, and Qwen generates multiple-choice exam questions. Degenerate outputs are also systematic: GPT-OSS repeats code-block delimiters, Qwen emits emojis and Chinese text, and Llama sometimes outputs real personal social media URLs. These patterns hold across prompts, embedding models and labelers, so unconstrained generation can serve as a fingerprinting and privacy-auditing signal that standard benchmarks miss.

  • Synthetic data: save money, time and carbon with open source

    Hugging Face mediumAdept

    An open-source LLM (Mixtral-8x7B-Instruct) can annotate task-specific data that is then used to fine-tune a small, efficient student model. On financial_phrasebank investor sentiment, a RoBERTa model trained this way matches GPT-4 at 94% accuracy and 0.94 F1 macro. It costs about $2.7 versus $3061 to analyze a large news corpus, emits roughly 0.12 kg CO2 versus an estimated 735–1100 kg, and responds in 0.13 seconds versus multiple seconds. The walkthrough covers chat templates, output cleaning, and Chain-of-Thought plus Self-Consistency prompting, which lifts zero-shot accuracy above 91.6%. It then covers validating the synthetic labels and fine-tuning with AutoTrain.

  • Fine-Tuning Local Models with Docker Offload and Unsloth

    Docker mediumAdept

    Gemma 3 270M, a sub-1GB local model, can be fine-tuned with LoRA via Unsloth to mask personally identifiable information. Before fine-tuning it returned only "[PERSON]"; afterward it correctly redacted names, ID numbers and dates. The walkthrough runs the official Unsloth Docker image on a cloud NVIDIA L4 GPU through Docker Offload from a MacBook, with Mutagen syncing files back to the laptop. It then trains on the ai4privacy pii-masking-400k dataset in under 20 minutes, converts the result to GGUF with llama.cpp, and packages and pushes the roughly 518MB model to Docker Hub for use with Docker Model Runner.

  • Welcoming Llama Guard 4 on Hugging Face Hub

    Hugging Face mediumAdept

    Llama Guard 4 is a 12B dense multimodal safety classifier pruned from Llama 4 Scout by dropping all routed MoE experts and keeping only the shared expert, then post-trained on 3:1 text-to-multimodal data. It flags 14 MLCommons hazard categories plus code interpreter abuse in both prompts and model responses, fits on a single 24 GB GPU, and lets users exclude categories through the chat template. Compared with Llama Guard 3 it gains notably on multi-image inputs (+20% recall, +17% F1), while multilingual performance is flat. Meta also released Llama Prompt Guard 2 classifiers (86M and 22M) for binary jailbreak and prompt-injection detection, with transformers code examples for both.

The quest for software engineering knowledge.

Look:
Layout: