consolidate: unified Agent Q3 README — HQ + Evo
Browse files
README.md
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
tags:
|
| 6 |
+
- agent
|
| 7 |
+
- multi-agent
|
| 8 |
+
- langgraph
|
| 9 |
+
- gguf
|
| 10 |
+
- lora
|
| 11 |
+
- qwen
|
| 12 |
+
- prediction-markets
|
| 13 |
+
- mad-gambit
|
| 14 |
+
- solidity
|
| 15 |
+
- tandem-core
|
| 16 |
+
- agent-q3
|
| 17 |
+
- agent-q3-hq
|
| 18 |
+
- agent-q3-evo
|
| 19 |
+
pipeline_tag: text-generation
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# Agent Q3
|
| 23 |
+
|
| 24 |
+
> **MAD Gambit** — Multi-agent intelligence layer
|
| 25 |
+
> Contains both **Agent Q3 [HQ]** (production orchestration) and **Agent Q3 [Evo]** (self-improving research pipeline)
|
| 26 |
+
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
## Variants
|
| 30 |
+
|
| 31 |
+
| Variant | Role | Key Tech |
|
| 32 |
+
|---------|------|----------|
|
| 33 |
+
| **Agent Q3 [HQ]** | Production orchestration | Tandem Core · ComputeRouter · LangGraph · MCP · Solidity audit |
|
| 34 |
+
| **Agent Q3 [Evo]** | Self-improving research | LoRA fine-tuning · arXiv ingestion · ChromaDB · Unsloth · benchmarks |
|
| 35 |
+
|
| 36 |
+
---
|
| 37 |
+
|
| 38 |
+
## File Structure
|
| 39 |
+
|
| 40 |
+
```
|
| 41 |
+
Agent-Q3/
|
| 42 |
+
├── README.md
|
| 43 |
+
│
|
| 44 |
+
├── hq/ ← Agent Q3 [HQ] — Production
|
| 45 |
+
│ ├── Dockerfile
|
| 46 |
+
│ ├── docker-compose.yml
|
| 47 |
+
│ ├── requirements.txt
|
| 48 |
+
│ ├── .env.example
|
| 49 |
+
│ ├── orchestrator.py ← FastAPI + ComputeRouter
|
| 50 |
+
│ ├── compute_router.py ← Multi-backend weighted routing
|
| 51 |
+
│ ├── tandem_core.py ← Gemma4 Reasoner + Qwen3.5 Coder chain
|
| 52 |
+
│ ├── langgraph_graph.py ← StateGraph agent orchestration
|
| 53 |
+
│ ├── mcp_config.json ← 14 MCP server connectors
|
| 54 |
+
│ ├── litellm_config.yaml ← LiteLLM routing config
|
| 55 |
+
│ └── metrics.py ← Prometheus /metrics endpoint
|
| 56 |
+
│
|
| 57 |
+
├── evo/ ← Agent Q3 [Evo] — Research
|
| 58 |
+
│ ├── Dockerfile
|
| 59 |
+
│ ├── requirements.txt
|
| 60 |
+
│ ├── .env.example
|
| 61 |
+
│ ├── training_pipeline.py ← Unsloth LoRA fine-tuning
|
| 62 |
+
│ ├── arxiv_ingestor.py ← arXiv fetch → chunk → embed
|
| 63 |
+
│ ├── chromadb_store.py ← Vector store (nomic-embed-text 384-dim)
|
| 64 |
+
│ ├── feedback_collector.py ← DPO/RLHF signal capture
|
| 65 |
+
│ ├── benchmark_runner.py ← Domain QA evaluation
|
| 66 |
+
│ ├── lora_pusher.py ← Push adapters to HF
|
| 67 |
+
│ └── langgraph_graph.py ← StateGraph agent orchestration
|
| 68 |
+
│
|
| 69 |
+
└── shared/ ← Shared utilities
|
| 70 |
+
├── auth.py
|
| 71 |
+
├── logger.py
|
| 72 |
+
└── config.py
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
---
|
| 76 |
+
|
| 77 |
+
## HQ — Quick Start
|
| 78 |
+
|
| 79 |
+
```bash
|
| 80 |
+
cd hq
|
| 81 |
+
cp .env.example .env
|
| 82 |
+
docker compose up --build
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
**Endpoints:**
|
| 86 |
+
- `POST /v1/chat` — auto-classify → Reasoner or Coder
|
| 87 |
+
- `POST /v1/reason` — force Gemma4-E4B (planning, research, audit)
|
| 88 |
+
- `POST /v1/code` — force Qwen3.5-4B (code, debug, file ops)
|
| 89 |
+
- `POST /v1/tandem` — Gemma4 reasons → Qwen3.5 implements
|
| 90 |
+
- `GET /health` — backend health + loaded models
|
| 91 |
+
- `GET /metrics` — Prometheus metrics
|
| 92 |
+
|
| 93 |
+
## Evo — Quick Start
|
| 94 |
+
|
| 95 |
+
```bash
|
| 96 |
+
cd evo
|
| 97 |
+
cp .env.example .env
|
| 98 |
+
pip install -r requirements.txt
|
| 99 |
+
python training_pipeline.py
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
---
|
| 103 |
+
|
| 104 |
+
## Linked HF Assets
|
| 105 |
+
|
| 106 |
+
| Type | Label | Link |
|
| 107 |
+
|------|-------|------|
|
| 108 |
+
| Model | Agent Q3 (unified) | [madDegen/agent-q3-core](https://hf.co/madDegen/agent-q3-core) |
|
| 109 |
+
| Dataset | Agent Q3 (unified) | [madDegen/agent-q3](https://hf.co/datasets/madDegen/agent-q3) |
|
| 110 |
+
| Space | Agent Q3 (unified) | [madDegen/agent-q3-space](https://hf.co/spaces/madDegen/agent-q3-space) |
|
| 111 |
+
|
| 112 |
+
---
|
| 113 |
+
|
| 114 |
+
## License
|
| 115 |
+
|
| 116 |
+
Apache 2.0
|