MCPcopy Create free account

hub / github.com/InternScience/SciReason / types & classes

Types & classes923 in github.com/InternScience/SciReason

↓ 39 callersClassPromptList
An enhanced list, used for intermidate representation of a prompt.
opencompass/utils/prompt.py:79
↓ 28 callersClassLogicNode
A LogicNode is a tree primitive. It is either a deduction or a leaf fact. Leaf facts are the ones that we use in story generation (if they a
opencompass/datasets/musr/tree.py:54
↓ 17 callersClassRegistry
opencompass/registry.py:7
↓ 14 callersClassConfig
opencompass/datasets/subjective/flames.py:15
↓ 13 callersClassLMTemplateParser
Intermidate prompt template parser, specifically for language models. Args: meta_template (Dict): The meta template for the model.
opencompass/models/base.py:265
↓ 11 callersClassAPITemplateParser
Intermidate prompt template parser, specifically for API models. Args: meta_template (Dict): The meta template for the model.
opencompass/models/base_api.py:164
↓ 10 callersClassPromptTemplate
In-context Learning Prompt Template Class This class represents a template that guides the generation of prompts in the retrieval or inference
opencompass/openicl/icl_prompt_template.py:13
↓ 8 callersClassReasonRetrieveUnderstandEvaluator
Planning Evaluation Args: dataset_path(str): File path of evaluation dataset bert_score_model(str): the bert_score model for sente
opencompass/datasets/teval/evaluators/reason_retrieve_understand_evaluator.py:26
↓ 7 callersClassLarkReporter
opencompass/utils/lark.py:8
↓ 6 callersClassResponseDataSample
Args: template(str): Format string with keyword-only arguments. For example '{who} like {what}' pred(Any): Parsed dat
opencompass/datasets/teval/schema.py:6
↓ 6 callersClassRouge
opencompass/openicl/icl_evaluator/hf_metrics/rouge.py:94
↓ 6 callersClassTokenizer
分词器
opencompass/datasets/lawbench/utils/modules/tokenizer.py:8
↓ 5 callersClassGenInferencerOutputHandler
opencompass/openicl/icl_inferencer/icl_base_inferencer.py:101
↓ 4 callersClassLogicTree
Main datastructure used when creating a MuSR example. It's basically a standard tree with some parameters controlling the shape.
opencompass/datasets/musr/tree.py:158
↓ 4 callersClassOpenAI
Model wrapper around OpenAI's models. Args: path (str): The name of OpenAI's model. max_seq_len (int): The maximum allowed sequen
opencompass/models/openai_api.py:32
↓ 4 callersClassTokenizer
Helper class to wrap a callable into a class with a `tokenize` method as used by rouge-score.
opencompass/openicl/icl_evaluator/hf_metrics/rouge.py:83
↓ 4 callersClassTreeNode
opencompass/datasets/phybench/EED.py:204
↓ 3 callersClassAlignment
对齐错误句子和正确句子, 使用编辑距离算法抽取编辑操作
opencompass/datasets/lawbench/utils/modules/alignment.py:49
↓ 2 callersClassAnnotatedTree
opencompass/datasets/phybench/extended_zss.py:42
↓ 2 callersClassAttention
Widely used attention mechanism Attributes: qg_weights (nn.Parameter): weight matrices for queries and gates qg_bias (nn.Par
opencompass/datasets/unconditional_protein_generation/omegafold/modules.py:375
↓ 2 callersClassBasicTokenizer
Runs basic tokenization (punctuation splitting, lower casing, etc.).
opencompass/datasets/lawbench/utils/modules/tokenization.py:136
↓ 2 callersClassCharFuncs
opencompass/datasets/lawbench/utils/char_smi.py:98
↓ 2 callersClassChatGPTSchema
opencompass/datasets/agieval/constructions.py:55
↓ 2 callersClassChatGPTSchema
opencompass/datasets/medbench/constructions.py:55
↓ 2 callersClassDataCollatorWithPaddingAndCuda
opencompass/openicl/icl_retriever/icl_topk_retriever.py:165
↓ 2 callersClassDatasetEncoder
opencompass/openicl/icl_dataset_reader.py:247
↓ 2 callersClassGenInferencer
Generation Inferencer class to directly evaluate by generation. Attributes: model (:obj:`BaseModelWrapper`, optional): The module to infe
opencompass/openicl/icl_inferencer/icl_gen_inferencer.py:27
↓ 2 callersClassIPythonInterpreter
A IPython executor that can execute Python scripts in a jupyter manner. Args: description (str): The description of the action. Defaults
opencompass/lagent/actions/ipython_interpreter.py:39
↓ 2 callersClassInstructEvaluator
Instruct Following Evaluation Args: dataset_path(str): File path of evaluation dataset.
opencompass/datasets/teval/evaluators/instruct_evaluator.py:10
↓ 2 callersClassLMEvalDataset
A dataset wrapper around the evaluator inputs, designed for OpenCompass's internal use.
opencompass/datasets/lmeval.py:6
↓ 2 callersClassLiveMathBenchOutputHandler
opencompass/datasets/livemathbench/livemathbench.py:317
↓ 2 callersClassMenu
A curses menu that allows the user to select one item from each list. Args: lists (list[list[str]]): A list of lists of strings, where ea
opencompass/utils/menu.py:12
↓ 2 callersClassMerger
合并编辑操作,从Token-Level转换为Span-Level
opencompass/datasets/lawbench/utils/modules/merger.py:8
↓ 2 callersClassMultiTokenEOSCriteria
Criteria to stop on the specified multi-token sequence.
opencompass/models/huggingface.py:17
↓ 2 callersClassOpenICLInferTask
OpenICL Inference Task. This task is used to run the inference process.
opencompass/tasks/openicl_infer.py:21
↓ 2 callersClassOutputExample
opencompass/datasets/IFEval/evaluation_main.py:52
↓ 2 callersClassPlanningEvaluator
Planning Evaluation Args: dataset_path(str): File path of evaluation dataset name_weight(float): the weight of action_name in bert
opencompass/datasets/teval/evaluators/planning_evaluator.py:15
↓ 2 callersClassRetrosynthesisEvaluator
Evaluator for retrosynthesis models. It calculates Top-K accuracy and Max-Fragment accuracy based on SMILES string comparisons.
opencompass/datasets/LLM4Chem/retrosynthesis_evaluator.py:207
↓ 2 callersClassReviewEvaluator
Review Capability Evaluation Args: dataset_path(str): File path of evaluation dataset.
opencompass/datasets/teval/evaluators/review_evaluator.py:8
↓ 2 callersClassSymPyError
opencompass/datasets/phybench/EED.py:235
↓ 2 callersClassTimeoutError
opencompass/lagent/actions/ipython_interpreter.py:35
↓ 2 callersClassTokenBucket
A token bucket for rate limiting. Args: query_per_second (float): The rate of the token bucket.
opencompass/models/base_api.py:426
↓ 2 callersClassZeroRetriever
Zeroshot Retriever. The retriever returns empty list for all queries. Args: dataset (`BaseDataset`): Any BaseDataset instances.
opencompass/openicl/icl_retriever/icl_zero_retriever.py:11
↓ 1 callersClassAAFrame
The transformation object that holds translation and rotation
opencompass/datasets/unconditional_protein_generation/omegafold/utils/protein_utils/aaframe.py:57
↓ 1 callersClassAPITemplateParser
APITemplateParser accepts OpenAI format dialog inputs.
opencompass/openicl/icl_inferencer/icl_chat_inferencer.py:85
↓ 1 callersClassBadcaseShower
tools/case_analyzer.py:37
↓ 1 callersClassCLPInferencerOutputHandler
opencompass/openicl/icl_inferencer/icl_base_inferencer.py:164
↓ 1 callersClassCapturing
opencompass/datasets/apps.py:329
↓ 1 callersClassCapturing
opencompass/datasets/taco.py:279
↓ 1 callersClassCapturing
opencompass/datasets/livecodebench/testing_util.py:54
↓ 1 callersClassClassifier
错误类型分类器
opencompass/datasets/lawbench/utils/modules/classifier.py:36
↓ 1 callersClassCommand
This object takes in command and executes it with time out.
opencompass/datasets/ds1000.py:280
↓ 1 callersClassConfig
opencompass/datasets/subjective/alignbench.py:22
↓ 1 callersClassConfigWrapper
opencompass/datasets/korbench/korbench_utils.py:99
↓ 1 callersClassConfigWrapper
opencompass/datasets/korbench/korbench_dataset_config/config_wrapper.py:4
↓ 1 callersClassConfigWrapper
opencompass/datasets/supergpqa/supergpqa_utils.py:99
↓ 1 callersClassConfigWrapper
opencompass/datasets/supergpqa/supergpqa_dataset_config/config_wrapper.py:4
↓ 1 callersClassCurrentInternTrainManager
opencompass/models/interntrain.py:32
↓ 1 callersClassDatasetReader
In-conext Learning Dataset Reader Class Generate an DatasetReader instance through 'dataset'. Attributes: dataset (:obj:`Dataset` or
opencompass/openicl/icl_dataset_reader.py:17
↓ 1 callersClassDistError
opencompass/datasets/phybench/EED.py:247
↓ 1 callersClassExtractor
opencompass/datasets/math_intern.py:114
↓ 1 callersClassFilterDuplicateMessage
Filter the repeated message. Args: name (str): name of the filter.
opencompass/utils/logging.py:47
↓ 1 callersClassGaokaoBenchEvaluator
opencompass/datasets/GaokaoBench.py:37
↓ 1 callersClassGatedAttentionUnit
opencompass/datasets/unconditional_protein_generation/omegafold/omegaplm.py:56
↓ 1 callersClassGenericRuntime
opencompass/lagent/actions/python_interpreter.py:13
↓ 1 callersClassGeoFormerBlock
One iteration of GeoFormer
opencompass/datasets/unconditional_protein_generation/omegafold/geoformer.py:43
↓ 1 callersClassHTTPAdapterWithSocketOptions
opencompass/models/bailing_api_oc.py:26
↓ 1 callersClassInferencePPLOnlyInferencerOutputHandler
opencompass/openicl/icl_inferencer/icl_inference_ppl_only_inferencer.py:222
↓ 1 callersClassInputExample
opencompass/datasets/IFEval/evaluation_main.py:44
↓ 1 callersClassInvariantPointAttention
This is the Invariant Point Attention from Jumper et al. (2021) that performs transformer-like operation on frames
opencompass/datasets/unconditional_protein_generation/omegafold/decode.py:44
↓ 1 callersClassLLInferencerOutputHandler
opencompass/openicl/icl_inferencer/icl_ll_inferencer.py:159
↓ 1 callersClassLMTemplateParser
LMTemplateParser accepts OpenAI format dialog inputs.
opencompass/openicl/icl_inferencer/icl_chat_inferencer.py:43
↓ 1 callersClassLaTeXError
opencompass/datasets/phybench/EED.py:229
↓ 1 callersClassLawBenchEvaluator
opencompass/datasets/lawbench/lawbench.py:53
↓ 1 callersClassLegacyInternTrainManager
opencompass/models/interntrain.py:63
↓ 1 callersClassListWrapper
opencompass/openicl/icl_retriever/icl_topk_retriever.py:147
↓ 1 callersClassMATHAgentEvaluator
Math agent evaluator for soft condition. Args: action (str): Action for catching internal prediction. Defaults to `PythonInte
opencompass/datasets/math.py:514
↓ 1 callersClassMathJudger
opencompass/datasets/OlympiadBench.py:277
↓ 1 callersClassMultiTokenEOSCriteria
Criteria to stop on the specified multi-token sequence.
opencompass/models/huggingface_above_v4_33.py:20
↓ 1 callersClassMyConfig
opencompass/datasets/phybench/latex_pre_process.py:470
↓ 1 callersClassMyNormalization
Configuration for latex normalization. Each field controls a group of related normalizations: - basic_latex: Basic latex command replacements
opencompass/datasets/phybench/latex_pre_process.py:485
↓ 1 callersClassNonASCIITokenizer
opencompass/datasets/PMMEval/flores.py:69
↓ 1 callersClassOlympiadBenchPrompter
opencompass/datasets/OlympiadBench.py:186
↓ 1 callersClassOmegaFold
The Entire OmegaFold model that comprises a pretrained Protein Language Model, an encoder of the primary sequence, as well as a structure mod
opencompass/datasets/unconditional_protein_generation/omegafold/model.py:118
↓ 1 callersClassOmegaFoldCycle
opencompass/datasets/unconditional_protein_generation/omegafold/model.py:52
↓ 1 callersClassOmegaPLMLayer
One OmegaPLM Layer This layer baked the pre-layernorm configuration into the model Attributes: gau: the underlying GAU layer contain
opencompass/datasets/unconditional_protein_generation/omegafold/omegaplm.py:121
↓ 1 callersClassOpenICLAttackTask
OpenICL Inference Task. This task is used to run the inference process.
opencompass/tasks/openicl_attack.py:19
↓ 1 callersClassOpenICLEvalTask
OpenICL Evaluation Task. This task is used to evaluate the metric between predictions and references.
opencompass/tasks/openicl_eval.py:25
↓ 1 callersClassPPLInferencerOutputHandler
opencompass/openicl/icl_inferencer/icl_base_inferencer.py:123
↓ 1 callersClassPPLOnlyInferencerOutputHandler
opencompass/openicl/icl_inferencer/icl_mink_percent_inferencer.py:173
↓ 1 callersClassPPLOnlyInferencerOutputHandler
opencompass/openicl/icl_inferencer/icl_ppl_only_inferencer.py:172
↓ 1 callersClassPairStructEmbedder
opencompass/datasets/unconditional_protein_generation/omegafold/embedders.py:331
↓ 1 callersClassPerspectiveAPIClient
Perspective api client for toxic evaluation. Args: key (str): Perspective API key. If set to `ENV`, find it in environment va
opencompass/openicl/icl_evaluator/icl_toxic_evaluator.py:19
↓ 1 callersClassPredictionMerger
tools/prediction_merger.py:24
↓ 1 callersClassPredictionMerger
opencompass/tasks/outer_eval/alpacaeval.py:15
↓ 1 callersClassRelPosEmbedder
Compute the relative positional embedding, this is the same algorithm in Jumper et al. (2021) Suppl. Alg. 4 "relpos"
opencompass/datasets/unconditional_protein_generation/omegafold/embedders.py:203
↓ 1 callersClassResultsForHumanSchema
opencompass/datasets/agieval/constructions.py:65
↓ 1 callersClassResultsForHumanSchema
opencompass/datasets/medbench/constructions.py:65
↓ 1 callersClassSWCELossInferencerOutputHandler
opencompass/openicl/icl_inferencer/icl_sw_ce_loss_inferencer.py:334
↓ 1 callersClassSlidingWindowEvalDataset
opencompass/openicl/icl_inferencer/icl_sw_ce_loss_inferencer.py:265
next →1–100 of 923, ranked by callers