MCPcopy Create free account

hub / github.com/ZJU-REAL/SkillZero / functions

Functions3,531 in github.com/ZJU-REAL/SkillZero

↓ 929 callersFunctionprint
(*args, **kwargs)
agent_system/environments/env_package/alfworld/alfworld/agents/detector/utils.py:260
↓ 402 callersMethodget
Return a tensor with the input `shape` as a view into the 1-D data starting at `start_index`.
verl/utils/memory_buffer.py:43
↓ 245 callersMethodto
move the batch to device Args: device (torch.device, str): torch device Returns: DataProto: the current Data
verl/protocol.py:477
↓ 204 callersMethodsum
Returns arr[start] + ... + arr[end] :param start: (int) start position of the reduction (must be >= 0) :param end: (int) end
agent_system/environments/env_package/alfworld/alfworld/agents/modules/segment_tree.py:89
↓ 171 callersMethodget
(self)
verl/protocol.py:969
↓ 145 callersMethodget_rank
(self)
tests/workers/rollout/test_sglang_async_rollout_sf_tools.py:406
↓ 121 callersMethodget
(self, which=None)
agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:61
↓ 108 callersMethodpop
Pop a subset of the DataProto via `batch_keys` and `meta_info_keys` Args: batch_keys (list, optional): a list of strings indicati
verl/protocol.py:608
↓ 89 callersFunctionfree_ExpNode
agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:1010
↓ 85 callersFunctionlog_gpu_memory_usage
(head: str, logger: logging.Logger = None, level=logging.DEBUG, rank: int = 0)
verl/utils/debug/performance.py:49
↓ 84 callersFunctionprint_rank_0
If distributed is initialized, print only on rank 0.
verl/utils/megatron_utils.py:422
↓ 76 callersMethodget
Set browser variables to corresponding link, page HTML for URL
agent_system/environments/env_package/webshop/webshop/web_agent_site/envs/web_agent_text_env.py:628
↓ 67 callersMethodfrom_pretrained
(cls, save_directory: Union[str, os.PathLike], **kwargs)
tests/e2e/envs/digit_completion/tokenizer.py:149
↓ 66 callersFunctioncopy_Exp
agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_pre.c:2316
↓ 63 callersMethodencode
(self, observation_strings, use_model)
agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:425
↓ 63 callersMethodmax
(self)
agent_system/environments/env_package/alfworld/alfworld/agents/detector/utils.py:61
↓ 61 callersFunction_timer
Context manager for timing code execution. This utility function measures the execution time of code within its context and accumulates the t
verl/trainer/ppo/ray_trainer.py:366
↓ 58 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
verl/protocol.py:744
↓ 58 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
verl/protocol.py:438
↓ 55 callersFunctionget_torch_device
Return the corresponding torch attribute based on the device type string. Returns: module: The corresponding torch device namespace, or to
verl/utils/device.py:55
↓ 54 callersMethodadd
(self, idx: int, val: int)
verl/utils/seqlen_balancing.py:30
↓ 53 callersMethodupdate
(self, current_kl, n_steps)
recipe/spin/core_algos.py:46
↓ 51 callersMethodcopy
Create a deep copy of the environment.
agent_system/environments/env_package/sokoban/sokoban/base.py:214
↓ 49 callersMethodupdate
(self, current_kl, n_steps)
verl/trainer/ppo/core_algos.py:53
↓ 44 callersMethodsleep
Sleep engine to offload model weights and discard kv cache.
verl/workers/rollout/async_server.py:103
↓ 43 callersMethodgetenv
(self, key)
tests/ray_cpu/test_ray_local_envs.py:31
↓ 42 callersMethodmin
Returns min(arr[start], ..., arr[end]) :param start: (int) start position of the reduction (must be >= 0) :param end: (int)
agent_system/environments/env_package/alfworld/alfworld/agents/modules/segment_tree.py:130
↓ 40 callersMethodinit
(self)
tests/ray_gpu/test_rvdz.py:26
↓ 40 callersMethodvalues
(cls)
verl/utils/py_functional.py:223
↓ 39 callersFunctioncopy_to_local
Copy files/directories from HDFS to local cache with validation. Args: src (str): Source path - HDFS path (hdfs://...) or local filesyste
verl/utils/fs.py:191
↓ 39 callersMethodget
Return a tensor with the input `shape` as a view into the 1-D data starting at `start_index`.
verl/utils/megatron/memory.py:29
↓ 38 callersMethodselect
Select a subset of the DataProto via batch_keys and meta_info_keys Args: batch_keys (list, optional): a list of strings indicatin
verl/protocol.py:491
↓ 38 callersMethodunion
Union with another DataProto. Union batch and meta_info separately. Throw an error if - there are conflict keys in batch and they are
verl/protocol.py:666
↓ 37 callersFunctioncopy_Token
agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/parse.c:60
↓ 37 callersMethoddecode
Converts a sequence of ids in a string, using the tokenizer and vocabulary with options to remove special tokens and clean up tokeniz
verl/workers/rollout/tokenizer.py:90
↓ 37 callersMethodget_object
(self, name, obj_dict)
agent_system/environments/env_package/alfworld/alfworld/agents/controller/base.py:82
↓ 37 callersMethodload
(self)
agent_system/environments/env_package/webshop/webshop/baseline_models/agent.py:152
↓ 35 callersMethodrepeat
Repeat the batch data a specified number of times. Args: repeat_times (int): Number of times to repeat the data.
verl/protocol.py:812
↓ 34 callersFunctionprint_op_name
agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:1396
↓ 33 callersFunctionnew_Token
agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:72
↓ 32 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.
verl/protocol.py:782
↓ 31 callersMethod__init__
(self, layer_num, size, dropout=0)
agent_system/environments/env_package/alfworld/alfworld/agents/modules/layers.py:1298
↓ 30 callersMethodbackward
(ctx: Any, grad_output: Tensor)
verl/utils/ulysses.py:224
↓ 29 callersMethodcreate
Create a tool instance. Args: instance_id: The instance id of the tool. Returns: The instance id of the tool
verl/tools/base_tool.py:41
↓ 29 callersFunctionhf_tokenizer
Create a huggingface pretrained tokenizer which correctness handles eos and pad tokens. Args: name (str): The name of the tokenizer.
verl/utils/tokenizer.py:36
↓ 28 callersMethodstep
(self)
verl/utils/debug/profile.py:66
↓ 27 callersMethodinteract
(self, action, object_name)
agent_system/environments/env_package/alfworld/alfworld/agents/controller/mrcnn.py:348
↓ 27 callersMethodmasked_mean
(self, h_obs, obs_mask)
agent_system/environments/env_package/alfworld/alfworld/agents/modules/model.py:228
↓ 27 callersMethodseed
(self, num)
agent_system/environments/env_package/alfworld/alfworld/agents/environment/alfred_hybrid.py:39
↓ 26 callersFunctionprint_ExpNode
agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:359
↓ 25 callersMethoddecode
(self, input_target_word_ids, input_target_word_masks, h_obs, obs_mask, current_dynamics, input_obs)
agent_system/environments/env_package/alfworld/alfworld/agents/modules/model.py:179
↓ 25 callersMethodlog
(self, data, step, backend=None)
verl/utils/tracking.py:127
↓ 25 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
verl/utils/torch_functional.py:280
↓ 24 callersMethodload
(self, *args, **kwargs)
agent_system/environments/env_package/alfworld/alfworld/agents/environment/alfred_tw_env.py:44
↓ 24 callersMethodstep
(self, action)
agent_system/environments/env_package/alfworld/alfworld/gen/agents/agent_base.py:40
↓ 23 callersFunctionlog
Write the sequence of args, with no separators, to the console and output files (if you've configured an output file).
agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:255
↓ 23 callersFunctionnew_TokenList
agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:85
↓ 23 callersFunctionoffload_fsdp_model_to_cpu
(model: FSDP, empty_cache: bool = True)
verl/utils/fsdp_utils.py:130
↓ 23 callersFunctionprint_fl_name
agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:1337
↓ 22 callersMethodindex
Redirect to the search page with the given session ID
agent_system/environments/env_package/webshop/webshop/web_agent_site/envs/web_agent_text_env.py:353
↓ 22 callersFunctionprint_ft_name
agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:1327
↓ 22 callersFunctionto_pt
(np_matrix, enable_cuda=False, type='long')
agent_system/environments/env_package/alfworld/alfworld/agents/modules/generic.py:16
↓ 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
agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/inst_final.c:366
↓ 21 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
verl/utils/ulysses.py:62
↓ 21 callersFunctionprint_Fact
agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:1252
↓ 20 callersMethodaggretate_information
(self, h_obs, obs_mask, h_td, td_mask)
agent_system/environments/env_package/alfworld/alfworld/agents/modules/model.py:129
↓ 20 callersMethodget_word_input
(self, input_strings)
agent_system/environments/env_package/alfworld/alfworld/agents/agent/base_agent.py:288
↓ 20 callersFunctionnumber_comparison_holds
agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/expressions.c:87
↓ 20 callersFunctionprint_indent
agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/output.c:120
↓ 20 callersMethodremove
(cls, name: str)
verl/utils/py_functional.py:259
↓ 20 callersMethodsave_pretrained
(self, save_directory: Union[str, os.PathLike], **kwargs)
tests/e2e/envs/digit_completion/tokenizer.py:142
↓ 20 callersMethodsub
(self, x)
tests/ray_cpu/test_fused_workers.py:40
↓ 20 callersFunctionto_np
(x)
agent_system/environments/env_package/alfworld/alfworld/agents/modules/generic.py:10
↓ 18 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
verl/utils/hdfs_io.py:84
↓ 18 callersMethodget
(self)
verl/utils/rendezvous/ray_backend.py:28
↓ 18 callersFunctionload_fsdp_model_to_gpu
(model: FSDP)
verl/utils/fsdp_utils.py:161
↓ 18 callersMethodnamed_parameters
(self)
verl/utils/memory_buffer.py:205
↓ 18 callersFunctionrearrange_micro_batches
Split a batch into micro-batches by total token count, with optional DP sync and padding. Args: batch (TensorDict): must include "at
verl/utils/seqlen_balancing.py:229
↓ 18 callersMethodregister
(cls, name: str)
verl/utils/py_functional.py:248
↓ 18 callersFunctionto_numpy
(data)
agent_system/environments/base.py:24
↓ 17 callersFunctioncompute_mask
(x)
agent_system/environments/env_package/alfworld/alfworld/agents/modules/layers.py:8
↓ 17 callersMethodexecute_all_sync
Execute a method on all workers synchronously. Args: method_name: Name of the method to execute *args: Positional arg
verl/single_controller/ray/base.py:561
↓ 17 callersFunctionnew_PlNode
agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:168
↓ 17 callersMethodpostprocess_data
(self, data: DataProto)
verl/workers/sharding_manager/base.py:31
↓ 17 callersMethodsample
(self, batch_size)
agent_system/environments/env_package/alfworld/alfworld/agents/modules/memory.py:299
↓ 16 callersMethodcheck_action_success
(self, event)
agent_system/environments/env_package/alfworld/alfworld/gen/game_states/game_state_base.py:880
↓ 16 callersFunctioncompute_position_id_with_mask
(mask)
verl/utils/model.py:204
↓ 16 callersFunctionconvert_config
(hf_config: PretrainedConfig, megatron_config)
verl/utils/megatron_utils.py:159
↓ 16 callersFunctionmakedirs
r"""Works like os.makedirs() but supports hdfs. Super-mkdir; create a leaf directory and all intermediate ones. Works like mkdir, except tha
verl/utils/hdfs_io.py:50
↓ 16 callersMethodpreprocess_data
(self, data: DataProto)
verl/workers/sharding_manager/base.py:28
↓ 16 callersMethodto_dtype
(precision)
verl/utils/torch_dtypes.py:63
↓ 15 callersFunctioncheck_correctness
Check correctness of code generation with a global timeout. The global timeout is to catch some extreme/rare cases not handled by the timeouts
verl/utils/reward_score/prime_code/utils.py:41
↓ 15 callersFunctionfsdp_version
(model)
verl/utils/fsdp_utils.py:378
↓ 15 callersMethodgenerate_sequences
Generate sequences
verl/workers/rollout/base.py:33
↓ 15 callersMethodsearch
(self, query: str, num: int = None, return_score: bool = False)
examples/search/retriever/retrieval_server.py:128
↓ 15 callersMethodstep
(self, action_str)
agent_system/environments/env_package/alfworld/alfworld/agents/controller/base.py:226
↓ 14 callersFunctionagg_loss
Aggregate the loss matrix into a scalar. Args: loss_mat: `(torch.Tensor)`: shape: (bs, response_length) loss_mas
verl/trainer/ppo/core_algos.py:395
↓ 14 callersFunctionfree_WffNode
agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/memory.c:1026
↓ 14 callersFunctionget_ulysses_sequence_parallel_world_size
Get ulysses sequence parallel world size.
verl/utils/ulysses.py:46
↓ 13 callersMethodall_gather
(self)
tests/ray_gpu/test_worker_group_torch.py:39
next →1–100 of 3,531, ranked by callers