Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jiayi-Pan/TinyZero
/ functions
Functions
1,293 in github.com/Jiayi-Pan/TinyZero
⨍
Functions
1,293
◇
Types & classes
173
↳
Endpoints
30
Method
set_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
Method
set_state
(self, state)
tests/e2e/envs/digit_completion/task.py:64
Method
set_tokenizer
( self, tokenizer: Union[PreTrainedTokenizer, PreTrainedTokenizerFast], )
verl/third_party/vllm/vllm_v_0_3_1/llm.py:142
Method
set_tokenizer
( self, tokenizer: Union[PreTrainedTokenizer, PreTrainedTokenizerFast], )
verl/third_party/vllm/vllm_v_0_6_3/llm.py:154
Method
set_tokenizer
( self, tokenizer: Union[PreTrainedTokenizer, PreTrainedTokenizerFast], )
verl/third_party/vllm/vllm_v_0_5_4/llm.py:160
Method
set_tokenizer
( self, tokenizer: Union[PreTrainedTokenizer, PreTrainedTokenizerFast], )
verl/third_party/vllm/vllm_v_0_4_2/llm.py:146
Method
spread
(self)
verl/utils/seqlen_balancing.py:60
Function
squeeze
(x)
verl/utils/model.py:38
Function
starcoder2_dtensor_load_weights
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_6_3/dtensor_weight_loaders.py:76
Function
starcoder2_dtensor_load_weights
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_5_4/dtensor_weight_loaders.py:79
Function
starcoder2_dtensor_load_weights
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_4_2/dtensor_weight_loaders.py:89
Method
store
(self)
verl/single_controller/base/worker_group.py:46
Method
supported_type
(precision: Union[str, int])
verl/utils/torch_dtypes.py:43
Method
supported_types
()
verl/utils/torch_dtypes.py:47
Method
sync_model_weights
(self, actor_weights: Dict[str, torch.Tensor])
verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:727
Method
sync_model_weights
(self, actor_weights: Dict)
verl/third_party/vllm/vllm_v_0_3_1/worker.py:247
Method
sync_model_weights
(self, actor_weights: Dict[str, torch.Tensor], load_format: str)
verl/third_party/vllm/vllm_v_0_6_3/llm.py:196
Method
sync_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
Method
sync_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
Method
sync_model_weights
(self, actor_weights: Dict, load_format: str)
verl/third_party/vllm/vllm_v_0_6_3/worker.py:274
Method
sync_model_weights
(self, actor_weights: Dict[str, torch.Tensor], load_format: str)
verl/third_party/vllm/vllm_v_0_5_4/llm.py:235
Method
sync_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
Method
sync_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
Method
sync_model_weights
(self, actor_weights: Dict, load_format: str)
verl/third_party/vllm/vllm_v_0_5_4/worker.py:266
Method
sync_model_weights
(self, actor_weights: Dict[str, torch.Tensor], load_format: str)
verl/third_party/vllm/vllm_v_0_4_2/llm.py:302
Method
sync_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
Method
sync_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
Method
sync_model_weights
(self, actor_weights: Dict, load_format: str)
verl/third_party/vllm/vllm_v_0_4_2/worker.py:237
Function
test
()
tests/ray/test_high_level_scheduling_api.py:33
Function
test
()
tests/ray/test_driverfunc_to_worker.py:55
Method
test
(self)
tests/ray/test_rvdz.py:31
Function
test_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
Function
test_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
Function
test_chunk_concat
()
tests/utility/test_tensor_dict_utilities.py:106
Function
test_colocated_workers
()
tests/ray/test_colocated_workers.py:49
Function
test_data_transfer
()
tests/ray/test_data_transfer.py:52
Function
test_dataproto_fold_unfold
()
tests/utility/test_tensor_dict_utilities.py:206
Function
test_dataproto_pad_unpad
()
tests/utility/test_tensor_dict_utilities.py:168
Function
test_flash_attn_cross_entropy
()
tests/gpu_utility/test_ops.py:16
Function
test_import
()
tests/sanity/test_import.py:16
Function
test_len
()
tests/utility/test_tensor_dict_utilities.py:245
Function
test_log_probs_from_logits_response_rmpad
()
tests/gpu_utility/test_torch_functional.py:20
Function
test_lr_scheduler
()
tests/gpu_utility/test_torch_functional.py:52
Function
test_pop
()
tests/utility/test_tensor_dict_utilities.py:130
Function
test_reorder
()
tests/utility/test_tensor_dict_utilities.py:95
Function
test_repeat
()
tests/utility/test_tensor_dict_utilities.py:143
Function
test_rl_dataset
()
tests/verl/utils/dataset/test_rl_dataset.py:29
Function
test_rm_dataset
()
tests/verl/utils/dataset/test_rm_dataset.py:30
Function
test_rvdz
()
tests/ray/test_rvdz.py:37
Function
test_seqlen_balancing
()
tests/utility/test_tensor_dict_utilities.py:265
Function
test_sft_cot_dataset
()
tests/verl/utils/dataset/test_sft_dataset.py:29
Function
test_sft_dataset
()
tests/verl/utils/dataset/test_sft_dataset.py:46
Function
test_single_controller_import
()
tests/sanity/test_import.py:21
Function
test_tensor_dict_constructor
()
tests/utility/test_tensor_dict_utilities.py:52
Function
test_tensor_dict_make_iterator
()
tests/utility/test_tensor_dict_utilities.py:66
Function
test_torch_save_data_proto
()
tests/utility/test_tensor_dict_utilities.py:229
Function
test_union_tensor_dict
()
tests/utility/test_tensor_dict_utilities.py:26
Function
test_vllm_with_hf
()
tests/rollout/test_vllm_hf_loader.py:72
Method
this_rank_models
(self)
verl/workers/sharding_manager/megatron_vllm.py:191
Function
tokenize_and_postprocess_data
input_data is the output from tokenizer.
verl/utils/torch_functional.py:225
Method
tp_size
(self)
verl/single_controller/base/megatron/worker_group.py:36
Function
two_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
Method
update
(self, current_kl, n_steps)
verl/trainer/ppo/core_algos.py:39
Method
update_actor
(self, data: DataProto)
verl/workers/megatron_workers.py:326
Method
update_critic
(self, data: DataProto)
verl/workers/megatron_workers.py:559
Method
update_critic
Update the critic
verl/workers/critic/base.py:38
Method
update_critic
(self, dataloader: Iterable[DataProto])
verl/workers/critic/megatron_critic.py:204
Method
update_critic
(self, data: DataProto)
verl/workers/critic/dp_critic.py:146
Function
update_dict_with_config
(dictionary: Dict, config: DictConfig)
verl/utils/config.py:20
Function
update_kwargs_with_config
(dictionary: Dict, config: ModelParallelConfig)
verl/utils/megatron/tensor_parallel.py:27
Method
update_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
Method
update_policy
(self, data: DataProto)
verl/workers/actor/dp_actor.py:203
Method
update_this_rank_models
(self, new_models)
verl/workers/sharding_manager/megatron_vllm.py:186
Method
validate_input
(keys)
verl/protocol.py:402
Method
verify_with_model_config
(self, model_config: ModelConfig)
verl/third_party/vllm/vllm_v_0_3_1/config.py:449
Method
verify_with_parallel_config
( self, parallel_config: "ParallelConfig", )
verl/third_party/vllm/vllm_v_0_3_1/config.py:294
Method
verify_with_scheduler_config
(self, scheduler_config: SchedulerConfig)
verl/third_party/vllm/vllm_v_0_3_1/config.py:457
Function
vocab_init
(self, num_embeddings: int, embedding_dim: int, params_dtype: Opt
verl/third_party/vllm/vllm_v_0_3_1/model_loader.py:87
Function
vocab_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
Function
vocab_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
Method
vocab_size
(self)
tests/e2e/envs/digit_completion/tokenizer.py:86
Method
vocab_size
`int`: Size of the base vocabulary (without the added tokens).
verl/workers/rollout/tokenizer.py:28
Function
wait
()
verl/utils/ulysses.py:146
Method
wait_for_hdfs
(self)
verl/utils/debug/trajectory_tracker.py:63
Method
weight_buffers
(self)
verl/utils/memory_buffer.py:209
Method
worker_names
(self)
verl/single_controller/ray/base.py:281
Method
workers
(self)
verl/single_controller/ray/base.py:362
Method
world_size
(self)
verl/single_controller/ray/base.py:366
Method
world_size
(self)
verl/single_controller/base/worker_group.py:39
Method
world_size
(self)
verl/single_controller/base/worker_group.py:130
Method
world_size
(self)
verl/single_controller/base/worker.py:171
Method
zero
Reset the buffer to zero.
verl/utils/memory_buffer.py:36
Method
zero
Reset the buffer to zero.
verl/utils/megatron/memory.py:29
← previous
1,201–1,293 of 1,293, ranked by callers