MCPcopy Create free account

hub / github.com/Tencent/digitalhuman / functions

Functions5,073 in github.com/Tencent/digitalhuman

Functioncheck_correctness
Check correctness of code generation with a global timeout. The global timeout is to catch some extreme/rare cases not handled by the timeouts
RLVMR/code/verl/utils/reward_score/prime_code/utils.py:40
Methodcheck_graph_memory_correspondence
(self)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/graph/graph_obj.py:121
Methodcheck_mutually_exclusive
(mbs, mbs_per_gpu, name: str)
RLVER/code/verl/trainer/ppo/ray_trainer.py:451
Methodcheck_mutually_exclusive
(mbs, mbs_per_gpu, name: str)
RLVER/code/verl/trainer/ppo/ray_trainer_think.py:449
Methodcheck_mutually_exclusive
(mbs, mbs_per_gpu, name: str)
RLVMR/code/verl/trainer/ppo/ray_trainer.py:368
Methodcheck_prompt_template
Check if the prompt template is valid. When recursive is True, the prompt template should contain the following arguments: - $summary:
HATE/basic_hate/agentverse/memory/summary.py:29
Methodcheck_subgoal_completion
(self, game_state)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/expert/handcoded_expert.py:347
Methodcheck_subgoal_completion
(self, game_state)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/expert/handcoded_expert.py:379
Methodcheck_subgoal_completion
(self, game_state)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/expert/handcoded_expert.py:414
Methodcheck_subgoal_completion
(self, game_state)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/expert/handcoded_expert.py:444
Methodcheck_subgoal_completion
(self, game_state)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/expert/handcoded_expert.py:478
Methodcheck_subgoal_completion
(self, game_state)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/expert/handcoded_expert.py:512
Functioncheck_topic
(path, analyzer)
HATE/basic_hate/evaluation/test_topic_SFR_new.py:517
Functioncheck_workers_alive
(workers: List, is_alive: Callable, gap_time: float = 1)
RLVER/code/verl/single_controller/base/worker_group.py:82
Functioncheck_workers_alive
(workers: List, is_alive: Callable, gap_time: float = 1)
RLVMR/code/verl/single_controller/base/worker_group.py:82
Methodcheckpath
(local_path: str, hdfs_path: str)
RLVMR/code/verl/utils/checkpoint/checkpoint_manager.py:71
Methodchunk
(self, chunks: int)
RLVER/code/verl/protocol.py:627
Methodchunk
(self, chunks: int)
RLVMR/code/verl/protocol.py:625
Methodclassify
Generate class logits for each prompt. This class automatically batches the given prompts, considering the memory constraint
RLVER/code/llm.py:1005
Functionclean_alfred_facts
(facts)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/utils/misc.py:95
MethodclearRunHistories
(self)
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/scienceworld.py:603
Functionclear_history
(request: gr.Request)
VISTA/LLaVA-VISTA/llava/serve/gradio_web_server.py:122
Functionclear_history
()
VISTA/TinyLLaVA-VISTA/tinyllava/serve/app.py:59
Functionclip_by_value
Tensor extenstion to torch.clamp https://github.com/pytorch/pytorch/issues/2793#issuecomment-428784713
RLVER/code/verl/utils/torch_functional.py:97
Functionclip_by_value
Tensor extenstion to torch.clamp https://github.com/pytorch/pytorch/issues/2793#issuecomment-428784713
RLVMR/code/verl/utils/torch_functional.py:97
Methodclose
(self)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/environment/alfred_thor_env.py:230
Methodclose
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:86
Methodclose
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:103
Methodclose
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:117
Methodclose
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:153
Methodclose
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:189
Methodclose
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/web_agent_site/envs/web_agent_site_env.py:207
Methodclose
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/web_agent_site/envs/web_agent_text_env.py:280
Methodclose_recep
(self, recep)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/planned_game_state.py:486
Functioncoefficient_of_variation
计算给定数据的变异系数(Coefficient of Variation)。 参数: data (list or np.array): 数据 返回: float: 变异系数(以百分比表示)
SWF/src/utils.py:463
Functioncollate_fn
(batch)
VISTA/LLaVA-VISTA/llava/eval/model_vqa_loader.py:64
Functioncollate_fn
(batch)
VISTA/TinyLLaVA-VISTA/tinyllava/eval/model_vqa_loader.py:60
Functioncollate_fn
(batch)
VISTA/TinyLLaVA-VISTA/tinyllava/eval/model_vqa_pope.py:60
Functioncollate_fn
(x: list['DataProtoItem'])
RLVER/code/verl/protocol.py:151
Functioncollate_fn
(data_list: list[dict])
RLVER/code/verl/utils/dataset/rl_dataset.py:47
Functioncollate_fn
(x: list['DataProtoItem'])
RLVMR/code/verl/protocol.py:151
Functioncollate_fn
(batch)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/detector/utils.py:229
Functioncollect_all_to_all
(worker_group, output)
RLVER/code/verl/single_controller/base/decorator.py:70
Functioncollect_all_to_all
(worker_group, output)
RLVMR/code/verl/single_controller/base/decorator.py:70
Functioncollect_dp_compute_data_proto
(worker_group, output)
RLVER/code/verl/single_controller/base/decorator.py:289
Functioncollect_dp_compute_data_proto
(worker_group, output)
RLVMR/code/verl/single_controller/base/decorator.py:289
Functioncollect_megatron_compute_data_proto
Each output must be a DataProto. We concat the dim=0 of output
RLVER/code/verl/single_controller/base/decorator.py:147
Functioncollect_megatron_compute_data_proto
Each output must be a DataProto. We concat the dim=0 of output
RLVMR/code/verl/single_controller/base/decorator.py:147
Functioncollect_megatron_pp_as_dp_data_proto
(worker_group, output)
RLVER/code/verl/single_controller/base/decorator.py:246
Functioncollect_megatron_pp_as_dp_data_proto
(worker_group, output)
RLVMR/code/verl/single_controller/base/decorator.py:246
Functioncollect_megatron_pp_only
Only collect output of megatron pp. This is useful when examine weight names as they are identical in tp/dp
RLVER/code/verl/single_controller/base/decorator.py:223
Functioncollect_megatron_pp_only
Only collect output of megatron pp. This is useful when examine weight names as they are identical in tp/dp
RLVMR/code/verl/single_controller/base/decorator.py:223
Methodcollective_rpc
Execute an RPC call on all workers. Args: method: Name of the worker method to execute, or a callable that
RLVER/code/llm.py:476
Methodcommand_generation_act
(self, observation_strings, task_desc_strings, previous_dynamics, random=False)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/text_dqn_agent.py:416
Methodcommand_generation_greedy_generation
(self, observation_feats, task_desc_strings, previous_dynamics)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/vision_dagger_agent.py:267
Functioncompute_attention_mask
(prompts, pad_token_id)
RLVER/code/tests/e2e/envs/digit_completion/task.py:107
Functioncompute_entropy_loss
Compute Categorical entropy loss Args: logits: `(torch.Tensor)` shape: (bs, response_length, vocab_size) eos_mask: `(
RLVER/code/verl/trainer/ppo/core_algos.py:312
Functioncompute_entropy_loss
Compute Categorical entropy loss Args: logits: `(torch.Tensor)` shape: (bs, response_length, vocab_size) eos_mask: `(
RLVMR/code/verl/trainer/ppo/core_algos.py:320
Functioncompute_gae_advantage_return
Adapted from https://github.com/huggingface/trl/blob/main/trl/trainer/ppo_trainer.py Args: token_level_rewards: `(torch.Tensor)`
RLVER/code/verl/trainer/ppo/core_algos.py:71
Functioncompute_gae_advantage_return
Adapted from https://github.com/huggingface/trl/blob/main/trl/trainer/ppo_trainer.py Args: token_level_rewards: `(torch.Tensor)`
RLVMR/code/verl/trainer/ppo/core_algos.py:66
Functioncompute_gigpo_outcome_advantage
(token_level_rewards: torch.Tensor, step_rewards: torch.Tensor,
RLVMR/code/gigpo/core_gigpo.py:94
Functioncompute_grad_norm
(model: nn.Module)
RLVER/code/verl/utils/torch_functional.py:189
Functioncompute_grad_norm
(model: nn.Module)
RLVMR/code/verl/utils/torch_functional.py:170
Functioncompute_grpo_outcome_advantage
Compute advantage for GRPO, operating only on Outcome reward (with only one scalar reward for each response). Args: token_level_
RLVER/code/verl/trainer/ppo/core_algos.py:112
Functioncompute_grpo_outcome_advantage
Compute advantage for GRPO, operating only on Outcome reward (with only one scalar reward for each response). Args: token_level_
RLVMR/code/verl/trainer/ppo/core_algos.py:107
Methodcompute_log_prob
Compute the log probability of the responses given input_ids, attention_mask and position_ids Args: data (DataProto): a DataProto
RLVER/code/verl/workers/actor/megatron_actor.py:143
Methodcompute_log_prob
Compute the log probability of the responses given input_ids, attention_mask and position_ids Args: data (DataProto): a DataProto
RLVER/code/verl/workers/actor/dp_actor.py:153
Methodcompute_log_prob
Compute the log probability of the responses given input_ids, attention_mask and position_ids Args: data (DataProto): a DataProto
RLVMR/code/verl/workers/actor/megatron_actor.py:142
Methodcompute_log_prob
Compute the log probability of the responses given input_ids, attention_mask and position_ids Args: data (DataProto): a DataProto
RLVMR/code/verl/workers/actor/dp_actor.py:177
Methodcompute_logprobs_fn
(output, data)
RLVER/code/verl/workers/actor/megatron_actor.py:163
Methodcompute_logprobs_fn
(output, data)
RLVMR/code/verl/workers/actor/megatron_actor.py:162
Functioncompute_policy_loss
Adapted from https://github.com/huggingface/trl/blob/main/trl/trainer/ppo_trainer.py#L1122 Args: old_log_prob: `(torch.Tensor)`
RLVER/code/verl/trainer/ppo/core_algos.py:274
Functioncompute_policy_loss
Adapted from https://github.com/huggingface/trl/blob/main/trl/trainer/ppo_trainer.py#L1122 Args: old_log_prob: `(torch.Tensor)`
RLVMR/code/verl/trainer/ppo/core_algos.py:268
Functioncompute_position_id_with_mask
(mask)
RLVER/code/tests/e2e/envs/digit_completion/task.py:113
Methodcompute_ref_log_prob
(self, data: DataProto)
RLVER/code/verl/workers/megatron_workers.py:388
Methodcompute_ref_log_prob
(self, data: DataProto)
RLVMR/code/verl/workers/megatron_workers.py:423
Functioncompute_reinforce_plus_plus_outcome_advantage
Compute advantage for REINFORCE++. This implementation is based on the paper: https://arxiv.org/abs/2501.03262 Args: token_level
RLVER/code/verl/trainer/ppo/core_algos.py:204
Functioncompute_reinforce_plus_plus_outcome_advantage
Compute advantage for REINFORCE++. This implementation is based on the paper: https://arxiv.org/abs/2501.03262 Args: token_level
RLVMR/code/verl/trainer/ppo/core_algos.py:198
Functioncompute_remax_outcome_advantage
Compute advantage for ReMax, operating only on Outcome reward This implementation is based on the paper: https://arxiv.org/abs/2310.10505
RLVER/code/verl/trainer/ppo/core_algos.py:238
Functioncompute_remax_outcome_advantage
Compute advantage for ReMax, operating only on Outcome reward This implementation is based on the paper: https://arxiv.org/abs/2310.10505
RLVMR/code/verl/trainer/ppo/core_algos.py:232
Methodcompute_reward
(self, data: DataProto)
RLVER/code/verl/workers/reward_model/megatron/reward_model.py:118
Methodcompute_reward
(self, data: DataProto)
RLVMR/code/verl/workers/reward_model/megatron/reward_model.py:118
Functioncompute_rewards
(token_level_scores, old_log_prob, ref_log_prob, kl_ratio)
RLVER/code/verl/trainer/ppo/core_algos.py:269
Functioncompute_rewards
(token_level_scores, old_log_prob, ref_log_prob, kl_ratio)
RLVMR/code/verl/trainer/ppo/core_algos.py:263
Functioncompute_rloo_advantage_return
(data: verl.DataProto, eos_mask: torch.Tensor, n_samples, config)
RLVMR/code/recipe/prime/prime_core_algos.py:20
Functioncompute_rloo_outcome_advantage
Compute advantage for RLOO based on https://arxiv.org/abs/2402.14740 Args: token_level_rewards: `(torch.Tensor)` shape: (
RLVER/code/verl/trainer/ppo/core_algos.py:159
Functioncompute_rloo_outcome_advantage
Compute advantage for RLOO based on https://arxiv.org/abs/2402.14740 Args: token_level_rewards: `(torch.Tensor)` shape: (
RLVMR/code/verl/trainer/ppo/core_algos.py:153
Functioncompute_rlvmr_outcome_advantage
( token_level_rewards: torch.Tensor, rlvmr_rewards: torch.Tensor, eos_mask: torch.Tensor, inde
RLVMR/code/rlvmr/core_rlvmr.py:7
Methodcompute_rm_score
(self, data: DataProto)
RLVER/code/verl/workers/megatron_workers.py:757
Methodcompute_rm_score
(self, data: DataProto)
RLVMR/code/recipe/prime/prime_fsdp_workers.py:248
Methodcompute_rm_score
(self, data: DataProto)
RLVMR/code/verl/workers/megatron_workers.py:822
Functioncompute_score
(solution_str, ground_truth)
RLVER/code/verl/utils/reward_score/simplerl.py:93
Functioncompute_score
The scoring function for GSM8k. Reference: Trung, Luong, et al. "Reft: Reasoning with reinforced fine-tuning." Proceedings of the 62nd Annual Mee
RLVER/code/verl/utils/reward_score/gsm8k.py:44
Functioncompute_score
(solution_str, ground_truth)
RLVER/code/verl/utils/reward_score/math.py:17
Functioncompute_score
(completion, test_cases, continuous=False)
RLVER/code/verl/utils/reward_score/prime_code/__init__.py:21
Functioncompute_score
(model_output: str, ground_truth: str)
RLVER/code/verl/utils/reward_score/prime_math/__init__.py:380
Functioncompute_score
(predict_str: str, ground_truth: str)
RLVMR/code/verl/utils/reward_score/geo3k.py:30
Functioncompute_score
The scoring function for GSM8k. Reference: Trung, Luong, et al. "Reft: Reasoning with reinforced fine-tuning." Proceedings of the 62nd Annual Mee
RLVMR/code/verl/utils/reward_score/gsm8k.py:44
Functioncompute_score
(solution_str, ground_truth)
RLVMR/code/verl/utils/reward_score/math.py:17
Functioncompute_score
(model_output: str, ground_truth: str)
RLVMR/code/verl/utils/reward_score/math_verify.py:22
← previousnext →3,701–3,800 of 5,073, ranked by callers