Instructions to use AGENTDARS/Reviewer-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use AGENTDARS/Reviewer-7B with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("/home/dars/.cache/huggingface/hub/models--deepseek-ai--DeepSeek-R1-Distill-Qwen-7B/snapshots/393119fcd6a873e5776c79b0db01c96911f5f0fc/") model = PeftModel.from_pretrained(base_model, "AGENTDARS/Reviewer-7B") - Notebooks
- Google Colab
- Kaggle
| base_model: deepseek-ai/DeepSeek-R1-Distill-Qwen-7B | |
| library_name: peft | |
| # Model Card for Reviewer-7B | |
| ## Model Details | |
| ### Model Description | |
| Reviewer-7B is a fine-tuned on [**DeepSeek-R1-Distill-Qwen-7B**](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B), optimized for selecting the best patch among multiple patches generated by our DARS agent while solving software engineering problems. | |
| ### Model Sources | |
| - **Repository:** [DARS-7B Repository](https://github.com/darsagent/DARS-Agent) | |
| - **Paper:** ["DARS: Dynamic Action Re-Sampling to Enhance Coding Agent Performance by Adaptive Tree Traversal"](https://drive.google.com/file/d/1DMAZ-fkirC8uKl8819cOq9J3BQ4E7GXR/view?usp=drive_link) | |
| ## How to Get Started with the Model | |
| We use vLLM to deploy and infer the model. Please follow this tutorial [here]((https://docs.vllm.ai/en/latest/features/lora.html)) to use our LoRA weights with vLLM. | |
| ## Training Details | |
| ### Dataset | |
| We use our [code review dataset](https://huggingface.co/datasets/AGENTDARS/generated-critiques) where each instance contains several git patches with critiques for each each patch. The model learns to generate critiques for multiple patches and select the best patch. | |
| ### Training Procedure | |
| | Hyperparameter | Value | | |
| |----------------------|--------------------------------------------| | |
| | Training regime | BF16 mixed precision | | |
| | Optimizer | AdamW with cosine learning rate scheduler | | |
| | LoRA Configuration | rank=8, alpha=32, dropout=0.1 | | |
| | Batch Size | 48 | | |
| | Learning Rate | 1e-5 | | |
| | Sequence Length | 14K tokens | | |
| | Fine-tuning Epochs | 1 | | |
| | Compute Environment | DeepSpeed for memory-efficient distributed training | | |
| | Compute Infrastructure | 8x H100 | | |
| We use training script provided in [Qwen-2.5 codebase](https://github.com/QwenLM/Qwen2.5-Coder). | |
| ## Results | |
| Using this model as a reviewer with DARS trajectories generated using Claude 3.5 Sonnet V2 achieves 38.7% on SWE-Bench Lite. | |