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
↓ 1,540 callers
Function
print
(*args, **kwargs)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/detector/utils.py:260
↓ 1,317 callers
Method
append
(self, role, content)
SWF/src/base.py:124
↓ 1,008 callers
Function
printf
(*texts)
SWF/src/utils.py:12
↓ 343 callers
Method
info
( self, message, title="", title_color="", )
HATE/basic_hate/agentverse/logging.py:129
↓ 274 callers
Method
format
(self, record)
HATE/basic_hate/agentverse/logging.py:28
↓ 262 callers
Method
to
move the batch to device Args: device (torch.device, str): torch device Returns: DataProto: the current Data
RLVER/code/verl/protocol.py:325
↓ 237 callers
Method
get
(self)
RLVER/code/verl/protocol.py:642
↓ 233 callers
Method
get
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 callers
Method
get
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 callers
Method
sum
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 callers
Method
from_pretrained
(cls, save_directory: Union[str, os.PathLike], **kwargs)
RLVER/code/tests/e2e/envs/digit_completion/tokenizer.py:154
↓ 146 callers
Method
to
move the batch to device Args: device (torch.device, str): torch device Returns: DataProto: the current Data
RLVMR/code/verl/protocol.py:325
↓ 114 callers
Method
error
(self, title, message="")
HATE/basic_hate/agentverse/logging.py:145
↓ 104 callers
Method
debug
( self, message, title="", title_color="", )
HATE/basic_hate/agentverse/logging.py:121
↓ 104 callers
Function
print_rank_0
If distributed is initialized, print only on rank 0.
RLVMR/code/verl/utils/megatron_utils.py:250
↓ 90 callers
Method
write
(self, buf)
VISTA/LLaVA-VISTA/llava/utils.py:73
↓ 89 callers
Function
free_ExpNode
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:1010
↓ 79 callers
Method
max
(self)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/detector/utils.py:61
↓ 70 callers
Method
get
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 callers
Method
pop
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 callers
Method
sub
(self, data: DataProto)
RLVER/code/tests/ray/test_colocated_workers.py:44
↓ 67 callers
Method
sleep
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 callers
Function
copy_Exp
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_pre.c:2316
↓ 66 callers
Method
pop
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 callers
Method
copy
(self)
VISTA/LLaVA-VISTA/llava/conversation.py:180
↓ 63 callers
Method
encode
(self, observation_strings, use_model)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:425
↓ 55 callers
Method
load
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/agent.py:152
↓ 53 callers
Function
log_gpu_memory_usage
(head: str, logger: logging.Logger = None, level=logging.DEBUG, rank: int = 0)
RLVMR/code/verl/utils/debug/performance.py:20
↓ 49 callers
Method
char
(self, pos: int = 0)
HATE/basic_hate/agentverse/llms/utils/jsonrepair.py:169
↓ 48 callers
Method
update
(self, current_kl, n_steps)
RLVER/code/verl/trainer/ppo/core_algos.py:53
↓ 47 callers
Method
save_pretrained
(self, save_directory: Union[str, os.PathLike], **kwargs)
RLVER/code/tests/e2e/envs/digit_completion/tokenizer.py:147
↓ 46 callers
Function
log_gpu_memory_usage
(head: str, logger: logging.Logger = None, level=logging.DEBUG, rank: int = 0)
RLVER/code/verl/utils/debug/performance.py:20
↓ 46 callers
Method
min
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 callers
Method
named_parameters
(self)
RLVER/code/verl/utils/memory_buffer.py:208
↓ 46 callers
Method
update
(self, current_kl, n_steps)
RLVMR/code/verl/trainer/ppo/core_algos.py:52
↓ 45 callers
Method
load
(self, model, model_args={})
VISTA/TinyLLaVA-VISTA/tinyllava/training_recipe/base.py:137
↓ 45 callers
Method
search
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 callers
Method
get
(self)
RLVMR/code/verl/protocol.py:640
↓ 43 callers
Method
decode
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 callers
Method
add
(self, idx: int, val: int)
RLVMR/code/verl/utils/seqlen_balancing.py:33
↓ 39 callers
Method
get_object
(self, name, obj_dict)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/controller/base.py:82
↓ 39 callers
Method
warn
( self, message, title="", title_color="", )
HATE/basic_hate/agentverse/logging.py:137
↓ 37 callers
Function
copy_Token
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/parse.c:60
↓ 37 callers
Method
getenv
(self, key)
RLVER/code/tests/ray/test_ray_local_envs.py:31
↓ 37 callers
Method
is_end_of_document
(self, pos: int = 0)
HATE/basic_hate/agentverse/llms/utils/jsonrepair.py:181
↓ 35 callers
Method
masked_mean
(self, h_obs, obs_mask)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/model.py:228
↓ 35 callers
Method
update
(self, messages, key=None)
SWF/src/base.py:119
↓ 34 callers
Function
_timer
(name: str, timing_raw: Dict[str, float])
RLVMR/code/verl/trainer/ppo/ray_trainer.py:287
↓ 34 callers
Method
inc
(self, by: int = 1)
HATE/basic_hate/agentverse/llms/utils/jsonrepair.py:172
↓ 34 callers
Function
print_op_name
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:1396
↓ 33 callers
Function
new_Token
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:72
↓ 32 callers
Method
close
Close the environment and release resources.
RLVMR/code/agent_system/environments/base.py:91
↓ 32 callers
Method
dump
(self, data: io.BytesIO, name)
RLVER/code/verl/utils/debug/trajectory_tracker.py:59
↓ 32 callers
Function
snake_case_deprecation_warning
()
RLVMR/code/agent_system/environments/env_package/sciworld/ScienceWorld/scienceworld/utils.py:25
↓ 31 callers
Method
__init__
(self, layer_num, size, dropout=0)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/layers.py:1298
↓ 31 callers
Method
chunk
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 callers
Method
device
(self)
VISTA/LLaVA-VISTA/llava/model/multimodal_encoder/clip_encoder.py:68
↓ 31 callers
Method
index
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 callers
Method
clone
(self)
RLVER/code/verl/workers/rollout/vllm_rollout/hard_player_simulator_dsv3.py:394
↓ 30 callers
Method
step
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 callers
Method
concat
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 callers
Method
from_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 callers
Method
seed
(self, num)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/environment/alfred_hybrid.py:39
↓ 29 callers
Method
step
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 callers
Function
copy_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 callers
Method
interact
(self, action, object_name)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/controller/mrcnn.py:348
↓ 26 callers
Function
print_ExpNode
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:359
↓ 25 callers
Function
_timer
(name: str, timing_raw: Dict[str, float])
RLVER/code/verl/trainer/ppo/ray_trainer.py:367
↓ 25 callers
Method
decode
(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 callers
Method
generate
( self, prompts: Union[PromptType, Sequence[PromptType]], /, sampling_params:
RLVER/code/llm.py:281
↓ 25 callers
Method
load
(self, *args, **kwargs)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/environment/alfred_tw_env.py:44
↓ 24 callers
Method
chunk
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 callers
Method
encode
( self, prompts: Union[PromptType, Sequence[PromptType]], /, pooling_params: O
RLVER/code/llm.py:789
↓ 24 callers
Method
get
(self, which=None)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:61
↓ 24 callers
Method
parse
(self, output: LLMResult)
HATE/basic_hate/agentverse/output_parser/output_parser.py:36
↓ 23 callers
Method
append_message
(self, role, message)
VISTA/LLaVA-VISTA/llava/conversation.py:109
↓ 23 callers
Method
apply
(self, **kwargs)
VISTA/TinyLLaVA-VISTA/tinyllava/data/template/formatter.py:13
↓ 23 callers
Function
copy_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 callers
Function
log
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 callers
Function
new_TokenList
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:85
↓ 23 callers
Function
print_fl_name
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:1337
↓ 23 callers
Method
step
(self, action)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/agents/agent_base.py:40
↓ 22 callers
Function
print_ft_name
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:1327
↓ 22 callers
Function
to_pt
(np_matrix, enable_cuda=False, type='long')
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/generic.py:16
↓ 22 callers
Method
union
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 callers
Method
union
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 callers
Function
fact_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 callers
Function
print_Fact
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:1252
↓ 21 callers
Function
tokenizer_image_token
( prompt, tokenizer, image_token_index=IMAGE_TOKEN_INDEX, return_tensors=None )
VISTA/LLaVA-VISTA/llava/mm_utils.py:186
↓ 20 callers
Method
aggretate_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 callers
Method
get_word_input
(self, input_strings)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:288
↓ 20 callers
Method
init
(self)
RLVER/code/tests/ray/test_rvdz.py:27
↓ 20 callers
Method
log
(self, data, step, backend=None)
RLVER/code/verl/utils/tracking.py:95
↓ 20 callers
Function
number_comparison_holds
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/expressions.c:87
↓ 20 callers
Function
print_indent
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:120
↓ 20 callers
Method
save
(self)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/agent.py:158
↓ 20 callers
Method
select
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 callers
Function
to_np
(x)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/modules/generic.py:10
↓ 19 callers
Method
embed_tokens
(self, x)
VISTA/LLaVA-VISTA/llava/model/language_model/llava_mpt.py:36
↓ 19 callers
Function
hf_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