Quark
收藏资源简介:
Quark 是一个专注于简洁思维链推理(CCoT)的数据集,旨在提高推理过程中的令牌效率。数据集包含 19,447 行数据,覆盖科学、金融、数学、通用推理和代码等多个领域。通过压缩思维链块(<think>),Quark 在保持最终答案不变的情况下,显著减少了推理通道的令牌使用(节省 71.5%)。数据集采用 ShareGPT 的对话格式,包含用户输入和模型回复,并分为训练(80%)、验证(10%)和测试(10%)三部分。适用于文本生成和问答任务。
Quark is a dataset dedicated to Concise Chain-of-Thought (CCoT) reasoning, designed to enhance token efficiency during inference. It contains 19,447 rows of data spanning multiple domains including science, finance, mathematics, general reasoning, and code. By compressing Chain-of-Thought blocks (<think>), Quark significantly reduces token usage in inference passages while preserving the final answer unchanged, achieving a 71.5% reduction in token consumption. The dataset follows the ShareGPT conversation format, comprising user inputs and model responses, and is divided into three subsets: training (80%), validation (10%), and test (10%). It is suitable for text generation and question answering tasks.
好的,这是数据集 Quark 的详情总结:
Quark 数据集详情
概述
Quark 是一个用于训练精简思维链(CCoT)和提升 token 效率的旗舰数据集。其核心目标是在相同的输出长度内嵌入更多推理步骤,使模型在每个 token 上能进行更深度的思考,而非消耗更多 token 来表达思考过程。通过与上游数据源相比,Quark 将 <think> 块中的推理 token 减少了约 62%,同时保留了最终答案的原始内容。
核心特性
- 精简思维链 (CCoT):将冗长的推理过程改写为密集、逐步的形式,在不改变逻辑结构的前提下,大幅缩减 token 消耗。
- Token 效率:在推理通道中实现了 71.5% 的 token 节省(逐块计算),在整个消息层面实现了 42.1% 的节省。
- v2.0 版本:扩展至 19,447 条数据,来自 11 个上游来源,涵盖金融、博士级科学、多语言STEM、代码、数学和通用推理等领域。使用 DeepSeek V4 Flash 模型进行压缩和过滤。
数据架构
- 格式:ShareGPT 格式(JSONL),每条数据包含
conversations列表。 - 字段:
from: "human":用户提问。from: "gpt":模型回答,包含被重写的<think>推理块和保存一致的<think>之后的最终答案。
- 系统提示:约 50% 的数据没有系统提示,另外 50% 使用了六种短通用提示之一(例如 “You are a helpful assistant.”)。
数据统计 (v2.0)
| 统计项 | 数值 |
|---|---|
| 总行数 | 19,447 |
| 推理通道 token 节省 (逐块) | 71.5% |
| 整体消息 token 节省 | 42.1% |
<think> tokens (压缩前) |
33,389,698 |
<think> tokens (压缩后) |
9,521,371 |
| 数据来源数 | 11 个上游数据集 |
| 语言 | 英语 |
领域分布
| 领域 | 行数 | 占比 |
|---|---|---|
| 科学 (博士级 + 多语言 STEM) | 7,333 | 37.7% |
| 金融 / 经济学 | 4,855 | 25.0% |
| 数学 (通用 + 奥数 + 调和) | 2,478 | 12.7% |
| 通用推理 | 2,325 | 12.0% |
| 代码 (开源 + 竞赛) | 2,456 | 12.6% |
数据拆分
| 拆分 | 行数 | 占比 | 用途 |
|---|---|---|---|
| train | 15,557 | 80% | 主训练集 |
| validation | 1,945 | 10% | 超参数调优 |
| test | 1,945 | 10% | 最终评估 |
- 说明:拆分使用固定随机种子 (42) 进行打乱,各个拆分的 Schema 一致。
许可与标签
- 许可:MIT
- 语言:英语
- 标签:
koz u,reasoning,chain-of-thought,ccot,token-efficiency,sft - 任务类别:
text-generation,question-answering




