From a8c7d08e7fec99646520e0bd279bd9408cdf58fe Mon Sep 17 00:00:00 2001 From: ModelHub XC Date: Mon, 20 Jul 2026 00:03:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=EF=BC=8C=E7=94=B1ModelHub=20XC=E7=A4=BE=E5=8C=BA=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Model: QuantFactory/DeepCoder-14B-Preview-GGUF Source: Original Platform --- .gitattributes | 49 ++++++++++ DeepCoder-14B-Preview.Q4_0.gguf | 3 + DeepCoder-14B-Preview.Q4_1.gguf | 3 + DeepCoder-14B-Preview.Q4_K_M.gguf | 3 + README.md | 143 ++++++++++++++++++++++++++++++ configuration.json | 1 + 6 files changed, 202 insertions(+) create mode 100644 .gitattributes create mode 100644 DeepCoder-14B-Preview.Q4_0.gguf create mode 100644 DeepCoder-14B-Preview.Q4_1.gguf create mode 100644 DeepCoder-14B-Preview.Q4_K_M.gguf create mode 100644 README.md create mode 100644 configuration.json diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..07a41dc --- /dev/null +++ b/.gitattributes @@ -0,0 +1,49 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bin.* filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zstandard filter=lfs diff=lfs merge=lfs -text +*.tfevents* filter=lfs diff=lfs merge=lfs -text +*.db* filter=lfs diff=lfs merge=lfs -text +*.ark* filter=lfs diff=lfs merge=lfs -text +**/*ckpt*data* filter=lfs diff=lfs merge=lfs -text +**/*ckpt*.meta filter=lfs diff=lfs merge=lfs -text +**/*ckpt*.index filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text +*.gguf* filter=lfs diff=lfs merge=lfs -text +*.ggml filter=lfs diff=lfs merge=lfs -text +*.llamafile* filter=lfs diff=lfs merge=lfs -text +*.pt2 filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text +DeepCoder-14B-Preview.Q4_0.gguf filter=lfs diff=lfs merge=lfs -text +DeepCoder-14B-Preview.Q4_1.gguf filter=lfs diff=lfs merge=lfs -text diff --git a/DeepCoder-14B-Preview.Q4_0.gguf b/DeepCoder-14B-Preview.Q4_0.gguf new file mode 100644 index 0000000..61d112c --- /dev/null +++ b/DeepCoder-14B-Preview.Q4_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5445926acf2a17cd6692a59f843ae9cdf5c03681fd6b70984e393149f1e4951d +size 8517726528 diff --git a/DeepCoder-14B-Preview.Q4_1.gguf b/DeepCoder-14B-Preview.Q4_1.gguf new file mode 100644 index 0000000..612fd00 --- /dev/null +++ b/DeepCoder-14B-Preview.Q4_1.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ee60578d60c4ca339ea97ce9dd19fb52f7c9dd247e9ad3387f6f2eb3dcffc38 +size 9392140608 diff --git a/DeepCoder-14B-Preview.Q4_K_M.gguf b/DeepCoder-14B-Preview.Q4_K_M.gguf new file mode 100644 index 0000000..db20fd0 --- /dev/null +++ b/DeepCoder-14B-Preview.Q4_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29b9def6b5cd812411ff415df2f2d796429dbf2aedd3b3cdf633b19a2a599881 +size 8988111168 diff --git a/README.md b/README.md new file mode 100644 index 0000000..9354bd7 --- /dev/null +++ b/README.md @@ -0,0 +1,143 @@ + +--- + +license: mit +library_name: transformers +datasets: +- PrimeIntellect/verifiable-coding-problems +- likaixin/TACO-verified +- livecodebench/code_generation_lite +language: +- en +base_model: +- deepseek-ai/DeepSeek-R1-Distill-Qwen-14B +pipeline_tag: text-generation + +--- + +[![QuantFactory Banner](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)](https://hf.co/QuantFactory) + + +# QuantFactory/DeepCoder-14B-Preview-GGUF +This is quantized version of [agentica-org/DeepCoder-14B-Preview](https://huggingface.co/agentica-org/DeepCoder-14B-Preview) created using llama.cpp + +# Original Model Card + + +
+DeepCoder-14B-Preview +
+🚀 Democratizing Reinforcement Learning for LLMs (RLLM) 🌟 +
+
+
+
+ + Code + + + Blog + + + X.ai + + + Hugging Face + + + Together AI + +
+ + + +## DeepCoder Overview +DeepCoder-14B-Preview is a code reasoning LLM fine-tuned from DeepSeek-R1-Distilled-Qwen-14B using distributed reinforcement learning (RL) to scale up to long context lengths. The model achieves 60.6% Pass@1 accuracy on LiveCodeBench v5 (8/1/24-2/1/25), representing a 8% improvement over the base model (53%) and achieving similar performance to OpenAI's o3-mini with just 14B parameters. + +
+ +
+ +## Data +Our training dataset consists of approximately 24K unique problem-tests pairs compiled from: +- Taco-Verified +- PrimeIntellect SYNTHETIC-1 +- LiveCodeBench v5 (5/1/23-7/31/24) + +## Training Recipe + +Our training recipe relies on an improved version of GRPO (GRPO+) and iterative context lengthening, introduced in DeepScaleR. + +### GRPO+ + +We enhance the original GRPO algorithm with insights from DAPO to enable more stable training: + +- **Offline Difficulty Filtering:** DAPO employs online dynamic sampling, discarding both entirely correct and entirely incorrect samples on the fly. While this helps maintain a more stable effective batch size, it introduces significant runtime overhead due to rejection sampling. Instead, we perform offline difficulty filtering on a subset of coding problems to ensure the training dataset remains within a suitable difficulty range. +- **No Entropy Loss:** We observed that including an entropy loss term often led to instability, with entropy growing exponentially and ultimately collapsing training. To mitigate this, we eliminate the entropy loss entirely. +- **No KL Loss:** Eliminating KL loss prevents the LLM from staying within trust region of the original SFT model. This removal also obviates the need to compute log probabilities for the reference policy, thereby accelerating training. +- **Overlong Filtering** **(from DAPO):** To preserve long-context reasoning, we mask the loss for truncated sequences. This technique enables DeepCoder to generalize to 64K-context inference despite being trained with a 32K context. +- **Clip High (from DAPO):** By increasing the upper bound in GRPO/PPO’s surrogate loss, we encourage more exploration and more stable entropy. + +### Iterative Context Lengthening + +Our original `Deepscaler-1.5B-Preview` scaled long context training from 8K→16K→24K, achieving 33→38→43% on AIME respectively. Similarly, `Deepcoder-14B-Preview` is trained on 16K→32K, achieving 54→58% on LiveCodeBench (v5). `DeepCoder-14B-Preview` successfully generalizes to longer contexts when evaluated at 64K context, reaching 60.6%. + +DeepCoder generalizes better to long contexts than the base distilled model, due to DAPO's overlong filtering. However, it's longer responses are often truncated when the max length is capped at 16K, which can lower its scores. + +| **Model** | **16K** | **32K** | **64K** | +| --- | --- | --- | --- | +| **DeepCoder-14B-Preview** | 45.6 | 57.9 | 60.6 | +| **DeepSeek-R1-Distill-Qwen-14B** | 50.2 | 53.0 | 53.0 | + +A more detailed description of the training recipe can be found in our [blog post](https://pretty-radio-b75.notion.site/DeepCoder-A-Fully-Open-Source-14B-Coder-at-O3-mini-Level-1cf81902c14680b3bee5eb349a512a51). + +## Evaluation + +We evaluate `Deepcoder-14B-Preview` on various coding benchmarks, including LiveCodeBench (LCBv5), Codeforces, and HumanEval+. + +| **Model** | LCB (v5)(8/1/24-2/1/25) | Codeforces Rating | Codeforces Percentile | HumanEval+ | +| --- | --- | --- | --- | --- | +| **DeepCoder-14B-Preview (ours)** | ***60.6*** | ***1936*** | ***95.3*** | ***92.6*** | +| **DeepSeek-R1-Distill-Qwen-14B** | 53.0 | 1791 | 92.7 | 92.0 | +| **O1-2024-12-17 (Low)** | 59.5 | **1991** | **96.1** | 90.8 | +| **O3-Mini-2025-1-31 (Low)** | **60.9** | 1918 | 94.9 | 92.6 | +| **O1-Preview** | 42.7 | 1658 | 88.5 | 89 | +| **Deepseek-R1** | 62.8 | 1948 | 95.4 | 92.6 | +| **Llama-4-Behemoth** | 49.4 | - | - | - | + +## Serving DeepCoder +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. + +### Usage Recommendations +Our usage recommendations are similar to those of R1 and R1 Distill series: +1. Avoid adding a system prompt; all instructions should be contained within the user prompt. +2. `temperature = 0.6` +3. `top_p = 0.95` +4. This model performs best with `max_tokens` set to at least `64000` + +## 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 +- Our training experiments are powered by our heavily modified fork of [Verl](https://github.com/agentica-project/verl), an open-source post-training library. +- Our model is trained on top of [`DeepSeek-R1-Distill-Qwen-14B`](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-14B). +- Our work is done as part of [Berkeley Sky Computing Lab](https://skycomputing.berkeley.edu/) and [Berkeley AI Research](https://bair.berkeley.edu/). + +## Citation +```bibtex +@misc{deepcoder2025, + title={DeepCoder: A Fully Open-Source 14B Coder at O3-mini Level}, + author={Michael Luo, Sijun Tan, Roy Huang, Ameen Patel, Alpay Ariyak, Qingyang Wu, Xiaoxiang Shi, Rachel Xin, Colin Cai, Maurice Weber, Ce Zhang, Li Erran Li, Raluca Ada Popa, Ion Stoica}, + howpublished={\url{https://pretty-radio-b75.notion.site/DeepCoder-A-Fully-Open-Source-14B-Coder-at-O3-mini-Level-1cf81902c14680b3bee5eb349a512a51}}, + note={Notion Blog}, + year={2025} +} +``` diff --git a/configuration.json b/configuration.json new file mode 100644 index 0000000..bbeeda1 --- /dev/null +++ b/configuration.json @@ -0,0 +1 @@ +{"framework": "pytorch", "task": "text-generation", "allow_remote": true} \ No newline at end of file