/ Модель

Характеристики

Контекст
40 960 токенов
Параметры
29,7 млрд
Размер весов
131 ГБ
Лицензия
MIT
Архитектура
qwen3 · dense
Базовая модель
Qwen3-32B
Библиотека
transformers
Опубликована
1 июл 2025

DeepSWE-Preview

Генерация текстаТекст → текст6 профессий

Агент для анализа и изменения кодовых баз, дообученный с помощью обучения с подкреплением на базе Qwen3-32B.

869скачиваний за 30 дней204лайкавеса обновлены3 июл 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

DeepSWE-Preview — открытый агент для задач программной инженерии от agentica-org, дообученный методом обучения с подкреплением на базе Qwen3-32B с включённым режимом рассуждений. Модель предназначена для работы с кодовыми базами: она может исследовать файлы, искать фрагменты кода, предлагать и редактировать изменения, а также использовать инструменты командной строки и отправлять готовое решение. Для этих сценариев README описывает инструменты R2E-Gym: поиск, редактор файлов, выполнение Bash-команд и завершение задачи.

Модель имеет плотную архитектуру Qwen3ForCausalLM, около 29,7 млрд параметров и нативный контекст 40 960 токенов по метаданным; в рекомендациях README для запуска указано не менее 32–64 тыс. токенов. Обучение на 4,5 тыс. задач из поднабора R2E-Gym использовало только RL, без SFT. В README заявлены результаты 59% на SWE-Bench-Verified для гибридного Best@16 и 42,2% Pass@1 в описанной оценке; это результаты конкретного агентного окружения, а не гарантия качества на произвольных задачах. Модель ориентирована на кодовые задачи, карточка указывает английский язык и лицензию MIT. Для эффективной работы рекомендуются системный промпт и инструменты R2E-Gym.

Сценарии применения

  • поиск причины ошибки в репозитории
  • подготовка исправления кода по описанию задачи
  • редактирование нескольких файлов в кодовой базе
  • запуск команд и тестов для проверки исправления
  • решение задач программной инженерии в агентном окружении

Ограничения

Результаты зависят от агентного окружения, доступных инструментов и вычислительного бюджета; для рекомендованного запуска требуется длинный контекст. Оценки SWE-Bench из README не гарантируют аналогичную производительность на других задачах.

Для каких профессий подходит6

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

DeepSWE Overview

DeepSWE-Preview is a fully open-sourced, state-of-the-art coding agent trained with only reinforcement learning (RL) to excel at software engineering (SWE) tasks. DeepSWE-Preview demonstrates strong reasoning capabilities in navigating complex codebases and viewing/editing multiple files, and it serves as a foundational model for future coding agents. The model achieves an impressive 59.0% on SWE-Bench-Verified, which is currently #1 in the open-weights category.

DeepSWE-Preview is trained on top of Qwen3-32B with thinking mode enabled. With just 200 steps of RL training, SWE-Bench-Verified score increases by ~20%.

Discover more about DeepSWE-Preview's development and capabilities in our technical blog post.

Usage Recommendations

To get the best performance out of DeepSWE-Preview, we suggest setting:

  • Temperature = 1
  • Max tokens set to at least 32-64K.
  • Use R2EGym's system/instance prompt and tools (file_editor.py, execution_bash.py, search.py, finish.py). See here for more details.

Training Recipe

Data 🗄️

Our dataset contains 4.5K problems from a subset of R2E-Gym. To avoid data contamination during training, we filtered out problems that are derived from the same repositories as SWE-Bench-Verified , such as sympy. All problems map to individual Docker images.

Environment 🌐

Our environment wraps around R2E-Gym, an existing Gym environment for scalable curation of high-quality executable SWE environments.

State & Action. R2E-Gym defines a set of four tools as part of the action space. The output of each tool (a Python program with stdout/stderr) represents the returned state. More specifically:

  • Execute Bash - Outputs both stdout and stderr of an LLM-generated bash command.
  • Search - Searches and returns all occurrences of an LLM-defined query in either a directory or a single file.
  • File Editor - Allows for viewing, creating, replacing strings, inserting, and undoing edits to a specific file.
  • Finish/Submit - LLM has decided that it has resolved the pull request, which terminates trajectory generation.

Reward. To keep things simple, our reward function employs a sparse Outcome Reward Model (ORM):

  • 1 - LLM’s generated patch passes a selected sample of tests (Pass2Pass and Fail2Pass) within a time limit. To accelerate training, our max time limit is 5 minutes, while the official SWE-Bench evaluation is 30 minutes.
  • 0 - We assign no reward if the LLM’s code fails on at least one test case or times out.

RL Algorithm

We enhance the original GRPO algorithm, integrating insights from DAPO, Dr. GRPO, LOOP/RLOO, and our innovations to enable stable training and improved performance. Our final, amalgamate algorithm consists of:

  • Clip High (DAPO): Increasing the upper bound of GRPO/PPO’s surrogate loss encourages exploration and stabilizes entropy.
  • No KL Loss (DAPO): Eliminating KL loss prevents the LLM from being constrained to the trust region of the original SFT model.
  • No Reward Standard Deviation (Dr.GRPO): Removing reward standard deviation removes difficulty bias in GRPO’s loss, ensuring hard and easy problems are better differentiated.
  • Length Normalization (Dr.GRPO): Dividing surrogate loss by max context length removes length bias present in GRPO, which increases the length of incorrect responses.
  • Leave One Out (Loop/RLOO): Removing one sample for advantage estimation reduces variance for policy gradient without introducing bias.
  • Compact Filtering (Us): Inspired by DAPO, we mask the loss for trajectories that reach max context length, timeout during generation (20 minutes), or reach maximum steps.
  • No Entropy Loss (Us): Entropy loss introduces higher instability and eventually leads to exponentially increasing entropy, which collapses training. Provided that the base model’s token-level entropy is within 0.3-1, entropy loss is not needed.

A more detailed description of the training recipe can be found in our blog post.

Evaluation

DeepSWE-Preview is evaluated via the official R2E-Gym codebase at 64k max context length and 100 max enviornment steps. DeepSWE's generated patches are then ported over to the offical SWE-bench repo to calculate final score. Below, We report Pass@1 accuracy averaged over 16 runs.

ModelScaffoldTypeSWE-Bench Verified (%)
DeepSWE-Preview (32B)R2E-GymAgent + Hybrid Best@1659%
DeepSWE-Preview (32B)R2E-GymAgent + Hybrid Best@857.9%
DeepSWE-Preview (32B)R2E-GymAgent42.2%
Devstral-Small (24B)OpenHandsAgent46.6%
Openhands-LM (32B)OpenHandsAgent (Iterative)37.2%
SWE-Agent-LM (32B)SWE-AgentAgent40.2%
R2EGym-Agent (32B)R2E-GymAgent34.4%
Skywork-SWE (32B)OpenHandsAgent38.0%
Skywork-SWE (32B)OpenHandsAgent + Execution-Free Best@847.0%
SkyRL-Agent (14B)OpenHandsAgent21.6%

Test-time Scaling

Serving DeepSWE-Preview

Our model can be served using popular high-performance inference systems:

  • vLLM
  • Hugging Face Text Generation Inference (TGI)
  • SGLang
  • TensorRT-LLM

All these systems support the OpenAI Chat Completions API format.

vLLM (Recommended)

We suggest using vllm>=0.8.5 and enabling long context in VLLM to serve DeepSWE-Preview.

export MAX_CONTEXT_LEN=65536
export TENSOR_PARALLEL_SIZE=8
VLLM_ALLOW_LONG_MAX_MODEL_LEN=1 vllm serve agentica-org/DeepSWE-Preview --tensor-parallel-size $TENSOR_PARALLEL_SIZE --max-model-len $MAX_CONTEXT_LEN   --hf-overrides '{\"max_position_embeddings\": $MAX_CONTEXT_LEN}' --enable_prefix_caching

License

This project is released under the MIT License, reflecting our commitment to open and accessible AI development. We believe in democratizing AI technology by making our work freely available for anyone to use, modify, and build upon. This permissive license ensures that researchers, developers, and enthusiasts worldwide can leverage and extend our work without restrictions, fostering innovation and collaboration in the AI community.

Acknowledgement

Citation

@misc{deepswe2025,
  title={DeepSWE: Training a State-of-the-Art Coding Agent from Scratch by Scaling RL},
  author={Michael Luo, Naman Jain, Jaskirat Singh, Sijun Tan, Ameen Patel, Qingyang Wu, Alpay Ariyak, Colin Cai, Tarun Venkat, Shang Zhu, Ben Athiwaratkun, Manan Roongta, Ce Zhang, Li Erran Li, Raluca Ada Popa, Koushik Sen, Ion Stoica},
  howpublished={\url{N/A}},
  note={Notion Blog},
  year={2025}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

vLLM

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
4887205

0 моделей