pg19-and-proof-pile
收藏资源简介:
HiCI评估数据集是为长上下文语言模型设计的预分词二进制评估数据集。该数据集包含来自PG19和proof-pile两个来源的测试集和验证集,分别使用Llama-2、Llama-3和Qwen3三种不同的分词器进行预处理。数据以内存映射的token ID数组形式存储,其中Llama-2分词文件使用uint16格式(词汇量32,000),而Llama-3和Qwen3分词文件使用uint32格式(词汇量超过65,535)。proof-pile部分包含从测试集中随机采样的128个文档,每个文档至少包含32,768个token,并使用三种分词器分别处理以便跨模型公平比较。该数据集适用于长上下文建模任务的评估,特别是需要比较不同分词器性能的研究场景。
The HiCI evaluation dataset is a pre-tokenized binary evaluation dataset designed for long-context language models (HiCI paper). It contains test and validation sets from two sources, PG19 and proof-pile, preprocessed using three different tokenizers: Llama-2, Llama-3, and Qwen3. The data is stored as memory-mapped token ID arrays, with Llama-2 token files using uint16 format (vocabulary size 32,000) and Llama-3 and Qwen3 token files using uint32 format (vocabulary size exceeding 65,535). The proof-pile portion includes 128 documents randomly sampled from the test set, each containing at least 32,768 tokens, processed with all three tokenizers for fair cross-model comparison. The dataset is suitable for evaluating long-context modeling tasks, particularly in research scenarios requiring comparison of different tokenizer performances.
HiCI评估数据集概述
数据集基本信息
- 数据集名称: HiCI Evaluation Data
- 创建目的: 为论文《Hierarchical Construction-Integration for long-context LLMs》(HiCI)提供预分词的二进制评估数据。
- 主要用途: 用于长上下文语言模型的评估。
- 许可协议: other
数据集内容与结构
数据集包含两个主要评估集:PG19和Proof-pile,并针对不同分词器提供了预分词版本。
PG19评估集
- 原始数据来源: deepmind/pg19
- 数据格式:
- 原始文本文件:
pg19_raw/test.txt和pg19_raw/validation.txt - 预分词二进制文件:针对Llama-2、Llama-3和Qwen3分词器
- 原始文本文件:
- 文件详情:
pg19_llama2/test.bin: PG19测试集,使用Llama-2分词器(uint16)pg19_llama2/validation.bin: PG19验证集,使用Llama-2分词器(uint16)pg19_llama3/test.bin: PG19测试集,使用Llama-3分词器(uint32)pg19_llama3/validation.bin: PG19验证集,使用Llama-3分词izer(uint32)pg19_qwen3/test.bin: PG19测试集,使用Qwen3分词器(uint32)pg19_qwen3/validation.bin: PG19验证集,使用Qwen3分词器(uint32)
Proof-pile评估集
- 原始数据来源: EleutherAI/proof-pile
- 数据描述: 包含从proof-pile测试分割中随机采样的128个文档,每个文档至少有32,768个token。
- 文件详情:
proof-pile_llama2/test_sampled_data.bin: 使用Llama-2分词器(uint16),与LongLoRA发布的文件相同proof-pile_llama3/test_sampled_data.bin: 使用Llama-3分词器(uint32)proof-pile_qwen3/test_sampled_data.bin: 使用Qwen3分词器(uint32)
- 关键说明:
proof-pile_llama3和proof-pile_qwen3中的文件包含相同的128个文档,仅使用各自的分词器重新分词,以实现公平的跨模型比较。
技术格式
- 文件类型: 内存映射的token ID数组(.bin文件)
- 数据类型:
- Llama-2分词文件:
uint16(词汇表大小32,000) - Llama-3/Qwen3分词文件:
uint32(词汇表大小 > 65,535)
- Llama-2分词文件:
- 兼容性: 与HiCI代码库中的评估脚本兼容
使用方式
数据加载示例(Python)
python import numpy as np data = np.memmap("pg19_llama2/test.bin", dtype=np.uint16, mode="r") # Llama-2 data = np.memmap("pg19_qwen3/test.bin", dtype=np.uint32, mode="r") # Qwen3 / Llama-3
数据下载命令
-
下载单个文件: bash huggingface-cli download ZengXiangyu/pg19-and-proof-pile proof-pile_llama2/test_sampled_data.bin --repo-type dataset
-
下载完整数据集: bash huggingface-cli download ZengXiangyu/pg19-and-proof-pile --repo-type dataset --local-dir ./data
数据来源与引用
- PG19原始数据集: https://huggingface.co/datasets/deepmind/pg19
- Proof-pile原始数据集: https://huggingface.co/datasets/EleutherAI/proof-pile
- Proof-pile LLaMA-2分词版本来源: LongLoRA(https://github.com/dvlab-research/LongLoRA)
- 相关论文: HiCI论文(https://arxiv.org/abs/2603.20843)




