MCPcopy Create free account

hub / github.com/Tencent/digitalhuman / functions

Functions5,073 in github.com/Tencent/digitalhuman

↓ 19 callersMethodsample
(self, batch_size)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/memory.py:299
↓ 18 callersFunctiongather_seq_scatter_heads
A func to sync embedding input with alltoall in sequence parallel gather sequence dimension and scatter head dim: e.g. seq_dim: 1, head_d
RLVMR/code/verl/utils/ulysses.py:61
↓ 18 callersFunctionoffload_fsdp_model_to_cpu
(model: FSDP, empty_cache: bool = True)
RLVMR/code/verl/utils/fsdp_utils.py:115
↓ 18 callersMethodrepeat
Repeat the batch data a specified number of times. Args: repeat_times (int): Number of times to repeat the data.
RLVER/code/verl/protocol.py:557
↓ 18 callersMethodrepeat
Repeat the batch data a specified number of times. Args: repeat_times (int): Number of times to repeat the data.
RLVMR/code/verl/protocol.py:555
↓ 17 callersFunctioncompute_mask
(x)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/layers.py:8
↓ 17 callersMethodconcat
Concat a list of DataProto. The batch is concatenated among dim=0. The meta_info is assumed to be identical and will use the first one.
RLVER/code/verl/protocol.py:525
↓ 17 callersMethodexecute_all_sync
(self, method_name: str, *args, **kwargs)
RLVER/code/verl/single_controller/ray/base.py:332
↓ 17 callersFunctionhf_tokenizer
Create a huggingface pretrained tokenizer which correctness handles eos and pad tokens. Args: name (str): The name of the tokenizer.
RLVMR/code/verl/utils/tokenizer.py:35
↓ 17 callersFunctionnew_PlNode
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:168
↓ 16 callersMethod__init__
(self, config)
VISTA/TinyLLaVA-VISTA/tinyllava/model/connector/qformer.py:13
↓ 16 callersMethodbackward
(ctx: Any, grad_output: Tensor)
RLVMR/code/verl/utils/ulysses.py:226
↓ 16 callersMethodcheck_action_success
(self, event)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/game_state_base.py:880
↓ 16 callersMethodclick
Wrapper for `receive` handler for performing click action on current page
RLVMR/code/agent_system/environments/env_package/webshop/webshop/web_agent_site/envs/web_agent_text_env.py:636
↓ 16 callersFunctionconvert_config
(hf_config: PretrainedConfig, megatron_config)
RLVMR/code/verl/utils/megatron_utils.py:156
↓ 16 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
RLVER/code/verl/utils/torch_functional.py:261
↓ 15 callersMethoddump
(self, data: io.BytesIO, name)
RLVMR/code/verl/utils/debug/trajectory_tracker.py:59
↓ 15 callersMethodencode
1. get list form messages(conversations:[{from:human, value:message}, {from:gpt, value:message}]) ===> human_list, value_list
VISTA/TinyLLaVA-VISTA/tinyllava/data/template/base.py:22
↓ 15 callersMethodfrom_dict
Create a DataProto from a dict of tensors. This assumes that 1. All the tensor in tensors have the same dim0 2. Only dim0 is the batch
RLVMR/code/verl/protocol.py:290
↓ 15 callersFunctionget_objects_with_name_and_prop
(name, prop, metadata)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/utils/game_util.py:306
↓ 15 callersFunctionload_fsdp_model_to_gpu
(model: FSDP)
RLVMR/code/verl/utils/fsdp_utils.py:136
↓ 15 callersMethodstep
(self, action_str)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/controller/base.py:226
↓ 15 callersMethodto_dtype
(precision)
RLVMR/code/verl/utils/torch_dtypes.py:63
↓ 14 callersFunctionfree_WffNode
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:1026
↓ 14 callersMethodget_prompt
(self)
VISTA/LLaVA-VISTA/llava/conversation.py:32
↓ 14 callersMethodinit
(self, batch_size)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:285
↓ 14 callersMethodload
Load a valid task and its variations/simplifications, and set up the simulator and any task-specific properties (electrical, etc). Can optiona
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/scienceworld.py:88
↓ 14 callersMethodlog
(self, data, step, backend=None)
RLVMR/code/verl/utils/tracking.py:104
↓ 14 callersFunctionto_numpy
(data)
RLVMR/code/agent_system/environments/base.py:8
↓ 13 callersFunction_timer
(name: str, timing_raw: Dict[str, float])
RLVER/code/verl/trainer/ppo/ray_trainer_think.py:366
↓ 13 callersMethodfrom_config
(cls, config: Dict)
RLVER/code/tests/e2e/envs/digit_completion/tokenizer.py:140
↓ 13 callersMethodload
(self)
HATE/basic_hate/dataloader/browsecomp.py:11
↓ 13 callersMethodnamed_parameters
(self)
RLVMR/code/verl/utils/memory_buffer.py:208
↓ 13 callersMethodreset
Resets the simulator back to the first move (the output of "look around" is returned)
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/scienceworld.py:137
↓ 13 callersMethodreward_fn
(domain, predict: str, answer: Union[str, List])
SWF/src/metric.py:130
↓ 13 callersMethodrun
inst: instruction
SWF/src/base.py:86
↓ 13 callersFunctionset_relevants_in_exp
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_final.c:1034
↓ 13 callersMethodstep
Take a step. This function takes one step in the typical state-action-reward cycle of RL. :param input_str: The input string supplied
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/scienceworld.py:410
↓ 13 callersMethodstep
(self, action_or_ind, process_frame=True)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/game_state_base.py:376
↓ 13 callersMethodstep
(self, action)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/env.py:150
↓ 12 callersMethodaction_scoring
(self, action_candidate_list, h_obs, obs_mask, h_td, td_mask, previous_dynamics, use_model=None)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:429
↓ 12 callersMethodadd
(self, idx: int, val: int)
RLVER/code/verl/utils/seqlen_balancing.py:33
↓ 12 callersFunctionapply_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/LLaVA-VISTA/llava/train/modeling_llama.py:220
↓ 12 callersFunctioncopy
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
RLVMR/code/verl/utils/hdfs_io.py:84
↓ 12 callersFunctiongather_seq_scatter_heads
A func to sync embedding input with alltoall in sequence parallel gather sequence dimension and scatter head dim: e.g. seq_dim: 1, head_d
RLVER/code/verl/utils/ulysses.py:61
↓ 12 callersMethodget
Return a tensor with the input `shape` as a view into the 1-D data starting at `start_index`.
RLVMR/code/verl/utils/megatron/memory.py:33
↓ 12 callersFunctionget_type
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/parse.c:708
↓ 12 callersFunctionmasked_mean
Compute mean of tensor with a masked values.
RLVER/code/verl/utils/torch_functional.py:118
↓ 12 callersFunctionnew_WffNode
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:362
↓ 12 callersFunctionprint_Fluent
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:1306
↓ 12 callersMethodto_gradio_chatbot
(self)
VISTA/LLaVA-VISTA/llava/conversation.py:162
↓ 12 callersMethodtrain
(self)
RLVER/code/verl/workers/sharding_manager/megatron_vllm.py:169
↓ 11 callersMethod__init__
(self, config)
VISTA/TinyLLaVA-VISTA/tinyllava/model/llm/modeling_phi.py:203
↓ 11 callersMethodadd_message_to_memory
Add a message to the memory
HATE/basic_hate/agentverse/agents/base.py:49
↓ 11 callersMethodastep
( self, agent: ExecutorAgent, task_description: str, solution: List[str],
HATE/basic_hate/agentverse/environments/tasksolving_env/rules/executor/base.py:29
↓ 11 callersMethodclear
(self)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/graph/graph_obj.py:97
↓ 11 callersFunctioncompute_position_id_with_mask
(mask)
RLVER/code/verl/utils/model.py:194
↓ 11 callersMethodencode
Encode an observation
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/agent.py:71
↓ 11 callersMethodflush
(self)
VISTA/LLaVA-VISTA/llava/utils.py:87
↓ 11 callersFunctionget_ulysses_sequence_parallel_world_size
Get ulysses sequence parallel world size.
RLVER/code/verl/utils/ulysses.py:45
↓ 11 callersFunctionget_ulysses_sequence_parallel_world_size
Get ulysses sequence parallel world size.
RLVMR/code/verl/utils/ulysses.py:45
↓ 11 callersFunctionmakedirs
r"""Works like os.makedirs() but supports hdfs. Super-mkdir; create a leaf directory and all intermediate ones. Works like mkdir, except tha
RLVMR/code/verl/utils/hdfs_io.py:50
↓ 11 callersMethodpreprocess_data
(self, data: DataProto)
RLVMR/code/verl/workers/sharding_manager/base.py:29
↓ 11 callersMethodreset_noise
(self)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/layers.py:904
↓ 11 callersMethodsave
(self, model, trainer)
VISTA/TinyLLaVA-VISTA/tinyllava/training_recipe/base.py:95
↓ 11 callersMethodto_dtype
(precision)
RLVER/code/verl/utils/torch_dtypes.py:63
↓ 11 callersFunctionunwrap_model
(model, module_instances=ALL_MODULE_WRAPPER_CLASSNAMES)
RLVMR/code/verl/utils/megatron_utils.py:138
↓ 10 callersMethodadd_message
(self, question, answer=None)
VISTA/TinyLLaVA-VISTA/tinyllava/utils/message.py:14
↓ 10 callersMethodbackward
(ctx: Any, grad_output: Tensor)
RLVER/code/verl/utils/ulysses.py:226
↓ 10 callersMethodcheck_obj_visibility
(self, action, min_pixels=constants.MIN_VISIBLE_PIXELS)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/game_state_base.py:869
↓ 10 callersMethoddecode
Converts a sequence of ids in a string, using the tokenizer and vocabulary with options to remove special tokens and clean up tokeniz
RLVMR/code/verl/workers/rollout/tokenizer.py:86
↓ 10 callersMethodget_model
(self)
VISTA/LLaVA-VISTA/llava/model/llava_arch.py:134
↓ 10 callersFunctionget_ulysses_sequence_parallel_group
Get ulysses sequence parallel process group.
RLVMR/code/verl/utils/ulysses.py:37
↓ 10 callersFunctionmake_state
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:778
↓ 10 callersFunctionmap_action_to_html
(action, **kwargs)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/web_agent_site/engine/engine.py:44
↓ 10 callersFunctionmasked_softmax
Softmax with mask (optional)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/layers.py:89
↓ 10 callersFunctionoffload_fsdp_model_to_cpu
(model: FSDP, empty_cache: bool = True)
RLVER/code/verl/utils/fsdp_utils.py:111
↓ 10 callersFunctionparse_action_arg
(action_arg)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/planner/ff_planner_handler.py:58
↓ 10 callersMethodpostprocess_data
(self, data: DataProto)
RLVMR/code/verl/workers/sharding_manager/base.py:32
↓ 10 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
VISTA/LLaVA-VISTA/llava/train/modeling_llama.py:292
↓ 9 callersMethod__init__
(self, config)
VISTA/LLaVA-VISTA/llava/train/modeling_llama.py:248
↓ 9 callersMethodadd_message
(self, messages: List[Message])
HATE/basic_hate/agentverse/memory/base.py:11
↓ 9 callersMethodall_gather
(self)
RLVER/code/tests/ray/test_worker_group_torch.py:40
↓ 9 callersFunctionappend_to_dict
(data: Dict, new_data: Dict)
RLVMR/code/verl/utils/py_functional.py:41
↓ 9 callersMethodbeam_search_candidate_scoring
(self, action_candidate_list, aggregated_obs_representation, obs_mask, current_dynamics, use_model=None)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:444
↓ 9 callersMethodbuild
(self, type: str, **kwargs)
HATE/basic_hate/agentverse/registry.py:19
↓ 9 callersMethoddict
(self)
VISTA/LLaVA-VISTA/llava/conversation.py:191
↓ 9 callersMethodeval
(self)
RLVER/code/verl/workers/sharding_manager/megatron_vllm.py:165
↓ 9 callersMethodeval
Tell the agent that it's evaluation phase.
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:240
↓ 9 callersMethodgenerate_sequences
Generate sequences
RLVER/code/verl/workers/rollout/base.py:35
↓ 9 callersFunctionget_logger
()
HATE/basic_hate/agentverse/logging.py:285
↓ 9 callersMethodget_megatron_rank_info
(self)
RLVER/code/verl/single_controller/base/megatron/worker.py:31
↓ 9 callersMethodget_megatron_rank_info
(self)
RLVMR/code/verl/single_controller/base/megatron/worker.py:31
↓ 9 callersFunctionget_object
(object_id, metadata)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/utils/game_util.py:281
↓ 9 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/eval_v2_benchmark.py:107
↓ 9 callersMethodget_rng_state
()
RLVMR/code/verl/utils/checkpoint/checkpoint_manager.py:107
↓ 9 callersMethodget_task_names
Get the name for the supported tasks in ScienceWorld.
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/scienceworld.py:189
↓ 9 callersFunctionget_ulysses_sequence_parallel_group
Get ulysses sequence parallel process group.
RLVER/code/verl/utils/ulysses.py:37
↓ 9 callersMethodget_word_input_from_ids
(self, word_id_list)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:292
↓ 9 callersMethodinit_model
(self)
RLVER/code/verl/workers/fsdp_workers.py:803
← previousnext →101–200 of 5,073, ranked by callers