MCPcopy Create free account

hub / github.com/Tencent/digitalhuman / functions

Functions5,073 in github.com/Tencent/digitalhuman

↓ 1,540 callersFunctionprint
(*args, **kwargs)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/detector/utils.py:260
↓ 1,317 callersMethodappend
(self, role, content)
SWF/src/base.py:124
↓ 1,008 callersFunctionprintf
(*texts)
SWF/src/utils.py:12
↓ 343 callersMethodinfo
( self, message, title="", title_color="", )
HATE/basic_hate/agentverse/logging.py:129
↓ 274 callersMethodformat
(self, record)
HATE/basic_hate/agentverse/logging.py:28
↓ 262 callersMethodto
move the batch to device Args: device (torch.device, str): torch device Returns: DataProto: the current Data
RLVER/code/verl/protocol.py:325
↓ 237 callersMethodget
(self)
RLVER/code/verl/protocol.py:642
↓ 233 callersMethodget
Return a tensor with the input `shape` as a view into the 1-D data starting at `start_index`.
RLVER/code/verl/utils/memory_buffer.py:43
↓ 221 callersMethodget
Return a tensor with the input `shape` as a view into the 1-D data starting at `start_index`.
RLVMR/code/verl/utils/memory_buffer.py:43
↓ 200 callersMethodsum
Returns arr[start] + ... + arr[end] :param start: (int) start position of the reduction (must be >= 0) :param end: (int) end
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/segment_tree.py:89
↓ 149 callersMethodfrom_pretrained
(cls, save_directory: Union[str, os.PathLike], **kwargs)
RLVER/code/tests/e2e/envs/digit_completion/tokenizer.py:154
↓ 146 callersMethodto
move the batch to device Args: device (torch.device, str): torch device Returns: DataProto: the current Data
RLVMR/code/verl/protocol.py:325
↓ 114 callersMethoderror
(self, title, message="")
HATE/basic_hate/agentverse/logging.py:145
↓ 104 callersMethoddebug
( self, message, title="", title_color="", )
HATE/basic_hate/agentverse/logging.py:121
↓ 104 callersFunctionprint_rank_0
If distributed is initialized, print only on rank 0.
RLVMR/code/verl/utils/megatron_utils.py:250
↓ 90 callersMethodwrite
(self, buf)
VISTA/LLaVA-VISTA/llava/utils.py:73
↓ 89 callersFunctionfree_ExpNode
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:1010
↓ 79 callersMethodmax
(self)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/detector/utils.py:61
↓ 70 callersMethodget
Set browser variables to corresponding link, page HTML for URL
RLVMR/code/agent_system/environments/env_package/webshop/webshop/web_agent_site/envs/web_agent_text_env.py:629
↓ 68 callersMethodpop
Pop a subset of the DataProto via `batch_keys` and `meta_info_keys` Args: batch_keys (list, optional): a list of strings indicati
RLVER/code/verl/protocol.py:374
↓ 68 callersMethodsub
(self, data: DataProto)
RLVER/code/tests/ray/test_colocated_workers.py:44
↓ 67 callersMethodsleep
Put the engine to sleep. The engine should not process any requests. The caller should guarantee that no requests are being processed
RLVER/code/llm.py:1239
↓ 66 callersFunctioncopy_Exp
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_pre.c:2316
↓ 66 callersMethodpop
Pop a subset of the DataProto via `batch_keys` and `meta_info_keys` Args: batch_keys (list, optional): a list of strings indicati
RLVMR/code/verl/protocol.py:374
↓ 63 callersMethodcopy
(self)
VISTA/LLaVA-VISTA/llava/conversation.py:180
↓ 63 callersMethodencode
(self, observation_strings, use_model)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:425
↓ 55 callersMethodload
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/agent.py:152
↓ 53 callersFunctionlog_gpu_memory_usage
(head: str, logger: logging.Logger = None, level=logging.DEBUG, rank: int = 0)
RLVMR/code/verl/utils/debug/performance.py:20
↓ 49 callersMethodchar
(self, pos: int = 0)
HATE/basic_hate/agentverse/llms/utils/jsonrepair.py:169
↓ 48 callersMethodupdate
(self, current_kl, n_steps)
RLVER/code/verl/trainer/ppo/core_algos.py:53
↓ 47 callersMethodsave_pretrained
(self, save_directory: Union[str, os.PathLike], **kwargs)
RLVER/code/tests/e2e/envs/digit_completion/tokenizer.py:147
↓ 46 callersFunctionlog_gpu_memory_usage
(head: str, logger: logging.Logger = None, level=logging.DEBUG, rank: int = 0)
RLVER/code/verl/utils/debug/performance.py:20
↓ 46 callersMethodmin
Returns min(arr[start], ..., arr[end]) :param start: (int) start position of the reduction (must be >= 0) :param end: (int)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/segment_tree.py:130
↓ 46 callersMethodnamed_parameters
(self)
RLVER/code/verl/utils/memory_buffer.py:208
↓ 46 callersMethodupdate
(self, current_kl, n_steps)
RLVMR/code/verl/trainer/ppo/core_algos.py:52
↓ 45 callersMethodload
(self, model, model_args={})
VISTA/TinyLLaVA-VISTA/tinyllava/training_recipe/base.py:137
↓ 45 callersMethodsearch
Wrapper for `receive` handler for performing search action on current page
RLVMR/code/agent_system/environments/env_package/webshop/webshop/web_agent_site/envs/web_agent_text_env.py:647
↓ 44 callersMethodget
(self)
RLVMR/code/verl/protocol.py:640
↓ 43 callersMethoddecode
Converts a sequence of ids in a string, using the tokenizer and vocabulary with options to remove special tokens and clean up tokeniz
RLVER/code/verl/workers/rollout/tokenizer.py:86
↓ 42 callersMethodadd
(self, idx: int, val: int)
RLVMR/code/verl/utils/seqlen_balancing.py:33
↓ 39 callersMethodget_object
(self, name, obj_dict)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/controller/base.py:82
↓ 39 callersMethodwarn
( self, message, title="", title_color="", )
HATE/basic_hate/agentverse/logging.py:137
↓ 37 callersFunctioncopy_Token
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/parse.c:60
↓ 37 callersMethodgetenv
(self, key)
RLVER/code/tests/ray/test_ray_local_envs.py:31
↓ 37 callersMethodis_end_of_document
(self, pos: int = 0)
HATE/basic_hate/agentverse/llms/utils/jsonrepair.py:181
↓ 35 callersMethodmasked_mean
(self, h_obs, obs_mask)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/model.py:228
↓ 35 callersMethodupdate
(self, messages, key=None)
SWF/src/base.py:119
↓ 34 callersFunction_timer
(name: str, timing_raw: Dict[str, float])
RLVMR/code/verl/trainer/ppo/ray_trainer.py:287
↓ 34 callersMethodinc
(self, by: int = 1)
HATE/basic_hate/agentverse/llms/utils/jsonrepair.py:172
↓ 34 callersFunctionprint_op_name
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:1396
↓ 33 callersFunctionnew_Token
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:72
↓ 32 callersMethodclose
Close the environment and release resources.
RLVMR/code/agent_system/environments/base.py:91
↓ 32 callersMethoddump
(self, data: io.BytesIO, name)
RLVER/code/verl/utils/debug/trajectory_tracker.py:59
↓ 32 callersFunctionsnake_case_deprecation_warning
()
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/utils.py:25
↓ 31 callersMethod__init__
(self, layer_num, size, dropout=0)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/layers.py:1298
↓ 31 callersMethodchunk
Split the batch among dim=0 into chunks. The meta_info is passed to each DataProto after split. Args: chunks (int): the number of
RLVMR/code/verl/protocol.py:490
↓ 31 callersMethoddevice
(self)
VISTA/LLaVA-VISTA/llava/model/multimodal_encoder/clip_encoder.py:68
↓ 31 callersMethodindex
Redirect to the search page with the given session ID
RLVMR/code/agent_system/environments/env_package/webshop/webshop/web_agent_site/envs/web_agent_text_env.py:354
↓ 30 callersMethodclone
(self)
RLVER/code/verl/workers/rollout/vllm_rollout/hard_player_simulator_dsv3.py:394
↓ 30 callersMethodstep
overrides ai2thor.controller.Controller.step() for smooth navigation and goal_condition updates
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/env/thor_env.py:140
↓ 29 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.
RLVMR/code/verl/protocol.py:523
↓ 29 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
RLVER/code/verl/protocol.py:289
↓ 29 callersMethodseed
(self, num)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/environment/alfred_hybrid.py:39
↓ 29 callersMethodstep
Execute text actions and return the next state, rewards, done flags, and additional information. Parameters: - text_
RLVMR/code/agent_system/environments/base.py:46
↓ 27 callersFunctioncopy_to_local
Copy src from hdfs to local if src is on hdfs or directly return src. If cache_dir is None, we will use the default cache dir of the system. Note
RLVER/code/verl/utils/fs.py:58
↓ 27 callersMethodinteract
(self, action, object_name)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/controller/mrcnn.py:348
↓ 26 callersFunctionprint_ExpNode
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:359
↓ 25 callersFunction_timer
(name: str, timing_raw: Dict[str, float])
RLVER/code/verl/trainer/ppo/ray_trainer.py:367
↓ 25 callersMethoddecode
(self, input_target_word_ids, input_target_word_masks, h_obs, obs_mask, current_dynamics, input_obs)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/model.py:179
↓ 25 callersMethodgenerate
( self, prompts: Union[PromptType, Sequence[PromptType]], /, sampling_params:
RLVER/code/llm.py:281
↓ 25 callersMethodload
(self, *args, **kwargs)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/environment/alfred_tw_env.py:44
↓ 24 callersMethodchunk
Split the batch among dim=0 into chunks. The meta_info is passed to each DataProto after split. Args: chunks (int): the number of
RLVER/code/verl/protocol.py:492
↓ 24 callersMethodencode
( self, prompts: Union[PromptType, Sequence[PromptType]], /, pooling_params: O
RLVER/code/llm.py:789
↓ 24 callersMethodget
(self, which=None)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:61
↓ 24 callersMethodparse
(self, output: LLMResult)
HATE/basic_hate/agentverse/output_parser/output_parser.py:36
↓ 23 callersMethodappend_message
(self, role, message)
VISTA/LLaVA-VISTA/llava/conversation.py:109
↓ 23 callersMethodapply
(self, **kwargs)
VISTA/TinyLLaVA-VISTA/tinyllava/data/template/formatter.py:13
↓ 23 callersFunctioncopy_to_local
Copy src from hdfs to local if src is on hdfs or directly return src. If cache_dir is None, we will use the default cache dir of the system. Note
RLVMR/code/verl/utils/fs.py:58
↓ 23 callersFunctionlog
Write the sequence of args, with no separators, to the console and output files (if you've configured an output file).
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:255
↓ 23 callersFunctionnew_TokenList
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:85
↓ 23 callersFunctionprint_fl_name
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:1337
↓ 23 callersMethodstep
(self, action)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/agents/agent_base.py:40
↓ 22 callersFunctionprint_ft_name
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:1327
↓ 22 callersFunctionto_pt
(np_matrix, enable_cuda=False, type='long')
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/generic.py:16
↓ 22 callersMethodunion
Union with another DataProto. Union batch and meta_info separately. Throw an error if - there are conflict keys in batch and they are
RLVER/code/verl/protocol.py:434
↓ 22 callersMethodunion
Union with another DataProto. Union batch and meta_info separately. Throw an error if - there are conflict keys in batch and they are
RLVMR/code/verl/protocol.py:432
↓ 21 callersFunctionfact_adress
bit complicated to avoid memory explosion when high arity predicates take * num_obs ^ arity space. take space for individual arg types only; * must
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_final.c:366
↓ 21 callersFunctionprint_Fact
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:1252
↓ 21 callersFunctiontokenizer_image_token
( prompt, tokenizer, image_token_index=IMAGE_TOKEN_INDEX, return_tensors=None )
VISTA/LLaVA-VISTA/llava/mm_utils.py:186
↓ 20 callersMethodaggretate_information
(self, h_obs, obs_mask, h_td, td_mask)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/model.py:129
↓ 20 callersMethodget_word_input
(self, input_strings)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:288
↓ 20 callersMethodinit
(self)
RLVER/code/tests/ray/test_rvdz.py:27
↓ 20 callersMethodlog
(self, data, step, backend=None)
RLVER/code/verl/utils/tracking.py:95
↓ 20 callersFunctionnumber_comparison_holds
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/expressions.c:87
↓ 20 callersFunctionprint_indent
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:120
↓ 20 callersMethodsave
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/agent.py:158
↓ 20 callersMethodselect
Select a subset of the DataProto via batch_keys and meta_info_keys Args: batch_keys (list, optional): a list of strings indicatin
RLVMR/code/verl/protocol.py:339
↓ 20 callersFunctionto_np
(x)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/generic.py:10
↓ 19 callersMethodembed_tokens
(self, x)
VISTA/LLaVA-VISTA/llava/model/language_model/llava_mpt.py:36
↓ 19 callersFunctionhf_tokenizer
Create a huggingface pretrained tokenizer which correctness handles eos and pad tokens. Args: name (str): The name of the tokenizer.
RLVER/code/verl/utils/tokenizer.py:35
next →1–100 of 5,073, ranked by callers