MCPcopy Index your code

hub / github.com/algorithmicsuperintelligence/optillm / functions

Functions1,129 in github.com/algorithmicsuperintelligence/optillm

↓ 1 callersMethod_verify_single_solution
Verify a single solution with multiple passes
optillm/mars/verifier.py:120
↓ 1 callersMethod_write_log_entry
Write a log entry to the appropriate JSONL file
optillm/conversation_logger.py:209
↓ 1 callersMethodacquire_slot
Try to acquire a slot for this provider. Returns True if acquired, False if timeout or no limit.
optillm/plugins/proxy/client.py:82
↓ 1 callersFunctionadaptive_sample
(logits: torch.Tensor, metrics: Dict[str, torch.Tensor], gen_tokens: torch.Tensor, n_sampl
optillm/entropy_decoding.py:81
↓ 1 callersMethodadd_example
Add an example to the strategy.
optillm/plugins/spl/strategy.py:124
↓ 1 callersMethodadd_example_to_strategy
Add an example to a strategy.
optillm/plugins/spl/strategy.py:281
↓ 1 callersMethodadd_reasoning_example
Add a reasoning example to a strategy.
optillm/plugins/spl/strategy.py:273
↓ 1 callersMethodadd_strategy
Add a new strategy to the database.
optillm/plugins/spl/strategy.py:217
↓ 1 callersMethodadd_to_cache
Add response to cache with metadata
optillm/inference.py:769
↓ 1 callersMethodadd_verification
Add a verification result to the workspace
optillm/mars/workspace.py:64
↓ 1 callersFunctionaggregate_paths_based_on_scores
Aggregate multiple paths based on their confidence scores.
optillm/cot_decoding.py:44
↓ 1 callersMethodaggregate_results
(self, responses: List[str])
optillm/self_consistency.py:71
↓ 1 callersMethodanalyze_draft_gaps
Analyze the current draft to identify gaps, weaknesses, and areas needing research This guides the next retrieval iteration (draft-gu
optillm/plugins/deep_research/research_engine.py:664
↓ 1 callersMethodanalyze_query
(self, query: str)
optillm/z3_solver.py:173
↓ 1 callersFunctionanalyze_results
Analyze and print summary statistics of the results. Args: results (list[Dict]): List of evaluation results
scripts/eval_math500_benchmark.py:721
↓ 1 callersFunctionanalyze_results
Analyze and print comprehensive statistics
scripts/eval_imobench_answer.py:227
↓ 1 callersFunctionanalyze_results
Analyze and print comprehensive statistics of IMO evaluation results
scripts/eval_imo25_benchmark.py:615
↓ 1 callersFunctionanalyze_results
Analyze and print comprehensive statistics with full credit prioritized
scripts/eval_imobench_proof.py:326
↓ 1 callersFunctionanalyze_results
Analyze and print summary statistics of the results. Args: results (List[Dict]): List of evaluation results n (int): Num
scripts/eval_aime_benchmark.py:475
↓ 1 callersFunctionaugment_system_prompt
Augment the system prompt with selected strategies and reasoning examples. Instructs the LLM to apply the strategies in its solution.
optillm/plugins/spl/utils.py:43
↓ 1 callersMethodbackpropagate
(self, node: MCTSNode, value: float)
optillm/mcts.py:83
↓ 1 callersFunctioncalculate_attention_metrics
(attention_weights: torch.Tensor)
optillm/entropy_decoding.py:29
↓ 1 callersFunctioncalculate_confidence
Calculate the confidence score (Δ) as specified in the paper. Args: logits: List of logits for each decoding step answer
optillm/cot_decoding.py:14
↓ 1 callersMethodcalculate_logprobs
Calculate log probabilities for a sequence of tokens
optillm/inference.py:161
↓ 1 callersMethodcalculate_similarity
(self, a: str, b: str)
optillm/self_consistency.py:55
↓ 1 callersFunctioncalculate_subset_scores
Calculate full credit scores for various subsets (Novel, IMO 2024, USAMO 2025) Returns dictionary with subset names and their (solved, total,
scripts/eval_imobench_proof.py:285
↓ 1 callersMethodcalculate_token_entropy
Calculate token entropy: H = -∑P(j) log P(j) Args: logits: Raw logits tensor for current token position
optillm/deepconf/confidence.py:41
↓ 1 callersFunctioncalculate_varentropy_logsoftmax
(logits: torch.Tensor, axis: int = -1)
optillm/entropy_decoding.py:22
↓ 1 callersMethodchat_completions_create
Mock completions.create with realistic IMO25 responses
tests/test_mars_imo25.py:30
↓ 1 callersFunctioncheck_answer_correctness
Check if extracted answer matches the golden answer for the problem
scripts/eval_imo25_benchmark.py:159
↓ 1 callersMethodcheck_consensus
Check if consensus has been reached among traces. Args: traces: List of trace results Retur
optillm/deepconf/processor.py:198
↓ 1 callersFunctionchunk_context
Splits a long document into token-limited chunks based on a separator, ensuring each chunk fits within `chunk_size`. Uses a greedy approach
optillm/plugins/longcepo/chunking.py:20
↓ 1 callersMethodclassify_complexity
Classify query complexity. Args: query: The query to classify Returns: Tuple of
optillm/autothink/processor.py:152
↓ 1 callersFunctionclassify_margin
(margin)
optillm/plugins/memory_plugin.py:52
↓ 1 callersFunctionclassify_problem
Use the LLM to classify the problem type, ensuring the result is one of the valid types. Args: content: The query/problem to cla
optillm/plugins/spl/generation.py:25
↓ 1 callersMethodcleanup_placeholder_tags
Remove any remaining placeholder tags from the final report. This is a final cleanup step to ensure no incomplete research t
optillm/plugins/deep_research/research_engine.py:320
↓ 1 callersMethodclose
Close the browser session
optillm/plugins/web_search_plugin.py:91
↓ 1 callersFunctionclose_session
Close and remove a session.
optillm/plugins/deep_research/session_state.py:109
↓ 1 callersMethodcluster_similar_responses
(self, responses: List[str])
optillm/self_consistency.py:58
↓ 1 callersFunctioncollapse_chunks
Collapses context chunk pairs in sliding window until the total token count fits within the context window. Args: client: LLM API cl
optillm/plugins/longcepo/mapreduce.py:193
↓ 1 callersFunctioncompare_answers
Compare the correct answer with the predicted answer.
scripts/eval_math500_benchmark.py:639
↓ 1 callersFunctioncompare_answers
Compare predicted answer with ground truth Uses both exact match and semantic equivalence
scripts/eval_imobench_answer.py:91
↓ 1 callersMethodcompare_completions
(self, completion: str, remaining_trajectory: List[Node])
optillm/rstar.py:288
↓ 1 callersFunctioncompress_with_llm
( older_turns: List[Tuple[str, str]], system_prompt: str, client, model: str, )
optillm/plugins/compact_plugin.py:115
↓ 1 callersFunctioncompute_similarity
Compute cosine similarity between two texts using TF-IDF vectorization. This is a local implementation that doesn't require any external API.
scripts/eval_arena_hard_auto_rtc.py:35
↓ 1 callersFunctionconstruct_prompt
Construct prompt based on split type.
scripts/gen_optillm_ground_truth_dataset.py:22
↓ 1 callersFunctioncot_decode
Implement CoT-decoding for a given chat input. Args: model: The Hugging Face transformer model. tokenizer: The associate
optillm/cot_decoding.py:52
↓ 1 callersFunctioncount_reasoning_tokens
Count tokens within <think>...</think> tags in the given text. Args: text: The text to analyze tokenizer: Optional token
optillm/inference.py:34
↓ 1 callersMethodcount_tokens
Count the number of tokens in a text string.
optillm/plugins/json_plugin.py:45
↓ 1 callersFunctioncreate_benchmark_dataset
Create the complete benchmark dataset
scripts/gen_optillmbench.py:168
↓ 1 callersFunctioncreate_comparison_prompt
Create a prompt for comparing candidate solutions. Args: candidates: List of candidate responses query: The original use
optillm/plugins/genselect_plugin.py:29
↓ 1 callersMethodcreate_discriminator_prompt
(self, partial_trajectory: List[Node])
optillm/rstar.py:283
↓ 1 callersFunctioncreate_inference_client
Factory function to create an inference client
optillm/inference.py:2140
↓ 1 callersMethodcreate_pipeline
Create an MLX inference pipeline
optillm/inference.py:602
↓ 1 callersMethodcreate_tokenized_contexts
Pre-tokenize context patterns for efficient matching during generation. Similar to how guided mode does token-based matching.
optillm/autothink/steering.py:163
↓ 1 callersMethoddecompose_query
Decompose complex research query into focused sub-queries This implements the query planning phase of TTD-DR
optillm/plugins/deep_research/research_engine.py:399
↓ 1 callersFunctiondeepconf_decode
Main DeepConf decoding function for integration with OptILLM. Implements confidence-aware reasoning with early termination for local mod
optillm/deepconf/deepconf.py:16
↓ 1 callersMethoddenoise_draft_with_retrieval
Core denoising step: integrate retrieved information with current draft This is the heart of the diffusion process
optillm/plugins/deep_research/research_engine.py:803
↓ 1 callersFunctiondetect_answer_type
Detect whether this is a code, math, or generic problem
optillm/mars/answer_extraction.py:38
↓ 1 callersMethoddiscover_reasoning_structure
Stage 1: Discover reasoning structure for the given task. Args: task_description: Description of the task type
optillm/plugins/deepthink/self_discover.py:36
↓ 1 callersFunctiondownload_answerbench
Download and parse the AnswerBench CSV dataset
scripts/eval_imobench_answer.py:47
↓ 1 callersMethoddownload_dataset
Download SimpleQA dataset if not cached
scripts/eval_simpleqa_benchmark.py:141
↓ 1 callersFunctiondownload_model
(model_name)
optillm/plugins/privacy_plugin.py:74
↓ 1 callersFunctiondownload_proofbench
Download and parse the ProofBench CSV dataset
scripts/eval_imobench_proof.py:80
↓ 1 callersFunctionentropy_decode
( model: PreTrainedModel, tokenizer: PreTrainedTokenizer, messages: List[Dict[str, str]], max_
optillm/entropy_decoding.py:125
↓ 1 callersMethodevaluate
(self, system_prompt: str, user_prompt: str)
optillm/self_consistency.py:91
↓ 1 callersFunctionevaluate_dataset
Evaluate the dataset using RTC methodology.
scripts/eval_arena_hard_auto_rtc.py:127
↓ 1 callersMethodevaluate_draft_quality
Evaluate the quality improvement of the current draft vs previous iteration Used for termination decisions and component fitness upda
optillm/plugins/deep_research/research_engine.py:871
↓ 1 callersFunctionevaluate_model
Evaluate a model on the dataset using a specific approach. Returns metrics and detailed results.
scripts/eval_optillmbench.py:303
↓ 1 callersFunctionevaluate_pass_at_n
Evaluate if any of the n attempts got the correct answer. Args: attempts (List[Dict]): List of attempt results correct_a
scripts/eval_aime_benchmark.py:438
↓ 1 callersMethodevaluate_question
Evaluate a single question
scripts/eval_simpleqa_benchmark.py:329
↓ 1 callersFunctionevaluate_response
(question: str, llm_response: str, ground_truth: str, model: str)
scripts/eval_frames_benchmark.py:51
↓ 1 callersFunctionevaluate_solution
IMO25-style evaluation using rigorous two-stage verification system: 1. Detailed verification with comprehensive IMO grader prompt 2. Sim
scripts/eval_imo25_benchmark.py:518
↓ 1 callersMethodevaluate_state
(self, state: DialogueState)
optillm/mcts.py:189
↓ 1 callersFunctionevaluate_strategy_effectiveness
Evaluate how effective each strategy was in generating the response. Args: response: The LLM's final response to the query
optillm/plugins/spl/evaluation.py:106
↓ 1 callersFunctionexecute_code
Attempt to execute the code using Jupyter notebook kernel and return result or error.
optillm/plugins/coc_plugin.py:123
↓ 1 callersFunctionexecute_combined_approaches
(approaches, system_prompt, initial_query, client, model, request_config: dict = None)
optillm/server.py:486
↓ 1 callersFunctionexecute_parallel_approaches
(approaches, system_prompt, initial_query, client, model, request_config: dict = None)
optillm/server.py:495
↓ 1 callersMethodexecute_solver_code
(self, code: str)
optillm/z3_solver.py:328
↓ 1 callersMethodexpand
(self, node: MCTSNode)
optillm/mcts.py:54
↓ 1 callersFunctionextract_abcd
Scan text (with Markdown/LaTeX wrappers intact) and return 'A', 'B', 'C', or 'D' if a correct-answer declaration is found. Otherwise retu
optillm/cepo/cepo.py:893
↓ 1 callersFunctionextract_answer
Extract the answer from a math solution response.
scripts/eval_math500_benchmark.py:49
↓ 1 callersMethodextract_answer
Universal answer extraction using math-verify library with fallback patterns. Args: solution: The solution text to extra
optillm/utils/answer_extraction.py:21
↓ 1 callersFunctionextract_answer_from_solution
Extract the final answer from a solution
scripts/eval_imobench_answer.py:123
↓ 1 callersFunctionextract_answer_from_solution
Extract the final answer from a solution using unified answer extraction
scripts/eval_imo25_benchmark.py:107
↓ 1 callersFunctionextract_answer_mathverify
(response_str, last_n_chars=100)
optillm/cepo/cepo.py:880
↓ 1 callersFunctionextract_choice_index_from_question
Extract the index of the correct answer from a multiple-choice question. Args: question: The question text containing choices
scripts/eval_optillmbench.py:115
↓ 1 callersFunctionextract_clean_answer
Extract clean final answer from MARS synthesis text Args: text: Full synthesis output with reasoning mode: 'auto', 'code', '
optillm/mars/answer_extraction.py:12
↓ 1 callersFunctionextract_code_answer
Extract clean code from synthesis output Finds the last complete code block as the final answer
optillm/mars/answer_extraction.py:56
↓ 1 callersMethodextract_examples_from_query
(self, initial_query: str)
optillm/leap.py:46
↓ 1 callersFunctionextract_final_answer
Extract and verify the final answer using official IMO 2025 solutions
scripts/eval_imo25_benchmark.py:52
↓ 1 callersFunctionextract_final_answer
Try to extract just the final answer from a response. This is generic and looks for common patterns.
optillm/plugins/majority_voting_plugin.py:47
↓ 1 callersFunctionextract_first_turn_content
Extract the content from the first turn in the conversation.
scripts/eval_arena_hard_auto_rtc.py:29
↓ 1 callersFunctionextract_generic_answer
Extract answer for generic (non-code, non-math) problems Returns the last paragraph or sentence as the final answer For proof-based probl
optillm/mars/answer_extraction.py:127
↓ 1 callersFunctionextract_key_information
(system_message, text: str, query: str, client, model: str)
optillm/plugins/memory_plugin.py:55
↓ 1 callersFunctionextract_llm_response
Extract text content and finish reason from an LLM response. Supports both non-streaming responses (dict-like with `.choices[0].message.cont
optillm/cepo/cepo.py:175
↓ 1 callersFunctionextract_math_answer
Extract clean math answer from synthesis output Finds the last \\boxed{} answer as the final answer
optillm/mars/answer_extraction.py:88
↓ 1 callersFunctionextract_query
(text: str)
optillm/plugins/memory_plugin.py:36
↓ 1 callersFunctionextract_schema_from_response_format
(*args)
tests/test_json_plugin.py:33
↓ 1 callersFunctionextract_schema_from_response_format
Extract schema from response_format field.
optillm/plugins/json_plugin.py:116
← previousnext →301–400 of 1,129, ranked by callers