Skip to main content
Browse Models

Agentica

DeepCoder 14B 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-14B-Preview-Q4_K_M.gguf

5-bit GGUF (Q5_K_M)

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

6-bit GGUF (Q6_K)

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

8-bit GGUF (Q8_0)

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

16-bit GGUF (F16)

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

Ollama Model (q4_K_M)

Ollama

Model Report

Overview

DeepCoder-14B-Preview is an open-source code reasoning large language model (LLM) developed by the Agentica team in collaboration with Together AI. With 14 billion parameters, DeepCoder-14B-Preview is fine-tuned from the Deepseek-R1-Distilled-Qwen-14B foundation model, leveraging distributed reinforcement learning techniques to advance automated code reasoning and problem-solving performance. The model's development focuses on scalable long-context processing, robust benchmarking, and fostering accessible research in reinforcement learning (RL) for LLMs.

Scatter plot comparing DeepCoder-14B's LiveCodeBench performance to other models

Figure 1. DeepCoder-14B achieves a LiveCodeBench Pass@1 accuracy of approximately 60.5% at 14B parameters, approaching the performance of larger or frontier models.

Model Architecture and Training Methods

DeepCoder-14B-Preview is built upon a 14B parameter transformer architecture, fine-tuned from Deepseek-R1-Distilled-Qwen-14B. A distinguishing aspect of its development is the use of distributed RL fine-tuning, enabling the model to generalize to longer contexts than those present in training. The training process employed iterative context lengthening: the context window increased from 16,000 to 32,000 tokens during training, with demonstrated inference generalization up to 64,000 tokens.

The model's optimization leverages the GRPO+ algorithm—an enhanced version of the Generalized Reversed Policy Optimization (GRPO) approach, incorporating strategies inspired by DAPO for greater training stability. Key features of GRPO+ include the removal of entropy and KL divergence losses to prevent instability and accelerate training, overlong sequence filtering to enable robust reasoning in long contexts, and modifications to PPO's surrogate loss to support exploration and entropy stabilization. Offline difficulty filtering ensures the training set includes problems within an appropriate difficulty range without introducing runtime overhead.

System-level efficiency was addressed with verl-pipeline, an optimized extension to the open-source verl RLHF library. This extension pipelines training, reward calculation, and sampling, with optimizations such as one-off pipelining designed to maximize computational throughput during RL training.

Training progress and context length transitions in DeepCoder-14B

Figure 2. LiveCodeBench score improvements over training steps, with major context extensions at key transitions. The chart illustrates DeepCoder-14B achieving high Pass@1 accuracy after scaling context length to 64K at inference.

Dataset and Evaluation Methodology

Training DeepCoder-14B-Preview required a curated dataset spanning approximately 24,000 high-quality, verifiable coding problems. The training set integrates 7,500 items from TACO Verified, 16,000 from PrimeIntellect's SYNTHETIC-1, and 600 from LiveCodeBench, with rigorous verification and deduplication protocols to ensure dataset integrity. Each coding problem includes a minimum of five unit tests and is fully programmatically verified against an external, official solution to guard against reward hacking and contamination.

During RL fine-tuning, DeepCoder employs a sandboxed reward environment for code execution. Two primary sandboxes are used: the Together Code Interpreter, which supports scalable and efficient batch evaluations, and a local sandbox based on the official LiveCodeBench infrastructure for controlled, guard-railed Python execution. The reward function itself is a sparse Outcome Reward Model (ORM): models are rewarded only if all sampled unit tests pass, with partial rewards strictly avoided. For problems with numerous tests, the 15 most challenging test cases—determined by input length—are selected, with each execution bounded by timeout.

DeepCoder-14B training response length and reward progression

Figure 3. Average response length and training rewards as DeepCoder-14B moves through context-length transitions and optimization steps.

Performance and Benchmark Results

DeepCoder-14B-Preview's performance has been systematically evaluated on multiple public coding and reasoning benchmarks. On LiveCodeBench (LCB) v5, it achieves a Pass@1 accuracy of 60.6% during the main evaluation window (August 2024 to February 2025), closely matching the performance of contemporary models such as o3-mini (Low), which records 60.9%. At 64K context evaluation, DeepCoder further demonstrates its generalization capabilities: performance increases at longer contexts, with reported scores of 45.6% at 16K, 57.9% at 32K, and 60.6% at 64K. On the HumanEval+ test suite, it registers a Pass@1 score of 92.6%.

In Codeforces rating evaluations using the Qwen CodeElo benchmark, DeepCoder-14B-Preview attains a rating of 1936, placing it in the 95.3 percentile relative to Codeforces users, and comparable to peer models such as o3-mini (Low) and O1-2024-12-17 (Low). Although trained primarily for code, DeepCoder-14B-Preview generalizes well to mathematical reasoning, scoring 73.8% on AIME 2024—a 4.1% improvement over its base.

Model Variants, Applications, and Limitations

DeepCoder-14B-Preview is developed alongside smaller and related models, including DeepCoder-1.5B-Preview and DeepScaleR-1.5B-Preview, which target math reasoning and iterative context lengthening research. While DeepCoder-14B-Preview is primarily designed for automated code generation, problem-solving, and code understanding, its performance on math tasks suggests strong reasoning capabilities beyond programming.

A key limitation lies in the model's performance at shorter context lengths: at 16K, its Pass@1 scores are lower than its base model due to longer average response lengths and truncation penalties. Training time requirements are substantial, attributed to the computational demands of long-context RL at scale. The sparse binary reward function, while effective at deterring reward hacking, may not always generalize to edge cases, especially when using a subset of all available test cases. Context inference length scaling and dataset construction protocols were explicitly implemented to mitigate test contamination and support confident evaluation.

Licensing and Open Research Commitment

DeepCoder-14B-Preview is released under the MIT License, supporting free use, modification, and community contribution. Comprehensive training logs, evaluation datasets, and code are made available to facilitate transparency, reproducibility, and further research in reinforcement learning for large language models. Supplementary benchmarking scripts and open infrastructure are accessible via the Agentica RLLM GitHub repository.


Helpful 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.
Agentica /

DeepCoder 1.5B Preview

A 1.5B parameter code generation model fine-tuned with reinforcement learning and iterative context lengthening for long-context reasoning tasks.
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.
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.