ruler_score_group drops group exceptions, metadata and metrics, and trajectory policy versions
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- machine-learning
Línea de trabajo
Start with art/rewards/ruler.py and trace how ruler_score_group rebuilds trajectories and the group. Compare the fields it preserves with the expected behavior in the issue, then run the reproduction provided in the report. Done means scored groups retain the listed group and trajectory fields while only reward, RULER metrics, and the RULER log line change; pull request #1143 is already open for this issue.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
ruler_score_group rebuilds the group it scores, and the rebuilt group loses everything except the trajectories' messages, reward, metrics, metadata and logs:
- Group level:
exceptions,metadata,metricsandlogsare dropped. It returnsart.TrajectoryGroup(new_trajectories). - Trajectory level:
initial_policy_version,final_policy_versionand the private_policy_token_countsare dropped, andstart_timeis reset to the time of scoring.
The documented usage is gather_trajectory_groups(..., after_each=lambda g: ruler_score_group(g, ...)), so every RULER-scored group reaches model.log / training without this information:
exception_rateis computed fromgroup.exceptions(model.py), so failed rollouts in a group no longer register. A run whose rollouts are erroring reports an exception rate of 0.metrics_taxonomyreadsscenario_idfromgroup.metadataand counts attempted rollouts aslen(trajectories) + len(exceptions). Both are lost.- Custom group metrics (
group_*) disappear from the logged metrics. PipelineTrainerreads the trajectory policy versions and token counts for staleness and policy-age metrics. A group scored insiderollout_fnfrom a cached or replayed rollout loses its recorded age, and_apply_policy_versionsthen stamps the current worker version on it.
Reproduced on main at 5f0c1fb, with ruler stubbed (no judge call):
import asyncio, importlib
from types import SimpleNamespace
import art
ruler_module = importlib.import_module("art.rewards.ruler")
async def fake_ruler(message_lists, **kwargs):
return [SimpleNamespace(score=1.0, explanation="") for _ in message_lists]
ruler_module.ruler = fake_ruler
t = art.Trajectory(
messages_and_choices=[{"role": "user", "content": "q"}, {"role": "assistant", "content": "a"}],
initial_policy_version=3, final_policy_version=5,
)
group = art.TrajectoryGroup(
[t], exceptions=[RuntimeError("rollout failed")],
metadata={"scenario_id": "s-7"}, metrics={"latency": 1.5},
)
scored = asyncio.run(ruler_module.ruler_score_group(group, "judge"))
print(scored.exceptions, scored.metadata, scored.metrics)
print(scored.trajectories[0].initial_policy_version, scored.trajectories[0].final_policy_version)
[] {} {}
None None
Expected: the scored group keeps its exceptions, metadata, metrics and logs, and each trajectory keeps its policy versions, token counts and start time. Only the reward, ruler_score / independent_reward metrics and the RULER log line should change. The input group should stay untouched, as it is today.
- Lenguaje dominante
- Python
- Estrellas
- 10.8k
- Forks
- 1k
- Merge medio
- 12 h 33 min
- PR fusionados (30 d)
- 126
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de OpenPipe/ART
-
gather_trajectory_groups / gather_trajectories leave sibling rollouts running after a failurePosiblemente ocupada @salma2vec la tomó hace 2 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Distributed group_mean casts group ids to float32, losing precision vs non-distributed pathPosiblemente ocupada @OnePunchMonk la tomó hace 21 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Add from_entity parameter to _experimental_fork_checkpointQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
trajectory_group_batches leaves started rollouts running after close, error or cancellationPosiblemente ocupada @salma2vec la tomó hace 2 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
Los mantenedores suelen responder en 1 día
-
LocalBackend/Unsloth: gradient_accumulation_steps > 1 hangs the trainer (producer waits for one result per sequence)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 15/100
Los mantenedores suelen responder en 1 día
Todos los issues de OpenPipe/ART
Issues similares
-
Project submission:Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
slavakurilyak/awesome-ai-agents#845 ·
Los mantenedores suelen responder en 1 día
-
tests: pin that the atomic writers in utils/paths.py stage the temporary file in the target's directoryPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertodifficulty:2 enhancement good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 92/100
MakazhanAlpamys/Soup#2178 ·
Los mantenedores suelen responder en 1 día
-
[BUG] dcg.waggr permutation p-values are folded twice, so near-zero scores get the smallest p-valuesAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
scverse/rapids-singlecell#854 ·
Los mantenedores suelen responder en 1 día
-
Slang input: int8_t4_packed and uint8_t4_packed are copied into CrossGLPosiblemente ocupada @ninglinLiu la tomó hoy. Abiertoarea:frontend backend:slang bug direction:input
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 13 días