Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RL-Align/RL-Kernel
/ functions
Functions
1,290 in github.com/RL-Align/RL-Kernel
⨍
Functions
1,290
◇
Types & classes
193
↳
Endpoints
3
Function
test_native_swiglu_matches_fp32_reference
(dtype: torch.dtype)
tests/test_swiglu.py:33
Function
test_native_swiglu_rejects_mismatched_shape
()
tests/test_swiglu.py:45
Function
test_native_tensor_parallel_matches_full_reference_cpu_gloo_4_ranks
()
tests/test_linear_logp.py:381
Function
test_normalize_object_request_output
()
tests/test_vllm_rollout_sampler.py:234
Method
test_op_class_is_elementwise
(self)
tests/test_rope.py:107
Method
test_op_class_is_logprob
(self)
tests/test_logp.py:95
Method
test_op_class_is_reduction
(self)
tests/test_matmul.py:85
Function
test_operator_inputs_support_all_issue_108_ops
(op_name)
tests/test_operator_inputs.py:49
Function
test_output_shape
Output shape is [B, Hq, Sq, D].
tests/test_attention.py:328
Function
test_output_shape_follows_q
()
tests/test_kv_cache_attention.py:338
Method
test_output_shape_matches_input
(self)
tests/test_rope.py:56
Method
test_output_shape_matches_matmul_contract
(self)
tests/test_matmul.py:45
Method
test_output_shape_matches_token_ids
(self)
tests/test_logp.py:34
Function
test_paged_kv_baseline_scores_like_reference_path_and_enables_cache
()
tests/test_paged_kv_baseline.py:102
Function
test_paged_kv_reservation_rejects_capacity_smaller_than_batch_needs
()
tests/test_paged_kv_baseline.py:138
Function
test_policy_wrapper_keeps_model_trainable
()
tests/test_alignment_model_wrappers.py:75
Function
test_policy_wrapper_selected_logprobs_accepts_masked_ignore_index
()
tests/test_alignment_model_wrappers.py:125
Function
test_policy_wrapper_selected_logprobs_matches_reference
()
tests/test_alignment_model_wrappers.py:95
Function
test_policy_wrapper_selected_logprobs_preserves_gradient
()
tests/test_alignment_model_wrappers.py:138
Function
test_policy_wrapper_selected_logprobs_supports_logits_slice
()
tests/test_alignment_model_wrappers.py:111
Method
test_position_zero_is_identity_for_cos
At position 0, cos=1 and sin=0, so output should equal input.
tests/test_rope.py:118
Method
test_positions_1d_and_2d_equivalent
positions [S] and [B, S] (with identical values) must produce same output.
tests/test_rope.py:97
Function
test_profiler_report_writers
(tmp_path)
tests/test_profiler.py:90
Function
test_publish_accepts_zero3_after_full_state_export
()
tests/test_weight_sync_bridge.py:219
Function
test_publish_rejects_unsupported_weight_layouts
()
tests/test_weight_sync_bridge.py:234
Function
test_publish_requires_monotonic_weight_versions
()
tests/test_weight_sync_bridge.py:211
Method
test_pure_function_no_inplace
(self)
tests/test_rope.py:79
Method
test_pure_function_no_inplace
(self)
tests/test_logp.py:72
Method
test_pure_function_no_inplace
(self)
tests/test_matmul.py:76
Method
test_qwen3_kv_heads_shape
RoPE is also applied to K with n_kv_heads=8.
tests/test_rope.py:256
Method
test_qwen3_projection_reduction_dims
(self, k, n, label)
tests/test_matmul.py:188
Method
test_qwen3_shape
(self, batch, seq, label)
tests/test_rope.py:249
Function
test_random_grad_mode_catches_nonuniform_upstream_gradient_bug
()
tests/test_op_checks.py:156
Function
test_random_logp_inputs_are_seeded
()
tests/test_operator_inputs.py:65
Function
test_ratio_kl_and_drift_helpers
()
tests/test_reference_ops.py:88
Function
test_ray_actor_handles_forward_weight_manifest_between_workers
()
tests/test_ray_actor_manager.py:310
Function
test_ray_actor_handles_support_direct_rollout_training_handoff
()
tests/test_ray_actor_manager.py:264
Function
test_ray_manager_creates_actor_with_options_dispatches_and_cleans_up
()
tests/test_ray_actor_manager.py:205
Function
test_reference_scoring_matches_next_token_pytorch_reference_and_masks_prompt_tokens
()
tests/test_stateless_executor.py:117
Function
test_reference_scoring_rejects_completion_start_at_position_zero
()
tests/test_stateless_executor.py:327
Function
test_reference_wrapper_freezes_and_evals_model
()
tests/test_alignment_model_wrappers.py:84
Function
test_reference_wrapper_selected_logprobs_does_not_track_gradient
()
tests/test_alignment_model_wrappers.py:153
Function
test_registry_dispatch_matches_native
()
tests/test_linear_logp.py:739
Function
test_registry_dispatches_grpo_loss
()
tests/test_grpo_loss.py:347
Function
test_registry_dispatches_kv_cache_attn_op
The registry resolves "kv_cache_attention" to NativeKVCacheAttnOp.
tests/test_kv_cache_attention.py:385
Function
test_registry_dispatches_native_activation_ops
()
tests/test_swiglu.py:168
Function
test_registry_dispatches_native_attention_op
The registry resolves "attention" to the ground-truth NativeAttentionOp.
tests/test_attention.py:436
Function
test_registry_dispatches_native_embedding_op
()
tests/test_embedding.py:157
Function
test_registry_dispatches_native_lm_head_op
The registry resolves "lm_head" to NativeLMHeadOp.
tests/test_lm_head.py:290
Function
test_registry_dispatches_ratio_kl
()
tests/test_ratio_kl.py:220
Function
test_registry_dispatches_rms_norm
()
tests/test_rms_norm.py:163
Method
test_registry_returns_logp_op
(self)
tests/test_logp.py:154
Method
test_registry_returns_matmul_op
(self)
tests/test_matmul.py:198
Function
test_reject_path_does_not_advance_active_version
()
tests/test_weight_sync_bridge.py:140
Method
test_rejects_mismatched_shapes
(self)
tests/test_logp.py:98
Function
test_requires_exactly_one_group_spec
()
tests/test_grpo_loss.py:120
Function
test_reserve_paged_kv_cache_builds_block_table_and_tracks_bytes
()
tests/test_paged_kv_baseline.py:75
Function
test_reward_mode_returns_one_scalar_per_sequence_with_default_adapter
()
tests/test_stateless_executor.py:199
Function
test_rocm_attention_can_opt_out_to_sdpa
(monkeypatch, value)
tests/test_kernel_registry.py:36
Function
test_rocm_attention_defaults_to_flash_attention
(monkeypatch)
tests/test_kernel_registry.py:10
Function
test_rocm_attention_env_override_wins_after_hardware_adjustment
(monkeypatch)
tests/test_kernel_registry.py:48
Function
test_rocm_attention_flash_opt_in_aliases
(monkeypatch, value)
tests/test_kernel_registry.py:23
Function
test_rocm_attention_native_sdpa_opt_out
(monkeypatch)
rl_engine/tests/test_dispatch.py:36
Function
test_rocm_attention_unknown_env_value_uses_default_and_warns
(monkeypatch)
tests/test_kernel_registry.py:68
Function
test_rocm_attention_uses_flash_attention_by_default
(monkeypatch)
rl_engine/tests/test_dispatch.py:28
Function
test_rocm_flash_attention_matches_sdpa
( dtype, atol, rtol, causal, use_explicit_scale, batch, seqlen, nheads, he
tests/test_attention_correctness.py:288
Function
test_rocm_flash_attention_rejects_unsupported_head_dim
(causal)
tests/test_attention_correctness.py:323
Function
test_rollout_executor_defaults_to_cuda_vmm_manifest_bridge
()
tests/test_vllm_rollout_sampler.py:290
Function
test_rollout_executor_defers_vllm_sampler_config_validation
()
tests/test_vllm_rollout_sampler.py:282
Function
test_rollout_executor_installs_weights_before_acknowledging
()
tests/test_vllm_rollout_sampler.py:323
Function
test_rollout_executor_legacy_ipc_entry_is_explicitly_blocked
()
tests/test_vllm_rollout_sampler.py:379
Function
test_rollout_executor_rejects_update_when_weight_install_fails
()
tests/test_vllm_rollout_sampler.py:350
Function
test_rollout_executor_updates_weights_from_manifest
()
tests/test_vllm_rollout_sampler.py:296
Function
test_rollout_executor_uses_vllm_sampler_config_by_default
(monkeypatch)
tests/test_vllm_rollout_sampler.py:250
Function
test_sampler_config_allows_prefix_caching_disable
()
tests/test_vllm_rollout_sampler.py:71
Function
test_sampler_config_enables_prefix_caching_by_default
()
tests/test_vllm_rollout_sampler.py:63
Function
test_sampler_construction_does_not_import_vllm
(monkeypatch)
tests/test_vllm_rollout_sampler.py:83
Function
test_sampling_native_cpu_smoke
()
tests/test_profiler.py:118
Function
test_scale_default_and_explicit
Default scale is 1/sqrt(D); an explicit scale (incl. 0.0) is used verbatim.
tests/test_attention.py:229
Function
test_selected_logprobs_reference_allows_ignore_index_when_masked_out
()
tests/test_reference_ops.py:42
Function
test_selected_logprobs_reference_mask_and_dtype
()
tests/test_reference_ops.py:31
Function
test_selected_logprobs_reference_matches_pytorch
()
tests/test_reference_ops.py:18
Function
test_selected_logprobs_reference_rejects_bad_temperature
()
tests/test_reference_ops.py:74
Function
test_selected_logprobs_reference_temperature
()
tests/test_reference_ops.py:60
Function
test_shared_memory_bridge_imports_without_second_copy
()
tests/test_weight_sync_bridge.py:276
Function
test_shared_memory_bridge_tensor_alias_is_visible_across_processes
()
tests/test_weight_sync_bridge.py:322
Function
test_shared_memory_manifest_checksum_rejects_cross_process_tamper
()
tests/test_weight_sync_bridge.py:392
Function
test_shared_memory_manifest_handles_empty_tensors
()
tests/test_weight_sync_bridge.py:457
Function
test_shared_memory_manifest_import_works_from_fresh_process
()
tests/test_weight_sync_bridge.py:343
Function
test_shared_memory_manifest_rejects_handle_mismatch
()
tests/test_weight_sync_bridge.py:426
Function
test_shared_memory_publish_rejects_reserved_metadata_key
()
tests/test_weight_sync_bridge.py:419
Function
test_silu_backward_batch_invariance_slice
Axis A: Gradients must be bitwise identical regardless of batch size.
tests/test_swiglu.py:125
Function
test_silu_batch_invariance_slice
()
tests/test_swiglu.py:55
Function
test_silu_batch_invariance_with_padding
Padding extra rows must not perturb the real rows (bitwise).
tests/test_swiglu.py:72
Function
test_silu_gradient_flows
()
tests/test_swiglu.py:110
Function
test_silu_inputs_not_mutated
()
tests/test_swiglu.py:90
Function
test_sm90_falls_back_for_unsupported_inputs
()
tests/test_linear_logp.py:588
Function
test_sm90_forward_backward_matches_triton
(use_bias)
tests/test_linear_logp.py:536
Function
test_sm90_forward_matches_native_bf16
()
tests/test_linear_logp.py:510
Function
test_sm90_forward_no_bias
()
tests/test_linear_logp.py:524
← previous
next →
1,101–1,200 of 1,290, ranked by callers