πŸ“‹ Model Description


license: apache-2.0 pipeline_tag: text-generation library_name: transformers datasets:
  • Alibaba-Apsara/Superior-Reasoning-SFT-gpt-oss-120b
  • Alibaba-Apsara/Superior-Reasoning-SFT-gpt-oss-120b-Logprob

DASD-4B-Thinking GGUF Models

Model Generation Details

This model was generated using llama.cpp at commit 0c21677e4.


Quantization Beyond the IMatrix

I've been experimenting with a new quantization approach that selectively elevates the precision of key layers beyond what the default IMatrix configuration provides.

In my testing, standard IMatrix quantization underperforms at lower bit depths, especially with Mixture of Experts (MoE) models. To address this, I'm using the --tensor-type option in llama.cpp to manually "bump" important layers to higher precision. You can see the implementation here:
πŸ‘‰ Layer bumping with llama.cpp

While this does increase model file size, it significantly improves precision for a given quantization level.

I'd love your feedbackβ€”have you tried this? How does it perform for you?



Click here to get info on choosing the right GGUF model format


DASD-4B-Thinking

Ali

GitHub</a> 

Hugging Face</a> 

Hugging Face</a> 

Hugging Face</a> 

Hugging Face</a> 

πŸš€ Introduction

We release DASD-4B-Thinking, a compact yet capable 4B dense language model specialized in long chain-of-thought (Long-CoT) reasoning across mathematics, code generation, and scientific reasoning. DASD-4B-Thinking is post-trained from Qwen3-4B-Instruct-2507 (non-thinking student) and distilled from gpt-oss-120b (teacher) via a distribution-aligned sequence distillation pipeline, achieving strong long-cot reasoning performance with substantially fewer training samples (448K) than many existing larger models.


benchmark

πŸ“Š Performance

ModelDataAIME24AIME25LiveCodeBench v5LiveCodeBench v6GPQA-D
Qwen3-4B-Thinking-2507❌-81.3-55.265.8
Qwen3-14B❌79.370.463.5-64.0
Qwen3-32B❌81.472.965.7-68.4
DeepSeek-R1-0528-Qwen3-8B❌86.076.360.5-61.1
GLM-Z1-32B-0414❌80.863.659.1-66.1
GLM-Z1-9B-0414❌76.456.651.8-58.5
Mistral3-3B❌-72.154.8-53.4
Mistral3-8B❌-78.761.6-66.8
AM-thinking-v1βœ…85.374.470.3--
POLARIS-4B-Previewβœ…81.279.4---
OpenThoughts3-7Bβœ…69.053.351.7-53.7
Pai-DistillQwen-ThoughtY-4Bβœ…76.7---56.1
Pai-DistillQwen-ThoughtY-8Bβœ…76.7---62.1
NVIDIA-OpenReasoning-Nemotron-7Bβœ…84.778.263.9-61.4
NVIDIA-Nemotron-Ultra-253Bβœ…80.872.568.1-76.0
DASD-4B-Thinking (Ours)βœ…88.583.369.367.568.4

πŸ’‘ Why DASD-4B-Thinking Matters

While the community rushes to build distilled reasoning model using massive datasets (often millions of samples), DASD-4B-Thinking proves that distribution alignment matters more than data quantity. It establishes a new baseline for data-efficient distillation, delivering flagship-level reasoning in a 4B model that can run on consumer hardware.

DASD-4B-Thinking democratizes the training recipe:

* 105K Low-Temperature responses for stability (Stage 1).

* 330K High-Temperature responses for diversity (Stage 2).

  • Proven Scalability: The exact same data recipe generalizes effectively to larger architectures, as demonstrated by our DASD-30B-A3B-Thinking-Preview (MoE), which achieves competitive performance without extra RL.

βš™οΈ Post-Training Pipeline

DASD-Thinking introduces a new paradigm of Distribution-Aligned Sequence Distillation. This represents an enhanced sequence-level distillation pipeline that incorporates Temperature-scheduled Learning, Divergence-aware Sampling, and Mixed-policy Distillation , achieving efficient capability transfer with a minimal amount of data (448K). Please refer to our report for more details.


DASD-Thinking training pipeline

⚑ Quick Start

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "Alibaba-Apsara/DASD-4B-Thinking"

tokenizer = AutoTokenizer.frompretrained(modelname, trustremotecode=True)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto",
trustremotecode=True,
)

prompt = "Natalia sold clips to 48 of her friends in April, and then she sold half as many clips in May. How many clips did Natalia sell altogether in April and May?"
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": prompt}
]

text = tokenizer.applychattemplate(
messages,
tokenize=False,
addgenerationprompt=True,
)

modelinputs = tokenizer([text], returntensors="pt").to(model.device)

generated_ids = model.generate(
model_inputs,
maxnewtokens=81920,
)

outputids = generatedids[0][len(modelinputs.inputids[0]):].tolist()
content = tokenizer.decode(outputids, skipspecial_tokens=True)
print(content)

Note: We include the system prompt, as it was used during all training stages. To ensure consistent output quality, we recommend including the same system prompt during actual usage; otherwise, the model's responses may be affected.

For deployment, you can use sglang>=0.4.6.post1 or vllm>=0.8.5 or to create an OpenAI-compatible API endpoint:

  • SGLang:
python -m sglang.launch_server --model-path Alibaba-Apsara/DASD-4B-Thinking --context-length 262144
  • vLLM:
vllm serve Alibaba-Apsara/DASD-4B-Thinking --max-model-len 262144

πŸ’‘Best Practices

To achieve optimal performance, we suggest using Temperature=1.0, TopP=1.0.

πŸ“œ Licence

The model weights are licensed under Apache 2.0 License.

⚠️ Limitation

While DASD-4B-Thinking demonstrates remarkable performance across mathematical, scientific, and coding benchmarks, it is currently limited by the absence of tool integration and function calling capabilities. Operating strictly within the text space, the model cannot interact with external interfaces such as code executors or APIs, which constrains its utility in agent-based workflows; however, future iterations aim to bridge this gap by integrating capabilities like knowledge retrieval and tool invocation to support more complex, interactive reasoning tasks.

πŸ“š Citation

DASD-Thinking is developed by Alibaba Cloud, as part of our mission to advance open, efficient, and trustworthy reasoning systems. If you find this work useful in your research or applications, please cite our technical report.

@article{yan2026dasd,
  title={Distribution-Aligned Sequence Distillation for Superior Long-CoT Reasoning},
  author={Yan, Shaotian and Liu, Kaiyuan and Shen, Chen and Wang, Bing and Fan, Sinan and Zhang, Jun and Wu, Yue and Wang, Zheng and Ye, Jieping},
  year={2026},
  journal={arXiv preprint arXiv:2601.09088},
  url={https://arxiv.org/abs/2601.09088}
}

@article{liu2025where,
title={Where Did This Sentence Come From? Tracing Provenance in LLM Reasoning Distillation},
author={Liu, Kaiyuan and Yan, Shaotian and Miao, Rui and Wang, Bing and Shen, Chen and Zhang, Jun and Ye, Jieping},
journal={arXiv preprint arXiv:2512.20908},
year={2025}
}

We welcome collaboration, feedback, and community contributions to push the boundaries of what small models can reason aboutβ€”transparently and responsibly.


πŸš€ If you find these models useful

Help me test my AI-Powered Quantum Network Monitor Assistant with quantum-ready security checks:

πŸ‘‰ Quantum Network Monitor

The full Open Source Code for the Quantum Network Monitor Service available at my github repos ( repos with NetworkMonitor in the name) : Source Code Quantum Network Monitor. You will also find the code I use to quantize the models if you want to do it yourself GGUFModelBuilder

πŸ’¬ How to test:
Choose an AI assistant type:
- TurboLLM (GPT-4.1-mini)
- HugLLM (Hugginface Open-source models)
- TestLLM (Experimental CPU-only)

What I’m Testing

I’m pushing the limits of small open-source models for AI network monitoring, specifically:
  • Function calling against live network services
  • How small can a model go while still handling:
- Automated Nmap security scans - Quantum-readiness checks - Network Monitoring tasks

🟑 TestLLM – Current experimental model (llama.cpp on 2 CPU threads on huggingface docker space):

  • βœ… Zero-configuration setup
  • ⏳ 30s load time (slow inference but no API costs) . No token limited as the cost is low.
  • πŸ”§ Help wanted! If you’re into edge-device AI, let’s collaborate!

Other Assistants

🟒 TurboLLM – Uses gpt-4.1-mini :
  • It performs very well but unfortunatly OpenAI charges per token. For this reason tokens usage is limited.
  • Create custom cmd processors to run .net code on Quantum Network Monitor Agents
  • Real-time network diagnostics and monitoring
  • Security Audits
  • Penetration testing (Nmap/Metasploit)

πŸ”΅ HugLLM – Latest Open-source models:

  • 🌐 Runs on Hugging Face Inference API. Performs pretty well using the lastest models hosted on Novita.

πŸ’‘ Example commands you could test:

  1. "Give me info on my websites SSL certificate"
  2. "Check if my server is using quantum safe encyption for communication"
  3. "Run a comprehensive security audit on my server"
  4. '"Create a cmd processor to .. (what ever you want)" Note you need to install a Quantum Network Monitor Agent to run the .net code on. This is a very flexible and powerful feature. Use with caution!

Final Word

I fund the servers used to create these model files, run the Quantum Network Monitor service, and pay for inference from Novita and OpenAIβ€”all out of my own pocket. All the code behind the model creation and the Quantum Network Monitor project is open source. Feel free to use whatever you find helpful.

If you appreciate the work, please consider buying me a coffee β˜•. Your support helps cover service costs and allows me to raise token limits for everyone.

I'm also open to job opportunities or sponsorship.

Thank you! 😊

πŸ“‚ GGUF File List

πŸ“ Filename πŸ“¦ Size ⚑ Download
DASD-4B-Thinking-bf16.gguf
LFS FP16
7.5 GB Download
DASD-4B-Thinking-bf16_q8_0.gguf
LFS Q8
5.52 GB Download
DASD-4B-Thinking-f16_q8_0.gguf
LFS Q8
5.52 GB Download
DASD-4B-Thinking-imatrix.gguf
LFS
3.69 MB Download
DASD-4B-Thinking-iq2_m.gguf
LFS Q2
1.54 GB Download
DASD-4B-Thinking-iq2_s.gguf
LFS Q2
1.54 GB Download
DASD-4B-Thinking-iq2_xs.gguf
LFS Q2
1.44 GB Download
DASD-4B-Thinking-iq2_xxs.gguf
LFS Q2
1.36 GB Download
DASD-4B-Thinking-iq3_m.gguf
LFS Q3
2 GB Download
DASD-4B-Thinking-iq3_xs.gguf
LFS Q3
1.75 GB Download
DASD-4B-Thinking-iq3_xxs.gguf
LFS Q3
1.72 GB Download
DASD-4B-Thinking-iq4_nl.gguf
LFS Q4
2.12 GB Download
DASD-4B-Thinking-iq4_xs.gguf
LFS Q4
2.11 GB Download
DASD-4B-Thinking-q2_k_m.gguf
LFS Q2
1.61 GB Download
DASD-4B-Thinking-q2_k_s.gguf
LFS Q2
1.56 GB Download
DASD-4B-Thinking-q3_k_m.gguf
LFS Q3
2.09 GB Download
DASD-4B-Thinking-q3_k_s.gguf
LFS Q3
2.05 GB Download
DASD-4B-Thinking-q4_0.gguf
Recommended LFS Q4
2.11 GB Download
DASD-4B-Thinking-q4_1.gguf
LFS Q4
2.35 GB Download
DASD-4B-Thinking-q4_k_m.gguf
LFS Q4
2.35 GB Download
DASD-4B-Thinking-q4_k_s.gguf
LFS Q4
2.24 GB Download
DASD-4B-Thinking-q5_0.gguf
LFS Q5
2.58 GB Download
DASD-4B-Thinking-q5_1.gguf
LFS Q5
2.82 GB Download
DASD-4B-Thinking-q8_0.gguf
LFS Q8
3.99 GB Download