EfficientReasoning/efficient_reasoning_online_judgement
3
Training-free Efficient Reasoning Online Judge
A web-based platform for designing and evaluating training-free efficient reasoning methods for multi-branch reasoning tasks.
Features
- ๐ฏ Interactive Code Editor: Write and test your training-free efficient reasoning methods directly in the browser
- ๐ Real-time Evaluation: Get immediate feedback on accuracy and token cost
- ๐งช Single Question Testing: Debug your method on individual questions
- ๐ Example Templates: Pre-built examples to get you started
- ๐จ Modern UI: Clean, intuitive interface similar to LeetCode
How to Use
Writing Your Method
Your code should use these three core methods:
- `probe_new()` - Start probing a new branch
- Returns:
(answer, index, is_finish) answer: Current answer from the branchindex: Branch index (for use withprobe_more)is_finish: Whether the branch is complete
- `probe_more(index)` - Continue probing a specific branch
- Returns:
(answer, is_finish) - Use the
indexfromprobe_new()to continue the same branch
- `get_new_branch_final_answer()` - Get the complete answer from a branch
- Returns: The final answer string
- This reads the entire branch (higher cost)
Code Format
Your code should assign the final answer to a variable named result or answer:
# Example: Simple greedy approach
answer, index, is_finish = probe_new()
result = answerAvailable Models and Datasets
- Models:
Qwen3-0.6B,Qwen3-1.7B - Datasets:
aime24,aime25
Evaluation Metrics
- Accuracy: Percentage of questions answered correctly (averaged over multiple random seeds)
- Average Cost: Average number of tokens consumed per question
- Trade-off: Lower cost usually means lower accuracy, and vice versa
Deployment on Hugging Face Spaces
This Space is configured to use Docker (sdk: docker). The Dockerfile is included and will:
- Install Python 3.11 and dependencies from
requirements.txt - Copy all application files
- Run the Flask app using Gunicorn on port 7860
Alternative: Python SDK
If you prefer to use Python SDK instead of Docker, change the README.md frontmatter:
sdk: pythonAnd ensure app.py is the main entry point (it already is).
Local Development
For local development, run:
pip install -r requirements.txt
python app.pyThe server will start on http://localhost:7860 (or the port specified by the PORT environment variable).
