traj-olmo31-32b-think-ot3-s4-logprobs
收藏资源简介:
该数据集采用 Apache-2.0 许可,标签包括 distillation、logprobs、olmo。它提供 Olmo-3.1-32B-Think 教师模型在 OpenThoughts3-math 提示上生成轨迹的逐 token 教师 log-probabilities,目的是用于 Olmo-3-7B-Base 学生模型的 logit(off-policy)蒸馏。数据集对应原始轨迹数据集 mhseo2/traj-olmo31-32b-think-ot3-s4-raw,覆盖 53,105 个 OpenThoughts3-math prompts,每个 prompt 采样 4 条样本,总计 212,420 条样本/轨迹。生成模型为 allenai/Olmo-3.1-32B-Think,revision 为 97ade57a9cc55ed48bcd76be4b7a3b6fee61b80d,采样参数为 temperature 0.6、top_p 0.95。数据中的 logprobs 为 raw logprobs:对完整词表做 T=1 log-softmax 后、温度与 top-p 调整之前的值,由 vLLM 0.11.2 的 logprobs_mode=raw_logprobs 模式产生,覆盖每个生成 token。对于每个 token,数据还提供排名前 32 的下一 token 及其 logprob,排名为 1..32,并额外给出实际被采样 token 的 logprob,该 token 可能不在 top-32 内。数据以 logprobs/<shard>.lp.npz 形式存储,使用 numpy.savez_compressed。每个分片中的每个样本键包含以下数组:<key>/lp 形状为 [T],dtype 为 float16,表示每个位置采样 token 的 logprob;<key>/topk_ids 形状为 [T, 32],dtype 为 int32,表示按排名顺序排列的 top-32 token id;<key>/topk_lp 形状为 [T, 32],dtype 为 float16,表示这些 top-32 token 的 logprob。样本键 <key> 的格式为 ot3/<index>/s<sample>,其中 index 为 0..53104,sample 为 0..3,与原始数据集中 text/token 分片的 key 字段一致;位置 t 与原始数据中的 token_ids[t] 对齐。两个仓库的分片名称匹配:原始数据集为 <shard>.jsonl.gz,本数据集为 <shard>.lp.npz。此外,manifest.json 记录模型 sha、vLLM/transformers 版本、引擎与采样参数以及 chat 模板 sha256;prompt_ids.jsonl.gz 保存每个样本生成时使用的渲染后 prompt token ids,格式为 {index, prompt_ids},采用 Olmo chat 模板、默认系统提示,生成提示以 <|im_start|>assistant <think> 结尾。数据生成于 BSC MareNostrum 5(H100,TP=2);名为 cen* 的分片在 B200、TP=1 上使用相同代码、vLLM 与 transformers 版本生成。适用场景包括教师 logits/logprobs 蒸馏、off-policy 蒸馏,以及基于 OpenThoughts3-math 轨迹的数学推理相关蒸馏与建模。
This dataset is licensed under Apache-2.0, with tags distillation, logprobs, and olmo. It provides per-token teacher log-probabilities for trajectories generated by the Olmo-3.1-32B-Think teacher model on OpenThoughts3-math prompts, intended for logit (off-policy) distillation into the Olmo-3-7B-Base student model. The dataset corresponds to the raw trajectory dataset mhseo2/traj-olmo31-32b-think-ot3-s4-raw, covering 53,105 OpenThoughts3-math prompts, with 4 samples per prompt, totaling 212,420 samples/trajectories. The generating model is allenai/Olmo-3.1-32B-Think, revision 97ade57a9cc55ed48bcd76be4b7a3b6fee61b80d, with sampling parameters temperature 0.6 and top_p 0.95. The logprobs in the data are raw logprobs: values after T=1 log-softmax over the full vocabulary and before temperature and top-p adjustments, produced by vLLM 0.11.2 in logprobs_mode=raw_logprobs mode, covering every generated token. For each token, the data also provides the top 32 next tokens and their logprobs, ranked 1..32, plus the logprob of the actually sampled token, which may not be within the top 32. Data are stored as logprobs/<shard>.lp.npz using numpy.savez_compressed. Each sample key in each shard contains the following arrays: <key>/lp with shape [T], dtype float16, representing the logprob of the sampled token at each position; <key>/topk_ids with shape [T, 32], dtype int32, representing the top-32 token ids in ranked order; <key>/topk_lp with shape [T, 32], dtype float16, representing the logprobs of these top-32 tokens. The format of the sample key <key> is ot3/<index>/s<sample>, where index is 0..53104 and sample is 0..3, consistent with the key field in the text/token shards of the original dataset; position t aligns with token_ids[t] in the original data. Shard names match between the two repositories: the original dataset uses <shard>.jsonl.gz, while this dataset uses <shard>.lp.npz. In addition, manifest.json records the model sha, vLLM/transformers versions, engine and sampling parameters, and chat template sha256; prompt_ids.jsonl.gz stores the rendered prompt token ids used when generating each sample, in the format {index, prompt_ids}, using the Olmo chat template, the default system prompt, and generation prompts ending with <|im_start|>assistant <think>. Data were generated on BSC MareNostrum 5 (H100, TP=2); shards named cen* were generated on B200, TP=1 using the same code, vLLM, and transformers versions. Applicable scenarios include teacher logits/logprobs distillation, off-policy distillation, and distillation and modeling related to mathematical reasoning based on OpenThoughts3-math trajectories.
数据集总结
基本信息
- 数据集页面:
https://huggingface.co/datasets/mhseo2/traj-olmo31-32b-think-ot3-s4-logprobs - 许可证:apache-2.0
- 标签:distillation、logprobs、olmo
- 标题:Olmo-3.1-32B-Think teacher logprobs on OpenThoughts3-math (4 samples per prompt)
数据来源与规模
- 内容:OpenThoughts3-math 轨迹中每个 token 的教师 log-probabilities。
- 对应轨迹数据集:
https://huggingface.co/datasets/mhseo2/traj-olmo31-32b-think-ot3-s4-raw - 规模:53,105 个 OpenThoughts3-math prompts × 4 samples。
- 教师模型:
https://huggingface.co/allenai/Olmo-3.1-32B-Think,revision97ade57a9cc55ed48bcd76be4b7a3b6fee61b80d。 - 采样参数:temperature 0.6,top_p 0.95。
- 用途:用于 Olmo-3-7B-Base student 的 logit(off-policy)蒸馏。
log-probabilities 说明
- raw logprobs:完整词表上的 T=1 log-softmax,未经 temperature 与 top-p 调整;对应 vLLM 0.11.2 的
logprobs_mode="raw_logprobs";覆盖每个生成 token。 - Top-32:每个 token 提供 32 个最可能下一 token,按排名 1..32 排列;同时提供实际采样 token 的 logprob,该 token 可能不在 top-32 中。
文件布局
- 主文件路径模式:
logprobs/<shard>.lp.npz,格式为numpy.savez_compressed。 - 每个 sample key 包含:
| 数组 | 形状 | dtype | 内容 |
|---|---|---|---|
<key>/lp |
[T] |
float16 | 每个位置实际采样 token 的 logprob |
<key>/topk_ids |
[T, 32] |
int32 | top-32 token ids,按 rank 顺序 |
<key>/topk_lp |
[T, 32] |
float16 | top-32 token 对应的 logprobs |
<key>格式:ot3/<index>/s<sample>,其中index为 0..53104,sample为 0..3;与 raw 数据集中 text/token shards 的key字段一致。- 位置
t与 raw 数据集中的token_ids[t]对齐。 - Shard 名称在两个仓库间匹配:raw 仓库为
<shard>.jsonl.gz,本仓库为<shard>.lp.npz。
附加文件
manifest.json:记录 model sha、vLLM / transformers 版本、engine、采样参数以及 chat template sha256。prompt_ids.jsonl.gz:保存每个样本生成时使用的渲染后 prompt token ids,格式为{"index", "prompt_ids"};使用 Olmo chat template、默认 system prompt、生成 prompt 以<|im_start|>assistant <think>结尾。
生成环境
- 在 BSC MareNostrum 5(H100,TP=2)生成。
- 名为
cen*的 shards 在 B200 上以 TP=1 生成,使用相同代码、vLLM 和 transformers 版本。





