MCPcopy Create free account

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

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

Methodrollout
(self, spec: Any)
rl_engine/executors/ray_actor_manager.py:193
Methodshutdown
(self)
tests/test_ray_actor_manager.py:95
Functionslightly_shifted_logp
(logits, token_ids)
tests/test_op_checks.py:87
Methodtensor_count
(self)
rl_engine/executors/bridge.py:1400
Functiontest_acknowledge_requires_successful_import
()
tests/test_weight_sync_bridge.py:156
Functiontest_acknowledge_revalidates_imported_content_before_switching_active_version
()
tests/test_weight_sync_bridge.py:164
Methodtest_apply_fp32_alias_forward_fp32
(self)
tests/test_logp.py:60
Functiontest_attention_backend_fallback_does_not_swallow_unrelated_kernel_errors
()
tests/test_stateless_executor.py:341
Functiontest_attention_qwen3_8b_large_real_shape
GPU smoke at LARGE Qwen3-8B prefill (batch=8, seq=4096, 32/8/128).
tests/test_attention.py:458
Methodtest_backward_batch_invariance_bitwise
Axis A backward: full-batch x.grad slice must match batch=1 x.grad.
tests/test_rope.py:182
Functiontest_backward_batch_invariance_slice
Axis-A (backward): q/k/v grads are bitwise-independent of batch size.
tests/test_attention.py:365
Functiontest_backward_batch_invariance_slice
()
tests/test_rms_norm.py:144
Methodtest_backward_matches_torch_matmul
(self)
tests/test_matmul.py:90
Functiontest_backward_suite_reports_failure_for_bad_gradient
()
tests/test_op_checks.py:138
Functiontest_bad_weight_shape_raises
()
tests/test_rms_norm.py:112
Methodtest_batch1_vs_batchN_bitwise
(self)
tests/test_rope.py:140
Methodtest_batch1_vs_batchN_bitwise
(self)
tests/test_logp.py:107
Methodtest_batch1_vs_batchN_bitwise
(self)
tests/test_matmul.py:106
Methodtest_batch_grad_invariance
(self)
tests/test_matmul.py:127
Methodtest_batch_invariance_bf16
Axis A must hold for bf16 inputs too (forward_fp32 path).
tests/test_rope.py:159
Functiontest_batch_invariance_chunked
Axis-A (chunked): processing the batch in chunks and concatenating == one shot.
tests/test_attention.py:353
Methodtest_batch_invariance_positions_2d
Axis A with per-batch positions [B, S].
tests/test_rope.py:168
Functiontest_batch_invariance_slice
Axis-A: a row computed in a batch-of-N is bitwise identical to batch-of-1. Each query row reduces over its own keys independently of how many seq
tests/test_kv_cache_attention.py:208
Functiontest_batch_invariance_slice
Axis-A: a sequence's output is bitwise-independent of how many share the batch.
tests/test_attention.py:342
Functiontest_batch_invariance_slice
A row's output must not depend on how many rows share the batch.
tests/test_rms_norm.py:54
Functiontest_batch_invariance_with_padding
Padding extra rows must not perturb the real rows (bitwise).
tests/test_rms_norm.py:63
Methodtest_batch_invariance_with_padding
Padded batch (extra rows) must not affect valid rows.
tests/test_rope.py:148
Methodtest_batch_invariance_with_padding
(self)
tests/test_logp.py:117
Methodtest_batch_invariance_with_padding
(self)
tests/test_matmul.py:116
Functiontest_benchmark_metadata_is_reproducible
()
tests/test_rl_batch_fixture.py:111
Functiontest_both_mode_runs_one_forward_and_returns_reference_logps_and_rewards
()
tests/test_stateless_executor.py:215
Functiontest_boundaries_agree_with_uniform
()
tests/test_grpo_loss.py:101
Functiontest_build_stateless_inputs_from_rollout_payload_preserves_candidate_order_and_masks
()
tests/test_stateless_training_contract.py:38
Functiontest_build_stateless_inputs_preserves_payload_prompt_token_ids_when_available
()
tests/test_stateless_training_contract.py:70
Functiontest_cache_split_point_invariance
A decoded suffix matches the matching slice of full prefill (atol=2e-6). This is the soul of KV-cache correctness: a token computed during prefil
tests/test_kv_cache_attention.py:140
Methodtest_call_and_apply_alias_forward
(self)
tests/test_logp.py:53
Methodtest_call_equals_forward
(self)
tests/test_rope.py:74
Methodtest_call_equals_forward
(self)
tests/test_matmul.py:64
Functiontest_candidate_arch_key_uses_tolerance_override
()
tests/test_op_checks.py:86
Functiontest_causal_decode_sees_all_keys
Decode (Sq=1): causal masks nothing, so it equals the non-causal result.
tests/test_attention.py:195
Functiontest_causal_uniform_attention_closed_form
Causal masking: with uniform scores, out[i] == mean of keys 0..i.
tests/test_attention.py:182
Functiontest_chunked_linear_logp_backward_matches_autograd_and_layout_invariance
(use_bias)
tests/test_linear_logp.py:256
Functiontest_compact_completion_values_follow_valid_indices
()
tests/test_rl_batch_fixture.py:87
Functiontest_constant_linear_logp_inputs_match_operator_contract
()
tests/test_operator_inputs.py:74
Functiontest_constant_logp_inputs_are_deterministic
()
tests/test_operator_inputs.py:57
Functiontest_content_checksum_mismatch_rejects_import_without_advancing_active_version
()
tests/test_weight_sync_bridge.py:196
Functiontest_cpu_smoke_suite_collects_metrics
()
tests/test_profiler.py:63
Functiontest_cuda_flash_attention_matches_sdpa
( dtype, atol, rtol, causal, use_explicit_scale, batch, seqlen, nheads, he
tests/test_attention_correctness.py:247
Functiontest_cuda_ipc_bridge_publishes_manifest_and_tracks_lifecycle
()
tests/test_weight_sync_bridge.py:483
Functiontest_cuda_ipc_bridge_rejects_non_cuda_tensors
()
tests/test_weight_sync_bridge.py:472
Functiontest_cuda_vmm_bridge_rejects_reserved_metadata_key
()
tests/test_weight_sync_bridge.py:519
Functiontest_cuda_vmm_bridge_requires_cuda_tensors_before_loading_backend
()
tests/test_weight_sync_bridge.py:509
Functiontest_cuda_vmm_driver_backend_prefers_env_libcuda
(monkeypatch)
tests/test_weight_sync_bridge.py:971
Functiontest_custom_reward_adapter_and_shape_validation
()
tests/test_stateless_executor.py:245
Functiontest_decode_single_query_uniform_attention
With identical keys, a single decode query attends uniformly -> mean of V.
tests/test_kv_cache_attention.py:255
Functiontest_deepspeed_config_zero3_override_controls_training_and_publish
(monkeypatch)
tests/test_deepspeed_training_worker.py:538
Functiontest_deepspeed_loader_preserves_explicit_cuda_home
(monkeypatch)
tests/test_deepspeed_training_worker.py:160
Functiontest_deepspeed_loader_uses_python_cuda_toolkit
(monkeypatch, tmp_path)
tests/test_deepspeed_training_worker.py:183
Functiontest_deepspeed_published_versions_are_monotonic
(monkeypatch)
tests/test_deepspeed_training_worker.py:738
Functiontest_deepspeed_training_worker_rejects_ignore_index_in_model_inputs
(monkeypatch)
tests/test_deepspeed_training_worker.py:446
Functiontest_deepspeed_training_worker_routes_linear_logp_and_zeroes_masked_targets
(monkeypatch)
tests/test_deepspeed_training_worker.py:376
Functiontest_deepspeed_training_worker_synthetic_fallback
(monkeypatch)
tests/test_deepspeed_training_worker.py:571
Functiontest_deepspeed_training_worker_uses_engine_backward_and_step
(monkeypatch)
tests/test_deepspeed_training_worker.py:213
Functiontest_deepspeed_worker_publishes_full_state_manifest
(monkeypatch)
tests/test_deepspeed_training_worker.py:606
Functiontest_deepspeed_zero3_multi_rank_without_gather_api_is_blocked
(monkeypatch)
tests/test_deepspeed_training_worker.py:717
Functiontest_deepspeed_zero3_single_rank_publishes_full_state_manifest
(monkeypatch)
tests/test_deepspeed_training_worker.py:642
Functiontest_deepspeed_zero3_training_gathers_lm_head_parameters_during_backward
(monkeypatch)
tests/test_deepspeed_training_worker.py:486
Functiontest_deepspeed_zero3_training_without_gather_api_is_blocked
(monkeypatch)
tests/test_deepspeed_training_worker.py:520
Functiontest_deepspeed_zero3_uses_gathered_parameters_when_available
(monkeypatch)
tests/test_deepspeed_training_worker.py:680
Functiontest_default_reward_adapter_rejects_non_scalar_logits
()
tests/test_stateless_executor.py:264
Functiontest_dtype_path_accuracy
forward(dtype) tracks forward_fp32 within the per-dtype peak-relative tolerance.
tests/test_kv_cache_attention.py:310
Functiontest_dtype_path_accuracy
Axis-B: the low-precision path drifts from fp32 by a bounded fraction of the output peak.
tests/test_attention.py:313
Functiontest_dtype_paths
(dtype)
tests/test_rms_norm.py:74
Functiontest_embedding_batch_invariance_slice
()
tests/test_embedding.py:82
Functiontest_embedding_batch_invariance_with_padding
Padding extra positions must not perturb the real ones (bitwise). Mimics a variable-length batch: real token ids followed by padding ids alon
tests/test_embedding.py:91
Functiontest_embedding_gradient_flows_to_weight
()
tests/test_embedding.py:126
Functiontest_embedding_inputs_not_mutated
()
tests/test_embedding.py:106
Functiontest_empty_cache_equals_plain_attention
S_past=0 (pure prefill) delegates to plain attention over k_new/v_new.
tests/test_kv_cache_attention.py:236
Functiontest_eps_inside_sqrt
()
tests/test_rms_norm.py:96
Functiontest_executor_falls_back_for_models_without_use_cache_argument
()
tests/test_stateless_executor.py:175
Functiontest_executor_rejects_models_that_return_kv_cache_outputs
()
tests/test_stateless_executor.py:188
Functiontest_executor_rejects_shape_mismatches_empty_masks_and_invalid_config
()
tests/test_stateless_executor.py:272
Functiontest_executor_runs_full_sequence_forward_with_use_cache_false_and_detaches_outputs
()
tests/test_stateless_executor.py:139
Functiontest_extract_hidden_states_prefers_last_hidden_state_over_hidden_state_stack
()
tests/test_deepspeed_training_worker.py:326
Functiontest_extract_hidden_states_prefers_structured_hidden_over_tuple_logits
()
tests/test_deepspeed_training_worker.py:357
Functiontest_extract_hidden_states_rejects_ambiguous_multi_tensor_tuple
()
tests/test_deepspeed_training_worker.py:369
Functiontest_extract_hidden_states_uses_last_tensor_from_hidden_state_stack
()
tests/test_deepspeed_training_worker.py:343
Functiontest_extract_logits_accepts_common_model_outputs
(output_kind: str)
tests/test_alignment_model_wrappers.py:44
Functiontest_extract_logits_accepts_loss_first_tuple_outputs
()
tests/test_alignment_model_wrappers.py:61
Functiontest_extract_logits_rejects_missing_or_invalid_logits
()
tests/test_alignment_model_wrappers.py:53
Functiontest_extract_logits_rejects_tuple_without_logits_tensor
()
tests/test_alignment_model_wrappers.py:70
Functiontest_extract_logps_matches_masked_reference_with_ignore_index
()
tests/test_deepspeed_training_worker.py:268
Functiontest_extract_logps_uses_hidden_dim_to_disambiguate_tuple_logits
()
tests/test_deepspeed_training_worker.py:297
Functiontest_factory_and_cuda_ipc_unavailable_path_are_explicit
()
tests/test_weight_sync_bridge.py:259
Functiontest_flashinfer_temperature_applied_once
Regression: the FlashInfer path must scale logits by 1/T exactly once. Previously temperature was divided once for all backends and a second time
tests/test_sampler_temperature.py:36
Functiontest_flashinfer_temperature_one_is_unchanged
temperature == 1.0 must leave logits unscaled (both divisions are skipped).
tests/test_sampler_temperature.py:63
Functiontest_forward_equals_standard_attn_on_concat
forward (input-dtype path) must equal NativeAttentionOp.forward on cat([cache,new]).
tests/test_kv_cache_attention.py:120
Functiontest_forward_fp32_disables_tf32_on_gpu
On a TF32-enabled GPU, forward_fp32 stays true fp32, no worse than a TF32 matmul.
tests/test_lm_head.py:148
Functiontest_forward_fp32_disables_tf32_on_gpu
On a TF32-enabled GPU, forward_fp32 stays true fp32, no worse than a TF32 path.
tests/test_attention.py:155
Functiontest_forward_fp32_equals_standard_attn_on_concat
forward_fp32 must equal NativeAttentionOp.forward_fp32 on cat([cache,new]).
tests/test_kv_cache_attention.py:102
← previousnext →901–1,000 of 1,290, ranked by callers