Hugging Face has released an end-to-end recipe for running Constitutional AI (CAI) on open models, a technique Anthropic originally proposed to align language models without expensive human feedback. The process involves prompting a model to critique its own outputs against a set of user-defined principles, then revising responses that violate those principles. The revised output becomes SFT training data, while the original and revised versions form preference pairs for techniques like DPO. Practitioners only need to define principles — no human annotation required.

Two datasets are now public. One uses Anthropic’s constitution, the other mimics the persona of xAI’s Grok. Models are also available: Mistral-7B-Anthropic, a DPO-aligned model based on Anthropic’s principles, and Mistral-7B-Grok, an SFT model built on the Grok-style constitution. A demo Space and source code in the alignment-handbook repo round out the release.

The team chose Mistral-7B-Instruct-v0.1 as the starting point, noting the 7B model can outperform much larger models like Llama-70B on several benchmarks while having few built-in guardrails. That combination — helpful but unfiltered — makes it an ideal base for CAI experiments.

There’s an honest caveat buried in the release worth paying attention to: the self-critique step doesn’t work reliably. The authors show a failure case where the model misses a constitutional violation, and they recommend crafting better system prompts, post-processing responses, or using few-shot prompting, particularly for smaller models. This matters because it means CAI still requires real engineering effort, even if it replaces human feedback with model self-criticism. The technique is promising, but the automation is far from turnkey.

The bigger picture here is that Hugging Face is systematically lowering the barrier to alignment research. Previously, CAI-style methods were mostly discussed in Anthropic papers or applied behind closed doors. Now an open-source recipe with datasets, models, and tooling exists for anyone with a Slurm cluster. The inclusion of a Grok-style constitution is also notable — it signals that alignment is becoming a commoditized, configurable layer rather than a proprietary advantage.