EveryDev.ai
Subscribe
Home
Tools

5,347+ AI tools

  • Featured
  • Gems
  • Trending
  • New
  • Rate tools
  • Compare
  • Arena
Categories
  • Agents2725
  • Coding2018
  • Infrastructure950
  • Projects752
  • Research670
  • MCP655
  • Analytics520
  • Marketing503
  • Design435
  • Testing432
  • Data395
  • Security362
  • Integration270
  • Prompts257
  • Communication255
  • Extensions227
  • Voice182
  • DevOps176
  • Commerce175
  • Web124
  • Learning114
  • Finance39
AI Tools by Topic
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • Users
  • Rate Tools
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai ©
    1. Home
    2. Tools
    3. Safe-RLHF (Beaver)
    Safe-RLHF (Beaver) icon

    Safe-RLHF (Beaver)

    Academic Research

    Open-source modular framework for SFT, RLHF and Safe RLHF training of language models, with datasets and evaluation tools.

    Visit Website

    At a Glance

    Pricing
    Open Source

    Safe-RLHF framework released under the Apache License 2.0; free to use, modify and distribute.

    Engagement

    Available On

    Linux
    API
    SDK
    CLI

    Resources

    WebsiteDocsGitHubllms.txt

    Topics

    Academic ResearchAI Development LibrariesModel Management

    Alternatives

    Marinflash-moeverl
    Developer
    PKU-AlignmentPKU-Alignment is a research team at Peking University that d…

    Listed Nov 2026

    About Safe-RLHF (Beaver)

    Beaver (the safe-rlhf repository) is an open-source RLHF framework developed by the PKU-Alignment team at Peking University. It provides training code and human-labeled preference data for alignment research, with a focus on constrained value alignment through Safe RLHF. The code is released under the Apache License 2.0.

    What It Is

    Safe-RLHF is a training pipeline for aligning large language models. It covers supervised fine-tuning (SFT), reward and cost model training, standard RLHF with PPO, and Safe RLHF with a Lagrangian PPO variant that maximizes reward subject to a cost constraint. The goal is a model that is both helpful (high reward) and harmless (low cost). The project's own comparison table lists DeepSpeed as the backend.

    Workflow and Outputs

    Users clone the repository and set up a conda environment or a Docker container. Shell scripts then run each stage in order: SFT, reward model, cost model, PPO, and PPO-Lag. The outputs are fine-tuned checkpoints plus reward and cost models. The README documents tests with LLaMA-7B on 8 NVIDIA A800-80GB GPUs, and describes DeepSpeed ZeRO-Offload and multi-node options for setups with less GPU memory. Other supported base models include OPT, Baichuan and InternLM, and custom datasets can be added through a RawDataset abstraction.

    Datasets, Models and Evaluation

    The project publishes the PKU-SafeRLHF dataset on Hugging Face. It is a human-labeled set of helpfulness and harmlessness preferences covering more than ten constraint dimensions. The README also lists released Beaver-7B models with matching reward and cost model checkpoints. For evaluation, the repository includes an interactive CLI demo, an arena comparing two models, reward/cost-model arena evaluation, BIG-bench tasks and GPT-4 evaluation. The authors say Beaver improves harmlessness over Alpaca in their GPT-4 evaluation.

    Safe-RLHF (Beaver) - 1

    Community Discussions

    Be the first to start a conversation about Safe-RLHF (Beaver)

    Share your experience with Safe-RLHF (Beaver), ask questions, or help others learn from your insights.

    Pricing

    OPEN SOURCE

    Open Source (Apache-2.0)

    Safe-RLHF framework released under the Apache License 2.0; free to use, modify and distribute.

    • Supports SFT, RLHF and Safe RLHF training for pre-trained models such as LLaMA and OPT
    • Reward Model and Cost Model training with pre-trained checkpoints
    • Multi-scale safety evaluation metrics (BIG-bench, GPT-4 Evaluation)
    • Code licensed under Apache-2.0; the full PKU-SafeRLHF-1M dataset requires an application form

    Capabilities

    Key Features

    • SFT, RLHF and Safe RLHF training pipelines
    • Reward model and cost model training with pre-trained checkpoints
    • PKU-SafeRLHF human-labeled preference dataset
    • Custom dataset abstraction for SFT, preference and RL stages
    • DeepSpeed backend with ZeRO-Offload and multi-node training
    • Support for LLaMA, OPT, Baichuan and InternLM models
    • Interactive CLI demo and arena
    • Evaluation via BIG-bench, GPT-4 and reward/cost arena

    Integrations

    DeepSpeed
    Hugging Face
    Weights & Biases
    BIG-bench
    OpenAI API
    Docker
    API Available
    View Docs

    Ratings & Reviews

    No ratings yet

    Be the first to rate Safe-RLHF (Beaver) and help others make informed decisions.

    Rate other tools you’ve used

    Developer

    PKU-Alignment

    PKU-Alignment is a research team at Peking University that develops the Beaver open-source RLHF framework. It works on alignment research, including constrained value alignment of large language models through Safe RLHF. The team publishes code, datasets and model checkpoints for reproducible research.

    Read more about PKU-Alignment
    WebsiteGitHub
    1 tool in directory

    Similar Tools

    Marin icon

    Marin

    An open-source framework for researching and developing foundation models, with full reproducibility of every step from raw data to final model.

    flash-moe icon

    flash-moe

    A Mixture of Experts (MoE) implementation in Python, enabling efficient sparse model inference by routing inputs to specialized expert sub-networks.

    verl icon

    verl

    Open-source RL training library for large language models implementing the HybridFlow framework, with support for PPO, GRPO and multiple training and rollout backends.

    Browse all tools

    Related Topics

    Academic Research

    AI tools designed specifically for academic and scientific research.

    103 tools

    AI Development Libraries

    Programming libraries and frameworks that provide machine learning capabilities, model integration, and AI functionality for developers.

    530 tools

    Model Management

    Tools for managing, versioning, and deploying AI models.

    131 tools
    Browse all topics
    Back to all toolsSuggest an edit
    ratings
    discussions