MCPcopy Create free account

hub / github.com/RL-Align/RL-Kernel / functions

Functions1,290 in github.com/RL-Align/RL-Kernel

Methodapply_fp32
(self, logits: torch.Tensor, token_ids: torch.Tensor)
rl_engine/kernels/ops/cuda/loss/logp.py:47
Methodapply_fp32
(self, logits: torch.Tensor, token_ids: torch.Tensor)
rl_engine/kernels/ops/cuda/loss/logp.py:131
Methodbackward
(ctx, grad_ratio, grad_kl)
rl_engine/kernels/ops/triton/loss/ratio_kl.py:167
Methodbackward
(ctx, grad_logp)
rl_engine/kernels/ops/triton/loss/linear_logp.py:139
Methodbackward
(ctx, grad_logp)
rl_engine/kernels/ops/pytorch/loss/linear_logp.py:285
Methodbackward
(ctx, grad_logp)
rl_engine/kernels/ops/cuda/loss/linear_logp.py:84
Methodbackward
(ctx, grad_logp)
rl_engine/kernels/ops/cuda/loss/linear_logp.py:174
Methodbackward
(self, loss)
tests/test_deepspeed_training_worker.py:39
Functionbad_grad_logp
(logits, token_ids)
tests/test_op_checks.py:139
Functionbad_identity
(x)
tests/test_op_checks.py:169
Functionbad_logp
(logits, token_ids)
tests/test_op_checks.py:55
Methodbatch_size
(self)
rl_engine/testing/rl_batch.py:29
Methodbroker
()
rl_engine/executors/bridge.py:2253
Methodclear_metrics
(self)
benchmarks/profiler.py:388
Methodcollective_rpc
(self, method, kwargs)
tests/test_weight_sync_bridge.py:700
Methodcompletion_len
(self)
rl_engine/testing/rl_batch.py:41
Methoddense_completion_token_ids
(self)
rl_engine/testing/rl_batch.py:52
Methodduration_seconds
(self)
rl_engine/executors/training_contract.py:32
Methodduration_seconds
(self)
rl_engine/executors/training_contract.py:48
Functionextract_rollout_token_groups
Extract generated token ids from RL-Kernel/vLLM-style rollout payloads.
rl_engine/executors/training_contract.py:445
Functionfail_import
(name, package=None)
tests/test_ray_actor_manager.py:193
Functionfail_import
(name, package=None)
tests/test_deepspeed_training_worker.py:149
Functionfail_import
(name)
tests/test_vllm_rollout_sampler.py:84
Functionfake_cdll
(path)
tests/test_weight_sync_bridge.py:974
Functionfake_fn
()
tests/test_profiler.py:192
Functionfake_hardware_adjustment
(registry)
tests/test_kernel_registry.py:49
Functionfake_peak
()
tests/test_profiler.py:187
Functionfake_reduce_tensor
(tensor)
tests/test_weight_sync_bridge.py:607
Functionfake_reset
()
tests/test_profiler.py:183
Functionfake_sm90_tp
(hidden_arg, weight_arg, target_arg, bias_arg, **kwargs)
tests/test_linear_logp.py:669
Functionfake_sync
()
tests/test_profiler.py:179
Functionfake_warning
(message, *args)
tests/test_kernel_registry.py:71
Methodflat_completion_mask
(self)
rl_engine/testing/rl_batch.py:45
Methodflat_token_ids
(self)
rl_engine/testing/rl_batch.py:49
Functionforbidden_portable_tp
(*args, **kwargs)
tests/test_linear_logp.py:673
Methodforward
(self, token_ids: torch.Tensor)
rl_engine/executors/deepspeed_trainer.py:69
Methodforward
(ctx, q, k, v, causal, sm_scale)
rl_engine/kernels/ops/triton/triton_attn.py:336
Methodforward
(ctx, policy_logits, ref_logits, action_ids, attention_mask, old_logps)
rl_engine/kernels/ops/triton/loss/ratio_kl.py:127
Methodforward
(ctx, hidden, lm_head_weight, bias, target_ids)
rl_engine/kernels/ops/triton/loss/linear_logp.py:96
Methodforward
( ctx, hidden, lm_head_weight, bias, target_ids, vocab_start_i
rl_engine/kernels/ops/pytorch/loss/linear_logp.py:221
Methodforward
(ctx, hidden, lm_head_weight, bias, target_ids)
rl_engine/kernels/ops/cuda/loss/linear_logp.py:67
Methodforward
( ctx, hidden, lm_head_weight, bias, target_ids, vocab_start_i
rl_engine/kernels/ops/cuda/loss/linear_logp.py:113
Methodforward
(self, input_ids, attention_mask=None, use_cache=None)
tests/test_stateless_training_contract.py:104
Methodforward
(self, input_ids, attention_mask=None, use_cache=None)
tests/test_stateless_training_contract.py:170
Methodforward
(self, input_ids: torch.Tensor, *, logit_bias: float = 0.0)
tests/test_alignment_model_wrappers.py:27
Methodforward
(self, input_ids, attention_mask=None, use_cache=None)
tests/test_paged_kv_baseline.py:27
Methodforward
(self, input_ids, attention_mask=None, use_cache=None)
tests/test_stateless_executor.py:36
Methodforward
(self, input_ids, attention_mask=None, use_cache=None)
tests/test_stateless_executor.py:56
Methodforward
(self, input_ids, attention_mask=None)
tests/test_stateless_executor.py:63
Methodforward
(self, input_ids, attention_mask=None, use_cache=None)
tests/test_stateless_executor.py:71
Methodforward
(self, input_ids, attention_mask=None, use_cache=None)
tests/test_stateless_executor.py:225
Methodforward
(self, input_ids, attention_mask=None, use_cache=None)
tests/test_stateless_executor.py:348
Methodforward
(self, token_ids: torch.Tensor)
examples/grpo_single_gpu.py:55
Methodforward
(self, input_ids, attention_mask=None, use_cache=None)
benchmarks/benchmark_stateless_executor.py:68
Methodforward
(self, input_ids, attention_mask=None, use_cache=None)
benchmarks/benchmark_stateless_executor.py:87
Methodforward_logits
(self, input_ids: torch.Tensor, **model_kwargs: Any)
rl_engine/alignment/model_wrappers.py:134
Methodgenerate
(self, prompts, num_generations=None, sampling_params=None)
tests/test_vllm_rollout_sampler.py:255
Methodget_manifest
(self, update_id: str)
rl_engine/executors/bridge.py:1631
Methodhealth_check
(self)
rl_engine/executors/ray_actor_manager.py:218
Methodindexed_fp32
( self, logits: torch.Tensor, token_ids: torch.Tensor, row_indices: torch.Tensor )
rl_engine/kernels/ops/cuda/loss/logp.py:64
Methodindexed_fp32
( self, logits: torch.Tensor, token_ids: torch.Tensor, row_indices: torch.Tensor )
rl_engine/kernels/ops/cuda/loss/logp.py:159
Methodindexed_out
( self, logits: torch.Tensor, token_ids: torch.Tensor, row_indices: torch.Tens
rl_engine/kernels/ops/cuda/loss/logp.py:55
Methodindexed_out
( self, logits: torch.Tensor, token_ids: torch.Tensor, row_indices: torch.Tens
rl_engine/kernels/ops/cuda/loss/logp.py:144
Methodinfo_on_rank
(self, msg: str, rank: int = 0, *args: Any)
rl_engine/utils/logger.py:49
Functionmake_rollout_result
( *, iteration: int, weight_version: int, payload: Any, metrics: Optional[Mapping[str, Any
rl_engine/executors/training_contract.py:298
Functionnative_fwd
(p=policy)
benchmarks/benchmark_grpo_loss.py:93
Functionnative_fwd_bwd
(p=pol_grad)
benchmarks/benchmark_grpo_loss.py:103
Functionnative_logprob
Standard full log_softmax + gather — O(G·L·V) extra memory.
benchmarks/benchmark_grpo_op.py:47
Methodonline_fp32
(self, logits: torch.Tensor, token_ids: torch.Tensor)
rl_engine/kernels/ops/pytorch/loss/logp.py:92
Methodonline_fp32
(self, logits: torch.Tensor, token_ids: torch.Tensor)
rl_engine/kernels/ops/cuda/loss/logp.py:74
Methodonline_fp32
(self, logits: torch.Tensor, token_ids: torch.Tensor)
rl_engine/kernels/ops/cuda/loss/logp.py:177
Methodonline_indexed_fp32
( self, logits: torch.Tensor, token_ids: torch.Tensor, row_indices: torch.Tensor )
rl_engine/kernels/ops/cuda/loss/logp.py:86
Methodonline_indexed_fp32
( self, logits: torch.Tensor, token_ids: torch.Tensor, row_indices: torch.Tensor )
rl_engine/kernels/ops/cuda/loss/logp.py:197
Methodonline_indexed_out
( self, logits: torch.Tensor, token_ids: torch.Tensor, row_indices: torch.Tens
rl_engine/kernels/ops/cuda/loss/logp.py:77
Methodonline_indexed_out
( self, logits: torch.Tensor, token_ids: torch.Tensor, row_indices: torch.Tens
rl_engine/kernels/ops/cuda/loss/logp.py:182
Methodonline_out
( self, logits: torch.Tensor, token_ids: torch.Tensor, output: torch.Tensor )
rl_engine/kernels/ops/cuda/loss/logp.py:69
Methodonline_out
( self, logits: torch.Tensor, token_ids: torch.Tensor, output: torch.Tensor )
rl_engine/kernels/ops/cuda/loss/logp.py:169
Methodout
( self, logits: torch.Tensor, token_ids: torch.Tensor, output: torch.Tensor )
rl_engine/kernels/ops/cuda/loss/logp.py:50
Methodout
( self, logits: torch.Tensor, token_ids: torch.Tensor, output: torch.Tensor )
rl_engine/kernels/ops/cuda/loss/logp.py:136
Functionparameter_specs
(model: torch.nn.Module)
benchmarks/benchmark_weight_sync_bridge.py:679
Functionprefix_shared_attention
csrc/ops.cpp:41
Methodprompt_len
(self)
rl_engine/testing/rl_batch.py:37
Methodpublish_weights
( self, *, weight_version: int, metadata: Optional[Mapping[str, Any]] = None,
rl_engine/executors/ray_actor_manager.py:165
Methodpublish_weights
( self, *, weight_version: int, metadata: Optional[Mapping[str, Any]] = None,
rl_engine/executors/ray_actor_manager.py:202
Methodrelease
(self, update_id: str)
rl_engine/executors/bridge.py:1417
Methodrelease
(self, update_id: str)
rl_engine/executors/bridge.py:1441
Methodrelease_weights
(self, update_id: str)
rl_engine/executors/deepspeed_trainer.py:237
Methodrelease_weights
(self)
rl_engine/executors/ray_actor_manager.py:151
Methodrelease_weights
(self, update_id: str)
rl_engine/executors/ray_actor_manager.py:178
Methodrelease_weights
(self, update_id: Optional[str] = None)
rl_engine/executors/ray_actor_manager.py:213
Methodrelease_weights
(self, update_id)
tests/test_ray_actor_manager.py:148
Methodrelease_worker
(model: torch.nn.Module)
rl_engine/executors/bridge.py:719
Methodreload_weights
(self, *, weights_iterator, is_checkpoint_format)
tests/test_weight_sync_bridge.py:736
Methodreload_weights
(self, *, weights_iterator, is_checkpoint_format)
tests/test_weight_sync_bridge.py:773
Methodremote
(self, *args, **kwargs)
tests/test_ray_actor_manager.py:36
Methodremote
(self, *args, **kwargs)
tests/test_ray_actor_manager.py:62
Methodreserved_mb
(self)
rl_engine/executors/paged_kv_baseline.py:81
Functionreset_fake_llm
()
tests/test_vllm_rollout_sampler.py:59
Functionreset_memory
()
tests/test_profiler.py:44
Methodrollout
(self, spec: Any)
rl_engine/executors/ray_actor_manager.py:145
← previousnext →801–900 of 1,290, ranked by callers