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
Function
main_task
(config)
verl/trainer/main_ppo.py:107
Function
main_task
(config)
examples/split_placement/main_ppo_split.py:102
Method
make_minibatch_iterator
(self, data: DataProto)
verl/workers/critic/megatron_critic.py:106
Function
mark_parameter_as_sequence_parallel
(parameter)
verl/utils/megatron/sequence_parallel.py:21
Function
masked_sum
Compute mean of tensor with a masked values.
verl/utils/torch_functional.py:102
Function
masked_whiten
Whiten values with masked values.
verl/utils/torch_functional.py:130
Method
master_address
(self)
verl/single_controller/ray/base.py:354
Method
master_port
(self)
verl/single_controller/ray/base.py:358
Method
megatron_actor_model_provider
(pre_process, post_process)
tests/ray/detached_worker/server.py:93
Method
megatron_actor_model_provider
(pre_process, post_process)
verl/workers/megatron_workers.py:154
Method
megatron_critic_model_provider
(pre_process, post_process)
verl/workers/megatron_workers.py:476
Method
megatron_rm_model_provider
(pre_process, post_process)
verl/workers/megatron_workers.py:638
Method
memory_buffers
(self)
verl/utils/memory_buffer.py:213
Method
merge
(self, other)
verl/utils/seqlen_balancing.py:72
Function
merge_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
Function
meta_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
Function
mistral_megatron_weight_loader
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_6_3/megatron_weight_loaders.py:254
Function
mistral_megatron_weight_loader
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_5_4/megatron_weight_loaders.py:253
Function
mistral_megatron_weight_loader
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_4_2/megatron_weight_loaders.py:253
Function
mistral_weight_loader
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_3_1/weight_loaders.py:83
Function
nullable_str
(val: str)
verl/third_party/vllm/vllm_v_0_5_4/arg_utils.py:43
Function
nullable_str
(val: str)
verl/third_party/vllm/vllm_v_0_4_2/arg_utils.py:33
Method
offload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:730
Method
offload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_3_1/worker.py:250
Method
offload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_6_3/llm.py:199
Method
offload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_6_3/llm_engine_sp.py:407
Method
offload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_6_3/spmd_gpu_executor.py:209
Method
offload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_6_3/worker.py:283
Method
offload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_5_4/llm.py:238
Method
offload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_5_4/llm_engine_sp.py:327
Method
offload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_5_4/spmd_gpu_executor.py:206
Method
offload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_5_4/worker.py:275
Method
offload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_4_2/llm.py:305
Method
offload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_4_2/llm_engine_sp.py:282
Method
offload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_4_2/spmd_gpu_executor.py:171
Method
offload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_4_2/worker.py:246
Function
pad_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
Method
pad_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
Method
pad_token_id
(self)
verl/third_party/vllm/vllm_v_0_3_1/tokenizer.py:67
Method
pad_token_id
(self)
verl/third_party/vllm/vllm_v_0_6_3/tokenizer.py:35
Method
pad_token_id
(self)
verl/third_party/vllm/vllm_v_0_5_4/tokenizer.py:72
Method
pad_token_id
(self)
verl/third_party/vllm/vllm_v_0_4_2/tokenizer.py:72
Function
parallel_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
Function
parallel_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
Function
parallel_weight_loader
Parallel Linear weight loader.
verl/third_party/vllm/vllm_v_0_3_1/weight_loaders.py:22
Function
parallel_weight_loader
Parallel Linear weight loader.
verl/third_party/vllm/vllm_v_0_6_3/megatron_weight_loaders.py:26
Function
parallel_weight_loader
Parallel Linear weight loader.
verl/third_party/vllm/vllm_v_0_5_4/megatron_weight_loaders.py:27
Function
parallel_weight_loader
Parallel Linear weight loader.
verl/third_party/vllm/vllm_v_0_4_2/megatron_weight_loaders.py:27
Method
pin_lora
(self, lora_id: int)
verl/third_party/vllm/vllm_v_0_6_3/spmd_gpu_executor.py:196
Method
pin_lora
(self, lora_id: int)
verl/third_party/vllm/vllm_v_0_5_4/spmd_gpu_executor.py:191
Method
pin_prompt_adapter
(self, prompt_adapter_id: int)
verl/third_party/vllm/vllm_v_0_6_3/spmd_gpu_executor.py:200
Method
pin_prompt_adapter
(self, prompt_adapter_id: int)
verl/third_party/vllm/vllm_v_0_5_4/spmd_gpu_executor.py:195
Function
post_process_logits
(input_ids, logits, temperature, top_k, top_p)
verl/utils/torch_functional.py:359
Method
postprocess_data
(self, data: DataProto)
verl/workers/sharding_manager/fsdp_vllm.py:121
Method
postprocess_data
Split the data to follow FSDP partition
verl/workers/sharding_manager/fsdp_ulysses.py:80
Method
postprocess_data
(self, data: DataProto)
verl/workers/sharding_manager/megatron_vllm.py:394
Method
pp_group
(self)
verl/workers/sharding_manager/megatron_vllm.py:203
Method
pp_models
(self)
verl/workers/sharding_manager/megatron_vllm.py:207
Method
pp_rank
(self)
verl/workers/sharding_manager/megatron_vllm.py:199
Method
pp_size
(self)
verl/single_controller/base/megatron/worker_group.py:46
Method
pp_size
(self)
verl/workers/sharding_manager/megatron_vllm.py:195
Function
prepare_decoder_attention_mask
(attention_mask, input_shape, inputs_embeds)
verl/utils/torch_functional.py:434
Method
preprocess_data
(self, data: DataProto)
verl/workers/sharding_manager/fsdp_vllm.py:112
Method
preprocess_data
(self, data: DataProto)
verl/workers/sharding_manager/megatron_vllm.py:378
Method
print_size
(self, prefix="")
verl/protocol.py:225
Function
process
(iter)
verl/utils/debug/trajectory_tracker.py:94
Function
process_fn
(doc, idx)
examples/data_preprocess/hellaswag.py:55
Function
process_fn
(example, idx)
examples/data_preprocess/countdown.py:95
Function
process_fn
(example, idx)
examples/data_preprocess/full_hh_rlhf.py:95
Function
process_fn
(example, idx)
examples/data_preprocess/gsm8k.py:54
Function
process_fn
(example, idx)
examples/data_preprocess/multiply.py:100
Function
process_fn
(example, idx)
examples/data_preprocess/arth.py:111
Function
process_fn
(example, idx)
examples/data_preprocess/math_dataset.py:50
Method
prompt_length
(self)
tests/e2e/envs/digit_completion/task.py:69
Function
put_data
(index, data)
verl/utils/ray_utils.py:25
Function
qwen2_dtensor_weight_loader
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_6_3/dtensor_weight_loaders.py:151
Function
qwen2_dtensor_weight_loader
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_5_4/dtensor_weight_loaders.py:154
Function
qwen2_dtensor_weight_loader
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_4_2/dtensor_weight_loaders.py:164
Function
qwen2_flash_attn_forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
verl/models/transformers/qwen2.py:28
Function
qwen2vl_dtensor_weight_loader
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_6_3/dtensor_weight_loaders.py:188
Function
register
(dispatch_mode=Dispatch.ALL_TO_ALL, execute_mode=Execute.ALL, blocking=True, materialize_futures=True)
verl/single_controller/base/decorator.py:394
Function
register_empty_parameter
(module, name, param)
verl/utils/fsdp_utils.py:146
Function
remote_call_wg
(worker_names)
tests/ray/test_worker_group_basics.py:69
Method
remove_lora
(self, lora_id: int)
verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:720
Method
remove_lora
(self, lora_id: int)
verl/third_party/vllm/vllm_v_0_3_1/worker.py:263
Method
remove_lora
(self, lora_id: int)
verl/third_party/vllm/vllm_v_0_6_3/spmd_gpu_executor.py:174
Method
remove_lora
(self, lora_id: int)
verl/third_party/vllm/vllm_v_0_5_4/spmd_gpu_executor.py:168
Method
remove_lora
(self, lora_id: int)
verl/third_party/vllm/vllm_v_0_4_2/spmd_gpu_executor.py:158
Function
remove_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
Method
remove_prompt_adapter
(self, prompt_adapter_id: int)
verl/third_party/vllm/vllm_v_0_6_3/spmd_gpu_executor.py:204
Method
remove_prompt_adapter
(self, prompt_adapter_id: int)
verl/third_party/vllm/vllm_v_0_5_4/spmd_gpu_executor.py:200
Method
rename
Note that this function only rename the key in the batch
verl/protocol.py:397
Method
response_length
(self)
tests/e2e/envs/digit_completion/task.py:73
Method
sample_batch_str_prompts
(self, batch_size)
tests/e2e/envs/digit_completion/task.py:100
Method
save_checkpoint
(self, checkpoint_path)
verl/workers/megatron_workers.py:403
Method
save_checkpoint
(self, checkpoint_path)
verl/workers/megatron_workers.py:572
Method
save_checkpoint
(self, local_path, hdfs_path=None)
verl/workers/fsdp_workers.py:478
Function
save_to_hdfs
(data: io.BytesIO, name, hdfs_dir, verbose)
verl/utils/debug/trajectory_tracker.py:33
Method
series_to_item
(ls)
verl/utils/dataset/sft_dataset.py:75
Method
set_additional_resource
(self, additional_resource)
verl/single_controller/ray/base.py:136
← previous
next →
1,101–1,200 of 1,293, ranked by callers