MCPcopy Create free account

hub / github.com/Tencent/digitalhuman / functions

Functions5,073 in github.com/Tencent/digitalhuman

↓ 9 callersFunctionload_fsdp_model_to_gpu
(model: FSDP)
RLVER/code/verl/utils/fsdp_utils.py:132
↓ 9 callersFunctionload_pretrained_model
(model_path, model_base, model_name, load_8bit=False, load_4bit=False, device_map="auto", device="cuda", use_f
VISTA/LLaVA-VISTA/llava/model/builder.py:26
↓ 9 callersMethodlog_prompt
(self, prompt: List[dict])
HATE/basic_hate/agentverse/logging.py:194
↓ 9 callersFunctionnew_LnfExpNode
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:742
↓ 9 callersFunctionoffload_fsdp_optimizer
(optimizer)
RLVMR/code/verl/utils/fsdp_utils.py:152
↓ 9 callersMethodopen_recep
(self, recep)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/game_state_base.py:834
↓ 9 callersFunctionpad_sequences
Partially borrowed from Keras # Arguments sequences: list of lists where each element is a sequence maxlen: int, maximum leng
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/generic.py:66
↓ 9 callersMethodparse_whitespace_and_skip_comments
(self)
HATE/basic_hate/agentverse/llms/utils/jsonrepair.py:228
↓ 9 callersMethodpreprocess_data
(self, data: DataProto)
RLVER/code/verl/workers/sharding_manager/base.py:29
↓ 9 callersFunctionprint_LnfExpNode
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:1374
↓ 9 callersFunctionreduce_metrics
(metrics: dict)
RLVER/code/verl/trainer/ppo/ray_trainer.py:212
↓ 9 callersMethodremove_num_ids
(self, str)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/expert/handcoded_expert.py:62
↓ 9 callersMethodto_gradio_chatbot
(self)
VISTA/TinyLLaVA-VISTA/tinyllava/utils/message.py:36
↓ 9 callersMethodtrain
(self)
RLVMR/code/verl/workers/sharding_manager/megatron_vllm.py:171
↓ 8 callersMethod__init__
(self, config: OpenELMConfig)
VISTA/TinyLLaVA-VISTA/tinyllava/model/llm/openelm.py:831
↓ 8 callersMethodchoose_maxQ_action
Generate an action by maximum q values.
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/text_dqn_agent.py:44
↓ 8 callersMethodcollect_metrics
(self, response, cost=None)
HATE/basic_hate/agentverse/llms/openai.py:538
↓ 8 callersFunctiondisable_torch_init
Disable the redundant torch default initialization to accelerate model creation.
VISTA/LLaVA-VISTA/llava/utils.py:93
↓ 8 callersMethodeval
(self)
RLVMR/code/verl/workers/sharding_manager/megatron_vllm.py:167
↓ 8 callersFunctionez_gather_dim_1
(input, index)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/generic.py:106
↓ 8 callersMethodflush
(self)
RLVMR/code/verl/utils/logger/aggregate_logger.py:37
↓ 8 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,
RLVER/code/verl/utils/torch_functional.py:150
↓ 8 callersMethodget_records
(self, survived_agent_names: set)
SWF/src/base.py:225
↓ 8 callersFunctionis_linear_expression
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/expressions.c:307
↓ 8 callersFunctionload_pretrained_model
(model_name_or_path, load_type='hf', load_8bit=False, load_4bit=False, device_map="auto",
VISTA/TinyLLaVA-VISTA/tinyllava/model/load_model.py:18
↓ 8 callersFunctionlogkv
Log a value of some diagnostic Call this once for each diagnostic quantity, each iteration If called many times, last value will be used.
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:217
↓ 8 callersFunctionmasked_mean
Compute mean of tensor with a masked values.
RLVMR/code/verl/utils/torch_functional.py:118
↓ 8 callersFunctionnew_FactList
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:101
↓ 8 callersFunctionpad_sequence_to_length
pad a 2D tensors (e.g. responses, logprobs) in the last dim to max_seq_length. input shape: [bs, seq_length] output shape: [bs, max_seq_l
RLVMR/code/verl/utils/torch_functional.py:242
↓ 8 callersMethodpostprocess_data
(self, data: DataProto)
RLVER/code/verl/workers/sharding_manager/base.py:32
↓ 8 callersFunctionprint_Wff
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:419
↓ 8 callersFunctionpush_multiplications_down
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/expressions.c:918
↓ 8 callersMethodtokenizer_image_token
(cls, prompt, tokenizer, image_token_index=IMAGE_TOKEN_INDEX, return_tensors=None)
VISTA/TinyLLaVA-VISTA/tinyllava/data/template/base.py:137
↓ 8 callersFunctiontranslate_divisions
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/expressions.c:859
↓ 8 callersFunctionulysses_pad_and_slice_inputs
Pad and slice input_ids to be divisible by sp_size Pad position_ids to be divisible by sp_size. Note both input_ids_rmpad and position_i
RLVER/code/verl/utils/ulysses.py:252
↓ 8 callersFunctionulysses_pad_and_slice_inputs
Pad and slice input_ids to be divisible by sp_size Pad position_ids to be divisible by sp_size. Note both input_ids_rmpad and position_i
RLVMR/code/verl/utils/ulysses.py:252
↓ 7 callersMethod__init__
(self, traj, env, args, reward_type='sparse', max_episode_length=2000)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/env/tasks.py:13
↓ 7 callersFunction_megatron_calc_global_rank
given TP,DP,PP rank to get the global rank.
RLVER/code/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:28
↓ 7 callersFunction_megatron_calc_global_rank
given TP,DP,PP rank to get the global rank.
RLVER/code/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:32
↓ 7 callersFunction_megatron_calc_global_rank
given TP,DP,PP rank to get the global rank.
RLVMR/code/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:27
↓ 7 callersFunction_megatron_calc_global_rank
given TP,DP,PP rank to get the global rank.
RLVMR/code/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:27
↓ 7 callersMethod_validate
(self)
RLVMR/code/verl/trainer/ppo/ray_trainer.py:563
↓ 7 callersFunctionclean_traceback
(error_traceback)
RLVER/code/verl/utils/reward_score/prime_code/testing_util.py:101
↓ 7 callersFunctionclean_traceback
(error_traceback)
RLVMR/code/verl/utils/reward_score/prime_code/testing_util.py:101
↓ 7 callersFunctioncleanup_wff
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_pre.c:2436
↓ 7 callersMethodclose_recep
(self, recep)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/game_state_base.py:845
↓ 7 callersFunctiondisable_torch_init
Disable the redundant torch default initialization to accelerate model creation.
VISTA/TinyLLaVA-VISTA/tinyllava/utils/eval_utils.py:9
↓ 7 callersFunctionfluent_adress
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_final.c:407
↓ 7 callersFunctiongather_outpus_and_unpad
(x: Tensor, gather_dim: int, unpad_dim: int = None,
RLVER/code/verl/utils/ulysses.py:233
↓ 7 callersFunctiongather_outpus_and_unpad
(x: Tensor, gather_dim: int, unpad_dim: int = None,
RLVMR/code/verl/utils/ulysses.py:233
↓ 7 callersMethodgenerate
( self, inputs: Optional[torch.Tensor] = None, images: Optional[torch.Tensor] = None,
VISTA/LLaVA-VISTA/llava/model/language_model/llava_llama.py:114
↓ 7 callersMethodgenerate
( self, inputs: Optional[torch.Tensor] = None, images: Optional[torch.Tensor] = None,
VISTA/TinyLLaVA-VISTA/tinyllava/model/modeling_tinyllava.py:162
↓ 7 callersMethodgenerate_response
(self, **kwargs)
HATE/basic_hate/agentverse/llms/base.py:33
↓ 7 callersMethodgenerate_sequences
Generate sequences
RLVMR/code/verl/workers/rollout/base.py:35
↓ 7 callersMethodget
(self)
RLVER/code/verl/utils/rendezvous/ray_backend.py:30
↓ 7 callersMethodget_bbox_point_mask
(self, object_id)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/game_state_base.py:364
↓ 7 callersFunctionget_model_name_from_path
(model_path)
VISTA/LLaVA-VISTA/llava/mm_utils.py:225
↓ 7 callersMethodget_possible_actions
Get all possible actions in the current environment state.
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/scienceworld.py:198
↓ 7 callersMethodget_possible_objects
Get a list of all observable objects
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/scienceworld.py:209
↓ 7 callersMethodget_shortest_path
(self, pose, goal_pose)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/graph/graph_obj.py:236
↓ 7 callersMethodget_targets
returns a dictionary of all targets for the task
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/env/tasks.py:132
↓ 7 callersMethodget_task_description
Get the description of the current task.
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/scienceworld.py:287
↓ 7 callersFunctioninsert_before_last_whitespace
(text: str, text_to_insert: str)
HATE/basic_hate/agentverse/llms/utils/jsonrepair.py:104
↓ 7 callersFunctionis_eff_literal
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/parse.c:1245
↓ 7 callersFunctionload_agent
(agent_config: Dict)
HATE/basic_hate/agentverse/initialization.py:64
↓ 7 callersMethodlogkv_mean
(self, key, val)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:352
↓ 7 callersFunctionmake_either_ty
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/parse.c:724
↓ 7 callersFunctionmax_len
(list_of_list)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/generic.py:60
↓ 7 callersFunctionnew_BfsNode
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:848
↓ 7 callersFunctionoffload_fsdp_optimizer
(optimizer)
RLVER/code/verl/utils/fsdp_utils.py:148
↓ 7 callersMethodpreprocess_action_candidates
(self, action_candidate_list)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:400
↓ 7 callersFunctionprint_PlNode
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:186
↓ 7 callersFunctionprocess_images
(images, image_processor, model_cfg)
VISTA/LLaVA-VISTA/llava/mm_utils.py:167
↓ 7 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
RLVMR/code/verl/utils/seqlen_balancing.py:224
↓ 7 callersMethodregister
(self, key: str)
HATE/basic_hate/agentverse/registry.py:12
↓ 7 callersMethodreset
Reset internal states
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/env/tasks.py:114
↓ 7 callersFunctionresult_to_dest
state transition function; here, takes in an action whose * logical and numerical preconds are fulfilled, and returns TRUE, * putting the result int
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/search.c:1936
↓ 7 callersMethodselect
Select a subset of the DataProto via batch_keys and meta_info_keys Args: batch_keys (list, optional): a list of strings indicatin
RLVER/code/verl/protocol.py:339
↓ 7 callersMethodsend_token_limit
(self, model: str)
HATE/basic_hate/agentverse/llms/openai.py:238
↓ 7 callersMethodtranspose_for_scores
(self, x)
VISTA/TinyLLaVA-VISTA/tinyllava/model/connector/qformer.py:227
↓ 7 callersFunctionunwrap_model
(model, module_instances=ALL_MODULE_WRAPPER_CLASSNAMES)
RLVER/code/verl/utils/megatron_utils.py:136
↓ 7 callersMethodupdate
(self, transitions, last_values, step=None, rewards_invdy=None)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/agent.py:120
↓ 6 callersFunctionLESS
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/relax.c:146
↓ 6 callersMethod__init__
(self, task_params, max_steps=150)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/expert/handcoded_expert.py:29
↓ 6 callersMethod__init__
(self, env, max_steps=150)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/expert/handcoded_expert_thor.py:143
↓ 6 callersMethod__init__
(self, max_steps=150)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/expert/handcoded_expert_tw.py:119
↓ 6 callersFunction_broadcast_tensor
broadcast tensor from rank0 across mp_group
RLVER/code/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:97
↓ 6 callersFunction_broadcast_tensor
broadcast tensor from rank0 across mp_group
RLVER/code/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:99
↓ 6 callersFunction_broadcast_tensor
broadcast tensor from rank0 across mp_group
RLVMR/code/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:100
↓ 6 callersFunction_broadcast_tensor
broadcast tensor from rank0 across mp_group
RLVMR/code/verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:104
↓ 6 callersFunction_fetch_tensor
fetch tensor
RLVMR/code/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:100
↓ 6 callersFunction_fetch_tensor
fetch tensor
RLVMR/code/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:104
↓ 6 callersMethod_validate
(self)
RLVER/code/verl/trainer/ppo/ray_trainer.py:681
↓ 6 callersMethodaddStr
(self, strIn: str)
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/examples/scienceworld-web-server-example.py:45
↓ 6 callersMethodagenerate_response
(self, **kwargs)
HATE/basic_hate/agentverse/llms/base.py:37
↓ 6 callersFunctionappend_to_dict
(data: Dict, new_data: Dict)
RLVER/code/verl/utils/py_functional.py:41
↓ 6 callersFunctionapply_monkey_patch
(config: PretrainedConfig, verbose=True)
RLVER/code/verl/models/transformers/monkey_patch.py:49
↓ 6 callersFunctionbroadcast_dict_tensor
TODO: optimize this. Technically, we only need one broadcast
RLVER/code/verl/utils/torch_functional.py:198
↓ 6 callersFunctionbuild_alfworld_envs
(alf_config_path, seed, env_num, group_n, is_train=True, unseen=False)
RLVMR/code/agent_system/environments/env_package/alfworld/envs.py:203
↓ 6 callersFunctioncollect_normalized_locals
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/expressions.c:1066
← previousnext →201–300 of 5,073, ranked by callers