PulseAugur
EN
LIVE 10:59:36

New C++ engine speeds up RLHF reward scoring on CPUs

Researchers have developed a new C++ inference engine using ONNX Runtime for reward model scoring in Reinforcement Learning from Human Feedback (RLHF) pipelines. This engine was benchmarked against PyTorch eager mode, torch.compile, and FastAPI on both CPU and GPU. The C++ engine demonstrated superior performance on CPUs, outperforming all baselines, while on GPUs, torch.compile achieved faster results. The study also highlighted that batching strategy, particularly length-aware bucketing, significantly impacts throughput, especially on GPUs. AI

IMPACT Optimizing reward model scoring can accelerate RLHF training, potentially leading to faster development of more capable AI agents.

RANK_REASON The cluster contains a research paper detailing a systems study of inference runtimes for RLHF. [lever_c_demoted from research: ic=1 ai=1.0]

Read on Hugging Face Daily Papers →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

New C++ engine speeds up RLHF reward scoring on CPUs

COVERAGE [1]

  1. Hugging Face Daily Papers TIER_1 English(EN) ·

    How Fast Can Reward Models Score? A Systems Study of C++ and PyTorch Inference Runtimes for RLHF

    In RLHF pipelines, reward scoring blocks policy updates. Slow scoring bottlenecks the entire loop, since no update runs until every rollout gets a score. And yet most setups just default to PyTorch eager mode or torch.compile, no one checks if that's actually fastest. Scoring its…