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
Function
compute_score
(completion, test_cases, continuous=False)
RLVMR/code/verl/utils/reward_score/prime_code/__init__.py:21
Function
compute_score
(model_output: str, ground_truth: str)
RLVMR/code/verl/utils/reward_score/prime_math/__init__.py:408
Function
compute_step_discounted_returns
(batch: DataProto, gamma: float)
RLVMR/code/gigpo/core_gigpo.py:53
Function
compute_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
Function
compute_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
Method
compute_values
(self, data: DataProto)
RLVER/code/verl/workers/megatron_workers.py:582
Method
compute_values
Compute values
RLVER/code/verl/workers/critic/base.py:33
Method
compute_values
(self, data: DataProto)
RLVER/code/verl/workers/critic/megatron_critic.py:83
Method
compute_values
(self, data: DataProto)
RLVER/code/verl/workers/critic/dp_critic.py:110
Method
compute_values
(self, data: DataProto)
RLVMR/code/verl/workers/megatron_workers.py:637
Method
compute_values
Compute values
RLVMR/code/verl/workers/critic/base.py:33
Method
compute_values
(self, data: DataProto)
RLVMR/code/verl/workers/critic/megatron_critic.py:73
Method
compute_values
(self, data: DataProto)
RLVMR/code/verl/workers/critic/dp_critic.py:131
Method
concat
(data: List[ray.ObjectRef])
RLVER/code/verl/protocol.py:623
Method
concat
(data: List[ray.ObjectRef])
RLVMR/code/verl/protocol.py:621
Method
config
(self)
VISTA/LLaVA-VISTA/llava/model/multimodal_projector/builder.py:14
Method
config
(self)
VISTA/LLaVA-VISTA/llava/model/multimodal_encoder/clip_encoder.py:72
Function
construct_prompt
(example, data_name, args)
RLVER/code/verl/utils/reward_score/simplerl_utils/qwen_utils.py:173
Function
convert_caps
(results)
VISTA/LLaVA-VISTA/llava/eval/eval_science_qa_gpt4.py:19
Function
convert_caps
(results)
VISTA/LLaVA-VISTA/llava/eval/eval_science_qa.py:19
Function
convert_caps
(results)
VISTA/LLaVA-VISTA/llava/eval/eval_science_qa_gpt4_requery.py:21
Function
convert_caps
(results)
VISTA/TinyLLaVA-VISTA/tinyllava/eval/eval_science_qa.py:19
Method
convert_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
Method
convert_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
Function
convert_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
Function
convert_to_jsonl
(base_dir, split, prompt_format="QCM-LEPA")
VISTA/LLaVA-VISTA/scripts/convert_sqa_to_llava.py:49
Function
convert_to_llava
(base_dir, split, prompt_format="QCM-LEA")
VISTA/LLaVA-VISTA/scripts/convert_sqa_to_llava.py:8
Method
convert_tokens_to_string
(self, tokens)
RLVER/code/tests/e2e/envs/digit_completion/tokenizer.py:101
Method
convert_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
Method
convert_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
Method
copy
(self)
VISTA/TinyLLaVA-VISTA/tinyllava/utils/message.py:33
Function
copy_TokenList
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/parse.c:73
Method
cos_cached
(self)
VISTA/LLaVA-VISTA/llava/train/modeling_llama.py:145
Method
cost
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
Method
create_custom_forward
(module)
VISTA/TinyLLaVA-VISTA/tinyllava/model/connector/qformer.py:599
Function
create_huggingface_critic
Args: model_name: override_config_kwargs: Returns:
RLVER/code/verl/utils/model.py:98
Function
create_huggingface_critic
Args: model_name: override_config_kwargs: Returns:
RLVMR/code/verl/utils/model.py:98
Function
create_nccl_communicator_in_ray
(rank: int, world_size: int, group_nam
RLVMR/code/verl/utils/rendezvous/ray_backend.py:47
Method
create_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
Method
create_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
Function
create_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
Method
create_tokens_prompt_from_beam
( beam: BeamSearchSequence)
RLVER/code/llm.py:540
Method
custom_forward
(*inputs)
VISTA/TinyLLaVA-VISTA/tinyllava/model/connector/qformer.py:600
Method
decision_making
( self, task_description: str, agents: List[BaseAgent], previous_plan: str,
HATE/basic_hate/agentverse/environments/tasksolving_env/rules/base_final.py:114
Function
decode
(string, encoding='utf-8')
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/utils/py_util.py:19
Function
decorator
(func)
RLVER/code/verl/single_controller/base/decorator.py:398
Function
decorator
(func)
RLVMR/code/verl/utils/reward_score/prime_math/__init__.py:42
Function
decorator
(func)
RLVMR/code/verl/single_controller/base/decorator.py:398
Method
decorator
(class_builder)
HATE/basic_hate/agentverse/registry.py:13
Function
decorator_with_name
(func)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:321
Method
default
(self, obj)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/agents/utils/misc.py:73
Method
deprecate_legacy_api
(cls)
RLVER/code/llm.py:147
Function
depth_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
Function
depth_to_world_coordinates
(depth, pose, camera_height)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/utils/game_util.py:91
Function
dispatch_all_to_all
(worker_group, *args, **kwargs)
RLVER/code/verl/single_controller/base/decorator.py:66
Function
dispatch_all_to_all
(worker_group, *args, **kwargs)
RLVMR/code/verl/single_controller/base/decorator.py:66
Function
dispatch_dp_compute
(worker_group, *args, **kwargs)
RLVER/code/verl/single_controller/base/decorator.py:255
Function
dispatch_dp_compute
(worker_group, *args, **kwargs)
RLVMR/code/verl/single_controller/base/decorator.py:255
Function
dispatch_dp_compute_data_proto
(worker_group, *args, **kwargs)
RLVER/code/verl/single_controller/base/decorator.py:272
Function
dispatch_dp_compute_data_proto
(worker_group, *args, **kwargs)
RLVMR/code/verl/single_controller/base/decorator.py:272
Function
dispatch_dp_compute_data_proto_with_func
(worker_group, *args, **kwargs)
RLVER/code/verl/single_controller/base/decorator.py:279
Function
dispatch_dp_compute_data_proto_with_func
(worker_group, *args, **kwargs)
RLVMR/code/verl/single_controller/base/decorator.py:279
Function
dispatch_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
Function
dispatch_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
Function
dispatch_megatron_pp_as_dp_data_proto
(worker_group, *args, **kwargs)
RLVER/code/verl/single_controller/base/decorator.py:237
Function
dispatch_megatron_pp_as_dp_data_proto
(worker_group, *args, **kwargs)
RLVMR/code/verl/single_controller/base/decorator.py:237
Function
dispatch_one_to_all
(worker_group, *args, **kwargs)
RLVER/code/verl/single_controller/base/decorator.py:60
Function
dispatch_one_to_all
(worker_group, *args, **kwargs)
RLVMR/code/verl/single_controller/base/decorator.py:60
Method
does_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
Method
does_have_atleast_n_duplicates
(x, n)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/task_game_state.py:96
Method
does_have_duplicates
(x)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/task_game_state.py:92
Method
does_recep_have_enough_space
(r)
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/game_states/task_game_state.py:111
Function
done
(asin, options, session_id, **kwargs)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/transfer/webshop_lite.py:69
Function
done
(session_id, asin, options)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/web_agent_site/app.py:220
Method
double_check
(self, additionalText=None)
HATE/basic_hate/agentverse/logging.py:168
Function
downvote_last_response
(state, model_selector, request: gr.Request)
VISTA/LLaVA-VISTA/llava/serve/gradio_web_server.py:100
Method
dp_size
(self)
RLVER/code/verl/single_controller/base/megatron/worker_group.py:41
Method
dp_size
(self)
RLVMR/code/verl/single_controller/base/megatron/worker_group.py:41
Method
dtype
(self)
VISTA/LLaVA-VISTA/llava/model/multimodal_encoder/clip_encoder.py:64
Method
dummy_feature
(self)
VISTA/LLaVA-VISTA/llava/model/multimodal_encoder/clip_encoder.py:60
Function
ehc_state_hashed
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/ff_planner/search.c:497
Method
embed
Generate an embedding vector for each prompt. This class automatically batches the given prompts, considering the memory con
RLVER/code/llm.py:960
Method
embed_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
Method
embed_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
Method
emit
(self, record)
HATE/basic_hate/agentverse/logging.py:21
Method
emit
(self, record)
HATE/basic_hate/agentverse/logging.py:220
Method
emit
(self, record)
HATE/basic_hate/agentverse/logging.py:242
Function
encode
(string, encoding='utf-8')
RLVMR/code/agent_system/environments/env_package/alfworld/alfworld/gen/utils/py_util.py:15
Function
encode_image
Encode image file to base64 string
ScriptAgent/code/director_agent.py:1327
Method
encode_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
Function
ensure_scenes
(cand_scenes, **kwargs)
RolePlay_Villain/codes/utils.py:446
Method
ensure_str
(prompt: SingletonPrompt)
RLVER/code/llm.py:1189
Function
entropy
(text)
RolePlay_Villain/codes/utils.py:684
Function
entropy_from_logits
Calculate entropy from logits.
RLVER/code/verl/utils/torch_functional.py:106
Function
entropy_from_logits
Calculate entropy from logits.
RLVMR/code/verl/utils/torch_functional.py:106
Method
eos_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
Method
eos_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
Function
error
(*args)
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/logger.py:274
Method
estimate_score
Calculate the score of the current state.
RLVMR/code/agent_system/environments/env_package/webshop/webshop/baseline_models/env.py:122
Method
eval_em
(predict: str, answer: Union[str, List])
SWF/src/metric.py:166
← previous
next →
3,801–3,900 of 5,073, ranked by callers