HuggingFace releases CAI recipe for open LLMs
·2024.02.01 09:00
Key point
HuggingFace has released an implementation methodology, related tools, and datasets for **Constitutional AI** for open source models.
1 / 2
Details
Constitutional AI (CAI), proposed by Anthropic, is a technique in which a model critiques and revises its own answers according to a defined set of principles (Constitution) to achieve alignment. HuggingFace has released an end-to-end recipe and tools for applying this to open source models.
The main released assets are as follows:
- llm-swarm: An inference tool built on TGI and vLLM that supports large-scale synthetic data generation on Slurm clusters.
- Dataset: A harmlessness dataset built based on principles from Anthropic and Grok.
- Models: SFT and DPO models based on Mistral-7B, trained on principles from Anthropic and Grok.
- Recipe: Source code for the CAI implementation, included in the Alignment Handbook.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.