MCPcopy Create free account

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

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

↓ 2 callersFunctioncompute_advantage
(data: DataProto, adv_estimator, gamma=1.0, lam=1.0, num_repeat=1)
verl/trainer/ppo/ray_trainer.py:116
↓ 2 callersFunctioncompute_data_metrics
(batch, use_critic=True)
verl/trainer/ppo/ray_trainer.py:172
↓ 2 callersMethodcompute_ref_log_prob
(self, data: DataProto)
verl/workers/fsdp_workers.py:449
↓ 2 callersMethodcompute_rm_score
(self, data: DataProto)
verl/workers/fsdp_workers.py:984
↓ 2 callersMethodcompute_values
(self, data: DataProto)
verl/workers/fsdp_workers.py:674
↓ 2 callersFunctioncreate_and_sync_state
(param_name, state, is_param)
verl/utils/fsdp_utils.py:243
↓ 2 callersFunctioncreate_colocated_worker_cls
This function should return a class instance that delegates the calls to every cls in cls_dict
verl/single_controller/ray/base.py:420
↓ 2 callersMethoddump
(self, data: io.BytesIO, name)
verl/utils/debug/trajectory_tracker.py:59
↓ 2 callersMethodencode
(self, prompt: str, request_id: Optional[str] = None, lora_reques
verl/third_party/vllm/vllm_v_0_3_1/tokenizer.py:38
↓ 2 callersMethodestimate_flops
Estimate the FLOPS based on the number of valid tokens in the current batch and the time taken. Args: batch_seqlens (Lis
verl/utils/flops_counter.py:107
↓ 2 callersMethodforward
Args: input_ids: input ids. shape (batch_size, seq_length) attention_mask: attention_mask. shape (batch_size, seq_le
verl/models/llama/megatron/modeling_llama_megatron.py:117
↓ 2 callersMethodforward_backward_batch
(self, data: DataProto, forward_only=False)
verl/workers/critic/megatron_critic.py:113
↓ 2 callersMethodforward_backward_batch
We assume: - The model takes input: (input_ids, attention_mask, position_ids). No rmpad for the input - The communication sha
verl/workers/actor/megatron_actor.py:218
↓ 2 callersMethodfree_cache_engine
(self)
verl/third_party/vllm/vllm_v_0_3_1/llm.py:136
↓ 2 callersFunctiongather_heads_scatter_seq
A func to sync attention result with alltoall in sequence parallel gather head dimension and scatter seq dim: e.g. seq_dim: 1, head_dim:
verl/utils/ulysses.py:85
↓ 2 callersMethodget_all_params
Get all the parameters of the models in all pp ranks Returns: params: List[List[Dict[str, Tensor]]]: a list of parameters in all
verl/workers/sharding_manager/megatron_vllm.py:163
↓ 2 callersFunctionget_common_default_kwargs_for_parallel_linear
()
verl/utils/megatron/tensor_parallel.py:47
↓ 2 callersFunctionget_cosine_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between the initial lr set in the optimizer
verl/utils/torch_functional.py:379
↓ 2 callersFunctionget_eos_mask
e.g. end of sentence token=1 response_id: [0, 0, 2, 42, 3, 5, 1, 0, 0] eos_mask: [1, 1, 1, 1, 1, 1, 1, 0, 0]
verl/utils/torch_functional.py:139
↓ 2 callersFunctionget_gsm8k_data
()
tests/verl/utils/dataset/test_sft_dataset.py:21
↓ 2 callersFunctionget_micro_data_parallel_group
()
verl/third_party/vllm/vllm_v_0_3_1/parallel_state.py:137
↓ 2 callersFunctionget_random_num
()
examples/data_preprocess/multiply.py:39
↓ 2 callersFunctionget_random_num
()
examples/data_preprocess/arth.py:45
↓ 2 callersFunctionget_seqlen_balanced_partitions
get order of seq lengths to make partitions balanced, this is used in balacing sum of seqlength across dp ranks and microbatches Paramete
verl/utils/seqlen_balancing.py:152
↓ 2 callersFunctionget_tensor_model_parallel_world_size
Return world size for the tensor model parallel group.
verl/third_party/vllm/vllm_v_0_3_1/parallel_state.py:114
↓ 2 callersFunctionget_trajectory_tracker
()
verl/utils/debug/trajectory_tracker.py:79
↓ 2 callersFunctionget_weight_buffer_meta_from_module
Return a dictionary containing name to a shape and dtype.
verl/utils/memory_buffer.py:58
↓ 2 callersMethodinit
(self)
tests/ray/test_worker_group_torch.py:35
↓ 2 callersFunctioninitialize_model_parallel
NOTE: This method is a hack from the open-sourced version without asertion of world_size = tp * pp Initialize model parallel groups.
verl/third_party/vllm/vllm_v_0_5_4/parallel_state.py:191
↓ 2 callersFunctioninitialize_model_parallel
NOTE: This method is a hack from the open-sourced version without asertion of world_size = tp * pp Initialize model parallel groups.
verl/third_party/vllm/vllm_v_0_4_2/parallel_state.py:172
↓ 2 callersFunctionis_tensor_parallel_param
(param)
verl/utils/megatron/tensor_parallel.py:86
↓ 2 callersFunctionis_vllm_available
()
verl/utils/import_utils.py:33
↓ 2 callersFunctionlast_boxed_only_string
(string)
verl/utils/reward_score/math.py:63
↓ 2 callersFunctionlist_of_dict_to_dict_of_list
(list_of_dict: list[dict])
verl/protocol.py:92
↓ 2 callersFunctionload_fsdp_optimizer
(optimizer, device_id)
verl/utils/fsdp_utils.py:123
↓ 2 callersMethodload_model_cls
(model_arch: str, value=False)
verl/models/registry.py:49
↓ 2 callersMethodload_params_to_cuda
load all model params to cuda
verl/workers/sharding_manager/megatron_vllm.py:112
↓ 2 callersMethodlog
(self, data, step)
verl/utils/logger/aggregate_logger.py:40
↓ 2 callersFunctionlog_probs_from_logits_all_rmpad
Compute the log_probs from logits with rmpad input_ids and logits. Note that logits_rmpad = model(input_ids_rmpad). For each sentences, there is a
verl/utils/torch_functional.py:328
↓ 2 callersFunctionlogprobs_from_logits_naive
(logits, labels)
verl/utils/torch_functional.py:70
↓ 2 callersFunctionmake_map_fn
(split)
examples/data_preprocess/countdown.py:94
↓ 2 callersFunctionmake_map_fn
(split)
examples/data_preprocess/gsm8k.py:52
↓ 2 callersFunctionmake_map_fn
(split)
examples/data_preprocess/multiply.py:98
↓ 2 callersFunctionmake_map_fn
(split)
examples/data_preprocess/arth.py:109
↓ 2 callersFunctionmake_map_fn
(split)
examples/data_preprocess/math_dataset.py:48
↓ 2 callersMethodmake_minibatch_iterator
Make minibatch iterator for updating the actor Args: data (DataProto): a DataProto containing keys ``input_ids``
verl/workers/actor/megatron_actor.py:190
↓ 2 callersFunctionmd5_encode
(path: str)
verl/utils/fs.py:33
↓ 2 callersMethodmerge
(self, other)
verl/utils/seqlen_balancing.py:37
↓ 2 callersFunctionnormalize_pp_vpp_params
Normalize the pp vpp params into a complete named parameters. This is useful when gather parameters from pp ranks and passed to a model with
verl/utils/model.py:181
↓ 2 callersMethodoffload_params_to_cpu
(self)
verl/workers/reward_model/megatron/reward_model.py:262
↓ 2 callersMethodping
Check if the tokenizer group is alive.
verl/third_party/vllm/vllm_v_0_5_4/tokenizer.py:35
↓ 2 callersFunctionpreprocess
(text)
examples/data_preprocess/hellaswag.py:27
↓ 2 callersMethodpreprocess_data
AllGather data from sp region This is because the data is first sharded along the FSDP dimension as we utilize the DP_COMPUTE
verl/workers/sharding_manager/fsdp_ulysses.py:58
↓ 2 callersMethodrank
(self)
verl/single_controller/base/worker.py:175
↓ 2 callersFunctionremove_boxed
(s)
verl/utils/reward_score/math.py:49
↓ 2 callersMethodsample_str_prompts
(self)
tests/e2e/envs/digit_completion/task.py:91
↓ 2 callersMethodsave_checkpoint
(self, local_path, hdfs_path=None)
verl/workers/fsdp_workers.py:736
↓ 2 callersMethodspawn
spawn to a dictionary of worker groups, each with a subset of method with prefix.
verl/single_controller/ray/base.py:292
↓ 2 callersFunctionstrip_string
(string)
verl/utils/reward_score/math.py:165
↓ 2 callersFunctionsync_model_parameters_global
(layer)
tests/model/test_transformers_ulysses.py:44
↓ 2 callersFunctionto_dataset
(dataset_list)
examples/data_preprocess/multiply.py:123
↓ 2 callersFunctionto_dataset
(dataset_list)
examples/data_preprocess/arth.py:134
↓ 2 callersMethodupdate_actor
(self, data: DataProto)
verl/workers/fsdp_workers.py:356
↓ 2 callersMethodupdate_critic
(self, data: DataProto)
verl/workers/fsdp_workers.py:699
↓ 2 callersFunctionupdate_dtensor_weight_loader
()
verl/third_party/vllm/vllm_v_0_6_3/dtensor_weight_loaders.py:379
↓ 2 callersFunctionupdate_dtensor_weight_loader
()
verl/third_party/vllm/vllm_v_0_5_4/dtensor_weight_loaders.py:339
↓ 2 callersFunctionupdate_dtensor_weight_loader
()
verl/third_party/vllm/vllm_v_0_4_2/dtensor_weight_loaders.py:268
↓ 2 callersFunctionupdate_hf_weight_loader
()
verl/third_party/vllm/vllm_v_0_6_3/hf_weight_loader.py:22
↓ 2 callersFunctionupdate_hf_weight_loader
()
verl/third_party/vllm/vllm_v_0_5_4/hf_weight_loader.py:25
↓ 2 callersFunctionupdate_hf_weight_loader
()
verl/third_party/vllm/vllm_v_0_4_2/hf_weight_loader.py:25
↓ 2 callersMethodupdate_options
(self, options: Dict)
verl/single_controller/ray/base.py:139
↓ 2 callersMethodupdate_policy
Update the policy with an iterator of DataProto Args: data (DataProto): an iterator over the DataProto that returns by
verl/workers/actor/base.py:54
↓ 2 callersMethodverify_with_parallel_config
( self, parallel_config: "ParallelConfig", )
verl/third_party/vllm/vllm_v_0_3_1/config.py:163
↓ 1 callersMethod__init__
(self, size)
tests/ray/test_worker_group_torch.py:31
↓ 1 callersMethod__init__
(self)
tests/ray/test_colocated_workers.py:27
↓ 1 callersMethod__init__
(self, numel: int, numel_padded: int, dtype: torch.dtype)
verl/utils/memory_buffer.py:30
↓ 1 callersMethod__init__
(self, resource_pool: RayResourcePool, ray_cls_with_init: RayClassWithInitAr
verl/single_controller/ray/megatron.py:44
↓ 1 callersMethod__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig)
verl/models/llama/megatron/layers/parallel_decoder.py:35
↓ 1 callersMethod__init__
(self, input_size, num_heads, num_key_value_heads,
verl/models/llama/megatron/layers/parallel_linear.py:23
↓ 1 callersMethod__init__
( self, model: Union[nn.Module, Dict], # model itself or its parameter dict tokenizer:
verl/third_party/vllm/vllm_v_0_3_1/llm.py:87
↓ 1 callersMethod__init__
( self, model: Union[nn.Module, Dict], # model itself or its parameter dict tokenizer:
verl/third_party/vllm/vllm_v_0_4_2/llm.py:89
↓ 1 callersMethod_add_request
( self, prompt: Optional[str], sampling_params: SamplingParams, prompt_token_i
verl/third_party/vllm/vllm_v_0_3_1/llm.py:201
↓ 1 callersMethod_add_request
( self, prompt: Optional[str], sampling_params: SamplingParams, prompt_token_i
verl/third_party/vllm/vllm_v_0_4_2/llm.py:232
↓ 1 callersMethod_balance_batch
Reorder the data on single controller such that each dp rank gets similar total tokens
verl/trainer/ppo/ray_trainer.py:530
↓ 1 callersMethod_bind_worker_method
Bind the worker method to the WorkerGroup
verl/single_controller/base/worker_group.py:136
↓ 1 callersFunction_bind_workers_method_to_parent
Binds the methods of each worker to the WorkerDict. Note that we only bind public methods that are decorated by register
verl/single_controller/ray/base.py:380
↓ 1 callersMethod_block_until_all_workers_alive
(self)
verl/single_controller/base/worker_group.py:113
↓ 1 callersFunction_broadcast_tp_shard_tensor_gate_up
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_saver.py:214
↓ 1 callersFunction_broadcast_tp_shard_tensor_gate_up
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:224
↓ 1 callersFunction_broadcast_tp_shard_tensor_qkv
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_saver.py:267
↓ 1 callersFunction_broadcast_tp_shard_tensor_qkv
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:278
↓ 1 callersFunction_broadcast_tp_shard_tensor_vocab
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:131
↓ 1 callersMethod_build_critic_model_optimizer
(self, model_path, megatron_config
verl/workers/megatron_workers.py:446
↓ 1 callersMethod_build_critic_model_optimizer
(self, config)
verl/workers/fsdp_workers.py:540
↓ 1 callersMethod_build_dataloader
(self)
verl/trainer/fsdp_sft_trainer.py:92
↓ 1 callersMethod_build_model
(self, config)
verl/workers/fsdp_workers.py:793
↓ 1 callersMethod_build_model_optimizer
(self)
verl/trainer/fsdp_sft_trainer.py:139
↓ 1 callersMethod_build_param_buffer
Build the parameter buffer in each pp rank
verl/workers/sharding_manager/megatron_vllm.py:82
↓ 1 callersMethod_build_rm_model
(self, model_path, megatron_config: ModelParallelConfig, override_model_config)
verl/workers/megatron_workers.py:614
↓ 1 callersMethod_build_rollout
(self)
verl/workers/megatron_workers.py:216
← previousnext →201–300 of 1,293, ranked by callers