MCPcopy Create free account

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

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

Methodset_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes fro
verl/models/llama/megatron/modeling_llama_megatron.py:531
Methodset_state
(self, state)
tests/e2e/envs/digit_completion/task.py:64
Methodset_tokenizer
( self, tokenizer: Union[PreTrainedTokenizer, PreTrainedTokenizerFast], )
verl/third_party/vllm/vllm_v_0_3_1/llm.py:142
Methodset_tokenizer
( self, tokenizer: Union[PreTrainedTokenizer, PreTrainedTokenizerFast], )
verl/third_party/vllm/vllm_v_0_6_3/llm.py:154
Methodset_tokenizer
( self, tokenizer: Union[PreTrainedTokenizer, PreTrainedTokenizerFast], )
verl/third_party/vllm/vllm_v_0_5_4/llm.py:160
Methodset_tokenizer
( self, tokenizer: Union[PreTrainedTokenizer, PreTrainedTokenizerFast], )
verl/third_party/vllm/vllm_v_0_4_2/llm.py:146
Methodspread
(self)
verl/utils/seqlen_balancing.py:60
Functionsqueeze
(x)
verl/utils/model.py:38
Functionstarcoder2_dtensor_load_weights
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_6_3/dtensor_weight_loaders.py:76
Functionstarcoder2_dtensor_load_weights
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_5_4/dtensor_weight_loaders.py:79
Functionstarcoder2_dtensor_load_weights
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_4_2/dtensor_weight_loaders.py:89
Methodstore
(self)
verl/single_controller/base/worker_group.py:46
Methodsupported_type
(precision: Union[str, int])
verl/utils/torch_dtypes.py:43
Methodsupported_types
()
verl/utils/torch_dtypes.py:47
Methodsync_model_weights
(self, actor_weights: Dict[str, torch.Tensor])
verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:727
Methodsync_model_weights
(self, actor_weights: Dict)
verl/third_party/vllm/vllm_v_0_3_1/worker.py:247
Methodsync_model_weights
(self, actor_weights: Dict[str, torch.Tensor], load_format: str)
verl/third_party/vllm/vllm_v_0_6_3/llm.py:196
Methodsync_model_weights
(self, actor_weights: Dict[str, torch.Tensor], load_format: str)
verl/third_party/vllm/vllm_v_0_6_3/llm_engine_sp.py:404
Methodsync_model_weights
(self, actor_weights: Dict[str, torch.Tensor], load_format: str)
verl/third_party/vllm/vllm_v_0_6_3/spmd_gpu_executor.py:212
Methodsync_model_weights
(self, actor_weights: Dict, load_format: str)
verl/third_party/vllm/vllm_v_0_6_3/worker.py:274
Methodsync_model_weights
(self, actor_weights: Dict[str, torch.Tensor], load_format: str)
verl/third_party/vllm/vllm_v_0_5_4/llm.py:235
Methodsync_model_weights
(self, actor_weights: Dict[str, torch.Tensor], load_format: str)
verl/third_party/vllm/vllm_v_0_5_4/llm_engine_sp.py:324
Methodsync_model_weights
(self, actor_weights: Dict[str, torch.Tensor], load_format: str)
verl/third_party/vllm/vllm_v_0_5_4/spmd_gpu_executor.py:209
Methodsync_model_weights
(self, actor_weights: Dict, load_format: str)
verl/third_party/vllm/vllm_v_0_5_4/worker.py:266
Methodsync_model_weights
(self, actor_weights: Dict[str, torch.Tensor], load_format: str)
verl/third_party/vllm/vllm_v_0_4_2/llm.py:302
Methodsync_model_weights
(self, actor_weights: Dict[str, torch.Tensor], load_format: str)
verl/third_party/vllm/vllm_v_0_4_2/llm_engine_sp.py:279
Methodsync_model_weights
(self, actor_weights: Dict[str, torch.Tensor], load_format: str)
verl/third_party/vllm/vllm_v_0_4_2/spmd_gpu_executor.py:174
Methodsync_model_weights
(self, actor_weights: Dict, load_format: str)
verl/third_party/vllm/vllm_v_0_4_2/worker.py:237
Functiontest
()
tests/ray/test_high_level_scheduling_api.py:33
Functiontest
()
tests/ray/test_driverfunc_to_worker.py:55
Methodtest
(self)
tests/ray/test_rvdz.py:31
Functiontest_all_gather_torch
In this test, we instantiate 4 GPUs in a group and test the all_gather
tests/ray/test_worker_group_torch.py:69
Functiontest_all_gather_torch_v2
In this test, we instantiate 4 GPUs in a group and test the all_gather
tests/ray/test_worker_group_torch.py:93
Functiontest_chunk_concat
()
tests/utility/test_tensor_dict_utilities.py:106
Functiontest_colocated_workers
()
tests/ray/test_colocated_workers.py:49
Functiontest_data_transfer
()
tests/ray/test_data_transfer.py:52
Functiontest_dataproto_fold_unfold
()
tests/utility/test_tensor_dict_utilities.py:206
Functiontest_dataproto_pad_unpad
()
tests/utility/test_tensor_dict_utilities.py:168
Functiontest_flash_attn_cross_entropy
()
tests/gpu_utility/test_ops.py:16
Functiontest_import
()
tests/sanity/test_import.py:16
Functiontest_len
()
tests/utility/test_tensor_dict_utilities.py:245
Functiontest_log_probs_from_logits_response_rmpad
()
tests/gpu_utility/test_torch_functional.py:20
Functiontest_lr_scheduler
()
tests/gpu_utility/test_torch_functional.py:52
Functiontest_pop
()
tests/utility/test_tensor_dict_utilities.py:130
Functiontest_reorder
()
tests/utility/test_tensor_dict_utilities.py:95
Functiontest_repeat
()
tests/utility/test_tensor_dict_utilities.py:143
Functiontest_rl_dataset
()
tests/verl/utils/dataset/test_rl_dataset.py:29
Functiontest_rm_dataset
()
tests/verl/utils/dataset/test_rm_dataset.py:30
Functiontest_rvdz
()
tests/ray/test_rvdz.py:37
Functiontest_seqlen_balancing
()
tests/utility/test_tensor_dict_utilities.py:265
Functiontest_sft_cot_dataset
()
tests/verl/utils/dataset/test_sft_dataset.py:29
Functiontest_sft_dataset
()
tests/verl/utils/dataset/test_sft_dataset.py:46
Functiontest_single_controller_import
()
tests/sanity/test_import.py:21
Functiontest_tensor_dict_constructor
()
tests/utility/test_tensor_dict_utilities.py:52
Functiontest_tensor_dict_make_iterator
()
tests/utility/test_tensor_dict_utilities.py:66
Functiontest_torch_save_data_proto
()
tests/utility/test_tensor_dict_utilities.py:229
Functiontest_union_tensor_dict
()
tests/utility/test_tensor_dict_utilities.py:26
Functiontest_vllm_with_hf
()
tests/rollout/test_vllm_hf_loader.py:72
Methodthis_rank_models
(self)
verl/workers/sharding_manager/megatron_vllm.py:191
Functiontokenize_and_postprocess_data
input_data is the output from tokenizer.
verl/utils/torch_functional.py:225
Methodtp_size
(self)
verl/single_controller/base/megatron/worker_group.py:36
Functiontwo_to_all_dispatch_fn
Assume the input is a list of 2. Duplicate the input interleaved and pass to each worker.
tests/ray/test_worker_group_basics.py:26
Methodupdate
(self, current_kl, n_steps)
verl/trainer/ppo/core_algos.py:39
Methodupdate_actor
(self, data: DataProto)
verl/workers/megatron_workers.py:326
Methodupdate_critic
(self, data: DataProto)
verl/workers/megatron_workers.py:559
Methodupdate_critic
Update the critic
verl/workers/critic/base.py:38
Methodupdate_critic
(self, dataloader: Iterable[DataProto])
verl/workers/critic/megatron_critic.py:204
Methodupdate_critic
(self, data: DataProto)
verl/workers/critic/dp_critic.py:146
Functionupdate_dict_with_config
(dictionary: Dict, config: DictConfig)
verl/utils/config.py:20
Functionupdate_kwargs_with_config
(dictionary: Dict, config: ModelParallelConfig)
verl/utils/megatron/tensor_parallel.py:27
Methodupdate_policy
Update the policy with an iterator of DataProto Args: dataloader (Iterable[DataProto]): an iterator over the DataProto that retur
verl/workers/actor/megatron_actor.py:329
Methodupdate_policy
(self, data: DataProto)
verl/workers/actor/dp_actor.py:203
Methodupdate_this_rank_models
(self, new_models)
verl/workers/sharding_manager/megatron_vllm.py:186
Methodvalidate_input
(keys)
verl/protocol.py:402
Methodverify_with_model_config
(self, model_config: ModelConfig)
verl/third_party/vllm/vllm_v_0_3_1/config.py:449
Methodverify_with_parallel_config
( self, parallel_config: "ParallelConfig", )
verl/third_party/vllm/vllm_v_0_3_1/config.py:294
Methodverify_with_scheduler_config
(self, scheduler_config: SchedulerConfig)
verl/third_party/vllm/vllm_v_0_3_1/config.py:457
Functionvocab_init
(self, num_embeddings: int, embedding_dim: int, params_dtype: Opt
verl/third_party/vllm/vllm_v_0_3_1/model_loader.py:87
Functionvocab_init
(self, num_embeddings: int, embedding_dim: int, params_dtype: Opt
verl/third_party/vllm/vllm_v_0_4_2/megatron_weight_loaders.py:316
Functionvocab_parallel_log_probs_from_logits_response_rmpad
Similar to log_probs_from_logits_response_rmpad, but the logits_rmpad is now spliited across tensor parallel region. This will further reduce the
verl/utils/megatron/tensor_parallel.py:141
Methodvocab_size
(self)
tests/e2e/envs/digit_completion/tokenizer.py:86
Methodvocab_size
`int`: Size of the base vocabulary (without the added tokens).
verl/workers/rollout/tokenizer.py:28
Functionwait
()
verl/utils/ulysses.py:146
Methodwait_for_hdfs
(self)
verl/utils/debug/trajectory_tracker.py:63
Methodweight_buffers
(self)
verl/utils/memory_buffer.py:209
Methodworker_names
(self)
verl/single_controller/ray/base.py:281
Methodworkers
(self)
verl/single_controller/ray/base.py:362
Methodworld_size
(self)
verl/single_controller/ray/base.py:366
Methodworld_size
(self)
verl/single_controller/base/worker_group.py:39
Methodworld_size
(self)
verl/single_controller/base/worker_group.py:130
Methodworld_size
(self)
verl/single_controller/base/worker.py:171
Methodzero
Reset the buffer to zero.
verl/utils/memory_buffer.py:36
Methodzero
Reset the buffer to zero.
verl/utils/megatron/memory.py:29
← previous1,201–1,293 of 1,293, ranked by callers