Skip to main content
Browse Models

Agentica

DeepCoder 1.5B Preview

Released

2025-04-07

Family

Qwen 2

Type

Fine-Tuned Model

Downloads

External Download

You are about to open a link to an external source. Verify the URL before continuing.

Download

4-bit GGUF (Q4_K_M)

GGUF · agentica-org_DeepCoder-1.5B-Preview-Q4_K_M.gguf

5-bit GGUF (Q5_K_M)

GGUF · agentica-org_DeepCoder-1.5B-Preview-Q5_K_M.gguf

6-bit GGUF (Q6_K)

GGUF · agentica-org_DeepCoder-1.5B-Preview-Q6_K.gguf

8-bit GGUF (Q8_0)

GGUF · agentica-org_DeepCoder-1.5B-Preview-Q8_0.gguf

16-bit GGUF (F16)

GGUF · agentica-org_DeepCoder-1.5B-Preview-f16.gguf

Ollama Model (q4_K_M)

Ollama

Model Report

Overview

DeepCoder-1.5B-Preview is an open-source generative AI model tailored for code reasoning tasks and optimized for long-context understanding. Developed by Agentica, this model extends the capabilities of reinforcement learning for large language models (RLLMs), building upon DeepSeek-R1-Distilled-Qwen-1.5B as its foundational architecture. Through its innovative training methodology and rigorous dataset curation, DeepCoder-1.5B-Preview aims to advance the state-of-the-art in verifiable program synthesis and automated code analysis. For further background, details on this model are provided via the official model documentation and an in-depth technical blog post.

LiveCodeBench (LCB) score progression for DeepCoder during context length scaling

Figure 1. LiveCodeBench (LCB) score progression as DeepCoder's context length increases, illustrating adaptation to larger sequence inputs.

Model Architecture and Training Methodology

DeepCoder-1.5B-Preview is fine-tuned from the DeepSeek-R1-Distilled-Qwen-1.5B model, employing an advanced variant of the GRPO (Generalized Reward Policy Optimization) algorithm known as GRPO+. This methodology stems from the reinforcement learning paradigm and incorporates iterative context lengthening as introduced in DeepScaleR. The GRPO+ strategy improves stability and efficiency by integrating offline difficulty filtering, dispensing with entropy and KL losses, and leveraging techniques such as overlong filtering and surrogate loss clipping, as detailed in the DAPO research.

Iterative context lengthening allows the model to learn from shorter input sequences before gradually extending to longer ones. In practice, DeepCoder-1.5B-Preview was trained across sequential context lengths from 8K to 16K and finally to 24K tokens. This enables the model to generalize reasoning capabilities over contexts as long as 64K tokens during inference.

DeepCoder training curves: reward and response length vs. training steps

Figure 2. Training curve showing how DeepCoder's average response length and reward evolve as context size increases from 16K to 32K tokens.

Data Sources, Filtering, and Verification

To ensure high-quality training and verifiability, DeepCoder-1.5B-Preview draws from approximately 24,000 unique problem-test pairs, integrating datasets such as Taco-Verified, PrimeIntellect SYNTHETIC-1, and LiveCodeBench v5. A multi-stage filtering pipeline is employed. First, problems are programmatically verified against their official solutions, retaining only cases where all standard unit tests (minimum of five per problem) pass, thereby minimizing the possibility of reward exploitation or ambiguous evaluation. Deduplication further ensures that each problem in the training set is unique.

The reward computation process operates within isolated code sandboxes for security and determinism. The Together Code Interpreter facilitates efficient, parallelized code evaluation, while a local subprocess sandbox aligns with LiveCodeBench's standard evaluation framework. The reward function is implemented as a sparse Outcome Reward Model: a generated solution receives a reward of 1 only if it passes all of up to 15 challenging unit tests; otherwise, the reward is 0. Each test is subject to a strict timeout, usually between 6 and 12 seconds.

System Optimization and Computational Pipeline

To accelerate RL-based training, DeepCoder leverages a modified 'verl-pipeline' system—an optimized extension to the Verl post-training library. These optimizations include one-off pipelining, which separates sampling and training into successive alternating steps to maximize throughput and minimize idle time during trainer and reward calculation.

Bar chart: training times for different pipelining methods (Verl, Minibatch, One-Off) and workloads (Math, Code)

Figure 3. Comparison of training times by component and workload, showing that 'One-Off' pipelining significantly reduces total training time.

This approach enables near-complete masking of reward computation and trainer idle times, reducing overall training durations by a reported factor of 1.4x for mathematical reasoning and up to 2x for code generation workloads.

Performance Metrics and Benchmarking

DeepCoder-1.5B-Preview has been benchmarked on several key evaluation suites, including LiveCodeBench (LCBv5), Codeforces, and HumanEval+. On LCBv5, the model achieves a score of 25.1, with a Codeforces rating of 963, placing it in the 28.5 percentile, and a HumanEval+ success rate of 73.0%. By comparison, its base model (DeepSeek-R1-Distilled-Qwen-1.5B) attains an LCBv5 score of 16.9 and a HumanEval+ score of 58.3%, underscoring a marked improvement attributable to the reinforcement learning and context lengthening strategies. Detailed evaluation logs and further breakdowns are available from model resources.

Scatter plot: Pass@1 accuracy vs. model size for DeepCoder and peer models

Figure 4. LiveCodeBench Pass@1 accuracy plotted against model size, illustrating DeepCoder's performance efficiency relative to parameter count.

Model Family and Comparative Analysis

DeepCoder-1.5B-Preview is part of a broader family. A closely related model, DeepCoder-14B-Preview, is fine-tuned from Deepseek-R1-Distilled-Qwen-14B and achieves a LiveCodeBench Pass@1 accuracy of 60.6% at 64K context—a performance level comparable to other frontier reasoning models at similar or greater scale. Both models employ the same principles of iterative context length expansion and GRPO+ reinforcement learning, but differ in model size and eventual context generalization capacity. Additional details, including context scaling and comparisons with peer models, can be found in the comprehensive technical blog.

Limitations and Licensing

While DeepCoder-1.5B-Preview demonstrates robust long-context reasoning, there are noted trade-offs at shorter context lengths. For instance, average response lengths can exceed standard truncation thresholds at 16K tokens, leading to the potential for response truncation and corresponding reductions in benchmark scores. These effects are discussed further in model documentation.

DeepCoder-1.5B-Preview is released under the MIT License, with the aim of promoting open access and scientific transparency in AI research.

External Resources

About Qwen 2: Qwen 2 (and 2.5) is a family of advanced AI models developed by Alibaba, designed to excel in various tasks including general language understanding, coding, and mathematics.

More in the Qwen 2 Family

Alibaba Cloud /

Qwen2.5 VL 3B

A 3B-parameter multimodal language model that processes images, videos, and text with capabilities for visual reasoning, document analysis, and computer interface interaction.
Alibaba Cloud /

Qwen2.5 VL 7B

A 7-billion parameter multimodal model capable of processing images, documents, and videos with native dynamic resolution support and structured output capabilities.
Alibaba Cloud /

Qwen2.5 VL 72B

A 72-billion parameter multimodal model that processes images, videos, and text for document analysis, object detection, and visual agent tasks.
Alibaba Cloud /

QwQ 32B Preview

Experimental research model focused on advancing AI reasoning capabilities by thinking through problems step by step, continuously questioning assumptions, and exploring different paths of thought. Impressive benchmark scores in math and coding tasks.
Alibaba Cloud /

QwQ 32B

A 32.5-billion parameter transformer model optimized for mathematical reasoning, coding, and complex problem-solving through reinforcement learning training.
Alibaba Cloud /

Qwen 2.5 Math 1.5B

A 1.5 billion parameter specialized model focused on mathematical reasoning and problem-solving capabilities in English and Chinese.
Deepseek AI /

DeepSeek R1 Distill Qwen 1.5B

A 1.5 billion parameter language model created through distillation techniques, focusing on mathematical reasoning and chain-of-thought problem-solving capabilities.
Alibaba Cloud /

Qwen 2.5 Math 7B

A 7.62-billion parameter mathematical reasoning model supporting English and Chinese with chain-of-thought and tool-integrated reasoning capabilities.
Alibaba Cloud /

Qwen 2.5 Math PRM 7B

A 7B parameter process reward model that evaluates mathematical reasoning steps individually rather than just final answers, achieving 67.6% accuracy on mathematical benchmarks.
Deepseek AI /

DeepSeek R1 Distill Qwen 7B

A 7.62B parameter distilled language model based on Qwen2.5-Math-7B, trained via knowledge distillation for mathematical and logical reasoning tasks.
Alibaba Cloud /

Qwen 2.5 Math 72B

A 72.7 billion parameter language model specialized for solving mathematical problems in English and Chinese using chain-of-thought and tool-integrated reasoning.
Alibaba Cloud /

Qwen 2.5 Math PRM 72B

A 72.8 billion parameter process reward model that evaluates intermediate mathematical reasoning steps using consensus filtering and achieves 78.3% F1 on ProcessBench.
Alibaba Cloud /

Qwen 2.5 Coder 7B

A 7.61 billion parameter transformer model designed for code generation and reasoning across 92 programming languages with a 128,000-token context window.
Alibaba Cloud /

Qwen 2.5 Coder 32B

Qwen2.5-Coder builds on Qwen2.5 by training on 5.5 trillion additional tokens of code data including source code, text-code grounding data, and synthetic data. This leads to significant improvements in code-related tasks.
Alibaba Cloud /

Qwen 2.5 7B

A 7.61-billion parameter transformer-based language model with 128K token context length, trained on 18 trillion tokens supporting 29+ languages.
Alibaba Cloud /

Qwen2.5 7B 1M

A 7-billion parameter transformer model with 1-million token context capacity utilizing Dual Chunk Attention for long-range text processing.
Alibaba Cloud /

Qwen 2.5 14B

A 14.7 billion parameter transformer model supporting 29 languages with 128K context window, designed as foundation for fine-tuning applications.
Alibaba Cloud /

Qwen2.5 14B 1M

A 14.7B parameter transformer model with 1-million token context capacity, utilizing dual chunk attention and progressive training for extended sequence processing.
Deepseek AI /

DeepSeek R1 Distill Qwen 14B

A 14B dense language model distilled from a mixture-of-experts architecture, optimized for mathematical reasoning and code generation tasks.
Agentica /

DeepCoder 14B Preview

A 14-billion parameter code reasoning model fine-tuned using distributed reinforcement learning with long-context capabilities up to 64,000 tokens.
Deep Cogito /

Cogito V1 Preview 14B

A 14.8 billion parameter instruction-tuned language model trained using Iterated Distillation and Amplification with hybrid reasoning capabilities across 30+ languages.
Alibaba Cloud /

Qwen 2.5 32B

A 32.5 billion parameter multilingual transformer model trained on 18 trillion tokens with 128K context length supporting text generation, coding, and mathematical reasoning.
Deepseek AI /

DeepSeek R1 Distill Qwen 32B

A 32B parameter language model created through knowledge distillation, optimized for mathematical reasoning, code generation, and complex problem-solving tasks.
Deep Cogito /

Cogito V1 Preview 32B

A 32-billion parameter instruction-tuned model based on Qwen2.5 architecture featuring dual operational modes and iterated distillation alignment methodology.
Alibaba Cloud /

Qwen 2.5 72B

This update to Qwen 2, pretrained on 18 trillion tokens, shows impressive performance in benchmarks (MMLU 85+, HumanEval 85+, MATH 80+), outperforming models of similar size. Qwen 2.5 has multilingual support for over 29 languages and can understand and generate structured data.
Alibaba Cloud /

Qwen 2 7B

A 7.6 billion parameter multilingual decoder-only Transformer model designed for further post-training with 32,000-token context and strong coding capabilities.
Alibaba Cloud /

Qwen 2 72B

A 72-billion parameter transformer model supporting extended context lengths up to 128K tokens and demonstrating strong multilingual capabilities across diverse benchmarks.