Views
No views yet
pip install datasets transformers trl openai1export OPENAI_API_KEY="your-key"
2# Or add to .env in project directory1cd experiments
2python loop.py \
3 --model Qwen/Qwen2.5-0.5B-Instruct \
4 --provider openai-chat \
5 --iterations 3 \
6 --max-instances 50 \
7 --method grpo| File | Purpose |
|---|---|
tau_bridge.py | Python bridge to tau Rust harness |
swe_bench_runner.py | Run tau on SWE-Bench Pro instances |
evaluate.py | Docker-based patch evaluation |
failure_classifier.py | LLM-as-judge failure mode classifier |
train_v2.py | GRPO training with TRL environment_factory |
loop.py | Main autoresearch loop orchestrator |
┌─────────────────────────────────────────────────────────────┐
│ AUTORESEARCH LOOP │
├─────────────────────────────────────────────────────────────┤
│ │
│ 1. SAMPLE TASK ← SWE-Bench Pro public set │
│ ↓ │
│ 2. RUN AGENT → Tau harness + model + tools │
│ ↓ │
│ 3. EVALUATE → Docker: apply patch, run tests │
│ ↓ │
│ 4. IF FAILED: → Extract last 20 turns │
│ ↓ → Classify failure mode │
│ ↓ → Store (trajectory, failure_mode) │
│ ↓ │
│ 5. TRAIN → GRPO with custom reward functions │
│ ↓ → Target specific failure modes │
│ ↓ │
│ 6. DEPLOY → Load fine-tuned model into tau │
│ ↓ │
│ 7. REPEAT → Go to step 1 │
│ │
└─────────────────────────────────────────────────────────────┘patch_format_reward: Rewards properly formatted git diffstool_use_reward: Rewards correct tool usage patternsreasoning_reward: Rewards structured problem analysisenv_state_reward: Rewards exploration and test executiontau-swe-pro