MCPcopy Create free account

hub / github.com/Tencent/digitalhuman / functions

Functions5,073 in github.com/Tencent/digitalhuman

↓ 6 callersFunctioncombined_int_check
(val)
RLVER/code/verl/utils/reward_score/prime_code/testing_util.py:97
↓ 6 callersFunctioncombined_int_check
(val)
RLVMR/code/verl/utils/reward_score/prime_code/testing_util.py:97
↓ 6 callersFunctioncreate_random_mask
Create a random mask given input_ids. Support left padding and right padding. Process: - Sample valid token length - Sample left_padding l
RLVER/code/verl/utils/model.py:153
↓ 6 callersMethoddecode
(self, act)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/agent.py:78
↓ 6 callersFunctionextract_admissible_commands
exhaustive list of admissible commands
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/utils/misc.py:239
↓ 6 callersFunctionfree_TypedList
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:1212
↓ 6 callersMethodfrom_single_dict
(cls, data: Dict[str, Union[torch.Tensor, np.ndarray]], meta_info=None)
RLVER/code/verl/protocol.py:274
↓ 6 callersMethodfrom_single_dict
(cls, data: Dict[str, Union[torch.Tensor, np.ndarray]], meta_info=None)
RLVMR/code/verl/protocol.py:275
↓ 6 callersMethodfrom_string
(agent_type: str)
HATE/basic_hate/agentverse/utils.py:40
↓ 6 callersFunctionfunc
(*args, **kwargs)
RLVMR/code/verl/single_controller/ray/base.py:38
↓ 6 callersFunctiongather_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:
RLVMR/code/verl/utils/ulysses.py:85
↓ 6 callersMethodget
Return a tensor with the input `shape` as a view into the 1-D data starting at `start_index`.
RLVER/code/verl/utils/megatron/memory.py:33
↓ 6 callersMethodget_all_prompts
(self, **kwargs)
HATE/basic_hate/agentverse/agents/base.py:62
↓ 6 callersMethodget_available_actions
Returns list of available actions at the current step
RLVMR/code/agent_system/environments/env_package/webshop/webshop/web_agent_site/envs/web_agent_site_env.py:93
↓ 6 callersFunctionget_init_weight_context_manager
(use_meta_tensor=True, mesh: DeviceMesh = None)
RLVMR/code/verl/utils/fsdp_utils.py:39
↓ 6 callersFunctionget_model
Build the model.
RLVER/code/verl/utils/megatron_utils.py:42
↓ 6 callersFunctionget_peft_state_non_lora_maybe_zero_3
(named_params, require_grad_only=True)
VISTA/TinyLLaVA-VISTA/tinyllava/utils/train_utils.py:66
↓ 6 callersMethodget_state_info
(self, game_state)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/expert/handcoded_expert.py:116
↓ 6 callersMethodget_valid_action_object_combinations
Get a list of all of the *valid* action-object combinations.
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/scienceworld.py:227
↓ 6 callersMethodget_vision_tower
(self)
VISTA/LLaVA-VISTA/llava/model/llava_arch.py:43
↓ 6 callersFunctionis_non_local
(path)
RLVMR/code/verl/utils/fs.py:32
↓ 6 callersMethodlog
(info)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/environment/alfred_tw_env.py:131
↓ 6 callersFunctionlogprobs_from_logits
See: https://github.com/pytorch/pytorch/issues/563#issuecomment-330103591
RLVER/code/verl/utils/torch_functional.py:48
↓ 6 callersFunctionlogprobs_from_logits
See: https://github.com/pytorch/pytorch/issues/563#issuecomment-330103591
RLVMR/code/verl/utils/torch_functional.py:48
↓ 6 callersFunctionmake_Fact
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_pre.c:648
↓ 6 callersFunctionnew_ExpNode
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:341
↓ 6 callersFunctionnormalize_answer
Lower text and remove punctuation, articles and extra whitespace.
SWF/src/metric.py:25
↓ 6 callersFunctionobject_id_to_name
(object_id)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/utils/game_util.py:199
↓ 6 callersFunctionpad_dataproto_to_divisor
Pad a DataProto to size divisible by size_divisor Args: size_divisor (int): size divisor Returns: data: (DataProto): the pad
RLVER/code/verl/protocol.py:41
↓ 6 callersMethodparse_keyword
(self, name: str, value: str)
HATE/basic_hate/agentverse/llms/utils/jsonrepair.py:573
↓ 6 callersFunctionposition_in_types_table
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_pre.c:354
↓ 6 callersMethodpreprocess_observation
(self, observation_strings)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:375
↓ 6 callersFunctionput_comp_into_normalized_locals
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/expressions.c:1011
↓ 6 callersMethodrank
(self)
RLVMR/code/verl/single_controller/base/worker.py:206
↓ 6 callersFunctionrearrange_micro_batches
Split the batch into a list of micro_batches, where the max_token_len is smaller than max_token_len and the number of valid tokens in each micro b
RLVER/code/verl/utils/seqlen_balancing.py:224
↓ 6 callersMethodreset
(self, *args, **kwargs)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/environment/alfred_tw_env.py:48
↓ 6 callersMethodreset_noise
(self)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:251
↓ 6 callersMethodresize_token_embeddings
(self, new_num_tokens: Optional[int] = None, pad_to_multiple_of=None)
VISTA/TinyLLaVA-VISTA/tinyllava/model/modeling_tinyllava.py:101
↓ 6 callersFunctionresolve_path
(path: str)
ScriptAgent/code/director_agent.py:543
↓ 6 callersMethodsave_checkpoint
(self, step)
RLVER/code/verl/trainer/fsdp_sft_trainer.py:426
↓ 6 callersFunctionstate_sum
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/search.c:1822
↓ 6 callersMethodto_messages
(self)
HATE/basic_hate/agentverse/memory/base.py:22
↓ 6 callersFunctiontorch_to_numpy
(tensor, is_object=False)
RLVMR/code/agent_system/multi_turn_rollout/utils.py:24
↓ 6 callersFunctiontruncatefn
(s, length=300)
RLVER/code/verl/utils/reward_score/prime_code/testing_util.py:42
↓ 6 callersFunctiontruncatefn
(s, length=300)
RLVMR/code/verl/utils/reward_score/prime_code/testing_util.py:42
↓ 6 callersMethodupdate
Updates the conversation history with a new message. Args: role (str): Role of the message sender
RolePlay_Villain/codes/agent.py:428
↓ 6 callersFunctionupdate_f_goal
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/relax.c:2565
↓ 6 callersMethodvalue
(self)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/detector/utils.py:65
↓ 5 callersMethod__init__
(self, config: Qwen2Config, megatron_config: ModelParallelConfig)
RLVER/code/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:80
↓ 5 callersMethod__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig)
RLVER/code/verl/models/llama/megatron/modeling_llama_megatron.py:80
↓ 5 callersMethod__init__
(self, config: Qwen2Config, megatron_config: ModelParallelConfig)
RLVMR/code/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:83
↓ 5 callersMethod__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig)
RLVMR/code/verl/models/llama/megatron/modeling_llama_megatron.py:83
↓ 5 callersFunction_broadcast_tensor
broadcast tensor across mp_group
RLVMR/code/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:123
↓ 5 callersFunction_broadcast_tensor
broadcast tensor across mp_group
RLVMR/code/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:123
↓ 5 callersFunction_hdfs_cmd
(cmd: str)
RLVER/code/verl/utils/hdfs_io.py:139
↓ 5 callersFunction_hdfs_cmd
(cmd: str)
RLVMR/code/verl/utils/hdfs_io.py:139
↓ 5 callersFunction_run_cmd
(cmd: str, timeout=None)
RLVER/code/verl/utils/hdfs_io.py:135
↓ 5 callersFunction_run_cmd
(cmd: str, timeout=None)
RLVMR/code/verl/utils/hdfs_io.py:135
↓ 5 callersMethodact
Returns a string action from poss_acts.
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/agent.py:88
↓ 5 callersFunctionallgather_dict_tensors
TODO: optimize this. - We can use async ops - We can use only one allgather Args: tensors: size: group:
RLVER/code/verl/utils/torch_functional.py:207
↓ 5 callersFunctionapply_monkey_patch
Replace _flash_attention_forward to _ulysses_flash_attention_forward
RLVMR/code/verl/models/transformers/monkey_patch.py:110
↓ 5 callersFunctionbroadcast_dict_tensor
TODO: optimize this. Technically, we only need one broadcast
RLVMR/code/verl/utils/torch_functional.py:179
↓ 5 callersMethodbroadcast_messages
(self, agents, messages)
HATE/basic_hate/agentverse/environments/tasksolving_env/rules/decision_maker/base.py:36
↓ 5 callersMethodbuild_state
Returns a state representation built from various info sources.
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/agent.py:59
↓ 5 callersMethodclose
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:380
↓ 5 callersFunctioncompute_position_id_with_mask
(mask)
RLVMR/code/verl/utils/model.py:194
↓ 5 callersFunctioncopy_local_path_from_hdfs
Deprecated. Please use copy_to_local instead.
RLVMR/code/verl/utils/fs.py:72
↓ 5 callersFunctioncopy_source_to_dest
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/search.c:2329
↓ 5 callersFunctiondumpkvs
Write all of the diagnostics from the current iteration level: int. (see logger.py docs) If the global logger level is higher than
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:241
↓ 5 callersMethodfit
The training loop of PPO. The driver process only need to call the compute functions of the worker group through RPC to construct the
RLVER/code/verl/trainer/ppo/ray_trainer.py:929
↓ 5 callersMethodfix_pddl_str_chars
(input_str)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/planned_game_state.py:15
↓ 5 callersFunctionfree_PlNode
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:951
↓ 5 callersFunctionfunc
(*args, **kwargs)
RLVER/code/verl/single_controller/ray/base.py:38
↓ 5 callersFunctionget_1P_and_A
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/relax.c:272
↓ 5 callersFunctionget_answer
(problem, options)
VISTA/LLaVA-VISTA/scripts/convert_sqa_to_llava_base_prompt.py:25
↓ 5 callersFunctionget_choice_text
(probelm, options)
VISTA/LLaVA-VISTA/scripts/convert_sqa_to_llava_base_prompt.py:15
↓ 5 callersFunctionget_context_text
(problem, use_caption)
VISTA/LLaVA-VISTA/scripts/convert_sqa_to_llava_base_prompt.py:6
↓ 5 callersFunctionget_elements_by_mod
(lst, m, n)
HATE/basic_hate/evaluation/eval_compute_v2_benchmark.py:3
↓ 5 callersFunctionget_eos_mask
end of sentence token can be int or list: 1 or [1, 2] e.g. eos_token=1 response_id: [0, 0, 2, 42, 3, 5, 1, 0, 0] eos_mask: [1, 1,
RLVMR/code/verl/utils/torch_functional.py:150
↓ 5 callersFunctionget_fsdp_wrap_policy
Get FSDP wrap policy for the module. Args: module: The module to get wrap policy for config: Configuration for wrap policy
RLVMR/code/verl/utils/fsdp_utils.py:54
↓ 5 callersMethodget_input_embeddings
(self)
VISTA/LLaVA-VISTA/llava/train/modeling_llama.py:1101
↓ 5 callersFunctionget_lecture_text
(problem)
VISTA/LLaVA-VISTA/scripts/convert_sqa_to_llava_base_prompt.py:29
↓ 5 callersFunctionget_micro_data_parallel_world_size
()
RLVER/code/verl/workers/sharding_manager/megatron_vllm.py:439
↓ 5 callersFunctionget_micro_data_parallel_world_size
()
RLVMR/code/verl/workers/sharding_manager/megatron_vllm.py:441
↓ 5 callersFunctionget_model
Build the model.
RLVMR/code/verl/utils/megatron_utils.py:41
↓ 5 callersMethodget_next_num_id
(self, object_type, obj_dict)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/controller/base.py:88
↓ 5 callersMethodget_placement_groups
(self, strategy="STRICT_PACK", name=None)
RLVER/code/verl/single_controller/ray/base.py:64
↓ 5 callersFunctionget_question_text
(problem)
VISTA/LLaVA-VISTA/scripts/convert_sqa_to_llava_base_prompt.py:1
↓ 5 callersFunctionget_response
(prompt="hi", ip = "11.217.126.175", model= "api_azure_openai_o3", port='8081', temperature=1.0, max_retries=5
HATE/basic_hate/evaluation/sharemoney_v1.py:49
↓ 5 callersFunctionget_response
(prompt="hi", ip = "11.217.126.175", model= "api_azure_openai_o3", port='8081', temperature=1.0, max_retries=5
HATE/basic_hate/evaluation/posthoc.py:43
↓ 5 callersMethodget_rng_state
()
RLVER/code/verl/utils/checkpoint/checkpoint_manager.py:96
↓ 5 callersFunctionget_solution_text
(problem)
VISTA/LLaVA-VISTA/scripts/convert_sqa_to_llava_base_prompt.py:35
↓ 5 callersMethodget_valid_actions
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/env.py:80
↓ 5 callersFunctionidentical_fact
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_easy.c:294
↓ 5 callersFunctionimport_modules
(models_dir, namespace)
VISTA/TinyLLaVA-VISTA/tinyllava/utils/import_module.py:4
↓ 5 callersMethodinit_model
(self)
RLVMR/code/verl/workers/fsdp_workers.py:782
↓ 5 callersFunctioninitialize_global_process_group
(timeout_second=36000)
RLVER/code/verl/utils/distributed.py:18
↓ 5 callersFunctioninstantiate_Effect
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_hard.c:587
↓ 5 callersFunctioninstantiate_exp_by_action
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_final.c:1766
↓ 5 callersFunctionis_non_local
(path)
RLVER/code/verl/utils/fs.py:32
← previousnext →301–400 of 5,073, ranked by callers