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
Function
check_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
Method
check_graph_memory_correspondence
(self)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/graph/graph_obj.py:121
Method
check_mutually_exclusive
(mbs, mbs_per_gpu, name: str)
RLVER/code/verl/trainer/ppo/ray_trainer.py:451
Method
check_mutually_exclusive
(mbs, mbs_per_gpu, name: str)
RLVER/code/verl/trainer/ppo/ray_trainer_think.py:449
Method
check_mutually_exclusive
(mbs, mbs_per_gpu, name: str)
RLVMR/code/verl/trainer/ppo/ray_trainer.py:368
Method
check_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
Method
check_subgoal_completion
(self, game_state)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/expert/handcoded_expert.py:347
Method
check_subgoal_completion
(self, game_state)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/expert/handcoded_expert.py:379
Method
check_subgoal_completion
(self, game_state)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/expert/handcoded_expert.py:414
Method
check_subgoal_completion
(self, game_state)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/expert/handcoded_expert.py:444
Method
check_subgoal_completion
(self, game_state)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/expert/handcoded_expert.py:478
Method
check_subgoal_completion
(self, game_state)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/expert/handcoded_expert.py:512
Function
check_topic
(path, analyzer)
HATE/basic_hate/evaluation/test_topic_SFR_new.py:517
Function
check_workers_alive
(workers: List, is_alive: Callable, gap_time: float = 1)
RLVER/code/verl/single_controller/base/worker_group.py:82
Function
check_workers_alive
(workers: List, is_alive: Callable, gap_time: float = 1)
RLVMR/code/verl/single_controller/base/worker_group.py:82
Method
checkpath
(local_path: str, hdfs_path: str)
RLVMR/code/verl/utils/checkpoint/checkpoint_manager.py:71
Method
chunk
(self, chunks: int)
RLVER/code/verl/protocol.py:627
Method
chunk
(self, chunks: int)
RLVMR/code/verl/protocol.py:625
Method
classify
Generate class logits for each prompt. This class automatically batches the given prompts, considering the memory constraint
RLVER/code/llm.py:1005
Function
clean_alfred_facts
(facts)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/utils/misc.py:95
Method
clearRunHistories
(self)
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/scienceworld.py:603
Function
clear_history
(request: gr.Request)
VISTA/LLaVA-VISTA/llava/serve/gradio_web_server.py:122
Function
clear_history
()
VISTA/TinyLLaVA-VISTA/tinyllava/serve/app.py:59
Function
clip_by_value
Tensor extenstion to torch.clamp https://github.com/pytorch/pytorch/issues/2793#issuecomment-428784713
RLVER/code/verl/utils/torch_functional.py:97
Function
clip_by_value
Tensor extenstion to torch.clamp https://github.com/pytorch/pytorch/issues/2793#issuecomment-428784713
RLVMR/code/verl/utils/torch_functional.py:97
Method
close
(self)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/environment/alfred_thor_env.py:230
Method
close
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:86
Method
close
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:103
Method
close
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:117
Method
close
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:153
Method
close
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:189
Method
close
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/web_agent_site/envs/web_agent_site_env.py:207
Method
close
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/web_agent_site/envs/web_agent_text_env.py:280
Method
close_recep
(self, recep)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/planned_game_state.py:486
Function
coefficient_of_variation
计算给定数据的变异系数(Coefficient of Variation)。 参数: data (list or np.array): 数据 返回: float: 变异系数(以百分比表示)
SWF/src/utils.py:463
Function
collate_fn
(batch)
VISTA/LLaVA-VISTA/llava/eval/model_vqa_loader.py:64
Function
collate_fn
(batch)
VISTA/TinyLLaVA-VISTA/tinyllava/eval/model_vqa_loader.py:60
Function
collate_fn
(batch)
VISTA/TinyLLaVA-VISTA/tinyllava/eval/model_vqa_pope.py:60
Function
collate_fn
(x: list['DataProtoItem'])
RLVER/code/verl/protocol.py:151
Function
collate_fn
(data_list: list[dict])
RLVER/code/verl/utils/dataset/rl_dataset.py:47
Function
collate_fn
(x: list['DataProtoItem'])
RLVMR/code/verl/protocol.py:151
Function
collate_fn
(batch)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/detector/utils.py:229
Function
collect_all_to_all
(worker_group, output)
RLVER/code/verl/single_controller/base/decorator.py:70
Function
collect_all_to_all
(worker_group, output)
RLVMR/code/verl/single_controller/base/decorator.py:70
Function
collect_dp_compute_data_proto
(worker_group, output)
RLVER/code/verl/single_controller/base/decorator.py:289
Function
collect_dp_compute_data_proto
(worker_group, output)
RLVMR/code/verl/single_controller/base/decorator.py:289
Function
collect_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
Function
collect_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
Function
collect_megatron_pp_as_dp_data_proto
(worker_group, output)
RLVER/code/verl/single_controller/base/decorator.py:246
Function
collect_megatron_pp_as_dp_data_proto
(worker_group, output)
RLVMR/code/verl/single_controller/base/decorator.py:246
Function
collect_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
Function
collect_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
Method
collective_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
Method
command_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
Method
command_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
Function
compute_attention_mask
(prompts, pad_token_id)
RLVER/code/tests/e2e/envs/digit_completion/task.py:107
Function
compute_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
Function
compute_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
Function
compute_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
Function
compute_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
Function
compute_gigpo_outcome_advantage
(token_level_rewards: torch.Tensor, step_rewards: torch.Tensor,
RLVMR/code/gigpo/core_gigpo.py:94
Function
compute_grad_norm
(model: nn.Module)
RLVER/code/verl/utils/torch_functional.py:189
Function
compute_grad_norm
(model: nn.Module)
RLVMR/code/verl/utils/torch_functional.py:170
Function
compute_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
Function
compute_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
Method
compute_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
Method
compute_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
Method
compute_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
Method
compute_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
Method
compute_logprobs_fn
(output, data)
RLVER/code/verl/workers/actor/megatron_actor.py:163
Method
compute_logprobs_fn
(output, data)
RLVMR/code/verl/workers/actor/megatron_actor.py:162
Function
compute_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
Function
compute_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
Function
compute_position_id_with_mask
(mask)
RLVER/code/tests/e2e/envs/digit_completion/task.py:113
Method
compute_ref_log_prob
(self, data: DataProto)
RLVER/code/verl/workers/megatron_workers.py:388
Method
compute_ref_log_prob
(self, data: DataProto)
RLVMR/code/verl/workers/megatron_workers.py:423
Function
compute_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
Function
compute_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
Function
compute_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
Function
compute_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
Method
compute_reward
(self, data: DataProto)
RLVER/code/verl/workers/reward_model/megatron/reward_model.py:118
Method
compute_reward
(self, data: DataProto)
RLVMR/code/verl/workers/reward_model/megatron/reward_model.py:118
Function
compute_rewards
(token_level_scores, old_log_prob, ref_log_prob, kl_ratio)
RLVER/code/verl/trainer/ppo/core_algos.py:269
Function
compute_rewards
(token_level_scores, old_log_prob, ref_log_prob, kl_ratio)
RLVMR/code/verl/trainer/ppo/core_algos.py:263
Function
compute_rloo_advantage_return
(data: verl.DataProto, eos_mask: torch.Tensor, n_samples, config)
RLVMR/code/recipe/prime/prime_core_algos.py:20
Function
compute_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
Function
compute_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
Function
compute_rlvmr_outcome_advantage
( token_level_rewards: torch.Tensor, rlvmr_rewards: torch.Tensor, eos_mask: torch.Tensor, inde
RLVMR/code/rlvmr/core_rlvmr.py:7
Method
compute_rm_score
(self, data: DataProto)
RLVER/code/verl/workers/megatron_workers.py:757
Method
compute_rm_score
(self, data: DataProto)
RLVMR/code/recipe/prime/prime_fsdp_workers.py:248
Method
compute_rm_score
(self, data: DataProto)
RLVMR/code/verl/workers/megatron_workers.py:822
Function
compute_score
(solution_str, ground_truth)
RLVER/code/verl/utils/reward_score/simplerl.py:93
Function
compute_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
Function
compute_score
(solution_str, ground_truth)
RLVER/code/verl/utils/reward_score/math.py:17
Function
compute_score
(completion, test_cases, continuous=False)
RLVER/code/verl/utils/reward_score/prime_code/__init__.py:21
Function
compute_score
(model_output: str, ground_truth: str)
RLVER/code/verl/utils/reward_score/prime_math/__init__.py:380
Function
compute_score
(predict_str: str, ground_truth: str)
RLVMR/code/verl/utils/reward_score/geo3k.py:30
Function
compute_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
Function
compute_score
(solution_str, ground_truth)
RLVMR/code/verl/utils/reward_score/math.py:17
Function
compute_score
(model_output: str, ground_truth: str)
RLVMR/code/verl/utils/reward_score/math_verify.py:22
← previous
next →
3,701–3,800 of 5,073, ranked by callers