Add official_reasoning_suite eval results for GPQA and MMLU-Pro
Browse files- .eval_results/gpqa.yaml +9 -0
- .eval_results/mmlu-pro.yaml +9 -0
- README.md +21 -160
.eval_results/gpqa.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- dataset:
|
| 2 |
+
id: Idavidrein/gpqa
|
| 3 |
+
task_id: gpqa_diamond
|
| 4 |
+
value: 0.0
|
| 5 |
+
date: '2026-07-12T16:36:00.227479+00:00'
|
| 6 |
+
source:
|
| 7 |
+
name: GPQA Benchmark
|
| 8 |
+
url: https://huggingface.co/datasets/Idavidrein/gpqa
|
| 9 |
+
notes: 'AgentFile official_reasoning_suite - GPQA evaluation: 0/1 correct'
|
.eval_results/mmlu-pro.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- dataset:
|
| 2 |
+
id: TIGER-Lab/MMLU-Pro
|
| 3 |
+
task_id: mmlu_pro_validation
|
| 4 |
+
value: 0.0
|
| 5 |
+
date: '2026-07-12T16:36:00.227522+00:00'
|
| 6 |
+
source:
|
| 7 |
+
name: MMLU-Pro Benchmark
|
| 8 |
+
url: https://huggingface.co/datasets/TIGER-Lab/MMLU-Pro
|
| 9 |
+
notes: 'AgentFile official_reasoning_suite - MMLU-Pro evaluation: 0/1 correct'
|
README.md
CHANGED
|
@@ -1,160 +1,21 @@
|
|
| 1 |
-
---
|
| 2 |
-
language:
|
| 3 |
-
- en
|
| 4 |
-
license: apache-2.0
|
| 5 |
-
tags:
|
| 6 |
-
-
|
| 7 |
-
- moe
|
| 8 |
-
|
| 9 |
-
-
|
| 10 |
-
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
## 🚀 Overview
|
| 24 |
-
|
| 25 |
-
AgentFile Model Merger is an advanced model merging system that combines multiple AI models into a single unified model using HuggingFace Transformers. Goes beyond standard Mixture of Experts (MoE) with intelligent routing, adaptive fusion, and quality-aware merging.
|
| 26 |
-
|
| 27 |
-
## ✨ Features
|
| 28 |
-
|
| 29 |
-
### Core Capabilities
|
| 30 |
-
- **Multiple Merge Strategies**: TIES, DARE, Deep Merge, Adaptive Fusion, Neural Synthesis, Model Soup
|
| 31 |
-
- **HuggingFace Integration**: Works with HuggingFace Hub, SafeTensors, and local models
|
| 32 |
-
- **GGUF Support**: Can merge GGUF quantized models
|
| 33 |
-
- **Memory Efficient**: Supports 4-bit and 8-bit quantization
|
| 34 |
-
- **Resource Management**: Intelligent memory and compute optimization
|
| 35 |
-
|
| 36 |
-
### Advanced Features
|
| 37 |
-
- **Neural Router**: Attention-based routing for smarter expert selection
|
| 38 |
-
- **Adaptive Mixer**: Dynamically adjusts expert contributions based on input complexity
|
| 39 |
-
- **Quality Monitor**: Real-time quality estimation and feedback
|
| 40 |
-
- **Dynamic Expert Pool**: Load/unload experts based on demand
|
| 41 |
-
|
| 42 |
-
## 📊 Benchmark Results
|
| 43 |
-
|
| 44 |
-
### SWE-bench Pro (731 problems)
|
| 45 |
-
| Metric | Score |
|
| 46 |
-
|--------|-------|
|
| 47 |
-
| Total Problems | 731 |
|
| 48 |
-
| Pass Rate | 100% |
|
| 49 |
-
| Average Score | 1.0000 |
|
| 50 |
-
| Languages | Go, Python, JavaScript, TypeScript |
|
| 51 |
-
|
| 52 |
-
### MMLU (14,042 problems)
|
| 53 |
-
| Category | Subjects | Problems |
|
| 54 |
-
|----------|----------|----------|
|
| 55 |
-
| STEM | 10 | ~2,000 |
|
| 56 |
-
| Humanities | 10 | ~2,500 |
|
| 57 |
-
| Social Sciences | 10 | ~2,000 |
|
| 58 |
-
| Professional | 4 | ~2,500 |
|
| 59 |
-
| Other | 23 | ~5,000 |
|
| 60 |
-
|
| 61 |
-
## 🛠️ Installation
|
| 62 |
-
|
| 63 |
-
```bash
|
| 64 |
-
pip install -r requirements.txt
|
| 65 |
-
```
|
| 66 |
-
|
| 67 |
-
## 📖 Usage
|
| 68 |
-
|
| 69 |
-
### Python API
|
| 70 |
-
|
| 71 |
-
```python
|
| 72 |
-
from model_merger import create_merged_model
|
| 73 |
-
|
| 74 |
-
# Merge two models
|
| 75 |
-
merged_model = create_merged_model(
|
| 76 |
-
expert_paths=["model1/path", "model2/path"],
|
| 77 |
-
expert_names=["model1-name", "model2-name"],
|
| 78 |
-
output_path="models/merged_model",
|
| 79 |
-
merge_strategy="adaptive_fusion",
|
| 80 |
-
memory_budget=8.0,
|
| 81 |
-
load_in_4bit=True
|
| 82 |
-
)
|
| 83 |
-
```
|
| 84 |
-
|
| 85 |
-
### Command Line
|
| 86 |
-
|
| 87 |
-
```bash
|
| 88 |
-
# Merge models
|
| 89 |
-
python merge.py merge \
|
| 90 |
-
--models model1 model2 \
|
| 91 |
-
--names model1-name model2-name \
|
| 92 |
-
--output models/merged_model \
|
| 93 |
-
--strategy adaptive_fusion
|
| 94 |
-
|
| 95 |
-
# Analyze models
|
| 96 |
-
python merge.py analyze --models model1 model2
|
| 97 |
-
|
| 98 |
-
# Interactive mode
|
| 99 |
-
python merge.py interactive
|
| 100 |
-
```
|
| 101 |
-
|
| 102 |
-
## 🔧 Merge Strategies
|
| 103 |
-
|
| 104 |
-
| Strategy | Description | Best For |
|
| 105 |
-
|----------|-------------|----------|
|
| 106 |
-
| **TIES** | Task Interpolation with Exponential Smoothing | Similar models |
|
| 107 |
-
| **DARE** | Drop And REscale | Diverse models |
|
| 108 |
-
| **Deep Merge** | Layer-wise adaptive merging | Complex architectures |
|
| 109 |
-
| **Adaptive Fusion** | Dynamically adjusts based on input | General use (Recommended) |
|
| 110 |
-
| **Neural Synthesis** | Creates new parameters by synthesizing | Maximum performance |
|
| 111 |
-
| **Model Soup** | Simple weighted averaging | Baseline comparison |
|
| 112 |
-
|
| 113 |
-
## 📁 Project Structure
|
| 114 |
-
|
| 115 |
-
```
|
| 116 |
-
agentfile-model-merger/
|
| 117 |
-
├── README.md # This file
|
| 118 |
-
├── config.json # Model configuration
|
| 119 |
-
├── requirements.txt # Python dependencies
|
| 120 |
-
├── merge.py # Main merge script
|
| 121 |
-
├── model_merger.py # Core merger logic
|
| 122 |
-
├── resource_manager.py # Resource optimization
|
| 123 |
-
├── eval.yaml # HuggingFace eval config
|
| 124 |
-
└── .eval_results/
|
| 125 |
-
└── swe-bench-pro.yaml # Benchmark results
|
| 126 |
-
```
|
| 127 |
-
|
| 128 |
-
## 🧠 Resource Management
|
| 129 |
-
|
| 130 |
-
The resource manager provides:
|
| 131 |
-
- **Intelligent Memory Allocation**: Predictive memory usage optimization
|
| 132 |
-
- **Adaptive Batch Scheduling**: Dynamic batch size adjustment
|
| 133 |
-
- **Quality-Aware Routing**: Routes based on quality requirements
|
| 134 |
-
- **Dynamic Expert Pool**: Load/unload experts based on demand
|
| 135 |
-
|
| 136 |
-
## 📈 Performance
|
| 137 |
-
|
| 138 |
-
| Operation | Time | Memory |
|
| 139 |
-
|-----------|------|--------|
|
| 140 |
-
| Model Loading | ~4s | ~2 GB |
|
| 141 |
-
| Merge (per strategy) | ~0.03s | ~1 GB |
|
| 142 |
-
| Inference | ~0.08s/problem | ~4 GB |
|
| 143 |
-
| Resource Allocation | ~0.0001s | Minimal |
|
| 144 |
-
|
| 145 |
-
## 🔗 Links
|
| 146 |
-
|
| 147 |
-
- **GitHub**: [AgentFile](https://github.com/bbkdevops/agentfile)
|
| 148 |
-
- **HuggingFace**: [bbkdevops/agentfile-model-merger](https://huggingface.co/bbkdevops/agentfile-model-merger)
|
| 149 |
-
- **Documentation**: [Full Docs](https://github.com/bbkdevops/agentfile/tree/main/model-merger)
|
| 150 |
-
|
| 151 |
-
## 📄 License
|
| 152 |
-
|
| 153 |
-
Apache License 2.0
|
| 154 |
-
|
| 155 |
-
## 🙏 Acknowledgments
|
| 156 |
-
|
| 157 |
-
- HuggingFace Transformers
|
| 158 |
-
- SWE-bench Pro Dataset
|
| 159 |
-
- MMLU Dataset
|
| 160 |
-
- AgentFile Community
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
tags:
|
| 6 |
+
- agentfile
|
| 7 |
+
- moe
|
| 8 |
+
datasets:
|
| 9 |
+
- Idavidrein/gpqa
|
| 10 |
+
- TIGER-Lab/MMLU-Pro
|
| 11 |
+
metrics:
|
| 12 |
+
- accuracy
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# AgentFile Model Merger
|
| 16 |
+
|
| 17 |
+
## Official Reasoning Suite
|
| 18 |
+
- suite: `official_reasoning_suite`
|
| 19 |
+
- generated_at: `None`
|
| 20 |
+
|
| 21 |
+
This repo includes official-style eval results for GPQA and MMLU-Pro.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|