MCPcopy Create free account

hub / github.com/InternScience/SciReason / functions

Functions3,711 in github.com/InternScience/SciReason

↓ 1 callersMethod__init__
(self, k: List[int] = [1, 10, 100])
opencompass/datasets/humaneval.py:73
↓ 1 callersMethod__init__
(self, options)
opencompass/datasets/custom.py:23
↓ 1 callersMethod__init__
(self, version='v1', pred_postprocessor=None)
opencompass/datasets/math.py:207
↓ 1 callersMethod__init__
(self)
opencompass/datasets/OlympiadBench.py:279
↓ 1 callersMethod__init__
(self, cmd)
opencompass/datasets/ds1000.py:283
↓ 1 callersMethod__init__
:param value: Content for this specific node (also the deduction of the children). :param children: The children for this node.
opencompass/datasets/musr/tree.py:69
↓ 1 callersMethod__init__
(self, cfg: argparse.Namespace)
opencompass/datasets/unconditional_protein_generation/omegafold/geoformer.py:141
↓ 1 callersMethod__init__
(self, cfg: argparse.Namespace)
opencompass/datasets/unconditional_protein_generation/omegafold/model.py:126
↓ 1 callersMethod__init__
(self, *args, **kwargs)
opencompass/datasets/bioinstruction/evaluator.py:184
↓ 1 callersMethod__init__
(self, task='catalytic_activity', pred_postprocessor: Optional[ConfigDict] = None)
opencompass/datasets/Mol_Instructions/protein.py:74
↓ 1 callersMethod__init__
(self)
opencompass/datasets/leval/evaluators.py:117
↓ 1 callersMethod__init__
( self, path: str = 'LightllmAPI', url: str = 'http://localhost:8080/gener
opencompass/models/lightllm_api.py:25
↓ 1 callersMethod__init__
( self, path: str, token: str, url: str, meta_template: Optional[Dict]
opencompass/models/bailing_api_oc.py:55
↓ 1 callersMethod__init__
( self, path: str = 'gpt-3.5-turbo', max_seq_len: int = 16384, query_per_secon
opencompass/models/openai_api.py:78
↓ 1 callersMethod__init__
( self, path: str, key: str, group_id: str, model_type: str = 'chat',
opencompass/models/minimax_api.py:35
↓ 1 callersMethod__init__
(self, path: str, appid: str, api_secret: str,
opencompass/models/xunfei_api.py:32
↓ 1 callersMethod__init__
(self, path: str, hf_cache_dir: Optional[str] = None, max_s
opencompass/models/huggingface.py:91
↓ 1 callersFunction_apply_embed
Applies RoPE to ~inputs Args: inputs: the tensor to which RoPE is applied, the dimensions indexed by ~seq_dim indicates the s
opencompass/datasets/unconditional_protein_generation/omegafold/embedders.py:67
↓ 1 callersFunction_attention
Normal attention Args: query: positive tensor of shape (*_q, dim_qk) key: positive tensor of shape (*_k, dim_qk) scale: t
opencompass/datasets/unconditional_protein_generation/omegafold/modules.py:69
↓ 1 callersMethod_batch_generate
Support for batch prompts inference. Args: inputs (List[str]): A list of strings. max_out_len (int): The maximum leng
opencompass/models/huggingface.py:256
↓ 1 callersMethod_bin_trim
Get a suffix of prompt which is no longer than num_token tokens. Args: prompt (str): Input string. num_token (int): T
opencompass/models/openai_api.py:434
↓ 1 callersMethod_build_pipe
(self, model_path, backend, engine_config)
opencompass/models/turbomind.py:231
↓ 1 callersMethod_build_pipe
(self, model_path, backend, engine_config)
opencompass/models/turbomind_with_tf_above_v4_33.py:190
↓ 1 callersMethod_build_results
(self, extracted_predictions, metrics, eval_results, final_metadata)
opencompass/datasets/livecodebench/evaluator.py:251
↓ 1 callersMethod_calculate_group_metrics
The function calculates the numerical results for each group based on the configuration in summary_groups, and updates the contents of
opencompass/summarizers/default_subjective.py:175
↓ 1 callersMethod_calculate_sequence_identity
Calculate sequence identity between two sequences. This is a simplified implementation for sequences of equal length, compute
opencompass/datasets/unconditional_protein_generation/UPG.py:92
↓ 1 callersMethod_call
(self, command: str)
opencompass/lagent/actions/python_interpreter.py:139
↓ 1 callersFunction_check_data
(ms_dataset: Dataset | DatasetDict, oc_dataset: Dataset | DatasetDict, sample_
tests/dataset/test_ms_datasets.py:176
↓ 1 callersFunction_check_dataset
(obj)
opencompass/utils/types.py:34
↓ 1 callersMethod_check_revolve
(span_a, span_b)
opencompass/datasets/lawbench/utils/modules/merger.py:30
↓ 1 callersFunction_check_str
(obj)
opencompass/utils/types.py:50
↓ 1 callersMethod_check_template_legacy
(self)
opencompass/openicl/icl_prompt_template.py:46
↓ 1 callersMethod_choose_flavor
(self, num_gpus)
opencompass/runners/volc.py:254
↓ 1 callersMethod_clean_text
Performs invalid character removal and whitespace cleanup on text.
opencompass/datasets/lawbench/utils/modules/tokenization.py:236
↓ 1 callersFunction_clean_up_code
Cleans up the generated code.
opencompass/datasets/PMMEval/humanevalxl.py:151
↓ 1 callersMethod_code_eval_service
Send code to the remote evaluation service using gradio_client and get the results. Args: input_data: Can be one of:
opencompass/openicl/icl_evaluator/code_evaluator.py:56
↓ 1 callersMethod_code_eval_service
(self, file_path)
opencompass/datasets/humanevalx.py:143
↓ 1 callersMethod_code_eval_service
Access the code eval service. Args: file_path (str): The file path to the file to be evaluated. Returns: tup
opencompass/datasets/ds1000.py:415
↓ 1 callersMethod_code_eval_service
(self, file_path)
opencompass/datasets/humaneval_multi.py:108
↓ 1 callersMethod_code_eval_service
(self, file_path)
opencompass/datasets/PMMEval/humanevalxl.py:123
↓ 1 callersMethod_column_attention
(self, node_repr, mask, fwd_cfg)
opencompass/datasets/unconditional_protein_generation/omegafold/geoformer.py:128
↓ 1 callersMethod_combine_transformation
Combine two frames Args: The following two arguments all have the transition of shape (N, 3) at the first pl
opencompass/datasets/unconditional_protein_generation/omegafold/utils/protein_utils/aaframe.py:640
↓ 1 callersFunction_compute_confidence
Computes per-residue pLDDT from logits. Code below adopted from https://github.com/deepmind/alphafold/blob/0be2b30b98f0da7aecb973bde0475
opencompass/datasets/unconditional_protein_generation/omegafold/confidence.py:96
↓ 1 callersMethod_compute_sin_cos
Compute sine and cosine tensors Args: tensor: the tensors to apply RoPE to seq_dim: the dimension indices of the spat
opencompass/datasets/unconditional_protein_generation/omegafold/embedders.py:183
↓ 1 callersMethod_compute_turn_score
(a_gold_list, a_pred)
opencompass/datasets/lawbench/utils/rc_f1.py:85
↓ 1 callersMethod_convert_dtype
(self, default_dtype, model_dtype=None)
opencompass/models/interntrain.py:290
↓ 1 callersMethod_encode_speical_tokens
Encode the special tokens in the prompt. Now this is left for the future work
opencompass/models/base.py:502
↓ 1 callersMethod_evaluate
Evaluate the response data sample.
opencompass/datasets/teval/evaluators/reason_retrieve_understand_evaluator.py:148
↓ 1 callersMethod_evaluate
Evaluate the response data sample.
opencompass/datasets/teval/evaluators/reason_retrieve_understand_evaluator.py:380
↓ 1 callersMethod_evaluate
(self, data_sample)
opencompass/datasets/teval/evaluators/planning_evaluator.py:218
↓ 1 callersMethod_evaluate
(self, data_sample: dict)
opencompass/datasets/teval/evaluators/instruct_evaluator.py:63
↓ 1 callersMethod_evaluate_fold_type
评估折叠类型任务,使用与 accuracy4fold_type.py 相同的计算方式
opencompass/datasets/opi/evaluator.py:155
↓ 1 callersMethod_evaluate_function
评估功能描述任务,使用 ROUGE-L
opencompass/datasets/opi/evaluator.py:105
↓ 1 callersMethod_evaluate_general
通用评估方法
opencompass/datasets/opi/evaluator.py:243
↓ 1 callersMethod_evaluate_multilabel
评估多标签任务(EC_number, GO, Keywords)
opencompass/datasets/opi/evaluator.py:180
↓ 1 callersMethod_evaluate_predictions
Evaluate predictions using the configured evaluator.
opencompass/tasks/openicl_eval.py:231
↓ 1 callersMethod_evaluate_subcellular_localization
评估亚细胞定位任务,使用准确率
opencompass/datasets/opi/evaluator.py:130
↓ 1 callersFunction_fix_a_slash_b
(string)
opencompass/datasets/agieval/math_equivalence.py:37
↓ 1 callersFunction_fix_a_slash_b
(string)
opencompass/datasets/medbench/math_equivalence.py:37
↓ 1 callersFunction_fix_fracs
(string)
opencompass/datasets/agieval/math_equivalence.py:5
↓ 1 callersFunction_fix_fracs
(string)
opencompass/datasets/medbench/math_equivalence.py:5
↓ 1 callersFunction_fix_sqrt
(string)
opencompass/datasets/agieval/math_equivalence.py:62
↓ 1 callersFunction_fix_sqrt
(string)
opencompass/datasets/medbench/math_equivalence.py:62
↓ 1 callersMethod_fix_sqrt
(self, string)
opencompass/datasets/math.py:286
↓ 1 callersMethod_fix_sqrt_v2
(self, string)
opencompass/datasets/math.py:300
↓ 1 callersMethod_format_md_table
(table)
opencompass/summarizers/default.py:316
↓ 1 callersMethod_format_raw_txt
(self, raw_results)
opencompass/summarizers/default_subjective.py:324
↓ 1 callersMethod_format_table
(self, parsed_results, dataset_metrics, dataset_eval_mode, required_dataset_abbrs=None, skip_all_slash=False)
opencompass/summarizers/default_subjective.py:272
↓ 1 callersMethod_format_table
(self, parsed_results, dataset_metrics, dataset_eval_mode)
opencompass/summarizers/llm_compression.py:27
↓ 1 callersMethod_format_table
(self, parsed_results, dataset_metrics, dataset_eval_mode)
opencompass/summarizers/needlebench.py:410
↓ 1 callersMethod_format_table
(self, parsed_results, dataset_metrics, dataset_eval_mode)
opencompass/summarizers/needlebench.py:556
↓ 1 callersMethod_format_table_pivot
Format table as a pandas dataframe and pivot so that columns are datasets and rows are models. Args: table (List[List]):
opencompass/summarizers/llm_compression.py:91
↓ 1 callersFunction_gaokao_register
(question_type)
opencompass/datasets/GaokaoBench.py:152
↓ 1 callersMethod_generate
Generate results given a list of inputs. Args: inputs (PromptType): A string or PromptDict. The PromptDict should
opencompass/models/openai_api.py:192
↓ 1 callersMethod_generate
( self, input: PromptType, max_out_len: int = 512, )
opencompass/models/xunfei_api.py:282
↓ 1 callersMethod_generate_access_token
(self)
opencompass/models/baidu_api.py:63
↓ 1 callersFunction_generic_llmjudge_postprocess
(judgement: str)
opencompass/datasets/medmcqa.py:127
↓ 1 callersFunction_generic_llmjudge_postprocess
(judgement: str)
opencompass/datasets/Medbullets.py:137
↓ 1 callersFunction_generic_llmjudge_postprocess
(judgement: str)
opencompass/datasets/MedXpertQA.py:106
↓ 1 callersFunction_generic_llmjudge_postprocess
(judgement: str)
opencompass/datasets/supergpqa/supergpqa.py:203
↓ 1 callersMethod_get_act_col
( self, edge_row: torch.Tensor, mask: torch.Tensor )
opencompass/datasets/unconditional_protein_generation/omegafold/modules.py:688
↓ 1 callersMethod_get_act_row
( self, edge_row: torch.Tensor, mask: torch.Tensor )
opencompass/datasets/unconditional_protein_generation/omegafold/modules.py:677
↓ 1 callersMethod_get_attended
( self, edge_repr: torch.Tensor, mask: torch.Tensor, fwd_cfg
opencompass/datasets/unconditional_protein_generation/omegafold/modules.py:607
↓ 1 callersMethod_get_attn_out
(self, q_inputs, kv_inputs, fwd_cfg, bias)
opencompass/datasets/unconditional_protein_generation/omegafold/modules.py:466
↓ 1 callersMethod_get_class_diff
d == 3 for equivalent semantics d == 0 for completely different semantics 根据大词林的信息,计算两个词的语义类别的差距
opencompass/datasets/lawbench/utils/modules/alignment.py:111
↓ 1 callersMethod_get_cross_entropy
Calculate cross entropy based on given logits, targets and attention_mask for BPC loss calculation. Args: logits (np.ndar
opencompass/openicl/icl_inferencer/icl_sw_ce_loss_inferencer.py:235
↓ 1 callersFunction_get_device
Infer the accelerator Args: device: the device type Returns:
opencompass/datasets/unconditional_protein_generation/omegafold/pipeline.py:345
↓ 1 callersMethod_get_finetuning_scale
Token dropout scaling This computes the scaling from Rives et al. 2021 Args: mask: the mask indicating the validity of t
opencompass/datasets/unconditional_protein_generation/omegafold/omegaplm.py:222
↓ 1 callersMethod_get_gated
(self, edge_repr: torch.Tensor, mask: torch.Tensor, fwd_cfg)
opencompass/datasets/unconditional_protein_generation/omegafold/modules.py:638
↓ 1 callersFunction_get_last_digit
(s)
opencompass/datasets/PMMEval/mgsm.py:13
↓ 1 callersMethod_get_llm_correctness
Determine if the LLM judge considers the answer correct. Args: llm_detail: The evaluation details from the LLM judge. Re
opencompass/evaluator/cascade_evaluator.py:101
↓ 1 callersFunction_get_meta_template
(meta_template)
opencompass/models/huggingface_above_v4_33.py:115
↓ 1 callersFunction_get_pos
Get the position of the tokens given Args: shape: the shape of the tensor to be applied with RoPE device: the device on which the
opencompass/datasets/unconditional_protein_generation/omegafold/embedders.py:39
↓ 1 callersMethod_get_pos_cost
计算基于词性信息的编辑距离cost :param a_pos: 单词a的词性 :param b_pos: 单词b的词性 :return: 替换编辑代价
opencompass/datasets/lawbench/utils/modules/alignment.py:137
↓ 1 callersMethod_get_potential_stop_words
(self, path: Optional[str])
opencompass/models/huggingface_above_v4_33.py:403
↓ 1 callersMethod_get_potential_stop_words
(self, path: Optional[str])
opencompass/models/vllm_with_tf_above_v4_33.py:66
↓ 1 callersMethod_get_potential_stop_words
(self, path: Optional[str])
opencompass/models/turbomind_with_tf_above_v4_33.py:65
↓ 1 callersFunction_get_qk_scaling
https://kexue.fm/archives/8823 Args: num_res: [num_chunks] attn_dim Returns:
opencompass/datasets/unconditional_protein_generation/omegafold/omegaplm.py:39
↓ 1 callersFunction_get_sentence_tokenizer
()
opencompass/datasets/IFEval/instructions_util.py:132
↓ 1 callersMethod_get_spell_cost
计算两个单词拼写相似度,分别由字形相似度和字音相似度组成 :param a: 单词a :param b: 单词b,且单词a的长度小于等于b :param pinyin_a: 单词a的拼音 :param pinyin_b
opencompass/datasets/lawbench/utils/modules/alignment.py:166
← previousnext →601–700 of 3,711, ranked by callers