MCPcopy Create free account

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

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

Functionmain_task
(config)
verl/trainer/main_ppo.py:107
Functionmain_task
(config)
examples/split_placement/main_ppo_split.py:102
Methodmake_minibatch_iterator
(self, data: DataProto)
verl/workers/critic/megatron_critic.py:106
Functionmark_parameter_as_sequence_parallel
(parameter)
verl/utils/megatron/sequence_parallel.py:21
Functionmasked_sum
Compute mean of tensor with a masked values.
verl/utils/torch_functional.py:102
Functionmasked_whiten
Whiten values with masked values.
verl/utils/torch_functional.py:130
Methodmaster_address
(self)
verl/single_controller/ray/base.py:354
Methodmaster_port
(self)
verl/single_controller/ray/base.py:358
Methodmegatron_actor_model_provider
(pre_process, post_process)
tests/ray/detached_worker/server.py:93
Methodmegatron_actor_model_provider
(pre_process, post_process)
verl/workers/megatron_workers.py:154
Methodmegatron_critic_model_provider
(pre_process, post_process)
verl/workers/megatron_workers.py:476
Methodmegatron_rm_model_provider
(pre_process, post_process)
verl/workers/megatron_workers.py:638
Methodmemory_buffers
(self)
verl/utils/memory_buffer.py:213
Methodmerge
(self, other)
verl/utils/seqlen_balancing.py:72
Functionmerge_megatron_ckpt_llama
Merge sharded parameters of a Megatron module into a merged checkpoint. Args: wrapped_modelss (list of megatron.model.DistributedDataPara
verl/models/llama/megatron/checkpoint_utils/llama_saver.py:76
Functionmeta_device_init
Create model parameters with meta device. Note buffers in model will still be initialized in default device (e.g., CPU), since the buffe
verl/utils/fsdp_utils.py:134
Functionmistral_megatron_weight_loader
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_6_3/megatron_weight_loaders.py:254
Functionmistral_megatron_weight_loader
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_5_4/megatron_weight_loaders.py:253
Functionmistral_megatron_weight_loader
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_4_2/megatron_weight_loaders.py:253
Functionmistral_weight_loader
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_3_1/weight_loaders.py:83
Functionnullable_str
(val: str)
verl/third_party/vllm/vllm_v_0_5_4/arg_utils.py:43
Functionnullable_str
(val: str)
verl/third_party/vllm/vllm_v_0_4_2/arg_utils.py:33
Methodoffload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:730
Methodoffload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_3_1/worker.py:250
Methodoffload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_6_3/llm.py:199
Methodoffload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_6_3/llm_engine_sp.py:407
Methodoffload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_6_3/spmd_gpu_executor.py:209
Methodoffload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_6_3/worker.py:283
Methodoffload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_5_4/llm.py:238
Methodoffload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_5_4/llm_engine_sp.py:327
Methodoffload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_5_4/spmd_gpu_executor.py:206
Methodoffload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_5_4/worker.py:275
Methodoffload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_4_2/llm.py:305
Methodoffload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_4_2/llm_engine_sp.py:282
Methodoffload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_4_2/spmd_gpu_executor.py:171
Methodoffload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_4_2/worker.py:246
Functionpad_packed_inputs
pad the tokens such that the total length is a multiple of size. This function is useful when applying sequence parallel and context parallel
verl/utils/model.py:299
Methodpad_token_id
`Optional[int]`: Id of the padding token in the vocabulary. Returns `None` if the token has not been set.
verl/workers/rollout/tokenizer.py:36
Methodpad_token_id
(self)
verl/third_party/vllm/vllm_v_0_3_1/tokenizer.py:67
Methodpad_token_id
(self)
verl/third_party/vllm/vllm_v_0_6_3/tokenizer.py:35
Methodpad_token_id
(self)
verl/third_party/vllm/vllm_v_0_5_4/tokenizer.py:72
Methodpad_token_id
(self)
verl/third_party/vllm/vllm_v_0_4_2/tokenizer.py:72
Functionparallel_init_module_fn
Generate a function to initialize sub-modules in the `module` with `shard_states` from huggingface checkpoint. Args: module (tor
verl/utils/fsdp_utils.py:221
Functionparallel_load_safetensors
Parallel load safetensors from huggingface checkpoint Huggingface checkpoint contains: - config.json: a json file for model configurati
verl/utils/fsdp_utils.py:165
Functionparallel_weight_loader
Parallel Linear weight loader.
verl/third_party/vllm/vllm_v_0_3_1/weight_loaders.py:22
Functionparallel_weight_loader
Parallel Linear weight loader.
verl/third_party/vllm/vllm_v_0_6_3/megatron_weight_loaders.py:26
Functionparallel_weight_loader
Parallel Linear weight loader.
verl/third_party/vllm/vllm_v_0_5_4/megatron_weight_loaders.py:27
Functionparallel_weight_loader
Parallel Linear weight loader.
verl/third_party/vllm/vllm_v_0_4_2/megatron_weight_loaders.py:27
Methodpin_lora
(self, lora_id: int)
verl/third_party/vllm/vllm_v_0_6_3/spmd_gpu_executor.py:196
Methodpin_lora
(self, lora_id: int)
verl/third_party/vllm/vllm_v_0_5_4/spmd_gpu_executor.py:191
Methodpin_prompt_adapter
(self, prompt_adapter_id: int)
verl/third_party/vllm/vllm_v_0_6_3/spmd_gpu_executor.py:200
Methodpin_prompt_adapter
(self, prompt_adapter_id: int)
verl/third_party/vllm/vllm_v_0_5_4/spmd_gpu_executor.py:195
Functionpost_process_logits
(input_ids, logits, temperature, top_k, top_p)
verl/utils/torch_functional.py:359
Methodpostprocess_data
(self, data: DataProto)
verl/workers/sharding_manager/fsdp_vllm.py:121
Methodpostprocess_data
Split the data to follow FSDP partition
verl/workers/sharding_manager/fsdp_ulysses.py:80
Methodpostprocess_data
(self, data: DataProto)
verl/workers/sharding_manager/megatron_vllm.py:394
Methodpp_group
(self)
verl/workers/sharding_manager/megatron_vllm.py:203
Methodpp_models
(self)
verl/workers/sharding_manager/megatron_vllm.py:207
Methodpp_rank
(self)
verl/workers/sharding_manager/megatron_vllm.py:199
Methodpp_size
(self)
verl/single_controller/base/megatron/worker_group.py:46
Methodpp_size
(self)
verl/workers/sharding_manager/megatron_vllm.py:195
Functionprepare_decoder_attention_mask
(attention_mask, input_shape, inputs_embeds)
verl/utils/torch_functional.py:434
Methodpreprocess_data
(self, data: DataProto)
verl/workers/sharding_manager/fsdp_vllm.py:112
Methodpreprocess_data
(self, data: DataProto)
verl/workers/sharding_manager/megatron_vllm.py:378
Methodprint_size
(self, prefix="")
verl/protocol.py:225
Functionprocess
(iter)
verl/utils/debug/trajectory_tracker.py:94
Functionprocess_fn
(doc, idx)
examples/data_preprocess/hellaswag.py:55
Functionprocess_fn
(example, idx)
examples/data_preprocess/countdown.py:95
Functionprocess_fn
(example, idx)
examples/data_preprocess/full_hh_rlhf.py:95
Functionprocess_fn
(example, idx)
examples/data_preprocess/gsm8k.py:54
Functionprocess_fn
(example, idx)
examples/data_preprocess/multiply.py:100
Functionprocess_fn
(example, idx)
examples/data_preprocess/arth.py:111
Functionprocess_fn
(example, idx)
examples/data_preprocess/math_dataset.py:50
Methodprompt_length
(self)
tests/e2e/envs/digit_completion/task.py:69
Functionput_data
(index, data)
verl/utils/ray_utils.py:25
Functionqwen2_dtensor_weight_loader
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_6_3/dtensor_weight_loaders.py:151
Functionqwen2_dtensor_weight_loader
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_5_4/dtensor_weight_loaders.py:154
Functionqwen2_dtensor_weight_loader
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_4_2/dtensor_weight_loaders.py:164
Functionqwen2_flash_attn_forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
verl/models/transformers/qwen2.py:28
Functionqwen2vl_dtensor_weight_loader
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_6_3/dtensor_weight_loaders.py:188
Functionregister
(dispatch_mode=Dispatch.ALL_TO_ALL, execute_mode=Execute.ALL, blocking=True, materialize_futures=True)
verl/single_controller/base/decorator.py:394
Functionregister_empty_parameter
(module, name, param)
verl/utils/fsdp_utils.py:146
Functionremote_call_wg
(worker_names)
tests/ray/test_worker_group_basics.py:69
Methodremove_lora
(self, lora_id: int)
verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:720
Methodremove_lora
(self, lora_id: int)
verl/third_party/vllm/vllm_v_0_3_1/worker.py:263
Methodremove_lora
(self, lora_id: int)
verl/third_party/vllm/vllm_v_0_6_3/spmd_gpu_executor.py:174
Methodremove_lora
(self, lora_id: int)
verl/third_party/vllm/vllm_v_0_5_4/spmd_gpu_executor.py:168
Methodremove_lora
(self, lora_id: int)
verl/third_party/vllm/vllm_v_0_4_2/spmd_gpu_executor.py:158
Functionremove_pad_token
Remove the pad token. Args: input_ids shape: [bs, seq_length] attention_mask shape: [bs, seq_length] Returns: no_pa
verl/utils/torch_functional.py:269
Methodremove_prompt_adapter
(self, prompt_adapter_id: int)
verl/third_party/vllm/vllm_v_0_6_3/spmd_gpu_executor.py:204
Methodremove_prompt_adapter
(self, prompt_adapter_id: int)
verl/third_party/vllm/vllm_v_0_5_4/spmd_gpu_executor.py:200
Methodrename
Note that this function only rename the key in the batch
verl/protocol.py:397
Methodresponse_length
(self)
tests/e2e/envs/digit_completion/task.py:73
Methodsample_batch_str_prompts
(self, batch_size)
tests/e2e/envs/digit_completion/task.py:100
Methodsave_checkpoint
(self, checkpoint_path)
verl/workers/megatron_workers.py:403
Methodsave_checkpoint
(self, checkpoint_path)
verl/workers/megatron_workers.py:572
Methodsave_checkpoint
(self, local_path, hdfs_path=None)
verl/workers/fsdp_workers.py:478
Functionsave_to_hdfs
(data: io.BytesIO, name, hdfs_dir, verbose)
verl/utils/debug/trajectory_tracker.py:33
Methodseries_to_item
(ls)
verl/utils/dataset/sft_dataset.py:75
Methodset_additional_resource
(self, additional_resource)
verl/single_controller/ray/base.py:136
← previousnext →1,101–1,200 of 1,293, ranked by callers