MCPcopy Create free account

hub / github.com/algorithmicsuperintelligence/optillm / functions

Functions1,129 in github.com/algorithmicsuperintelligence/optillm

Method__init__
(self, system_prompt: str, conversation_history: List[Dict[str, str]], current_query: str)
optillm/mcts.py:12
Method__init__
(self, state: DialogueState, parent=None)
optillm/mcts.py:21
Method__init__
(self, simulation_depth, exploration_weight, client, model, request_config=None, request_id=None)
optillm/mcts.py:29
Method__init__
(self, log_dir: Path, enabled: bool = False)
optillm/conversation_logger.py:39
Method__init__
(self, system_prompt: str, client, model: str, request_config: dict = None, request_id: str = None)
optillm/plansearch.py:9
Method__init__
(self, config: Dict[str, Any], tokenizer, model)
optillm/thinkdeeper.py:24
Method__init__
(self, system_prompt: str, client, model: str, timeout: int = 30, request_config: dict = None, request_id: str
optillm/z3_solver.py:144
Method__init__
(self, api_key: Optional[str] = None, base_url: Optional[str] = None)
optillm/litellm_wrapper.py:22
Method__init__
Initialize the request batcher Args: max_batch_size: Maximum number of requests per batch max_wait_m
optillm/batching.py:48
Method__init__
(self, tokenizer, model)
optillm/inference.py:127
Method__init__
(self, model_config: MLXModelConfig, cache_manager)
optillm/inference.py:304
Method__init__
( self, hidden_size: int, num_attention_heads: int, dropout: float = 0.1,
optillm/inference.py:623
Method__init__
(self, max_size: int = 1000)
optillm/inference.py:745
Method__init__
(self)
optillm/inference.py:793
Method__init__
(self, max_size: int = 5)
optillm/inference.py:833
Method__init__
(self)
optillm/inference.py:960
Method__init__
(self, cache_manager: CacheManager, device_manager: DeviceManager)
optillm/inference.py:1003
Method__init__
(self, cache_manager: CacheManager)
optillm/inference.py:1116
Method__init__
(self, model_config: ModelConfig, cache_manager, device_manager, model_manager, lora_manager)
optillm/inference.py:1216
Method__init__
(self, tokenizer, stop_sequences, input_length)
optillm/inference.py:1493
Method__init__
(self, content: str, role: str = "assistant", logprobs: Optional[Dict] = None)
optillm/inference.py:1670
Method__init__
( self, index: int, message: Dict[str, Any], finish_reason: str = "stop",
optillm/inference.py:1676
Method__init__
(self, prompt_tokens: int, completion_tokens: int, total_tokens: int, reasoning_tokens: int = 0)
optillm/inference.py:1690
Method__init__
(self, response_dict: Dict)
optillm/inference.py:1697
Method__init__
(self)
optillm/inference.py:1746
Method__init__
(self, client: 'InferenceClient')
optillm/inference.py:1775
Method__init__
(self, client: 'InferenceClient')
optillm/inference.py:1780
Method__init__
(self, client, model: str, num_samples: int = 5, similarity_threshold: float = 0.8, request_config: dict = No
optillm/self_consistency.py:10
Method__init__
(self)
optillm/utils/answer_extraction.py:18
Method__init__
(self, tokens: List[int], text: str, confidence_stats: Dict[str, float])
optillm/deepconf/processor.py:41
Method__init__
Initialize the DeepConf processor. Args: model: The language model tokenizer: The tokenizer
optillm/deepconf/processor.py:52
Method__init__
Initialize the confidence calculator. Args: window_size: Size of sliding window for group confidence
optillm/deepconf/confidence.py:23
Method__init__
Initialize the threshold calibrator. Args: variant: "low" (aggressive, top 10%) or "high" (conservative, top 90%
optillm/deepconf/confidence.py:184
Method__init__
(self, client, model: str, config: Dict[str, Any])
optillm/mars/strategy_network.py:62
Method__init__
(self, client, model: str, config: Dict[str, Any])
optillm/mars/aggregator.py:31
Method__init__
(self, agent_id: int, client, model: str, config: Dict[str, Any])
optillm/mars/agent.py:22
Method__init__
(self, problem: str, config: Dict[str, Any])
optillm/mars/workspace.py:42
Method__init__
(self, agents: List[MARSAgent], workspace: MARSWorkspace, config: Dict[str, Any])
optillm/mars/verifier.py:18
Method__init__
(self, client, timeout=1800.0, max_retries=0)
optillm/plugins/deep_research_plugin.py:22
Method__init__
(self, parent)
optillm/plugins/deep_research_plugin.py:45
Method__init__
(self, parent)
optillm/plugins/deep_research_plugin.py:50
Method__init__
(self, max_size: int = 100)
optillm/plugins/memory_plugin.py:10
Method__init__
Initialize the JSON generator with a specific model.
optillm/plugins/json_plugin.py:25
Method__init__
(self, headless: bool = False, timeout: int = 30)
optillm/plugins/web_search_plugin.py:26
Method__init__
(self, headless: bool = False, timeout: int = 30)
optillm/plugins/web_search_plugin.py:112
Method__init__
Initialize with optional custom config path
optillm/plugins/mcp_plugin.py:167
Method__init__
(self, server_name: str, config: ServerConfig)
optillm/plugins/mcp_plugin.py:264
Method__init__
(self, config_manager: MCPConfigManager)
optillm/plugins/mcp_plugin.py:504
Method__init__
(self, base_model, num_labels)
optillm/plugins/router_plugin.py:31
Method__init__
( self, strategy_id: str, problem_type: str, strategy_text: str, e
optillm/plugins/spl/strategy.py:30
Method__init__
(self, db_path: str = STRATEGY_DB_PATH, metrics_path: str = STRATEGY_METRICS_PATH)
optillm/plugins/spl/strategy.py:133
Method__init__
(self, *args, **kwargs)
optillm/plugins/longcepo/utils.py:16
Method__init__
(self)
optillm/plugins/deep_research/session_state.py:15
Method__init__
(self, client, model: str, max_iterations: int = 5, max_sources: int = 30)
optillm/plugins/deep_research/research_engine.py:293
Method__init__
(self, config: Dict)
optillm/plugins/proxy/client.py:18
Method__init__
(self, config: Dict, fallback_client=None)
optillm/plugins/proxy/client.py:107
Method__init__
(self, proxy_client)
optillm/plugins/proxy/client.py:161
Method__init__
(self, proxy_client)
optillm/plugins/proxy/client.py:166
Method__init__
(self)
optillm/plugins/proxy/approach_handler.py:16
Method__init__
(self, providers: List, enabled: bool = True, interval: int = 30, timeout: int = 5)
optillm/plugins/proxy/health.py:14
Method__init__
(self, providers: List)
optillm/plugins/proxy/routing.py:26
Method__init__
(self, providers: List)
optillm/plugins/proxy/routing.py:69
Method__init__
(self, providers: List)
optillm/plugins/proxy/routing.py:97
Method__init__
(self, client, model: str, max_tokens: int = 16382, request_config: Dict[str, Any] = None)
optillm/plugins/deepthink/uncertainty_cot.py:27
Method__init__
(self, client, model: str, max_tokens: int = 16382, request_config: Dict[str, Any] = None)
optillm/plugins/deepthink/self_discover.py:25
Method__init__
Initialize the complexity classifier. Args: model_name: HuggingFace model name or path for the classifier
optillm/autothink/classifier.py:21
Method__init__
Initialize the steering vector manager. Args: dataset_name: Name of the HuggingFace dataset containing steering
optillm/autothink/steering.py:23
Method__init__
Initialize the steering hook. Args: manager: The steering vector manager layer_num: The layer number
optillm/autothink/steering.py:288
Method__init__
Initialize the AutoThink processor. Args: config: Configuration dictionary tokenizer: Model tokenize
optillm/autothink/processor.py:71
Method__init__
Initialize the AutoThink processor. Args: model: Language model tokenizer: Model tokenizer
optillm/autothink/autothink.py:22
Method__len__
(self)
scripts/train_optillm_classifier.py:32
Method__new__
(cls, *args, **kwargs)
optillm/inference.py:824
Method__post_init__
Initialize default values for mutable fields
optillm/plugins/mcp_plugin.py:140
Method__setitem__
(self, key, value)
optillm/plugins/longcepo/utils.py:20
Method__str__
(self)
optillm/mcts.py:17
Method_batch_generate
Perform batch generation using MLX model Args: input_ids: Batched input token IDs attention_mask: At
optillm/inference.py:574
Method_batch_tokenize
Tokenize a batch of prompts with padding Args: prompts: List of text prompts Returns:
optillm/inference.py:560
Method_call_model_for_aggregation
Call the model to perform aggregation (synchronous for executor)
optillm/mars/aggregator.py:250
Method_check_loop
Main health check loop
optillm/plugins/proxy/health.py:39
Method_classify_problem_with_llm
Use LLM to classify problem type
optillm/mars/strategy_network.py:343
Method_clean_and_parse_strategy
Strategy 4: Clean common formatting issues and parse.
optillm/plugins/deepthink/self_discover.py:355
Method_create_response
Return the next response in sequence
tests/test_conversation_logging_approaches.py:74
Method_extract_json_strategy_1
Strategy 1: Find first complete JSON object with balanced braces.
optillm/plugins/deepthink/self_discover.py:302
Method_extract_json_strategy_2
Strategy 2: Use regex with non-greedy matching.
optillm/plugins/deepthink/self_discover.py:326
Method_extract_json_strategy_3
Strategy 3: Extract between ```json``` code blocks.
optillm/plugins/deepthink/self_discover.py:336
Method_extract_strategy_from_solution
Extract reasoning strategy using LLM analysis
optillm/mars/strategy_network.py:135
Method_generate_strategy_enhanced_solution
Generate solution enhanced with peer strategies
optillm/mars/strategy_network.py:432
Method_load_adapter
()
optillm/inference.py:1151
Method_load_model
()
optillm/inference.py:325
Method_load_model
()
optillm/inference.py:1025
Method_parse_boxed_content
Parse content from boxed answers
optillm/utils/answer_extraction.py:276
Method_replace_linear_layers
(module)
optillm/inference.py:1009
Methodaggregate_solution_group
Aggregate a single group of solutions
optillm/mars/aggregator.py:178
Functionas_numerical
(x)
optillm/z3_solver.py:115
Methodavailable_slots
Get number of available slots, None if unlimited.
optillm/plugins/proxy/client.py:97
Methodavg_latency
Get average latency
optillm/plugins/proxy/client.py:76
Methodbatch_processor
Background thread that forms and processes batches
optillm/batching.py:136
Methodchat
(self)
tests/test_mars_imo25.py:109
Methodchat
(self)
tests/test_mars_parallel.py:80
Methodchat_completions_create
(self, *args, **kwargs)
tests/test.py:41
← previousnext →701–800 of 1,129, ranked by callers