Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FeiElysia/Tempo
/ functions
Functions
7,449 in github.com/FeiElysia/Tempo
⨍
Functions
7,449
◇
Types & classes
488
↳
Endpoints
41
↓ 1 callers
Method
remove_punctuation
(cls, sent: str)
lmms_eval/tasks/covost2/utils.py:144
↓ 1 callers
Function
remove_space
(text)
lmms_eval/tasks/librispeech/cn_tn.py:1028
↓ 1 callers
Function
remove_symbols_and_diacritics
Replace any other markers, symbols, and punctuations with a space, and drop any diacritics (category 'Mn' and some manual mappings)
lmms_eval/tasks/gigaspeech/whisper_normalizer/basic.py:27
↓ 1 callers
Function
remove_symbols_and_diacritics
Replace any other markers, symbols, and punctuations with a space, and drop any diacritics (category 'Mn' and some manual mappings)
lmms_eval/tasks/librispeech/whisper_normalizer/basic.py:27
↓ 1 callers
Function
remove_type_in_cnf
(s)
lmms_eval/tasks/megabench/metrics/scoring/symbolic_planning.py:77
↓ 1 callers
Function
replace_greek_letters
Replace Greek letters in Unicode with their LaTeX equivalents.
lmms_eval/tasks/megabench/metrics/scoring/common/transformations.py:92
↓ 1 callers
Function
replace_images_tokens
(input_string)
lmms_eval/tasks/jmmmu_pro/utils.py:30
↓ 1 callers
Function
replace_images_tokens
(input_string)
lmms_eval/tasks/jmmmu/utils.py:30
↓ 1 callers
Function
replace_images_tokens
Function to replace <image_n> tokens with a single <image> token. Use only for interleaved format.
lmms_eval/tasks/emma/utils.py:96
↓ 1 callers
Function
replace_images_tokens
(input_string)
lmms_eval/tasks/mmmu_pro/utils.py:26
↓ 1 callers
Function
replace_images_tokens
(input_string)
lmms_eval/tasks/mmmu_pro/reasoning/utils.py:33
↓ 1 callers
Function
replace_images_tokens
(input_string)
lmms_eval/tasks/mmmu/utils.py:40
↓ 1 callers
Function
replace_images_tokens
(input_string)
lmms_eval/tasks/mmmu/utils_group_img.py:138
↓ 1 callers
Function
replace_images_tokens
(input_string)
lmms_eval/tasks/mmmu/reasoning/utils.py:33
↓ 1 callers
Function
replace_macrons_with_latex_overline
Replace letters with macrons with the LaTeX bar.
lmms_eval/tasks/megabench/metrics/scoring/common/transformations.py:13
↓ 1 callers
Function
replace_potential_chinese_comma
(input_string)
lmms_eval/tasks/megabench/metrics/scoring/multi_ref_phrase.py:7
↓ 1 callers
Method
req_level_generate
Per-request generation with tool calling support.
lmms_eval/models/chat/sglang.py:496
↓ 1 callers
Function
request_caching_arg_to_dict
(cache_requests: str)
lmms_eval/evaluator.py:1386
↓ 1 callers
Function
require_package
Require an optional package, raising helpful error if missing.
lmms_eval/imports.py:85
↓ 1 callers
Function
reset_logged_metrics
Reset in-memory throughput metrics captured during a run.
lmms_eval/models/model_utils/gen_metrics.py:10
↓ 1 callers
Function
reset_usage_metrics
Clear all accumulated usage data and budget state. Called once at the start of ``simple_evaluate()``, alongside ``reset_logged_metrics()``.
lmms_eval/models/model_utils/usage_metrics.py:37
↓ 1 callers
Function
resize_image_height
(image, fixed_size)
lmms_eval/tasks/mmvetv2/utils.py:51
↓ 1 callers
Function
resize_image_height
(image, fixed_size)
lmms_eval/tasks/mmmu/utils_group_img.py:44
↓ 1 callers
Function
resize_image_width
(image, fixed_size)
lmms_eval/tasks/mmvetv2/utils.py:72
↓ 1 callers
Function
resize_image_width
(image, fixed_size)
lmms_eval/tasks/mmmu/utils_group_img.py:65
↓ 1 callers
Method
retrieve_batch_results
(self, file_id)
lmms_eval/models/simple/batch_gpt4.py:226
↓ 1 callers
Function
rhyming_part_include_unstressed
Get the "rhyming part" of a string with CMUdict phones. "Rhyming part" here means everything from the vowel in the last syllable up to the en
lmms_eval/tasks/megabench/metrics/scoring/constrained_generation.py:123
↓ 1 callers
Function
rotate_facing_x
Rotate facing direction around X-axis. Args: facing: The facing direction Returns: Rotated facing direction
lmms_eval/tasks/spatialtreebench/metrics/mindcube_cogmap/src/evaluation/cogmap/graph_operations.py:434
↓ 1 callers
Function
rotate_facing_y
Rotate facing direction around Y-axis. Args: facing: The facing direction Returns: Rotated facing direction
lmms_eval/tasks/spatialtreebench/metrics/mindcube_cogmap/src/evaluation/cogmap/graph_operations.py:471
↓ 1 callers
Function
rotate_facing_z
Rotate facing direction around Z-axis. Args: facing: The facing direction angle: Rotation angle in degrees Returns:
lmms_eval/tasks/spatialtreebench/metrics/mindcube_cogmap/src/evaluation/cogmap/graph_operations.py:390
↓ 1 callers
Function
rotate_half
(x: torch.Tensor)
lmms_eval/models/model_utils/cambrians/qwen2_monkey_patch.py:18
↓ 1 callers
Method
run
()
lmms_eval/models/chat/async_openai.py:327
↓ 1 callers
Function
run_query
(query: str, screenshot_dir_path: str, max_result_num: int)
lmms_eval/tasks/mmsearch/utils/utils.py:62
↓ 1 callers
Function
run_server
Run the evaluation server.
lmms_eval/launch_server.py:21
↓ 1 callers
Function
run_task_tests
Find the package root and run the tests for the given tasks
lmms_eval/utils.py:758
↓ 1 callers
Method
run_tests
(self)
lmms_eval/tasks/megabench/metrics/scoring/program_judge.py:78
↓ 1 callers
Method
run_user_code
(self, input_data)
lmms_eval/tasks/megabench/metrics/scoring/program_judge.py:36
↓ 1 callers
Function
run_wizard
Run the interactive evaluation wizard.
lmms_eval/cli/wizard.py:238
↓ 1 callers
Method
safe_equal
Check if the prediction is equal to the answer, even if they are of different types
lmms_eval/tasks/mathvista/mathvista_evals.py:325
↓ 1 callers
Function
safe_judge_with_retry
(model, question, gt, pred, max_retries=10, delay=2)
lmms_eval/tasks/videoevalpro/utils.py:72
↓ 1 callers
Method
safe_literal_eval
(self, s)
lmms_eval/tasks/phyx/phyx_evals.py:200
↓ 1 callers
Function
safe_parse_response
(reply)
lmms_eval/tasks/videomathqa/cot_step_evaluation.py:79
↓ 1 callers
Method
sample
Draw `n` samples from our fewshot docs. This method should be overridden by subclasses.
lmms_eval/api/samplers.py:50
↓ 1 callers
Method
save_image
Save generated image and return the path.
lmms_eval/models/simple/qwen_image_edit.py:235
↓ 1 callers
Method
save_image_to_temp_file
(self, image)
lmms_eval/models/simple/qwen_vl_api.py:47
↓ 1 callers
Method
save_results_aggregated
Saves the aggregated results and samples to the output path and pushes them to the Hugging Face hub if requested. Args:
lmms_eval/loggers/evaluation_tracker.py:169
↓ 1 callers
Method
save_results_samples
Saves the samples results to the output path and pushes them to the Hugging Face hub if requested. Args: task_name (str)
lmms_eval/loggers/evaluation_tracker.py:240
↓ 1 callers
Function
save_to_cache
(file_name, obj)
lmms_eval/caching/cache.py:38
↓ 1 callers
Function
screenspot_pro_doc_to_text
(doc: Dict[str, Any], lmms_eval_specific_kwargs=None)
lmms_eval/tasks/screenspot_pro/utils.py:21
↓ 1 callers
Function
screenspot_v2_doc_to_text
(doc: Dict[str, Any], lmms_eval_specific_kwargs=None)
lmms_eval/tasks/screenspot_v2/utils.py:20
↓ 1 callers
Function
search_text_brief_result
(query, max_result_num, screenshot_dir)
lmms_eval/tasks/mmsearch/utils/utils.py:57
↓ 1 callers
Function
search_url_full_result
(urls, screenshot_dir)
lmms_eval/tasks/mmsearch/utils/utils.py:165
↓ 1 callers
Function
seed_aggregation_result
(results)
lmms_eval/tasks/seedbench/utils.py:27
↓ 1 callers
Function
seed_aggregation_result
(results)
lmms_eval/tasks/seedbench/ko_utils.py:27
↓ 1 callers
Function
seed_aggregation_result
(results)
lmms_eval/tasks/seedbench_2_plus/utils.py:35
↓ 1 callers
Function
seed_aggregation_result
(results)
lmms_eval/tasks/seedbench_2/utils.py:39
↓ 1 callers
Method
serialize_function
Serializes a given function or string. If 'keep_callable' is True, the original callable is returned. Otherwise, attempts to return t
lmms_eval/api/group.py:61
↓ 1 callers
Function
set_budget
Configure the token budget for the current evaluation run. Parameters ---------- max_tokens: Maximum *total* tokens (input + outp
lmms_eval/models/model_utils/usage_metrics.py:52
↓ 1 callers
Method
set_fewshot_seed
(self, seed: Optional[int] = None)
lmms_eval/api/task.py:738
↓ 1 callers
Function
set_precision
Calculate the precision, using sets.
lmms_eval/tasks/megabench/metrics/scoring/common/metrics.py:70
↓ 1 callers
Function
set_seed
Set random seed for reproducibility.
lmms_eval/tasks/gedit_bench/viescore/openai_backend.py:34
↓ 1 callers
Method
set_seed
Set random seeds for reproducibility
lmms_eval/models/chat/bagel_lmms_engine.py:199
↓ 1 callers
Method
shrink_image_to_file_size
(self, img: Image, max_file_size=4838990)
lmms_eval/models/simple/claude.py:88
↓ 1 callers
Function
slim_image_and_save
(image_path, save_path)
lmms_eval/tasks/mmsearch/utils/image_utils.py:14
↓ 1 callers
Method
smart_init_dynamic_compress
(self)
tempo/multimodal_encoder/qwen3vl_encoder.py:72
↓ 1 callers
Function
smart_resize_mimo
Resize image for MIMO models with factor-divisible dimensions and pixel constraints.
lmms_eval/tasks/groundingme/utils.py:68
↓ 1 callers
Function
smart_resize_qwen
Resize image for Qwen models with factor-divisible dimensions and pixel constraints.
lmms_eval/tasks/groundingme/utils.py:94
↓ 1 callers
Function
sodac_llm_score
SODA_c with score matrix computed from LLM.
lmms_eval/tasks/plm_videobench/eval_utils.py:131
↓ 1 callers
Function
spatial_doc_to_visual_video
(doc)
lmms_eval/tasks/sitebench/utils.py:107
↓ 1 callers
Function
spatial_doc_to_visual_video_as_images
Return video frames as a list of PIL Images instead of video path. This allows the model to process the video as multi-image input. Args
lmms_eval/tasks/sitebench/multi_image_input/utils.py:30
↓ 1 callers
Function
spatialviz_doc_to_text
(doc: Dict[str, Any])
lmms_eval/tasks/spatialviz/utils.py:52
↓ 1 callers
Method
split_audio
(self, audio_arrays)
lmms_eval/models/simple/aero.py:132
↓ 1 callers
Function
split_cnf_by_parentheses
(s)
lmms_eval/tasks/megabench/metrics/scoring/symbolic_planning.py:90
↓ 1 callers
Method
split_doc_into_passages
(self, doc)
lmms_eval/tasks/mmsearch/retrieve_content/retriever.py:31
↓ 1 callers
Function
split_media_tags
(content)
lmms_eval/tasks/av_odyssey/utils.py:39
↓ 1 callers
Function
split_model
(model_name, num_layers=None)
lmms_eval/models/simple/internvl2.py:142
↓ 1 callers
Method
split_text
(self, text, keywords)
lmms_eval/models/simple/egogpt.py:242
↓ 1 callers
Function
spotting_evaluation
(prediction_list, img_metas)
lmms_eval/tasks/ocrbench_v2/spotting_metric.py:125
↓ 1 callers
Function
sqa_doc_to_target
(doc)
lmms_eval/tasks/scienceqa/utils.py:28
↓ 1 callers
Function
ssv2_doc_to_target
(doc)
lmms_eval/tasks/ssv2/utils.py:35
↓ 1 callers
Function
state_transition
(current_state, effects, param_to_obj)
lmms_eval/tasks/megabench/metrics/scoring/symbolic_planning.py:159
↓ 1 callers
Function
stderr_for_metric
(metric, bootstrap_iters: int)
lmms_eval/api/metrics.py:553
↓ 1 callers
Function
string2symbols
(chinese_string, system)
lmms_eval/tasks/librispeech/cn_tn.py:575
↓ 1 callers
Function
strip_variable_assignment
(s)
lmms_eval/tasks/ocrbench_v2/TEDS_metric.py:288
↓ 1 callers
Function
subsample_video
Process video file and return uniformly sampled frames as PIL Images. Args: video_path (str): Path to the video file max_nfr
lmms_eval/tasks/megabench/image_video_utils.py:28
↓ 1 callers
Function
summarize_logged_metrics
Aggregate captured throughput metrics for final reporting.
lmms_eval/models/model_utils/gen_metrics.py:22
↓ 1 callers
Function
summarize_usage_metrics
Aggregate all recorded usage into a summary dict. Returns an empty dict when no usage has been recorded. The returned structure is injected
lmms_eval/models/model_utils/usage_metrics.py:158
↓ 1 callers
Function
super_gpqa_doc_to_choice
(doc: Dict)
lmms_eval/tasks/super_gpqa/utils.py:32
↓ 1 callers
Function
super_gpqa_doc_to_target
(doc: Dict)
lmms_eval/tasks/super_gpqa/utils.py:28
↓ 1 callers
Function
take_fullpage_screenshot
(url: str, screenshot_path: str, timeout: int = FULLPAGE_TIMEOUT)
lmms_eval/tasks/mmsearch/utils/utils.py:191
↓ 1 callers
Function
take_screenshot_async
(url: str, screenshot_path: str, timeout: int = BRIEF_TIMEOUT)
lmms_eval/tasks/mmsearch/utils/utils.py:130
↓ 1 callers
Function
task_list_refine
(task_list)
lmms_eval/tasks/megabench/breakdown/analysis_utils.py:9
↓ 1 callers
Function
temporal_grounding_aggregate_submissions
(results, args, task)
lmms_eval/tasks/charades_sta/utils.py:84
↓ 1 callers
Function
test_create_graph_from_cogmap
()
lmms_eval/tasks/spatialtreebench/metrics/mindcube_cogmap/src/evaluation/cogmap/graph_operations.py:629
↓ 1 callers
Method
test_docs
(self)
lmms_eval/api/task.py:1210
↓ 1 callers
Method
test_docs_no_media
(self)
lmms_eval/api/task.py:1214
↓ 1 callers
Function
test_instruction_following_loose
Tests response for an upper bound for following instructions.
lmms_eval/tasks/ifeval/utils.py:58
↓ 1 callers
Function
test_instruction_following_strict
Tests response to see if instructions are followed.
lmms_eval/tasks/ifeval/utils.py:25
↓ 1 callers
Function
timestamp
()
lmms_eval/tasks/mathvision/eval_utils.py:10
↓ 1 callers
Method
to_dict
dumps the current config as a dictionary object, as a printable format. null fields will not be printed. Used for dumping results alon
lmms_eval/api/group.py:44
← previous
next →
2,801–2,900 of 7,449, ranked by callers