main.py (lines 14-23). These variables control API connection, model behavior, and test execution.
API Configuration
The model identifier to use for benchmarking. Leave empty (
"") to select the currently loaded model. This only works with LM-Studio when left empty.Example:The base URL for the OpenAI-compatible API endpoint. Default points to a local LM-Studio instance.Example:
Controls the reasoning effort level for models that support reasoning. Affects how much the model thinks before responding.Valid values:This value is passed to the API as
"low"- Minimal reasoning effort"medium"- Moderate reasoning effort"high"- Maximum reasoning effort
reasoning: {"effort": reasoning_effort, "summary": "detailed"}Test Execution
The number of test iterations to run for each benchmark. Each benchmark (String Reversal, Integer Addition, String Rehearsal) will execute this many times.Example:
Time in seconds to wait before stopping the current answer. Designed to prevent multi-thousand token responses when the LLM gets into a death spiral.Note: This feature is marked as “Todo: Implement this” in the source code (line 20-21) and is not currently enforced.Example:
Maximum number of output tokens the model can generate per response. The default is calculated as This value is passed to the API as
512 * 1.Recommendation: You may want to increase this value when using reasoning LLMs, as they often require more tokens for their reasoning traces.Note: There’s a todo (line 22-23) to implement automatic increase/disabling for reasoning LLMs after a warmup run.Example:max_output_tokens=max_tokensDirectory Configuration
These are defined at the top ofmain.py (lines 10-11) but are not typically modified:
logs_directory = "logs"- Directory where log files are writtenresults_directory = "results"- Directory where result JSON files are saved
Configuration Example
Here’s a complete configuration example for a high-effort reasoning model:Notes
- All configuration changes require editing the source file
main.py - Changes take effect the next time you run the
simpecommand - The configuration is saved in the result file header for reference (see Output Format)