MCPcopy Create free account

hub / github.com/Jiayi-Pan/TinyZero / functions

Functions1,293 in github.com/Jiayi-Pan/TinyZero

↓ 1 callersMethod_verify_cache_dtype
(self)
verl/third_party/vllm/vllm_v_0_3_1/config.py:276
↓ 1 callersMethod_verify_load_format
(self)
verl/third_party/vllm/vllm_v_0_6_3/config.py:91
↓ 1 callersMethod_verify_load_format
(self)
verl/third_party/vllm/vllm_v_0_5_4/config.py:232
↓ 1 callersMethod_verify_load_format
(self)
verl/third_party/vllm/vllm_v_0_4_2/config.py:186
↓ 1 callersMethodadd_cli_args
Shared CLI arguments for vLLM engine.
verl/third_party/vllm/vllm_v_0_3_1/arg_utils.py:61
↓ 1 callersFunctionall_gather_tensor
(local_tensor: Tensor, group: Optional[dist.ProcessGroup] = None, async_op: bool = False)
verl/utils/ulysses.py:154
↓ 1 callersFunctionapply_rotary_pos_emb_rmpad_flash
(q, k, cos, sin, cu_seqlens, max_seqlen)
verl/models/llama/megatron/layers/parallel_attention.py:320
↓ 1 callersFunctionare_lists_similar
(a, b)
tests/rollout/test_vllm_hf_loader.py:51
↓ 1 callersFunctionbroadcast_params
(module)
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:66
↓ 1 callersFunctionbuild_memory_reference
Build the memory references. The memory buffers are built using the build_memory_buffer API. This API will allocate a weight buffer pointer to the
verl/utils/memory_buffer.py:113
↓ 1 callersFunctionceildiv
(a, b)
verl/utils/seqlen_balancing.py:220
↓ 1 callersMethodcheck_consistency
Check the consistency of the DataProto. Mainly for batch and non_tensor_batch We expose this function as a public one so that user can call th
verl/protocol.py:242
↓ 1 callersMethodcheck_health
(self)
verl/third_party/vllm/vllm_v_0_6_3/spmd_gpu_executor.py:181
↓ 1 callersMethodcheck_health
(self)
verl/third_party/vllm/vllm_v_0_5_4/spmd_gpu_executor.py:175
↓ 1 callersMethodcheck_health
(self)
verl/third_party/vllm/vllm_v_0_4_2/spmd_gpu_executor.py:165
↓ 1 callersFunctioncollect_dp_compute
(worker_group, output)
verl/single_controller/base/decorator.py:265
↓ 1 callersFunctioncollect_megatron_compute
Only collect the data from the tp=0 and pp=last and every dp ranks
verl/single_controller/base/decorator.py:103
↓ 1 callersFunctioncollect_megatron_pp_as_dp
treat pp as dp. Only collect data on tp=0
verl/single_controller/base/decorator.py:209
↓ 1 callersFunctioncompute_position_id_with_mask
(mask)
tests/ray/detached_worker/client.py:30
↓ 1 callersMethodcompute_reward
Computing reward given input_ids. The transformers should output a tensor with shape [batch_size, sequence_length], and the value at [EOS]
verl/workers/reward_model/base.py:29
↓ 1 callersFunctioncompute_timing_metrics
(batch, timing_raw)
verl/trainer/ppo/ray_trainer.py:260
↓ 1 callersFunctionconcat_dict_to_str
(dict: Dict, step)
verl/utils/logger/aggregate_logger.py:21
↓ 1 callersMethodcreate_engine_config
(self)
verl/third_party/vllm/vllm_v_0_6_3/arg_utils.py:70
↓ 1 callersMethodcreate_engine_config
( self, )
verl/third_party/vllm/vllm_v_0_5_4/arg_utils.py:264
↓ 1 callersMethodcreate_engine_config
( self, )
verl/third_party/vllm/vllm_v_0_4_2/arg_utils.py:230
↓ 1 callersMethodcreate_engine_configs
( self, )
verl/third_party/vllm/vllm_v_0_3_1/arg_utils.py:185
↓ 1 callersFunctioncreate_huggingface_actor
Args: model_name: actor_override_config_kwargs: Returns:
verl/utils/model.py:58
↓ 1 callersFunctioncreate_nccl_communicator_in_ray
(rank: int, world_size: int, group_nam
verl/utils/rendezvous/ray_backend.py:47
↓ 1 callersMethodcreate_resource_pool
(self)
verl/trainer/ppo/ray_trainer.py:64
↓ 1 callersFunctioncreate_worker_group_register_center
(name, info)
verl/single_controller/base/register_center/ray.py:28
↓ 1 callersMethoddefault_tp_concat_fn
name: name of the parameter param: training parameters infer_params (List[torch.Tensor]): a list of parameters all-gathered f
verl/workers/sharding_manager/megatron_vllm.py:267
↓ 1 callersMethoddispatch_fn
(x, i, chunks)
verl/protocol.py:623
↓ 1 callersFunctiondispatch_megatron_compute
User passes in dp data. The data is dispatched to all tp/pp ranks with the same dp
verl/single_controller/base/decorator.py:74
↓ 1 callersFunctiondispatch_megatron_pp_as_dp
treat pp as dp.
verl/single_controller/base/decorator.py:161
↓ 1 callersMethoddo_nothing
(self, data)
tests/ray/test_data_transfer.py:44
↓ 1 callersFunctiondownload_files_distributed
(download_fn)
verl/utils/dataset/rm_dataset.py:27
↓ 1 callersFunctiondump_data
(data, name)
verl/utils/debug/trajectory_tracker.py:69
↓ 1 callersMethodencode
Converts a string to a sequence of ids (integer), using the tokenizer and vocabulary. Args: text (`str`, `List[str]` or
verl/workers/rollout/tokenizer.py:70
↓ 1 callersMethodencode
(self, prompt: str, request_id: Optional[str] = None, lora_reques
verl/third_party/vllm/vllm_v_0_5_4/tokenizer.py:43
↓ 1 callersMethodencode
(self, prompt: str, request_id: Optional[str] = None, lora_reques
verl/third_party/vllm/vllm_v_0_4_2/tokenizer.py:43
↓ 1 callersFunctionensure_model_parallel_initialized
Helper to initialize model parallel groups if they are not initialized, or ensure tensor-parallel and pipeline-parallel sizes are equal to expecte
verl/third_party/vllm/vllm_v_0_6_3/parallel_state.py:71
↓ 1 callersFunctionensure_model_parallel_initialized
Helper to initialize model parallel groups if they are not initialized, or ensure tensor-parallel and pipeline-parallel sizes are equal to expecte
verl/third_party/vllm/vllm_v_0_5_4/parallel_state.py:68
↓ 1 callersFunctionensure_model_parallel_initialized
Helper to initialize model parallel groups if they are not initialized, or ensure tensor-parallel and pipeline-parallel sizes are equal to expecte
verl/third_party/vllm/vllm_v_0_4_2/parallel_state.py:66
↓ 1 callersFunctionevaluate_equation
Safely evaluate the arithmetic equation using eval() with precautions.
verl/utils/reward_score/countdown.py:44
↓ 1 callersMethodexecute_func_rank_zero
(self, func, *args, **kwargs)
verl/single_controller/base/worker.py:184
↓ 1 callersMethodexecute_model
( self, seq_group_metadata_list: Optional[List[SequenceGroupMetadata]], kv_caches: Lis
verl/third_party/vllm/vllm_v_0_3_1/model_runner.py:203
↓ 1 callersMethodexecute_model
( self, seq_group_metadata_list: List[SequenceGroupMetadata], blocks_to_swap_in: Dict[
verl/third_party/vllm/vllm_v_0_3_1/worker.py:215
↓ 1 callersMethodexecute_with_func_generator
(self, func, *args, **kwargs)
verl/single_controller/base/worker.py:179
↓ 1 callersFunctionextract_reward_from_line
(line)
tests/e2e/check_results.py:20
↓ 1 callersFunctionextract_solution
Extract the equation from the solution string.
verl/utils/reward_score/countdown.py:7
↓ 1 callersFunctionextract_solution
(solution_str, method='strict')
verl/utils/reward_score/gsm8k.py:18
↓ 1 callersFunctionextract_solution
(solution_str)
verl/utils/reward_score/multiply.py:5
↓ 1 callersFunctionextract_solution
(solution_str)
examples/data_preprocess/gsm8k.py:26
↓ 1 callersFunctionextract_solution
(solution_str)
examples/data_preprocess/math_dataset.py:27
↓ 1 callersMethodfit
(self)
verl/trainer/fsdp_sft_trainer.py:313
↓ 1 callersFunctionfix_a_slash_b
(string)
verl/utils/reward_score/math.py:125
↓ 1 callersFunctionfix_fracs
(string)
verl/utils/reward_score/math.py:93
↓ 1 callersFunctionfix_sqrt
(string)
verl/utils/reward_score/math.py:150
↓ 1 callersFunctionfold_batch_dim
Fold a batch dim from [bsz, xxx] into [new_bsz, bsz // new_bsz, xxx]
verl/protocol.py:104
↓ 1 callersMethodfoo
(self, wait_time)
tests/ray/check_worker_alive/main.py:33
↓ 1 callersMethodfoo_all_to_all
(self, x, y)
tests/ray/test_worker_group_basics.py:60
↓ 1 callersMethodfoo_custom
(self, x, y)
tests/ray/test_worker_group_basics.py:64
↓ 1 callersMethodfoo_one_to_all
(self, x, y)
tests/ray/test_worker_group_basics.py:56
↓ 1 callersMethodfoo_rank_zero
(self, x, y)
tests/ray/test_worker_group_basics.py:52
↓ 1 callersMethodforward
(self, *inputs, **kwargs)
verl/workers/sharding_manager/megatron_vllm.py:127
↓ 1 callersMethodforward_batch
We assume: - The model takes input: (input_ids, attention_mask, position_ids). No rmpad for the input - The communication sha
verl/workers/reward_model/megatron/reward_model.py:185
↓ 1 callersMethodfrom_engine_args
Creates an LLM engine from the engine arguments.
verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:222
↓ 1 callersMethodfrom_engine_args
Creates an LLM engine from the engine arguments.
verl/third_party/vllm/vllm_v_0_6_3/llm_engine_sp.py:372
↓ 1 callersMethodfrom_engine_args
Creates an LLM engine from the engine arguments.
verl/third_party/vllm/vllm_v_0_5_4/llm_engine_sp.py:293
↓ 1 callersMethodfrom_engine_args
Creates an LLM engine from the engine arguments.
verl/third_party/vllm/vllm_v_0_4_2/llm_engine_sp.py:247
↓ 1 callersFunctionfunc_generator
(self, method_name, dispatch_fn, collect_fn, execute_fn, blocking)
verl/single_controller/ray/base.py:36
↓ 1 callersFunctiongather_from_labels
Gather the label from data. The value in label should be [0, vocab_size) Args: data: (..., vocab_size) label (torch.IntTensor) :
verl/utils/torch_functional.py:34
↓ 1 callersFunctiongen_dataset
( N, DIGIT, LESS_OR_EQUAL=True, )
examples/data_preprocess/multiply.py:29
↓ 1 callersFunctiongen_dataset
any score <0.4 is ok, since +- is easy the model have
examples/data_preprocess/arth.py:29
↓ 1 callersFunctiongenerate_function
(name)
verl/single_controller/ray/base.py:395
↓ 1 callersFunctiongenerate_ground_truth_response
Generate ground truth response given a prompt.
tests/e2e/envs/digit_completion/task.py:117
↓ 1 callersFunctiongenerate_rl_dataset
(target_hdfs_path_dir, local_dir='~/data/full_hh_rlhf/rl')
examples/data_preprocess/full_hh_rlhf.py:86
↓ 1 callersFunctiongenerate_rm_dataset
(target_hdfs_path_dir, local_dir='~/data/full_hh_rlh/rm')
examples/data_preprocess/full_hh_rlhf.py:58
↓ 1 callersFunctiongenerate_sft_dataset
(target_hdfs_path_dir, local_dir='~/data/full_hh_rlh/sft')
examples/data_preprocess/full_hh_rlhf.py:30
↓ 1 callersMethodget_all_prompts
(self)
tests/e2e/envs/digit_completion/task.py:81
↓ 1 callersFunctionget_aux_metrics
(self, test_proto)
tests/ray/test_driverfunc_to_worker.py:42
↓ 1 callersMethodget_availale_master_addr_port
(self)
verl/single_controller/base/worker.py:63
↓ 1 callersMethodget_config
(self)
tests/e2e/envs/digit_completion/tokenizer.py:132
↓ 1 callersFunctionget_default_model_parallel_config
()
verl/utils/megatron/tensor_parallel.py:43
↓ 1 callersFunctionget_device_flops
(unit="T")
verl/utils/flops_counter.py:21
↓ 1 callersFunctionget_gsm8k_data
()
tests/verl/utils/dataset/test_rl_dataset.py:20
↓ 1 callersFunctionget_huggingface_actor_config
(model_name: str, override_config_kwargs=None, trust_remote_code=False)
verl/utils/model.py:47
↓ 1 callersFunctionget_local_temp_path
Return a local temp path that joins cache_dir and basename of hdfs_path Args: hdfs_path: cache_dir: Returns:
verl/utils/fs.py:37
↓ 1 callersMethodget_lora_tokenizer
(self, lora_request: Optional[LoRARequest])
verl/third_party/vllm/vllm_v_0_5_4/tokenizer.py:57
↓ 1 callersMethodget_lora_tokenizer
(self, lora_request: Optional[LoRARequest])
verl/third_party/vllm/vllm_v_0_4_2/tokenizer.py:57
↓ 1 callersMethodget_megatron_global_info
(self)
verl/single_controller/base/megatron/worker.py:25
↓ 1 callersFunctionget_micro_data_parallel_rank
()
verl/workers/sharding_manager/megatron_vllm.py:427
↓ 1 callersFunctionget_model
(actor_model: Union[PreTrainedModel, Dict], model_config: ModelConfig, device_conf
verl/third_party/vllm/vllm_v_0_3_1/model_loader.py:130
↓ 1 callersFunctionget_model
( actor_model: Union[PreTrainedModel, Dict], model_config: ModelConfig, load_config: LoadConfig,
verl/third_party/vllm/vllm_v_0_6_3/model_loader.py:33
↓ 1 callersFunctionget_model
(actor_model: Union[PreTrainedModel, Dict], model_config: ModelConfig, load_config
verl/third_party/vllm/vllm_v_0_5_4/model_loader.py:35
↓ 1 callersFunctionget_model
(actor_model: Union[PreTrainedModel, Dict], model_config: ModelConfig, load_config: LoadConfig,
verl/third_party/vllm/vllm_v_0_4_2/model_loader.py:34
↓ 1 callersFunctionget_model_loader
Get a model loader based on the load format.
verl/third_party/vllm/vllm_v_0_6_3/model_loader.py:65
↓ 1 callersFunctionget_model_loader
Get a model loader based on the load format.
verl/third_party/vllm/vllm_v_0_5_4/model_loader.py:64
↓ 1 callersFunctionget_model_loader
Get a model loader based on the load format.
verl/third_party/vllm/vllm_v_0_4_2/model_loader.py:55
↓ 1 callersFunctionget_model_size
(model: nn.Module, scale='auto')
verl/utils/model.py:102
← previousnext →401–500 of 1,293, ranked by callers