Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/digitalhuman
/ functions
Functions
5,073 in github.com/Tencent/digitalhuman
⨍
Functions
5,073
◇
Types & classes
810
↳
Endpoints
92
↓ 5 callers
Function
is_transformers_version_in_range
(min_version: str, max_version: str)
RLVER/code/verl/models/transformers/monkey_patch.py:73
↓ 5 callers
Method
load_checkpoint
(self, path, del_local_after_load=True)
RLVER/code/verl/workers/fsdp_workers.py:901
↓ 5 callers
Function
log
(*args)
VISTA/TinyLLaVA-VISTA/tinyllava/utils/logging.py:40
↓ 5 callers
Method
logkv
(self, key, val)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:349
↓ 5 callers
Method
look_up_cache
Look up task output in cache
SWF/src/base.py:331
↓ 5 callers
Function
make_ExpNode
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_pre.c:888
↓ 5 callers
Function
make_instantiate_literals
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_hard.c:1239
↓ 5 callers
Function
make_instantiate_numeric_effects
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_hard.c:1279
↓ 5 callers
Function
make_normal_effects
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_pre.c:3303
↓ 5 callers
Function
new_MixedOperator
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:657
↓ 5 callers
Function
new_NormEffect1
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:489
↓ 5 callers
Function
new_NormOperator
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:604
↓ 5 callers
Function
new_PseudoActionEffect
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:677
↓ 5 callers
Function
new_ef
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/relax.c:1290
↓ 5 callers
Method
parse_character
(self, char: str)
HATE/basic_hate/agentverse/llms/utils/jsonrepair.py:286
↓ 5 callers
Method
parse_value
(self)
HATE/basic_hate/agentverse/llms/utils/jsonrepair.py:215
↓ 5 callers
Method
prepare_inputs_labels_for_multimodal
( self, input_ids, position_ids, attention_mask, past_key_values, labels, images, image_sizes=
VISTA/LLaVA-VISTA/llava/model/llava_arch.py:145
↓ 5 callers
Function
print_NormOperator
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:607
↓ 5 callers
Function
print_Operator
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:534
↓ 5 callers
Function
print_model_size
(model: nn.Module, name: str = None)
RLVMR/code/verl/utils/model.py:146
↓ 5 callers
Function
print_type
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:1220
↓ 5 callers
Function
read_html_template
(path)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/web_agent_site/engine/engine.py:111
↓ 5 callers
Function
replace_var_with_const_in_exp
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_pre.c:2132
↓ 5 callers
Method
reset
(self, idx=None)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/env.py:211
↓ 5 callers
Function
reset_fixpoint
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/relax.c:1346
↓ 5 callers
Function
source_to_dest
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/search.c:2351
↓ 5 callers
Method
step
(self, action_str)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/controller/mrcnn.py:376
↓ 5 callers
Function
strip_last_occurrence
( text: str, text_to_strip: str, strip_remaining: bool = False )
HATE/basic_hate/agentverse/llms/utils/jsonrepair.py:117
↓ 5 callers
Function
to_1d_np_array
(list_of_objects)
RLVER/code/verl/utils/py_functional.py:58
↓ 5 callers
Method
train
Tell the agent that it's training phase.
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:233
↓ 5 callers
Function
unpad_dataproto
(data: 'DataProto', pad_size)
RLVER/code/verl/protocol.py:67
↓ 5 callers
Method
update
(self, **kwargs)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/detector/utils.py:152
↓ 5 callers
Function
update_model_config
(module_config, override_config_kwargs)
RLVER/code/verl/utils/model.py:42
↓ 5 callers
Function
update_model_config
(module_config, override_config_kwargs)
RLVMR/code/verl/utils/model.py:42
↓ 5 callers
Function
validate_ulysses_config
(num_heads, ulysses_sequence_size)
RLVMR/code/verl/utils/ulysses.py:291
↓ 4 callers
Function
GetGenerationQValue
Shape: - y_pred: batch x time x vocab - y_true: batch x time - mask: batch x time
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/layers.py:49
↓ 4 callers
Function
NegativeLogLoss
Shape: - y_pred: batch x time x vocab - y_true: batch x time - mask: batch x time
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/layers.py:28
↓ 4 callers
Method
__init__
(self, dim, max_position_embeddings=2048, base=10000, device=None)
RLVMR/code/verl/models/llama/megatron/layers/parallel_attention.py:37
↓ 4 callers
Function
_broadcast_tensor
broadcast tensor across mp_group
RLVER/code/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:131
↓ 4 callers
Function
_broadcast_tensor
broadcast tensor across mp_group
RLVER/code/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:135
↓ 4 callers
Function
_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
RLVER/code/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:170
↓ 4 callers
Function
_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
RLVER/code/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:174
↓ 4 callers
Function
_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
RLVMR/code/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:162
↓ 4 callers
Function
_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
RLVMR/code/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:162
↓ 4 callers
Method
_compute_loss_and_backward
Compute loss with optional sequence parallelism and remove padding features
RLVER/code/verl/trainer/fsdp_sft_trainer.py:287
↓ 4 callers
Function
_compute_response_info
(batch: DataProto)
RLVMR/code/verl/trainer/ppo/metric_utils.py:30
↓ 4 callers
Function
_get_cpu_tensor
(tensor: torch.Tensor)
RLVER/code/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:124
↓ 4 callers
Function
_get_cpu_tensor
(tensor: torch.Tensor)
RLVER/code/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:128
↓ 4 callers
Function
_get_cpu_tensor
(tensor: torch.Tensor)
RLVMR/code/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:116
↓ 4 callers
Function
_get_cpu_tensor
(tensor: torch.Tensor)
RLVMR/code/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:116
↓ 4 callers
Function
_get_gpt_model
(model)
RLVER/code/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:63
↓ 4 callers
Function
_get_gpt_model
(model)
RLVER/code/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:65
↓ 4 callers
Function
_get_gpt_model
(model)
RLVMR/code/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:66
↓ 4 callers
Function
_get_gpt_model
(model)
RLVMR/code/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:66
↓ 4 callers
Function
_get_gpt_model
(model)
RLVMR/code/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:70
↓ 4 callers
Function
_get_gpt_model
(model)
RLVMR/code/verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:70
↓ 4 callers
Function
_is_non_local
(path: str)
RLVER/code/verl/utils/hdfs_io.py:143
↓ 4 callers
Function
_is_non_local
(path: str)
RLVMR/code/verl/utils/hdfs_io.py:143
↓ 4 callers
Method
_log
( self, title: str = "", title_color: str = "", message: str = "", lev
HATE/basic_hate/agentverse/logging.py:148
↓ 4 callers
Method
_parse_html
Returns web request result wrapped in BeautifulSoup object Arguments: url (`str`): If no url or html is provided, use the cu
RLVMR/code/agent_system/environments/env_package/webshop/webshop/web_agent_site/envs/web_agent_text_env.py:177
↓ 4 callers
Function
_repeat_interleave
(value: Union[torch.Tensor, np.ndarray], repeats: int)
RLVMR/code/verl/workers/rollout/vllm_rollout/vllm_rollout_spmd.py:58
↓ 4 callers
Function
_split_args_kwargs_data_proto
(chunks, *args, **kwargs)
RLVER/code/verl/single_controller/base/decorator.py:45
↓ 4 callers
Function
_split_args_kwargs_data_proto
(chunks, *args, **kwargs)
RLVMR/code/verl/single_controller/base/decorator.py:45
↓ 4 callers
Function
add_to_ehc_space
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/search.c:321
↓ 4 callers
Function
allgather_dict_tensors
TODO: optimize this. - We can use async ops - We can use only one allgather Args: tensors: size: group:
RLVMR/code/verl/utils/torch_functional.py:188
↓ 4 callers
Function
build_logger
(logger_name, logger_filename)
VISTA/LLaVA-VISTA/llava/utils.py:17
↓ 4 callers
Function
build_memory_reference_from_module
(module: torch.nn.Module, memory_buffers: Dict[torch.dtype, MemoryBuffe
RLVER/code/verl/utils/memory_buffer.py:100
↓ 4 callers
Function
build_memory_reference_from_module
(module: torch.nn.Module, memory_buffers: Dict[torch.dtype, MemoryBuffe
RLVMR/code/verl/utils/memory_buffer.py:100
↓ 4 callers
Function
check_model_support_rmpad
(model_type: str)
RLVER/code/verl/models/registry.py:27
↓ 4 callers
Method
choose_random_action
Select an action randomly.
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/text_dqn_agent.py:29
↓ 4 callers
Method
close
(self)
RLVMR/code/agent_system/environments/env_package/webshop/envs.py:194
↓ 4 callers
Function
compute_reward
We compute dense reward here so that we can directly train RL without SFT
RLVER/code/tests/e2e/envs/digit_completion/task.py:137
↓ 4 callers
Function
count_string_tokens
(prompt: str = "", model: str = "gpt-3.5-turbo")
HATE/basic_hate/agentverse/llms/utils/token_counter.py:10
↓ 4 callers
Function
create_device_mesh
(world_size, fsdp_size)
RLVMR/code/verl/workers/fsdp_workers.py:49
↓ 4 callers
Method
estimate_flops
Estimate the FLOPS based on the number of valid tokens in the current batch and the time taken. Args: batch_seqlens (Lis
RLVMR/code/verl/utils/flops_counter.py:164
↓ 4 callers
Method
execute_rank_zero_async
(self, method_name: str, *args, **kwargs)
RLVER/code/verl/single_controller/ray/base.py:322
↓ 4 callers
Method
execute_rank_zero_async
(self, method_name: str, *args, **kwargs)
RLVMR/code/verl/single_controller/ray/base.py:342
↓ 4 callers
Function
extract_answer
(pred_str, data_name, use_last_number=True)
RLVER/code/verl/utils/reward_score/simplerl_utils/paser.py:501
↓ 4 callers
Function
f
(x)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/detector/utils.py:236
↓ 4 callers
Method
finish
(self)
RLVER/code/verl/utils/tracking.py:125
↓ 4 callers
Method
finish
(self)
RLVMR/code/verl/utils/tracking.py:134
↓ 4 callers
Function
free_FactList
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:922
↓ 4 callers
Function
free_TokenList
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:906
↓ 4 callers
Function
gather_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:
RLVER/code/verl/utils/ulysses.py:85
↓ 4 callers
Method
get
(self)
RLVMR/code/verl/utils/rendezvous/ray_backend.py:30
↓ 4 callers
Function
get_1P_and_H
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/relax.c:242
↓ 4 callers
Method
get_any
(self)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/utils/py_util.py:44
↓ 4 callers
Method
get_current_plan
(self, force_update=False)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/task_game_state.py:44
↓ 4 callers
Function
get_fsdp_wrap_policy
Get FSDP wrap policy for the module. Args: module: The module to get wrap policy for config: Configuration for wrap policy
RLVER/code/verl/utils/fsdp_utils.py:50
↓ 4 callers
Method
get_goal_progress
Get the progress to the goal.
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/scienceworld.py:471
↓ 4 callers
Function
get_hf_model_checkpoint_path
(checkpoint_path)
RLVMR/code/verl/utils/megatron_utils.py:264
↓ 4 callers
Method
get_images
(self, return_pil=False)
VISTA/LLaVA-VISTA/llava/conversation.py:152
↓ 4 callers
Function
get_init_weight_context_manager
(use_meta_tensor=True)
RLVER/code/verl/utils/fsdp_utils.py:38
↓ 4 callers
Method
get_input_embeddings
(self)
VISTA/TinyLLaVA-VISTA/tinyllava/model/modeling_tinyllava.py:80
↓ 4 callers
Function
get_length_grouped_indices
(lengths, batch_size, world_size, generator=None, merge=True)
VISTA/LLaVA-VISTA/llava/train/llava_trainer.py:88
↓ 4 callers
Method
get_max_variations
Get the maximum number of variations for the tasks.
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/scienceworld.py:193
↓ 4 callers
Function
get_micro_data_parallel_group
()
RLVER/code/verl/workers/sharding_manager/megatron_vllm.py:434
↓ 4 callers
Function
get_micro_data_parallel_group
()
RLVMR/code/verl/workers/sharding_manager/megatron_vllm.py:436
↓ 4 callers
Function
get_model_checkpoint_path
(checkpoint_path)
RLVMR/code/verl/utils/megatron_utils.py:259
↓ 4 callers
Method
get_output_embeddings
(self)
VISTA/LLaVA-VISTA/llava/train/modeling_llama.py:1358
← previous
next →
401–500 of 5,073, ranked by callers