Files
trinity-rl/envs/decensor/decensor_v1/judges.py
T
carstenandClaude Opus 5.5 609e832572 Move to current prime-rl, verifiers and renderers; DeepSeek V4.1 support
Bump prime-rl to trinity-dsv41: upstream main, PR #4057 (DeepSeek V4.1
Flash) with the engram port onto the shared n-gram module, and renderers
tracking its trinity-dsv41 branch (v0.2.0 + the Hermes parser).

Port the envs to the current verifiers v1 API, rl.toml to the new config
schema (IPO loss kept as the new default), and bootstrap/launch/prepare
scripts to the new layout.

Decensor now runs DecensorEnv: the simulated user writes reviewed
follow-ups up to each row's target_turns and every assistant turn is
judged. Earlier runs trained on the first turn only.
tests/test_multiturn_env.py drives the full loop against a mock endpoint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 14:39:44 +00:00

21 lines
625 B
Python

from __future__ import annotations
from pydantic import Field
from verifiers.v1.configs.judge import JudgeConfig
from verifiers.v1.configs.sampling import SamplingConfig
class DecensorJudgeSampling(SamplingConfig):
temperature: float = 0.0
max_tokens: int = 1024
class DecensorJudgeConfig(JudgeConfig):
model: str = "google/gemma-4-26B-A4B-it"
base_url: str = "http://localhost:3001/v1"
api_key_var: str = "VLLM_API_KEY"
sampling: DecensorJudgeSampling = DecensorJudgeSampling()
min_p: float = 0.05
disable_thinking: bool = True
max_concurrent_requests: int = Field(default=24, ge=1)