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
↓ 3 callers
Method
_save_audio
Save audio tensor to file Saving Process: 1. Ensure output directory exists 2. Use torchaudio to save tensor
BatonVoice/unified_tts.py:828
↓ 3 callers
Method
_save_checkpoint
(self)
RLVER/code/verl/trainer/ppo/ray_trainer.py:827
↓ 3 callers
Method
_set_cos_sin_cache
(self, seq_len, device, dtype)
RLVMR/code/verl/models/llama/megatron/layers/parallel_attention.py:51
↓ 3 callers
Function
_str_is_int
(x: str)
RLVER/code/verl/utils/reward_score/prime_math/__init__.py:84
↓ 3 callers
Function
_str_is_int
(x: str)
RLVMR/code/verl/utils/reward_score/prime_math/__init__.py:111
↓ 3 callers
Method
_validate
(self)
RLVER/code/verl/trainer/ppo/ray_trainer_think.py:674
↓ 3 callers
Method
_validate_and_add_requests
( self, prompts: Union[PromptType, Sequence[PromptType]], params: Union[SamplingParams
RLVER/code/llm.py:1319
↓ 3 callers
Method
act
(self, game_state, last_action)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/expert/handcoded_expert.py:185
↓ 3 callers
Function
activate_fl
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/relax.c:1009
↓ 3 callers
Function
activate_ft
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/relax.c:961
↓ 3 callers
Method
aggregate_feats_seq
(self, feats)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/vision_dagger_agent.py:332
↓ 3 callers
Function
apply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
VISTA/TinyLLaVA-VISTA/tinyllava/model/llm/modeling_phi.py:173
↓ 3 callers
Function
are_identical_ATOMs
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_pre.c:2518
↓ 3 callers
Function
build_fixpoint
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/relax.c:586
↓ 3 callers
Function
build_memory_buffer
Build the memory buffer given weight_buffer_meta Args: weight_buffer_meta: contains mapping from name to a dictionary containing shape an
RLVER/code/verl/utils/memory_buffer.py:71
↓ 3 callers
Function
build_memory_buffer
Build the memory buffer given weight_buffer_meta Args: weight_buffer_meta: contains mapping from name to a dictionary containing shape an
RLVMR/code/verl/utils/memory_buffer.py:71
↓ 3 callers
Function
calc_padded_numel
for cuda memory alignment, make sure alignment by 128-bits
RLVER/code/verl/utils/memory_buffer.py:54
↓ 3 callers
Function
calc_padded_numel
for cuda memory alignment, make sure alignment by 128-bits
RLVMR/code/verl/utils/memory_buffer.py:54
↓ 3 callers
Method
calculate_topic_distances
计算主题句与各段落之间的距离 Parameters: ----------- topic_sentence : str 主题句 paragraphs : List[str]
HATE/basic_hate/evaluation/test_topic_SFR.py:235
↓ 3 callers
Method
calculate_topic_distances
计算主题句与各段落之间的距离 Parameters: ----------- topic_sentence : str 主题句 paragraphs : List[str]
HATE/basic_hate/evaluation/test_topic_SFR_new.py:235
↓ 3 callers
Function
call_llm
(prompt)
SAGE/simulator_response.py:24
↓ 3 callers
Function
chat_player
(player_data)
SAGE/simulator_response.py:321
↓ 3 callers
Method
choose_env
(self)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/environment/alfred_hybrid.py:24
↓ 3 callers
Method
choose_model
(self, use_model="online")
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:337
↓ 3 callers
Method
clear_run_histories
Clear the run histories.
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/scienceworld.py:352
↓ 3 callers
Function
clip_bbox
# BBoxes are [x1, y1, x2, y2]
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/utils/bb_util.py:6
↓ 3 callers
Method
close
(self)
RLVMR/code/agent_system/environments/env_package/sciworld/envs.py:158
↓ 3 callers
Method
close
(self)
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/scienceworld.py:151
↓ 3 callers
Function
collect_type_names_in_pl
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/parse.c:644
↓ 3 callers
Method
command_generation_act_greedy
(self, observation_strings, task_desc_strings, previous_dynamics)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/text_dqn_agent.py:271
↓ 3 callers
Method
command_generation_by_beam_search
(self, observation_strings, task_desc_strings, previous_dynamics)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/text_dqn_agent.py:179
↓ 3 callers
Method
command_generation_greedy_generation
(self, observation_strings, task_desc_strings, previous_dynamics)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/text_dagger_agent.py:218
↓ 3 callers
Function
compute_detach_dpo_loss_rm
(token_level_scores, acc, Q_bc, acc_bc, eos_mask, beta, bon_mode='none')
RLVMR/code/recipe/prime/prime_core_algos.py:84
↓ 3 callers
Method
compute_log_prob
Compute logits given a batch of data. Args: data (DataProto): a batch of data represented by DataProto. It must contain key ```in
RLVER/code/verl/workers/actor/base.py:39
↓ 3 callers
Method
compute_log_prob
Compute logits given a batch of data. Args: data (DataProto): a batch of data represented by DataProto. It must contain key ```in
RLVMR/code/verl/workers/actor/base.py:39
↓ 3 callers
Method
compute_ref_log_prob
(self, data: DataProto)
RLVER/code/verl/workers/fsdp_workers.py:584
↓ 3 callers
Method
compute_ref_log_prob
(self, data: DataProto)
RLVMR/code/verl/workers/fsdp_workers.py:559
↓ 3 callers
Method
compute_rm_score
(self, data: DataProto)
RLVER/code/verl/workers/fsdp_workers.py:1148
↓ 3 callers
Method
compute_rm_score
(self, data: DataProto)
RLVMR/code/recipe/prime/prime_dp_rm.py:200
↓ 3 callers
Function
compute_transformers_input_shapes
(batches, meta_info)
RLVER/code/verl/utils/megatron/pipeline_parallel.py:22
↓ 3 callers
Function
compute_transformers_input_shapes
(batches, meta_info)
RLVMR/code/verl/utils/megatron/pipeline_parallel.py:22
↓ 3 callers
Method
compute_values
(self, data: DataProto)
RLVER/code/verl/workers/fsdp_workers.py:829
↓ 3 callers
Function
configure
(dir=None, format_strs=None)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:392
↓ 3 callers
Function
copy
r"""Works like shutil.copy() for file, and shutil.copytree for dir, and supports hdfs. Copy data and mode bits ("cp src dst"). Return the file's
RLVER/code/verl/utils/hdfs_io.py:84
↓ 3 callers
Function
create_colocated_worker_cls
This function should return a class instance that delegates the calls to every cls in cls_dict
RLVER/code/verl/single_controller/ray/base.py:420
↓ 3 callers
Function
create_device_mesh
(world_size, fsdp_size)
RLVER/code/verl/workers/fsdp_workers.py:48
↓ 3 callers
Function
decrement_inferior_vars_in_exp
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_pre.c:1628
↓ 3 callers
Function
determine_source_val
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/search.c:2220
↓ 3 callers
Function
displayQuestion
(index)
VISTA/LLaVA-VISTA/llava/eval/webpage/script.js:110
↓ 3 callers
Function
dnf
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_pre.c:3651
↓ 3 callers
Method
embed
(self, input_words, input_word_masks)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/model.py:111
↓ 3 callers
Method
encode_valids
Encode a list of lists of strs
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/agent.py:83
↓ 3 callers
Function
eval_single
(result_file, eval_only_type=None)
VISTA/LLaVA-VISTA/scripts/convert_seed_for_submission.py:14
↓ 3 callers
Method
execute_all_async
(self, method_name: str, *args, **kwargs)
RLVER/code/verl/single_controller/ray/base.py:335
↓ 3 callers
Method
execute_all_sync
(self, method_name: str, *args, **kwargs)
RLVMR/code/verl/single_controller/ray/base.py:352
↓ 3 callers
Function
expand2square
(pil_img, background_color)
VISTA/LLaVA-VISTA/llava/mm_utils.py:153
↓ 3 callers
Function
expand_quantifiers_in_wff
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_pre.c:2000
↓ 3 callers
Method
expect_digit
(self, start: int)
HATE/basic_hate/agentverse/llms/utils/jsonrepair.py:621
↓ 3 callers
Function
extract_1P
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/relax.c:1806
↓ 3 callers
Function
extract_plan
dirty, but well... checks as side effect whether or not a previous * plan is a subsequence of this one... */
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/search.c:1557
↓ 3 callers
Function
extract_story_components
(script_text: str)
ScriptAgent/code/director_agent.py:522
↓ 3 callers
Method
feature_select
(self, image_forward_outs)
VISTA/LLaVA-VISTA/llava/model/multimodal_encoder/clip_encoder.py:35
↓ 3 callers
Function
ff_usage
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/main.c:1076
↓ 3 callers
Method
finish_of_episode
(self, episode_no, batch_size)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:353
↓ 3 callers
Method
fix_and_comma_in_the_end
(self, desc)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/controller/base.py:91
↓ 3 callers
Method
forward
(self, x)
VISTA/LLaVA-VISTA/llava/train/modeling_llama.py:258
↓ 3 callers
Function
free_NormEffect
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:1047
↓ 3 callers
Method
from_detached
(cls, worker_names=None, ray_cls_with_init=None)
RLVER/code/verl/single_controller/ray/base.py:285
↓ 3 callers
Function
get_aggregated
Get the aggregated hidden state of the encoder. B x D
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/models/modules.py:18
↓ 3 callers
Function
get_args
()
VISTA/LLaVA-VISTA/llava/eval/eval_textvqa.py:9
↓ 3 callers
Method
get_batch
(self, batch_size, multi_step=1)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/memory.py:100
↓ 3 callers
Method
get_batch_of_sequences
(self, batch_size, sample_history_length)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/memory.py:216
↓ 3 callers
Function
get_constant_schedule_with_warmup
( optimizer: Optimizer, num_warmup_steps: int, last_epoch: int = -1, )
RLVER/code/verl/utils/torch_functional.py:474
↓ 3 callers
Function
get_constant_schedule_with_warmup
( optimizer: Optimizer, num_warmup_steps: int, last_epoch: int = -1, )
RLVMR/code/verl/utils/torch_functional.py:455
↓ 3 callers
Function
get_data
(split, mem=False, filter_search=True)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/train_choice_il.py:104
↓ 3 callers
Function
get_data
(split)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/train_search_il.py:34
↓ 3 callers
Function
get_default_kwargs_for_model_parallel_config
()
RLVER/code/verl/utils/megatron/tensor_parallel.py:32
↓ 3 callers
Function
get_default_kwargs_for_model_parallel_config
()
RLVMR/code/verl/utils/megatron/tensor_parallel.py:32
↓ 3 callers
Method
get_env_paths
(self)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/environment/alfred_thor_env.py:237
↓ 3 callers
Function
get_length_grouped_indices
(lengths, batch_size, world_size, generator=None, merge=True)
VISTA/TinyLLaVA-VISTA/tinyllava/train/tinyllava_trainer.py:75
↓ 3 callers
Function
get_llm_server_modelname
( base_url: str = "xx", api_key=None, logger=None )
HATE/basic_hate/agentverse/llms/utils/llm_server_utils.py:4
↓ 3 callers
Function
get_megatron_optimizer
( model, config: OptimizerConfig, no_weight_decay_cond=None, scale_lr_cond=Non
RLVER/code/verl/utils/megatron/optimizer.py:27
↓ 3 callers
Method
get_obj_cls_from_metadata
(self, name)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/controller/oracle.py:38
↓ 3 callers
Function
get_parallel_model_from_config
(config, megatron_config, pre_process=No
RLVER/code/verl/utils/model.py:251
↓ 3 callers
Function
get_parallel_model_from_config
(config, megatron_config, pre_process=No
RLVMR/code/verl/utils/model.py:251
↓ 3 callers
Method
get_possible_action_object_combinations
Get all *possible* action-object combinations, including invalid ones.
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/scienceworld.py:251
↓ 3 callers
Function
get_pred_idx
Get the index (e.g. 2) from the prediction (e.g. 'C')
VISTA/LLaVA-VISTA/llava/eval/eval_science_qa_gpt4_requery.py:30
↓ 3 callers
Function
get_reward
Get cumulative reward score for purchased product and goal
RLVMR/code/agent_system/environments/env_package/webshop/webshop/web_agent_site/engine/goal.py:228
↓ 3 callers
Method
get_run_history
Get the run history
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/scienceworld.py:305
↓ 3 callers
Function
get_sharding_strategy
(device_mesh)
RLVER/code/verl/workers/fsdp_workers.py:61
↓ 3 callers
Method
get_some_visible_obj_of_name
(self, name)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/game_state_base.py:370
↓ 3 callers
Method
get_state
(self)
RLVER/code/tests/e2e/envs/digit_completion/task.py:61
↓ 3 callers
Function
get_state_maybe_zero_3
(named_params, keys_to_match=[''], require_grad_only=True)
VISTA/TinyLLaVA-VISTA/tinyllava/utils/train_utils.py:74
↓ 3 callers
Method
get_task_and_obs
(self, observation_strings)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:413
↓ 3 callers
Method
get_teleport_action
(self, action)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/planned_game_state.py:378
↓ 3 callers
Function
get_templated_task_desc
(traj_data)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/utils/misc.py:79
↓ 3 callers
Method
get_tokenizer
( self, lora_request: Optional[LoRARequest] = None, )
RLVER/code/llm.py:254
↓ 3 callers
Function
get_value_from_kwargs
(kwargs, name)
VISTA/TinyLLaVA-VISTA/tinyllava/model/modeling_tinyllava.py:18
↓ 3 callers
Method
get_variations_train
Get the list of variations available for the training set.
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/scienceworld.py:373
↓ 3 callers
Method
get_vision_tower
(self)
VISTA/LLaVA-VISTA/llava/model/llava_arch.py:137
← previous
next →
601–700 of 5,073, ranked by callers