MCPcopy Create free account

hub / github.com/Tencent/digitalhuman / functions

Functions5,073 in github.com/Tencent/digitalhuman

Functioncompute_score
(completion, test_cases, continuous=False)
RLVMR/code/verl/utils/reward_score/prime_code/__init__.py:21
Functioncompute_score
(model_output: str, ground_truth: str)
RLVMR/code/verl/utils/reward_score/prime_math/__init__.py:408
Functioncompute_step_discounted_returns
(batch: DataProto, gamma: float)
RLVMR/code/gigpo/core_gigpo.py:53
Functioncompute_value_loss
Compute the value loss. Copied from https://github.com/huggingface/trl/blob/main/trl/trainer/ppo_trainer.py#L1151 Args: vpreds (`torch.Fl
RLVER/code/verl/trainer/ppo/core_algos.py:331
Functioncompute_value_loss
Compute the value loss. Copied from https://github.com/huggingface/trl/blob/main/trl/trainer/ppo_trainer.py#L1151 Args: vpreds (`torch.Fl
RLVMR/code/verl/trainer/ppo/core_algos.py:339
Methodcompute_values
(self, data: DataProto)
RLVER/code/verl/workers/megatron_workers.py:582
Methodcompute_values
Compute values
RLVER/code/verl/workers/critic/base.py:33
Methodcompute_values
(self, data: DataProto)
RLVER/code/verl/workers/critic/megatron_critic.py:83
Methodcompute_values
(self, data: DataProto)
RLVER/code/verl/workers/critic/dp_critic.py:110
Methodcompute_values
(self, data: DataProto)
RLVMR/code/verl/workers/megatron_workers.py:637
Methodcompute_values
Compute values
RLVMR/code/verl/workers/critic/base.py:33
Methodcompute_values
(self, data: DataProto)
RLVMR/code/verl/workers/critic/megatron_critic.py:73
Methodcompute_values
(self, data: DataProto)
RLVMR/code/verl/workers/critic/dp_critic.py:131
Methodconcat
(data: List[ray.ObjectRef])
RLVER/code/verl/protocol.py:623
Methodconcat
(data: List[ray.ObjectRef])
RLVMR/code/verl/protocol.py:621
Methodconfig
(self)
VISTA/LLaVA-VISTA/llava/model/multimodal_projector/builder.py:14
Methodconfig
(self)
VISTA/LLaVA-VISTA/llava/model/multimodal_encoder/clip_encoder.py:72
Functionconstruct_prompt
(example, data_name, args)
RLVER/code/verl/utils/reward_score/simplerl_utils/qwen_utils.py:173
Functionconvert_caps
(results)
VISTA/LLaVA-VISTA/llava/eval/eval_science_qa_gpt4.py:19
Functionconvert_caps
(results)
VISTA/LLaVA-VISTA/llava/eval/eval_science_qa.py:19
Functionconvert_caps
(results)
VISTA/LLaVA-VISTA/llava/eval/eval_science_qa_gpt4_requery.py:21
Functionconvert_caps
(results)
VISTA/TinyLLaVA-VISTA/tinyllava/eval/eval_science_qa.py:19
Methodconvert_ids_to_tokens
Converts a single index or a sequence of indices in a token or a sequence of tokens, using the vocabulary and added tokens.
RLVER/code/verl/workers/rollout/tokenizer.py:116
Methodconvert_ids_to_tokens
Converts a single index or a sequence of indices in a token or a sequence of tokens, using the vocabulary and added tokens.
RLVMR/code/verl/workers/rollout/tokenizer.py:116
Functionconvert_legecy_weights_to_tinyllavafactory
(old_state_dict_path, new_state_dict_path=None)
VISTA/TinyLLaVA-VISTA/tinyllava/model/convert_legecy_weights_to_tinyllavafactory.py:92
Functionconvert_to_jsonl
(base_dir, split, prompt_format="QCM-LEPA")
VISTA/LLaVA-VISTA/scripts/convert_sqa_to_llava.py:49
Functionconvert_to_llava
(base_dir, split, prompt_format="QCM-LEA")
VISTA/LLaVA-VISTA/scripts/convert_sqa_to_llava.py:8
Methodconvert_tokens_to_string
(self, tokens)
RLVER/code/tests/e2e/envs/digit_completion/tokenizer.py:101
Methodconvert_tokens_to_string
Converts a sequence of tokens in a single string. The most simple way to do it is `" ".join(tokens)` but we often want to remove sub-
RLVER/code/verl/workers/rollout/tokenizer.py:147
Methodconvert_tokens_to_string
Converts a sequence of tokens in a single string. The most simple way to do it is `" ".join(tokens)` but we often want to remove sub-
RLVMR/code/verl/workers/rollout/tokenizer.py:147
Methodcopy
(self)
VISTA/TinyLLaVA-VISTA/tinyllava/utils/message.py:33
Functioncopy_TokenList
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/parse.c:73
Methodcos_cached
(self)
VISTA/LLaVA-VISTA/llava/train/modeling_llama.py:145
Methodcost
cost = number of gpu / (k token / s) = number of gpu * s / k token How much compute (GPU seconds) is needed to run 1k tokens
SWF/src/base.py:74
Methodcreate_custom_forward
(module)
VISTA/TinyLLaVA-VISTA/tinyllava/model/connector/qformer.py:599
Functioncreate_huggingface_critic
Args: model_name: override_config_kwargs: Returns:
RLVER/code/verl/utils/model.py:98
Functioncreate_huggingface_critic
Args: model_name: override_config_kwargs: Returns:
RLVMR/code/verl/utils/model.py:98
Functioncreate_nccl_communicator_in_ray
(rank: int, world_size: int, group_nam
RLVMR/code/verl/utils/rendezvous/ray_backend.py:47
Methodcreate_optimizer
Setup the optimizer. We provide a reasonable default that works well. If you want to use something else, you can pass a tuple in the
VISTA/LLaVA-VISTA/llava/train/llava_trainer.py:150
Methodcreate_optimizer
Setup the optimizer. We provide a reasonable default that works well. If you want to use something else, you can pass a tuple in the
VISTA/TinyLLaVA-VISTA/tinyllava/train/tinyllava_trainer.py:138
Functioncreate_random_mask
Create a random mask given input_ids. Support left padding and right padding. Process: - Sample valid token length - Sample left_padding l
RLVMR/code/verl/utils/model.py:153
Methodcreate_tokens_prompt_from_beam
( beam: BeamSearchSequence)
RLVER/code/llm.py:540
Methodcustom_forward
(*inputs)
VISTA/TinyLLaVA-VISTA/tinyllava/model/connector/qformer.py:600
Methoddecision_making
( self, task_description: str, agents: List[BaseAgent], previous_plan: str,
HATE/basic_hate/agentverse/environments/tasksolving_env/rules/base_final.py:114
Functiondecode
(string, encoding='utf-8')
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/utils/py_util.py:19
Functiondecorator
(func)
RLVER/code/verl/single_controller/base/decorator.py:398
Functiondecorator
(func)
RLVMR/code/verl/utils/reward_score/prime_math/__init__.py:42
Functiondecorator
(func)
RLVMR/code/verl/single_controller/base/decorator.py:398
Methoddecorator
(class_builder)
HATE/basic_hate/agentverse/registry.py:13
Functiondecorator_with_name
(func)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:321
Methoddefault
(self, obj)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/utils/misc.py:73
Methoddeprecate_legacy_api
(cls)
RLVER/code/llm.py:147
Functiondepth_imresize
(image, size, rescale=True, max_depth=constants.MAX_DEPTH)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/utils/game_util.py:39
Functiondepth_to_world_coordinates
(depth, pose, camera_height)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/utils/game_util.py:91
Functiondispatch_all_to_all
(worker_group, *args, **kwargs)
RLVER/code/verl/single_controller/base/decorator.py:66
Functiondispatch_all_to_all
(worker_group, *args, **kwargs)
RLVMR/code/verl/single_controller/base/decorator.py:66
Functiondispatch_dp_compute
(worker_group, *args, **kwargs)
RLVER/code/verl/single_controller/base/decorator.py:255
Functiondispatch_dp_compute
(worker_group, *args, **kwargs)
RLVMR/code/verl/single_controller/base/decorator.py:255
Functiondispatch_dp_compute_data_proto
(worker_group, *args, **kwargs)
RLVER/code/verl/single_controller/base/decorator.py:272
Functiondispatch_dp_compute_data_proto
(worker_group, *args, **kwargs)
RLVMR/code/verl/single_controller/base/decorator.py:272
Functiondispatch_dp_compute_data_proto_with_func
(worker_group, *args, **kwargs)
RLVER/code/verl/single_controller/base/decorator.py:279
Functiondispatch_dp_compute_data_proto_with_func
(worker_group, *args, **kwargs)
RLVMR/code/verl/single_controller/base/decorator.py:279
Functiondispatch_megatron_compute_data_proto
All the args and kwargs must be DataProto. The batch will be chunked by dp_size and passed to each rank
RLVER/code/verl/single_controller/base/decorator.py:118
Functiondispatch_megatron_compute_data_proto
All the args and kwargs must be DataProto. The batch will be chunked by dp_size and passed to each rank
RLVMR/code/verl/single_controller/base/decorator.py:118
Functiondispatch_megatron_pp_as_dp_data_proto
(worker_group, *args, **kwargs)
RLVER/code/verl/single_controller/base/decorator.py:237
Functiondispatch_megatron_pp_as_dp_data_proto
(worker_group, *args, **kwargs)
RLVMR/code/verl/single_controller/base/decorator.py:237
Functiondispatch_one_to_all
(worker_group, *args, **kwargs)
RLVER/code/verl/single_controller/base/decorator.py:60
Functiondispatch_one_to_all
(worker_group, *args, **kwargs)
RLVMR/code/verl/single_controller/base/decorator.py:60
Methoddoes_any_recep_type_have_obj_of_type
(r, ot)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/task_game_state.py:100
Methoddoes_have_atleast_n_duplicates
(x, n)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/task_game_state.py:96
Methoddoes_have_duplicates
(x)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/task_game_state.py:92
Methoddoes_recep_have_enough_space
(r)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/task_game_state.py:111
Functiondone
(asin, options, session_id, **kwargs)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/transfer/webshop_lite.py:69
Functiondone
(session_id, asin, options)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/web_agent_site/app.py:220
Methoddouble_check
(self, additionalText=None)
HATE/basic_hate/agentverse/logging.py:168
Functiondownvote_last_response
(state, model_selector, request: gr.Request)
VISTA/LLaVA-VISTA/llava/serve/gradio_web_server.py:100
Methoddp_size
(self)
RLVER/code/verl/single_controller/base/megatron/worker_group.py:41
Methoddp_size
(self)
RLVMR/code/verl/single_controller/base/megatron/worker_group.py:41
Methoddtype
(self)
VISTA/LLaVA-VISTA/llava/model/multimodal_encoder/clip_encoder.py:64
Methoddummy_feature
(self)
VISTA/LLaVA-VISTA/llava/model/multimodal_encoder/clip_encoder.py:60
Functionehc_state_hashed
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/search.c:497
Methodembed
Generate an embedding vector for each prompt. This class automatically batches the given prompts, considering the memory con
RLVER/code/llm.py:960
Methodembed_documents
Batch embed multiple documents using the embedding model. Args: texts (List[str]): List of texts to embed Returns:
RolePlay_Villain/codes/agent.py:81
Methodembed_query
Embed a query text using the embedding model. Args: text (str): Query text to embed Returns: List[floa
RolePlay_Villain/codes/agent.py:70
Methodemit
(self, record)
HATE/basic_hate/agentverse/logging.py:21
Methodemit
(self, record)
HATE/basic_hate/agentverse/logging.py:220
Methodemit
(self, record)
HATE/basic_hate/agentverse/logging.py:242
Functionencode
(string, encoding='utf-8')
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/utils/py_util.py:15
Functionencode_image
Encode image file to base64 string
ScriptAgent/code/director_agent.py:1327
Methodencode_media_file
Encode local file to base64 data URI. Note: For video files, uses specific MIME types that Gemini API expects.
ScriptAgent/code/critic_agent_video.py:233
Functionensure_scenes
(cand_scenes, **kwargs)
RolePlay_Villain/codes/utils.py:446
Methodensure_str
(prompt: SingletonPrompt)
RLVER/code/llm.py:1189
Functionentropy
(text)
RolePlay_Villain/codes/utils.py:684
Functionentropy_from_logits
Calculate entropy from logits.
RLVER/code/verl/utils/torch_functional.py:106
Functionentropy_from_logits
Calculate entropy from logits.
RLVMR/code/verl/utils/torch_functional.py:106
Methodeos_token_id
`Optional[int]`: Id of the end of sentence token in the vocabulary. Returns `None` if the token has not been set.
RLVER/code/verl/workers/rollout/tokenizer.py:44
Methodeos_token_id
`Optional[int]`: Id of the end of sentence token in the vocabulary. Returns `None` if the token has not been set.
RLVMR/code/verl/workers/rollout/tokenizer.py:44
Functionerror
(*args)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:274
Methodestimate_score
Calculate the score of the current state.
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/env.py:122
Methodeval_em
(predict: str, answer: Union[str, List])
SWF/src/metric.py:166
← previousnext →3,801–3,900 of 5,073, ranked by callers