Star the D3D repository to request access

Please star https://github.com/fudan-generative-vision/D3D before requesting access.

I have starred the D3D repository.

Log in or Sign Up to review the conditions and access this dataset content.

PerfectBlend: Qwen3.8-27B Thinking Samples

D3D Model Prompts License

Gated access. Please star fudan-generative-vision/D3D before requesting access.

Overview

This dataset contains 1,417,675 prompt–response records produced by Qwen3.8-27B on prompts from Open-PerfectBlend, an open reproduction of The Perfect Blend instruction mixture. Each record is a complete conversation in which every assistant turn was regenerated by Qwen3.8-27B in thinking mode with reasoning_effort="xhigh", using the sampling parameters recommended by the Qwen3.8-27B model card.

The corpus is intended for target-generated supervised fine-tuning, draft-model training and distillation, and research on speculative decoding. It preserves the target model's reasoning traces and final answers, which makes it suitable for studying target-output alignment, long-context assistant turns, and the token distributions that a draft model must approximate.

Generation recipe

Item Value
Generator Qwen/Qwen3.8-27B
Prompt source mlabonne/open-perfectblend (1,420,909 prompts)
Inference engine SGLang, OpenAI-compatible /v1/chat/completions API
Precision BF16
Context length 262,144 tokens
max_tokens 131,072 tokens per assistant turn
Thinking mode enable_thinking=true, preserve_thinking=true
Reasoning effort xhigh

Recommended sampling parameters

The following values follow the Qwen3.8-27B model card's recommendation for thinking-mode generation:

Parameter Value
temperature 1.0
top_p 0.95
top_k 20
min_p 0.0
presence_penalty 0.0
repetition_penalty 1.0
reasoning_effort xhigh
max_tokens 131,072 per assistant turn

max_tokens applies to the whole assistant turn, including both the reasoning trace and the final answer.

Multi-turn records were generated turn-by-turn: each assistant response was appended to the conversation before the next user turn was sent, and preserve_thinking=true retained earlier reasoning blocks in the context.

Data format

The release is a single UTF-8 JSON Lines file:

perfectblend_qwen3.8-27b-thinking-xhigh-sampling_regen.jsonl

Each line is one JSON object:

{
  "id": 292,
  "conversations": [
    {
      "role": "user",
      "content": "what is the square root of 4"
    },
    {
      "role": "assistant",
      "content": "\n\nThe square root of 4 is **2**.",
      "reasoning_content": "We need answer simple math. ..."
    }
  ],
  "generation_metadata": {
    "prompt_tokens": 60,
    "completion_tokens": 57,
    "total_tokens": 117,
    "turns": [
      {
        "attempts": [
          {
            "sampling_params": {
              "temperature": 1.0,
              "top_p": 0.95,
              "top_k": 20,
              "min_p": 0.0,
              "presence_penalty": 0.0,
              "repetition_penalty": 1.0,
              "reasoning_effort": "xhigh"
            },
            "empty_content": false,
            "finish_reason": "stop",
            "prompt_tokens": 60,
            "completion_tokens": 57,
            "total_tokens": 117,
            "reasoning_content_present": true
          }
        ]
      }
    ]
  },
  "status": "success"
}
Field Description
id Source row index in Open-PerfectBlend.
conversations Conversation messages with role and content; assistant messages also carry reasoning_content.
generation_metadata.prompt_tokens Sum of prompt tokens over the retained assistant turns.
generation_metadata.completion_tokens Sum of completion tokens over the retained assistant turns.
generation_metadata.total_tokens Sum of prompt and completion tokens over the retained assistant turns.
generation_metadata.turns One entry per assistant turn; attempts[-1] is the retained attempt with its exact sampling parameters and token counts.
status "success" for every released record.

Statistics

Metric Value
Records 1,417,675
Assistant turns 1,876,996
Single-turn records (2 messages) 1,203,897 (84.9%)
Multi-turn records (≥4 messages) 213,778 (15.1%)
Prompt tokens (sum over assistant turns) 5,237,568,083
Completion tokens (sum over assistant turns) 8,338,379,533
Total tokens (sum over assistant turns) 13,575,947,616
status="success" 1,417,675 / 1,417,675 (100%)
finish_reason="stop" 1,876,996 / 1,876,996 (100%)
Assistant turns with non-empty reasoning_content 1,876,982 / 1,876,996 (14 empty reasoning strings)

Per-assistant-turn token distribution

Percentile Completion tokens Prompt tokens
Mean 4,442 2,790
p50 896 141
p90 12,432 8,140
p95 19,944 17,552
p99 43,058 41,294
Max 131,054 130,876

The maximum observed per-turn total was 208,842 tokens, within the 262,144-token context window.

Intended use

  • Training and evaluating draft models for speculative decoding, including D3D-style decoupled drafting.
  • Target-generated SFT, response distillation, and data-pipeline research.
  • Studying long-form reasoning, multi-turn context growth, and the effect of reasoning_effort="xhigh" on generated token distributions.

Loading

Authenticate and download the dataset:

hf auth login
hf download fudan-generative-ai/PerfectBlend-Qwen3.8-27B-Thinking \
  perfectblend_qwen3.8-27b-thinking-xhigh-sampling_regen.jsonl \
  --repo-type dataset --local-dir ./perfectblend-qwen3.8-27b-thinking

Stream the JSONL without loading the full 31 GB file into memory:

import json

path = "./perfectblend-qwen3.8-27b-thinking/perfectblend_qwen3.8-27b-thinking-xhigh-sampling_regen.jsonl"
with open(path, "r", encoding="utf-8") as f:
    for line in f:
        record = json.loads(line)
        messages = record["conversations"]
        # Feed `messages` to the Qwen3.8 chat template with
        # enable_thinking=True, preserve_thinking=True, reasoning_effort="xhigh".

When applying the Qwen3.8 chat template, map each assistant message's reasoning_content to the template's reasoning_content field so that the preserved thinking block is rendered correctly. The final answer is stored in content.

Licensing

This dataset is released under Apache-2.0. Prompt text retains the licensing of Open-PerfectBlend and its upstream sources. Qwen3.8-27B weights and model code are governed by the Qwen3.8-27B model card.

Citation and references

If you use this dataset, please cite the D3D paper:

@article{chen2026d3d,
  title   = {D3D: Decoupled Diffusion Drafting for Asynchronous Speculative Decoding},
  author  = {Baoyou Chen and Ruiqiao Mei and Guancong Lin and Tao Song and Weihao Yuan and Qun Liu and Siyu Zhu},
  journal = {arXiv preprint},
  year    = {2026}
}

The prompt mixture comes from Open-PerfectBlend, an open reproduction of The Perfect Blend.

@article{xu2024perfectblend,
  title   = {The Perfect Blend: Redefining RLHF with Mixture of Judges},
  author  = {Xu, Tengyu and Helenowski, Eryk and Sankararaman, Karthik Abinav and Jin, Di and Peng, Kaiyan and Han, Eric and Nie, Shaoliang and Zhu, Chen and Zhang, Hejia and Zhou, Wenxuan and Zeng, Zhouhao and He, Yun and Mandyam, Karishma and Talabzadeh, Arya and Khabsa, Madian and Cohen, Gabriel and Tian, Yuandong and Ma, Hao and Wang, Sinong and Fang, Han},
  journal = {arXiv preprint arXiv:2409.20370},
  year    = {2024}
}

For the generator and prompt source, reference the Qwen3.8-27B model card and the Open-PerfectBlend dataset:

Downloads last month
262

Collection including fudan-generative-ai/PerfectBlend-Qwen3.8-27B-Thinking

Paper for fudan-generative-ai/PerfectBlend-Qwen3.8-27B-Thinking