File size: 1,636 Bytes
a635839
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
51
52
53
54
55
56
57
58
59
60
61
62
63
---
license: apache-2.0
library_name: transformers
language:
- en
tags:
- code
- software-engineering
- testing
- unit-tests
- r2e-gym
- swe-bench
base_model: Qwen/Qwen2.5-Coder-32B-Instruct
datasets:
- R2E-Gym/R2EGym-TestingAgent-SFT-Trajectories
model_type: qwen2
---

# R2E-TestgenAgent

A specialized execution-based testing agent for generating targeted unit tests in software engineering tasks.

## Model Details

- **Model Type**: Qwen2.5-Coder-32B fine-tuned for test generation
- **Training Data**: R2E-Gym SFT trajectories for testing tasks
- **Use Case**: Automated unit test generation for software engineering
- **Framework**: R2E-Gym ecosystem

## Usage

```python
from transformers import AutoTokenizer, AutoModelForCausalLM

model_name = "r2e-gym/R2E-TestgenAgent"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)

# Use with R2E-Gym framework for best results
from r2egym.agenthub.agent.agent import Agent, AgentArgs
agent_args = AgentArgs.from_yaml("testing_agent_config.yaml")
agent = Agent(name="TestingAgent", args=agent_args)
```

## Training

- **Base Model**: Qwen/Qwen2.5-Coder-32B-Instruct
- **Training Method**: Full fine-tuning with DeepSpeed
- **Learning Rate**: 1e-5
- **Epochs**: 2
- **Context Length**: 20,480 tokens

## Citation

```bibtex
@article{jain2025r2e,
  title={R2e-gym: Procedural environments and hybrid verifiers for scaling open-weights swe agents},
  author={Jain, Naman and Singh, Jaskirat and Shetty, Manish and Zheng, Liang and Sen, Koushik and Stoica, Ion},
  journal={arXiv preprint arXiv:2504.07164},
  year={2025}
}
```