File size: 1,491 Bytes
8707980
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
license: apache-2.0
base_model: laion/r2egym-nl2bash-stack-bugsseq-fixthink-again
tags:
  - reinforcement-learning
  - code
  - pymethods2test
  - r2egym
  - rl
  - rloo-n
  - terminus-structured
language:
  - en
pipeline_tag: text-generation
library_name: transformers
---

# rl_pymethods2test-r2egym_terminus-structured

RL-trained Qwen3-8B with structured tool calls (terminus-structured agent).

## Training Pipeline

SFT (r2egym+nl2bash+swesmith) → RL mixed dataset (37 steps) → RL full r2egym (55 steps) → RL pymethods2test (156 steps, full epoch)

## Key Results

- **SWEBench-100 pass@3**: 37-42% (depending on eval run)
- **Pymethods2test pass@8**: 91-97%
- **SWEBench in-train eval**: up to 14 fully solved at various checkpoints
- Training on test-writing (pymethods) maintains code-editing ability (SWEBench)

## Training Details

- **Base model**: [laion/r2egym-nl2bash-stack-bugsseq-fixthink-again](https://huggingface.co/laion/r2egym-nl2bash-stack-bugsseq-fixthink-again)
- **Agent**: terminus-structured (bash, view, edit, create, search tools)
- **Algorithm**: RLOO-N
- **Learning rate**: 1e-5
- **Context**: 32k (24k input + 8k output)
- **Framework**: BenSkyRL + Harbor (JSC HPC)

## Usage

```python
from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("laion/rl_pymethods2test-r2egym_terminus-structured")
tokenizer = AutoTokenizer.from_pretrained("laion/rl_pymethods2test-r2egym_terminus-structured")
```