You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEAT][alignment]: use real policy logprobs and reward providers for production GRPO #63
component: alignmentTasks involving RL loss functions such as DPO and GRPO, and mathematical alignment logicpriority: highSevere congestion issues require the highest priority for resolution.
Move GRPO training from smoke-style local inputs to production-grade rollout inputs:
real old-policy logprobs, real reference-policy logprobs, and pluggable reward sources.
Background
Issue #16 implements the GRPO objective and worker integration, but the current
training-worker helper still synthesizes old/ref logps from current logps for
local smoke paths. Rewards can be consumed from payloads and strict validation
exists, but reward computation itself is not yet modeled as a production adapter.
Tasks
Define the rollout/training batch contract for:
current selected logprobs;
old-policy selected logprobs captured during rollout;
reference-policy selected logprobs;
scalar sequence rewards;
prompt group ids and completion masks.
Extend rollout payload parsing to consume old/ref logps when supplied.
Add shape/device/dtype/mask validation for logprob tensors.
Add a reward provider protocol for:
payload scalar rewards;
rule-based verifier callback;
optional model-backed reward callable.
Keep local smoke fallback clearly labeled and disabled in strict production mode.
Add tests where current, old, and reference logps are distinct tensors.
Add tests for missing/mismatched logps and rewards.
Acceptance Criteria
GRPO worker loss uses real supplied old/ref logps when available.
Production strict mode rejects incomplete rollout/reward/logprob payloads.
Reward computation is pluggable without importing vLLM, DeepSpeed, or Ray at module import time.
component: alignmentTasks involving RL loss functions such as DPO and GRPO, and mathematical alignment logicpriority: highSevere congestion issues require the highest priority for resolution.
Activity
inaniloquentee commentedon Jun 3, 2026
This is the PR: https://github.com/Flink-ddd/RL-Kernel/pull/67
[DSv4][P5-5] Shared Expert MLP: strict CUDA + Triton kernels (RL-Alig…
[DSv4][P5-5] Shared Expert MLP: strict CUDA + Triton kernels (RL-Alig…