|
19 | 19 | from slime.utils.health_monitor import RolloutHealthMonitor |
20 | 20 | from slime.utils.http_utils import _wrap_ipv6, find_available_port, get_host_info, init_http_client |
21 | 21 | from slime.utils.logging_utils import configure_logger, init_tracking |
22 | | -from slime.utils.metric_utils import ( |
23 | | - MetricChecker, |
24 | | - compute_pass_rate, |
25 | | - compute_rollout_step, |
26 | | - compute_statistics, |
27 | | - dict_add_prefix, |
28 | | -) |
| 22 | +from slime.utils.metric_utils import compute_pass_rate, compute_rollout_step, compute_statistics, dict_add_prefix |
29 | 23 | from slime.utils.misc import Box, group_by, load_function |
30 | 24 | from slime.utils.seqlen_balancing import get_seqlen_balanced_partitions |
31 | 25 | from slime.utils.types import Sample |
@@ -80,7 +74,6 @@ def __init__(self, args, pg): |
80 | 74 | self.rollout_engine_lock = Lock.options(num_cpus=1, num_gpus=0).remote() |
81 | 75 | self.rollout_id = -1 |
82 | 76 |
|
83 | | - self._metric_checker = MetricChecker.maybe_create(args) |
84 | 77 | self._health_monitor = None |
85 | 78 | if not self.args.debug_train_only and self.args.use_fault_tolerance: |
86 | 79 | self._health_monitor = RolloutHealthMonitor(self, args) |
@@ -109,8 +102,6 @@ def _try_ci_fault_injection(self): |
109 | 102 | logger.warning(f"CI Fault Injection failed: {e}") |
110 | 103 |
|
111 | 104 | def dispose(self): |
112 | | - if self._metric_checker is not None: |
113 | | - self._metric_checker.dispose() |
114 | 105 | if self._health_monitor is not None: |
115 | 106 | self._health_monitor.stop() |
116 | 107 |
|
@@ -153,9 +144,7 @@ def eval(self, rollout_id): |
153 | 144 | result = call_rollout_fn(self.eval_generate_rollout, self.args, rollout_id, self.data_source, evaluation=True) |
154 | 145 | data = result.data |
155 | 146 | self._save_debug_rollout_data(data, rollout_id=rollout_id, evaluation=True) |
156 | | - metrics = _log_eval_rollout_data(rollout_id, self.args, data, result.metrics) |
157 | | - if self._metric_checker is not None: |
158 | | - self._metric_checker.on_eval(metrics) |
| 147 | + _log_eval_rollout_data(rollout_id, self.args, data, result.metrics) |
159 | 148 |
|
160 | 149 | def save(self, rollout_id): |
161 | 150 | self.data_source.save(rollout_id) |
|
0 commit comments