MemoryDecoder-at-Scale-domain-data
收藏资源简介:
MemoryDecoder at Scale领域数据是一个用于大规模持续预训练(CPT)的数据集,专为MemoryDecoder at Scale项目设计。该数据集涵盖三个专业领域:生物学、法律和金融。每个领域包含原始文本数据(每行一个JSON对象,字段为text)、预处理后的tokenized数据集(使用Qwen3分词器)以及与预处理训练分割对齐的KNN分布。预处理数据以Hugging Face DatasetDict格式保存,包含训练和测试分割。数据统计如下:生物学领域有3,327,031条CPT记录,551,666,432个预处理训练token;法律领域有276,852条记录,124,632,808个token;金融领域有4,402,694条记录,4,413,570,760个token。KNN分布以NumPy数组形式存储,包括目标token ID、行偏移、稀疏token ID和概率。数据来源于Biology-Instructions、DISC-Law-SFT和FinTrain等上游数据集。该数据集可用于领域特定的持续预训练和基于k近邻的语言模型改进研究。
MemoryDecoder at Scale Domain Data is a dataset designed for large-scale continual pre-training (CPT) as part of the MemoryDecoder at Scale project. It covers three specialized domains: biology, law, and finance. Each domain includes raw text data (one JSON object per line with a text field), preprocessed tokenized datasets (using the Qwen3 tokenizer), and KNN distributions aligned with the preprocessed training splits. The preprocessed data is saved in Hugging Face DatasetDict format, containing training and test splits. Statistics: biology has 3,327,031 CPT records with 551,666,432 preprocessed training tokens; law has 276,852 records with 124,632,808 tokens; finance has 4,402,694 records with 4,413,570,760 tokens. The KNN distributions are stored as NumPy arrays, including target token IDs, row offsets, sparse token IDs, and probabilities. The data originates from upstream datasets such as Biology-Instructions, DISC-Law-SFT, and FinTrain. This dataset can be used for domain-specific continual pre-training and research on improving language models via k-nearest neighbors.
数据集概述
数据集名称:MemoryDecoder at Scale Domain Data
数据集用途:为 MemoryDecoder at Scale 模型提供领域特定的继续预训练(CPT)数据,包括经过分词和预处理的数据集,以及对齐的 KNN 分布。
支持语言:英语(en)、中文(zh)
相关论文:MemoryDecoder at Scale (arXiv:2607.27919)(链接为普通文本,未访问)
数据集内容
覆盖领域
- 生物学(Biology)
- 法律(Law)
- 金融(Finance)
数据格式
- 原始 CPT 数据:每个领域包含
train/train.jsonl文件,每行一个 JSON 对象,格式为{"text": "..."}。 - 预处理数据:每个示例包含
input_ids、attention_mask、labels和dstore_range字段,以 Hugging FaceDatasetDict格式保存,可使用datasets.load_from_disk加载。 - KNN 分布:每个 KNN 分片包含
label.npy、offset.npy、flatten_token_id.npy、flatten_prob.npy和shape.json文件;金融领域额外包含flatten_config.json。
数据对齐
预处理的训练数据与对应的 KNN 分布按 token 对齐:每个 KNN 行对应预处理训练集中的一个 datastore token。分词和词表基于 Qwen3 tokenizer。
数据统计
| 领域 | CPT 记录数 | 预处理训练 token 数 / KNN 行数 | Arrow 训练分片数 | 稀疏支持条目数 | KNN 分片数 |
|---|---|---|---|---|---|
| 生物学 | 3,327,031 | 551,666,432 | 15 | 6,003,676,377 | 1 |
| 法律 | 276,852 | 124,632,808 | 4 | 3,753,053,591 | 1 |
| 金融 | 4,402,694 | 4,413,570,760 | 116 | 49,623,545,340 | 32 |
上游数据来源
各领域数据源自以下公开数据集,已转换为 MemoryDecoder at Scale 使用的 CPT 文本格式:
- 生物学:Biology-Instructions(链接为普通文本,未访问)
- 法律:DISC-Law-SFT(链接为普通文本,未访问)
- 金融:FinTrain(链接为普通文本,未访问)
使用本数据集时,需审查并遵守相应上游数据集的条款和许可证。
许可证
该数据集使用 other(自定义)许可证,具体条款请参见数据集页面。





