MCPcopy
hub / github.com/verl-project/verl / update

Method update

verl/trainer/ppo/core_algos.py:183–190  ·  view source on GitHub ↗

Update method for fixed KL controller (no-op). Args: current_kl (float): Current KL divergence value (unused). n_steps (int): Number of steps taken (unused).

(self, current_kl, n_steps)

Source from the content-addressed store, hash-verified

181 self.value = kl_coef
182
183 def update(self, current_kl, n_steps):
184 """Update method for fixed KL controller (no-op).
185
186 Args:
187 current_kl (float): Current KL divergence value (unused).
188 n_steps (int): Number of steps taken (unused).
189 """
190 pass
191
192
193def get_kl_controller(kl_ctrl):

Callers 15

check_networkFunction · 0.45
update_contentMethod · 0.45
on_reqid_submittedMethod · 0.45
_clear_searchMethod · 0.45
action_next_searchMethod · 0.45
init_random_modelFunction · 0.45
clean_envFunction · 0.45
__call__Method · 0.45
__call__Method · 0.45

Calls

no outgoing calls

Tested by 11

clean_envFunction · 0.36
__call__Method · 0.36
__call__Method · 0.36
reset_dispatch_registryFunction · 0.36
setupFunction · 0.36
test_hf_rolloutFunction · 0.36
_get_gen_batchFunction · 0.36